Add i686 __libc_ifunc_impl_list
[glibc.git] / sysdeps / i386 / i686 / multiarch / strstr-c.c
blob7516c7ffee4b97eb70fdb66091e6d1f35ada5367
1 /* Multiple versions of strstr
2 All versions must be listed in ifunc-impl-list.c. */
4 #include "init-arch.h"
6 #define STRSTR __strstr_ia32
7 #if defined SHARED && defined DO_VERSIONING && !defined NO_HIDDEN
8 #undef libc_hidden_builtin_def
9 #define libc_hidden_builtin_def(name) \
10 __hidden_ver1 (__strstr_ia32, __GI_strstr, __strstr_ia32);
11 #endif
13 /* Redefine strstr so that the compiler won't complain about the type
14 mismatch with the IFUNC selector in strong_alias, below. */
15 #undef strstr
16 #define strstr __redirect_strstr
18 #include "string/strstr.c"
20 extern __typeof (__redirect_strstr) __strstr_sse42 attribute_hidden;
21 extern __typeof (__redirect_strstr) __strstr_ia32 attribute_hidden;
23 /* Avoid DWARF definition DIE on ifunc symbol so that GDB can handle
24 ifunc symbol properly. */
25 extern __typeof (__redirect_strstr) __libc_strstr;
26 libc_ifunc (__libc_strstr, HAS_SSE4_2 ? __strstr_sse42 : __strstr_ia32)
28 #undef strstr
29 strong_alias (__libc_strstr, strstr)