From: Stan Shebs Date: Wed, 7 Feb 2018 20:57:16 +0000 (-0800) Subject: Add workaround to get clang to accept avx-512 instructions X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b20dc55e0adfddf1f6b2e024fbfa0d3a1c4b1dfe;p=thirdparty%2Fglibc.git Add workaround to get clang to accept avx-512 instructions --- diff --git a/sysdeps/x86_64/Makefile b/sysdeps/x86_64/Makefile index 8148e12874d..54e2ac71519 100644 --- a/sysdeps/x86_64/Makefile +++ b/sysdeps/x86_64/Makefile @@ -1,6 +1,13 @@ # The i387 `long double' is a distinct type we support. long-double-fcts = yes +ifeq ($(with-clang),yes) +# Clang integrated assembler objects to AVX-512 instructions if not specifically +# allowed. (-mavx512 is the preferred option but does not work in 5.0) +ASFLAGS-.o += -march=knl +ASFLAGS-.os += -march=knl +endif + ifeq ($(subdir),csu) gen-as-const-headers += link-defines.sym endif