From 494eb254c37507e836b5c791a3dbd8552777ddf7 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 20 Dec 2024 05:31:05 +0800 Subject: Add include/libc-misc.h Add include/libc-misc.h to provide miscellaneous definitions for both glibc build and test: 1. Move inhibit_stack_protector to libc-misc.h and add Clang support. 2. Add test_inhibit_stack_protector for glibc testing. 3. Move inhibit_loop_to_libcall to libc-misc.h. 4. Add test_cc_inhibit_loop_to_libcall to handle TEST_CC != CC and replace inhibit_loop_to_libcall with test_cc_inhibit_loop_to_libcall in glibc tests. Signed-off-by: H.J. Lu Co-Authored-By: Adhemerval Zanella Reviewed-by: Sam James --- string/test-string.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'string/test-string.h') 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 #include #include -- cgit v1.2.3