diff options
| author | H.J. Lu <hjl.tools@gmail.com> | 2024-12-20 05:31:05 +0800 |
|---|---|---|
| committer | H.J. Lu <hjl.tools@gmail.com> | 2024-12-22 13:03:46 +0800 |
| commit | 494eb254c37507e836b5c791a3dbd8552777ddf7 (patch) | |
| tree | d475caa25ab979dca97c79600f1a3660c7f92240 /string/test-memset.c | |
| parent | 56cdc529fb553a307be459df3f1be90d1a231f0a (diff) | |
| download | glibc-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 'string/test-memset.c')
| -rw-r--r-- | string/test-memset.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
