diff options
Diffstat (limited to 'string')
-rw-r--r-- | string/test-string.h | 11 | ||||
-rw-r--r-- | string/test-strstr.c | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/string/test-string.h b/string/test-string.h index 3f72876454..6e13bf4aa3 100644 --- a/string/test-string.h +++ b/string/test-string.h @@ -40,7 +40,18 @@ 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 <getopt.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/string/test-strstr.c b/string/test-strstr.c index 21944f41a3..33f221149a 100644 --- a/string/test-strstr.c +++ b/string/test-strstr.c @@ -23,6 +23,7 @@ #define STRSTR simple_strstr +#define libc_hidden_builtin_def(arg) /* nothing */ #include "strstr.c" |