mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-13 06:40:09 +00:00
09a596cc2c
These machine-dependent inline string functions have never been on by default, and even if they were a good idea at the time they were introduced, they haven't really been touched in ten to fifteen years and probably aren't a good idea on current-gen processors. Current thinking is that this class of optimization is best left to the compiler. * bits/string.h, string/bits/string.h * sysdeps/aarch64/bits/string.h * sysdeps/m68k/m680x0/m68020/bits/string.h * sysdeps/s390/bits/string.h, sysdeps/sparc/bits/string.h * sysdeps/x86/bits/string.h: Delete file. * string/string.h: Don't include bits/string.h. * string/bits/string3.h: Rename to bits/string_fortified.h. No need to undef various symbols that the removed headers might have defined as macros. * string/Makefile (headers): Remove bits/string.h, change bits/string3.h to bits/string_fortified.h. * string/string-inlines.c: Update commentary. Remove definitions of various macros that nothing looks at anymore. Don't directly include bits/string.h. Set _STRING_INLINE_unaligned here, based on compiler-predefined macros. * string/strncat.c: If STRNCAT is not defined, or STRNCAT_PRIMARY _is_ defined, provide internal hidden alias __strncat. * include/string.h: Declare internal hidden alias __strncat. Only forward __stpcpy to __builtin_stpcpy if __NO_STRING_INLINES is not defined. * include/bits/string3.h: Rename to bits/string_fortified.h, update to match above. * sysdeps/i386/string-inlines.c: Define compat symbols for everything formerly defined by sysdeps/x86/bits/string.h. Make existing definitions into compat symbols as well. Remove some no-longer-necessary messing around with macros. * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c * sysdeps/s390/multiarch/mempcpy.c No need to define _HAVE_STRING_ARCH_mempcpy. Do define __NO_STRING_INLINES and NO_MEMPCPY_STPCPY_REDIRECT. * sysdeps/i386/i686/multiarch/strncat-c.c * sysdeps/s390/multiarch/strncat-c.c * sysdeps/x86_64/multiarch/strncat-c.c Define STRNCAT_PRIMARY. Don't change definition of libc_hidden_def. |
||
---|---|---|
.. | ||
bcopy-sse2-unaligned.S | ||
bcopy-ssse3-rep.S | ||
bcopy-ssse3.S | ||
bcopy.S | ||
bzero-sse2-rep.S | ||
bzero-sse2.S | ||
bzero.S | ||
ifunc-impl-list.c | ||
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-sse2-unaligned.S | ||
memcpy-ssse3-rep.S | ||
memcpy-ssse3.S | ||
memcpy.S | ||
memmove_chk.S | ||
memmove-sse2-unaligned.S | ||
memmove-ssse3-rep.S | ||
memmove-ssse3.S | ||
memmove.S | ||
mempcpy_chk.S | ||
mempcpy-sse2-unaligned.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 | ||
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 | ||
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 |