about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2013-08-19 15:08:05 +1000
committerAllan McRae <allan@archlinux.org>2013-08-19 15:08:05 +1000
commit642c8732a111450a97e4ae41c12a920bc7f02ee0 (patch)
tree976d6d58770d3424efafaa561baefbebde066c12
parenteefa3be8e4c2c721a9f277d8ea2e11180231829f (diff)
downloadglibc-642c8732a111450a97e4ae41c12a920bc7f02ee0.tar.gz
glibc-642c8732a111450a97e4ae41c12a920bc7f02ee0.tar.xz
glibc-642c8732a111450a97e4ae41c12a920bc7f02ee0.zip
HACK FIX: reinline __m128i_strloadu
After f1d70dad, glibc build for i686-pc-linux-gnu with -O2 experiences
sefaults in __strstr_sse42.

https://bugs.archlinux.org/task/36556
http://sourceware.org/bugzilla/show_bug.cgi?id=15845

Readding the inline "fixes" the issue until a correct solution is found.
-rw-r--r--sysdeps/x86_64/multiarch/strstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/x86_64/multiarch/strstr.c b/sysdeps/x86_64/multiarch/strstr.c
index cd63b68c01..03d8b9a8f4 100644
--- a/sysdeps/x86_64/multiarch/strstr.c
+++ b/sysdeps/x86_64/multiarch/strstr.c
@@ -86,7 +86,7 @@
 /* Simple replacement of movdqu to address 4KB boundary cross issue.
    If EOS occurs within less than 16B before 4KB boundary, we don't
    cross to next page.  */
-static __m128i
+static inline __m128i
 __m128i_strloadu (const unsigned char * p, __m128i zero)
 {
   if (__builtin_expect ((int) ((size_t) p & 0xfff) > 0xff0, 0))