]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Define _HAVE_STRING_ARCH_mempcpy to 1 for x86
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 8 Mar 2016 18:57:31 +0000 (10:57 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 11 Mar 2016 15:47:11 +0000 (07:47 -0800)
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.

(cherry picked from commit 2b35e48c0c547b3f6f81996ce7ad7d67e24c7329)

ChangeLog
NEWS
sysdeps/x86/bits/string.h

index 1417e38fce91db6209759c1d47a93dbb8a3232b7..a539098b50c1aac2ed4e7c796ceb59a1ee79d93b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-03-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       [BZ #19759]
+       * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
+
 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #19762]
diff --git a/NEWS b/NEWS
index 1b679197f3843d45ffb4c92b43aa4c0fb6bff118..663c716ff13692192b62e032f82b98e34c811bf1 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,7 @@ Security related changes:
 The following bugs are resolved with this release:
 
   [19679] gcc-4.9.3 C++ exception handling broken due to unaligned stack
+  [19759] Don't inline mempcpy for x86
   [19762] Use HAS_ARCH_FEATURE with Fast_Rep_String
   [19792] MIPS: backtrace yields infinite backtrace with makecontext
 
index e4e019f1fca7b96ade08acf661b7846dbb45837f..8dfce052a67cecdacacee8a9527498b896816578 100644 (file)
@@ -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__          \