]> 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>
Wed, 14 Jun 2017 12:50:11 +0000 (14:50 +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.

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

index 0d63b39b2ee54c8b89fd4cf874af242c90a4303f..6d96dbd0e65d64a311176600fdc94fe6c92b293e 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-06-14  Zack Weinberg  <zackw@panix.com>
 
        * stdlib/errno.h: Remove __need_Emath and __need_error_t logic.
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