aboutsummaryrefslogtreecommitdiff
path: root/config.h.in
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-12-20 05:31:05 +0800
committerH.J. Lu <hjl.tools@gmail.com>2024-12-22 13:03:46 +0800
commit494eb254c37507e836b5c791a3dbd8552777ddf7 (patch)
treed475caa25ab979dca97c79600f1a3660c7f92240 /config.h.in
parent56cdc529fb553a307be459df3f1be90d1a231f0a (diff)
downloadglibc-494eb254c37507e836b5c791a3dbd8552777ddf7.tar.xz
glibc-494eb254c37507e836b5c791a3dbd8552777ddf7.zip
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 <hjl.tools@gmail.com> Co-Authored-By: Adhemerval Zanella <adhemerval.zanella@linaro.org> Reviewed-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/config.h.in b/config.h.in
index 6c25c923fa..c26f98ccd6 100644
--- a/config.h.in
+++ b/config.h.in
@@ -43,13 +43,20 @@
/* Define if the compiler supports __builtin_memset. */
#undef HAVE_BUILTIN_MEMSET
-/* Define if compiler accepts -ftree-loop-distribute-patterns. */
+/* Define if CC compiler accepts -ftree-loop-distribute-patterns. */
#undef HAVE_CC_INHIBIT_LOOP_TO_LIBCALL
-/* Define if compiler accepts -fno-stack-protector in an
+/* Define if TEST_CC compiler accepts -ftree-loop-distribute-patterns. */
+#undef HAVE_TEST_CC_INHIBIT_LOOP_TO_LIBCALL
+
+/* Define if CC compiler accepts -fno-stack-protector in an
__attribute__ ((__optimize__)). */
#undef HAVE_CC_NO_STACK_PROTECTOR
+/* Define if TEST_CC compiler accepts -fno-stack-protector in an
+ __attribute__ ((__optimize__)). */
+#undef HAVE_TEST_CC_NO_STACK_PROTECTOR
+
/* The level of stack protection in use for glibc as a whole.
May be overridden on a file-by-file basis. */
#ifndef STACK_PROTECTOR_LEVEL