This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Fix strstr/strcasestr on i686
- From: Andreas Schwab <schwab at redhat dot com>
- To: libc-alpha at sourceware dot org
- Date: Thu, 03 Sep 2009 15:19:41 +0200
- Subject: Fix strstr/strcasestr on i686
This is the only file not shared with x86-64.
Andreas.
2009-09-03 Andreas Schwab <schwab@redhat.com>
* sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42)
(__strstr_ia32): Add attribute_hidden.
diff --git a/sysdeps/i386/i686/multiarch/strstr-c.c b/sysdeps/i386/i686/multiarch/strstr-c.c
index 7ef1157..efa9f78 100644
--- a/sysdeps/i386/i686/multiarch/strstr-c.c
+++ b/sysdeps/i386/i686/multiarch/strstr-c.c
@@ -7,6 +7,7 @@
#include "string/strstr.c"
-extern char *__strstr_sse42 (const char *, const char *);
+extern char *__strstr_sse42 (const char *, const char *) attribute_hidden;
+extern __typeof (__strstr_ia32) __strstr_ia32 attribute_hidden;
libc_ifunc (strstr, HAS_SSE4_2 ? __strstr_sse42 : __strstr_ia32);
--
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."