mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-30 00:31:08 +00:00
2cfbdb9a27
Use of strftime, a C90 function, ends up bringing in wcschr, which is not a C90 function. Although not a conformance bug (C90 reserves wcs*), this is still contrary to glibc practice of avoiding relying on those reservations; this patch arranges for the internal uses to use __wcschr instead, with wcschr being a weak alias. This is more complicated than some such patches because of the various IFUNC definitions of wcschr (which include code redefining libc_hidden_def in a way that involves creating __GI_wcschr manually and so also needs to create __GI___wcschr after the change of internal uses to use __wcschr). Tested for x86_64 and 32-bit x86 (testsuite, and that disassembly of installed shared libraries is unchanged by the patch). 2014-12-10 Joseph Myers <joseph@codesourcery.com> Adhemerval Zanella <azanella@linux.vnet.ibm.com> [BZ #17634] * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr. Undefine after defining function. Define as weak alias of __wcschr. Use libc_hidden_weak. * include/wchar.h (__wcschr): Declare. Use libc_hidden_proto. * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED] (libc_hidden_def): Also define __GI___wcschr alias. * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to __wcschr and define as weak alias of __wcschr. * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as __wcschr. [!WCSCHR] (DEFAULT_WCSCHR): Define. [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def. [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr. Use libc_hidden_weak. Do not use libc_hidden_def. * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [IS_IN (libc) && SHARED] (libc_hidden_def): Also define __GI___wcschr alias. * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c [IS_IN (libc)] (wcschr): Define as macro expanding to __redirect_wcschr. [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof. [IS_IN (libc)] (__wcschr_power6): Likewise. [IS_IN (libc)] (__wcschr_power7): Likewise. [IS_IN (libc)] (__libc_wcschr): New. Define with libc_ifunc instead of wcschr. [IS_IN (libc)] (wcschr): Undefine and define as weak alias of __libc_wcschr. [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine. * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to __wcschr and define as weak alias of __wcschr. Use libc_hidden_builtin_def. * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define as weak alias of __wcschr. Use libc_hidden_weak. * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of wcschr. * time/era.c (_nl_init_era_entries): Likewise. * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove variable. (test-xfail-XPG3/time.h/linknamespace): Likewise. (test-xfail-XPG4/time.h/linknamespace): Likewise. |
||
---|---|---|
.. | ||
bcopy-ssse3-rep.S | ||
bcopy-ssse3.S | ||
bcopy.S | ||
bzero-sse2-rep.S | ||
bzero-sse2.S | ||
bzero.S | ||
ifunc-defines.sym | ||
ifunc-impl-list.c | ||
init-arch.c | ||
init-arch.h | ||
locale-defines.sym | ||
Makefile | ||
memchr-sse2-bsf.S | ||
memchr-sse2.S | ||
memchr.S | ||
memcmp-sse4.S | ||
memcmp-ssse3.S | ||
memcmp.S | ||
memcpy_chk.S | ||
memcpy-ssse3-rep.S | ||
memcpy-ssse3.S | ||
memcpy.S | ||
memmove_chk.S | ||
memmove-ssse3-rep.S | ||
memmove-ssse3.S | ||
memmove.S | ||
mempcpy_chk.S | ||
mempcpy-ssse3-rep.S | ||
mempcpy-ssse3.S | ||
mempcpy.S | ||
memrchr-c.c | ||
memrchr-sse2-bsf.S | ||
memrchr-sse2.S | ||
memrchr.S | ||
memset_chk.S | ||
memset-sse2-rep.S | ||
memset-sse2.S | ||
memset.S | ||
rawmemchr-sse2-bsf.S | ||
rawmemchr-sse2.S | ||
rawmemchr.S | ||
rtld-strnlen.c | ||
s_fma-fma.c | ||
s_fma.c | ||
s_fmaf-fma.c | ||
s_fmaf.c | ||
sched_cpucount.c | ||
stpcpy-sse2.S | ||
stpcpy-ssse3.S | ||
stpcpy.S | ||
stpncpy-sse2.S | ||
stpncpy-ssse3.S | ||
stpncpy.S | ||
strcasecmp_l-c.c | ||
strcasecmp_l-sse4.S | ||
strcasecmp_l-ssse3.S | ||
strcasecmp_l.S | ||
strcasecmp-c.c | ||
strcasecmp.S | ||
strcasestr-c.c | ||
strcat-sse2.S | ||
strcat-ssse3.S | ||
strcat.S | ||
strchr-sse2-bsf.S | ||
strchr-sse2.S | ||
strchr.S | ||
strcmp-sse4.S | ||
strcmp-ssse3.S | ||
strcmp.S | ||
strcpy-sse2.S | ||
strcpy-ssse3.S | ||
strcpy.S | ||
strcspn-c.c | ||
strcspn.S | ||
strlen-sse2-bsf.S | ||
strlen-sse2.S | ||
strlen.S | ||
strncase_l-c.c | ||
strncase_l-sse4.S | ||
strncase_l-ssse3.S | ||
strncase_l.S | ||
strncase-c.c | ||
strncase.S | ||
strncat-c.c | ||
strncat-sse2.S | ||
strncat-ssse3.S | ||
strncat.S | ||
strncmp-c.c | ||
strncmp-sse4.S | ||
strncmp-ssse3.S | ||
strncmp.S | ||
strncpy-c.c | ||
strncpy-sse2.S | ||
strncpy-ssse3.S | ||
strncpy.S | ||
strnlen-c.c | ||
strnlen-sse2.S | ||
strnlen.S | ||
strpbrk-c.c | ||
strpbrk.S | ||
strrchr-sse2-bsf.S | ||
strrchr-sse2.S | ||
strrchr.S | ||
strspn-c.c | ||
strspn.S | ||
test-multiarch.c | ||
varshift.c | ||
varshift.h | ||
Versions | ||
wcschr-c.c | ||
wcschr-sse2.S | ||
wcschr.S | ||
wcscmp-c.c | ||
wcscmp-sse2.S | ||
wcscmp.S | ||
wcscpy-c.c | ||
wcscpy-ssse3.S | ||
wcscpy.S | ||
wcslen-c.c | ||
wcslen-sse2.S | ||
wcslen.S | ||
wcsrchr-c.c | ||
wcsrchr-sse2.S | ||
wcsrchr.S | ||
wmemcmp-c.c | ||
wmemcmp-sse4.S | ||
wmemcmp-ssse3.S | ||
wmemcmp.S |