aboutsummaryrefslogtreecommitdiff
path: root/string
diff options
context:
space:
mode:
Diffstat (limited to 'string')
-rw-r--r--string/test-memmove.c2
-rw-r--r--string/test-memset.c2
-rw-r--r--string/test-string.h11
3 files changed, 3 insertions, 12 deletions
diff --git a/string/test-memmove.c b/string/test-memmove.c
index 8184884e31..e1b83f679d 100644
--- a/string/test-memmove.c
+++ b/string/test-memmove.c
@@ -47,7 +47,7 @@ IMPL (memmove, 1)
/* Naive implementation to verify results. */
char *
-inhibit_loop_to_libcall
+test_cc_inhibit_loop_to_libcall
simple_memmove (char *dst, const char *src, size_t n)
{
char *ret = dst;
diff --git a/string/test-memset.c b/string/test-memset.c
index b49a2b6c35..f155d76aca 100644
--- a/string/test-memset.c
+++ b/string/test-memset.c
@@ -64,7 +64,7 @@ IMPL (MEMSET, 1)
/* Naive implementation to verify results. */
CHAR *
-inhibit_loop_to_libcall
+test_cc_inhibit_loop_to_libcall
SIMPLE_MEMSET (CHAR *s, int c, size_t n)
{
CHAR *r = s, *end = s + n;
diff --git a/string/test-string.h b/string/test-string.h
index da108f55fe..6375972ea8 100644
--- a/string/test-string.h
+++ b/string/test-string.h
@@ -40,16 +40,7 @@ extern impl_t __start_impls[], __stop_impls[];
#undef __USE_STRING_INLINES
-/* We are compiled under _ISOMAC, so libc-symbols.h does not do this
- for us. */
-#include "config.h"
-#ifdef HAVE_CC_INHIBIT_LOOP_TO_LIBCALL
-# define inhibit_loop_to_libcall \
- __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
-#else
-# define inhibit_loop_to_libcall
-#endif
-
+#include "libc-misc.h"
#include <getopt.h>
#include <stdint.h>
#include <stdio.h>