From: H.J. Lu Date: Tue, 8 Mar 2016 18:57:31 +0000 (-0800) Subject: Define _HAVE_STRING_ARCH_mempcpy to 1 for x86 X-Git-Tag: glibc-2.24~499 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2b35e48c0c547b3f6f81996ce7ad7d67e24c7329;p=thirdparty%2Fglibc.git Define _HAVE_STRING_ARCH_mempcpy to 1 for x86 Since x86 has an optimized mempcpy and GCC can inline mempcpy on x86, define _HAVE_STRING_ARCH_mempcpy to 1 for x86. [BZ #19759] * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New. --- diff --git a/ChangeLog b/ChangeLog index 585c9c2d2e3..4a7e0191fd2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-03-08 H.J. Lu + + [BZ #19759] + * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New. + 2016-03-08 Gabriel F. T. Gomes * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s diff --git a/sysdeps/x86/bits/string.h b/sysdeps/x86/bits/string.h index e4e019f1fca..8dfce052a67 100644 --- a/sysdeps/x86/bits/string.h +++ b/sysdeps/x86/bits/string.h @@ -23,6 +23,9 @@ /* Use the unaligned string inline ABI. */ #define _STRING_INLINE_unaligned 1 +/* Don't inline mempcpy into memcpy as x86 has an optimized mempcpy. */ +#define _HAVE_STRING_ARCH_mempcpy 1 + /* Enable inline functions only for i486 or better when compiling for ia32. */ #if !defined __x86_64__ && (defined __i486__ || defined __pentium__ \