i686: Add missing IS_IN (libc) guards to vectorized strcspn

Since commit d957c4d3fa (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.
This commit is contained in:
Florian Weimer 2017-06-14 08:11:22 +02:00
parent fd860eaaa8
commit 69052a3a95
3 changed files with 12 additions and 3 deletions

View File

@ -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.

View 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

View File

@ -1 +1,3 @@
#include <sysdeps/x86_64/multiarch/varshift.c>
#if IS_IN (libc)
# include <sysdeps/x86_64/multiarch/varshift.c>
#endif