]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
i686: Add missing IS_IN (libc) guards to vectorized strcspn
authorFlorian Weimer <fweimer@redhat.com>
Wed, 14 Jun 2017 06:11:22 +0000 (08:11 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 20 Jun 2017 04:27:56 +0000 (06:27 +0200)
Since commit d957c4d3fa48d685ff2726c605c988127ef99395 (i386: Compile
rtld-*.os with -mno-sse -mno-mmx -mfpmath=387), vector intrinsics can
no longer be used in ld.so, even if the compiled code never makes it
into the final ld.so link.  This commit adds the missing IS_IN (libc)
guard to the SSE 4.2 strcspn implementation, so that it can be used from
ld.so in the future.

(cherry picked from commit 69052a3a95da37169a08f9e59b2cc1808312753c)

ChangeLog
sysdeps/i386/i686/multiarch/strcspn-c.c
sysdeps/i386/i686/multiarch/varshift.c

index f47f9eab04fdfdd2dc99b268a7123a9660998b7b..cd6b5a92e922b18acab2336d9ca0429526c7ce27 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-06-14  Florian Weimer  <fweimer@redhat.com>
+
+       * sysdeps/i386/i686/multiarch/strcspn-c.c: Add IS_IN (libc) guard.
+       * sysdeps/i386/i686/multiarch/varshift.c: Likewise.
+
 2017-03-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
 
        [BZ #21209]
index 6d61e190a84881c9e42e4d1baafcbee7e6a1ec8b..ec230fb38308b7b0f3f9c72bcba7387864196526 100644 (file)
@@ -1,2 +1,4 @@
-#define __strcspn_sse2 __strcspn_ia32
-#include <sysdeps/x86_64/multiarch/strcspn-c.c>
+#if IS_IN (libc)
+# define __strcspn_sse2 __strcspn_ia32
+# include <sysdeps/x86_64/multiarch/strcspn-c.c>
+#endif
index 7760b966e27d550f106419ef5d594664714d3926..6742a35d41e353d23043a6052d34116bf320ddac 100644 (file)
@@ -1 +1,3 @@
-#include <sysdeps/x86_64/multiarch/varshift.c>
+#if IS_IN (libc)
+# include <sysdeps/x86_64/multiarch/varshift.c>
+#endif