Clean up unnecessary libc_hidden_builtin_def fiddling in x86 multiarch definitions.
authorRoland McGrath <roland@redhat.com>
Wed, 7 Oct 2009 03:01:23 +0000 (20:01 -0700)
committerRoland McGrath <roland@redhat.com>
Wed, 7 Oct 2009 03:01:23 +0000 (20:01 -0700)
ChangeLog
sysdeps/x86_64/multiarch/strcasestr-c.c
sysdeps/x86_64/multiarch/strstr-c.c

index ceba015..7192970 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2009-10-06  Roland McGrath  <roland@redhat.com>
 
+       * sysdeps/x86_64/multiarch/strstr-c.c
+       [! SHARED]: Omit libc_hidden_builtin_def fiddling.
+
+       * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
+       libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
+
        * sysdeps/x86_64/multiarch/init-arch.h
        [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
        (HAS_CPU_FEATURE): New macro.
index 3cb5557..551492d 100644 (file)
@@ -1,9 +1,6 @@
 #include "init-arch.h"
 
 #define STRCASESTR __strcasestr_sse2
-#undef libc_hidden_builtin_def
-#define libc_hidden_builtin_def(name) \
-  __hidden_ver1 (__strcasestr_sse2, __GI_strcasestr, __strcasestr_sse2);
 
 #include "string/strcasestr.c"
 
index d593089..b8ed316 100644 (file)
@@ -1,9 +1,11 @@
 #include "init-arch.h"
 
 #define STRSTR __strstr_sse2
-#undef libc_hidden_builtin_def
-#define libc_hidden_builtin_def(name) \
+#ifdef SHARED
+# undef libc_hidden_builtin_def
+# define libc_hidden_builtin_def(name) \
   __hidden_ver1 (__strstr_sse2, __GI_strstr, __strstr_sse2);
+#endif
 
 #include "string/strstr.c"