Fix strstr/strcasestr/fma/fmaf on x86_64.
authorJakub Jelinek <jakub@redhat.com>
Thu, 3 Sep 2009 02:43:04 +0000 (19:43 -0700)
committerUlrich Drepper <drepper@redhat.com>
Thu, 3 Sep 2009 02:43:04 +0000 (19:43 -0700)
ChangeLog
sysdeps/x86_64/multiarch/s_fma.c
sysdeps/x86_64/multiarch/s_fmaf.c
sysdeps/x86_64/multiarch/strcasestr-c.c
sysdeps/x86_64/multiarch/strstr-c.c

index 0812312f3f88ee3b2b00d4728b661c0df322b505..ef087c794478ba35771bc8c71d6e2ff8bf8407e5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2009-09-02  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
+       Add attribute_hidden.
+       * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
+       __strcasestr_sse2): Likewise.
+       * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
+       (__fma_fma): Make static.
+       * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
+       (__fmaf_fma): Make static.
+
 2009-08-31  Andreas Schwab  <schwab@redhat.com>
 
        * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
index 40601e9a68549dea6530a0765812140aa5bf0d22..cfecf9b41d68f9cfa4605599f60ca58a6a096c85 100644 (file)
 
 #ifdef HAVE_AVX_SUPPORT
 
-extern double __fma_sse2 (double x, double y, double z);
+extern double __fma_sse2 (double x, double y, double z) attribute_hidden;
 
 
-double
+static double
 __fma_fma (double x, double y, double z)
 {
   asm ("vfmadd213sd %3, %2, %0" : "=x" (x) : "0" (x), "x" (y), "xm" (z));
index f3d37f8f4a70e6fd3519ff45e231099ee98a6b8a..de1c4b6f41b492ecd87d039a3bd31983e3991f7c 100644 (file)
 
 #ifdef HAVE_AVX_SUPPORT
 
-extern float __fmaf_sse2 (float x, float y, float z);
+extern float __fmaf_sse2 (float x, float y, float z) attribute_hidden;
 
 
-float
+static float
 __fmaf_fma (float x, float y, float z)
 {
   asm ("vfmadd213ss %3, %2, %0" : "=x" (x) : "0" (x), "x" (y), "xm" (z));
index e6879531bc919f39b6b51c0306c7591989bb83b9..3cb5557b67233dc77690e0638696081b9331dabb 100644 (file)
@@ -7,7 +7,8 @@
 
 #include "string/strcasestr.c"
 
-extern char *__strcasestr_sse42 (const char *, const char *);
+extern char *__strcasestr_sse42 (const char *, const char *) attribute_hidden;
+extern __typeof (__strcasestr_sse2) __strcasestr_sse2 attribute_hidden;
 
 #if 1
 libc_ifunc (__strcasestr,
index cff99b71ef13f49eaddaaf67e8f7eeb8c53285ea..d593089a87e102fa612f5d30665ab49d1144ca3d 100644 (file)
@@ -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_sse2) __strstr_sse2 attribute_hidden;
 
 libc_ifunc (strstr, HAS_SSE4_2 ? __strstr_sse42 : __strstr_sse2);