bca718
commit df782dc690775d93b0cc1076655a9b92b5a44ad0
bca718
Author: Andrew Senkevich <andrew.senkevich@intel.com>
bca718
Date:   Tue Jan 19 14:34:53 2016 +0300
bca718
bca718
    Fixed build with assembler w/o AVX-512 support.
bca718
bca718
        * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
bca718
        assembler not supporting AVX-512.
bca718
bca718
Index: glibc-2.17-c758a686/sysdeps/x86_64/multiarch/ifunc-impl-list.c
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/x86_64/multiarch/ifunc-impl-list.c
bca718
+++ glibc-2.17-c758a686/sysdeps/x86_64/multiarch/ifunc-impl-list.c
bca718
@@ -48,9 +48,11 @@ __libc_ifunc_impl_list (const char *name
bca718
 
bca718
   /* Support sysdeps/x86_64/multiarch/memmove_chk.c.  */
bca718
   IFUNC_IMPL (i, name, __memmove_chk,
bca718
+#ifdef HAVE_AVX512_ASM_SUPPORT
bca718
 	      IFUNC_IMPL_ADD (array, i, __memmove_chk,
bca718
 			      HAS_ARCH_FEATURE (AVX512F_Usable),
bca718
 			      __memmove_chk_avx512_no_vzeroupper)
bca718
+#endif
bca718
 	      IFUNC_IMPL_ADD (array, i, __memmove_chk, HAS_CPU_FEATURE (SSSE3),
bca718
 			      __memmove_chk_ssse3_back)
bca718
 	      IFUNC_IMPL_ADD (array, i, __memmove_chk, HAS_CPU_FEATURE (SSSE3),
bca718
@@ -60,9 +62,11 @@ __libc_ifunc_impl_list (const char *name
bca718
 
bca718
   /* Support sysdeps/x86_64/multiarch/memmove.S.  */
bca718
   IFUNC_IMPL (i, name, memmove,
bca718
+#ifdef HAVE_AVX512_ASM_SUPPORT
bca718
 	      IFUNC_IMPL_ADD (array, i, memmove,
bca718
 			      HAS_ARCH_FEATURE (AVX512F_Usable),
bca718
 			      __memmove_avx512_no_vzeroupper)
bca718
+#endif
bca718
 	      IFUNC_IMPL_ADD (array, i, memmove, HAS_CPU_FEATURE (SSSE3),
bca718
 			      __memmove_ssse3_back)
bca718
 	      IFUNC_IMPL_ADD (array, i, memmove, HAS_CPU_FEATURE (SSSE3),
bca718
@@ -269,9 +273,11 @@ __libc_ifunc_impl_list (const char *name
bca718
 #ifdef SHARED
bca718
   /* Support sysdeps/x86_64/multiarch/memcpy_chk.S.  */
bca718
   IFUNC_IMPL (i, name, __memcpy_chk,
bca718
+#ifdef HAVE_AVX512_ASM_SUPPORT
bca718
 	      IFUNC_IMPL_ADD (array, i, __memcpy_chk,
bca718
 			      HAS_ARCH_FEATURE (AVX512F_Usable),
bca718
 			      __memcpy_chk_avx512_no_vzeroupper)
bca718
+#endif
bca718
 	      IFUNC_IMPL_ADD (array, i, __memcpy_chk, HAS_CPU_FEATURE (SSSE3),
bca718
 			      __memcpy_chk_ssse3_back)
bca718
 	      IFUNC_IMPL_ADD (array, i, __memcpy_chk, HAS_CPU_FEATURE (SSSE3),
bca718
@@ -285,16 +291,20 @@ __libc_ifunc_impl_list (const char *name
bca718
 			      __memcpy_ssse3_back)
bca718
 	      IFUNC_IMPL_ADD (array, i, memcpy, HAS_CPU_FEATURE (SSSE3),
bca718
 			      __memcpy_ssse3)
bca718
+#ifdef HAVE_AVX512_ASM_SUPPORT
bca718
 	      IFUNC_IMPL_ADD (array, i, memcpy,
bca718
 			      HAS_ARCH_FEATURE (AVX512F_Usable),
bca718
 			      __memcpy_avx512_no_vzeroupper)
bca718
+#endif
bca718
 	      IFUNC_IMPL_ADD (array, i, memcpy, 1, __memcpy_sse2))
bca718
 
bca718
   /* Support sysdeps/x86_64/multiarch/mempcpy_chk.S.  */
bca718
   IFUNC_IMPL (i, name, __mempcpy_chk,
bca718
+#ifdef HAVE_AVX512_ASM_SUPPORT
bca718
 	      IFUNC_IMPL_ADD (array, i, __mempcpy_chk,
bca718
 			      HAS_ARCH_FEATURE (AVX512F_Usable),
bca718
 			      __mempcpy_chk_avx512_no_vzeroupper)
bca718
+#endif
bca718
 	      IFUNC_IMPL_ADD (array, i, __mempcpy_chk, HAS_CPU_FEATURE (SSSE3),
bca718
 			      __mempcpy_chk_ssse3_back)
bca718
 	      IFUNC_IMPL_ADD (array, i, __mempcpy_chk, HAS_CPU_FEATURE (SSSE3),
bca718
@@ -304,9 +314,11 @@ __libc_ifunc_impl_list (const char *name
bca718
 
bca718
   /* Support sysdeps/x86_64/multiarch/mempcpy.S.  */
bca718
   IFUNC_IMPL (i, name, mempcpy,
bca718
+#ifdef HAVE_AVX512_ASM_SUPPORT
bca718
 	      IFUNC_IMPL_ADD (array, i, mempcpy,
bca718
 			      HAS_ARCH_FEATURE (AVX512F_Usable),
bca718
 			      __mempcpy_avx512_no_vzeroupper)
bca718
+#endif
bca718
 	      IFUNC_IMPL_ADD (array, i, mempcpy, HAS_CPU_FEATURE (SSSE3),
bca718
 			      __mempcpy_ssse3_back)
bca718
 	      IFUNC_IMPL_ADD (array, i, mempcpy, HAS_CPU_FEATURE (SSSE3),