diff options
author | Stan Shebs <stanshebs@google.com> | 2018-02-07 12:57:16 -0800 |
---|---|---|
committer | Stan Shebs <stanshebs@google.com> | 2018-02-07 12:57:16 -0800 |
commit | b20dc55e0adfddf1f6b2e024fbfa0d3a1c4b1dfe (patch) | |
tree | eaf18116a72ea42f8f4047c86277e381b3e44300 | |
parent | 5756f8227e00815727740c79fa79c0aa3997fe1c (diff) | |
download | glibc-b20dc55e0adfddf1f6b2e024fbfa0d3a1c4b1dfe.tar.gz glibc-b20dc55e0adfddf1f6b2e024fbfa0d3a1c4b1dfe.tar.xz glibc-b20dc55e0adfddf1f6b2e024fbfa0d3a1c4b1dfe.zip |
Add workaround to get clang to accept avx-512 instructions
-rw-r--r-- | sysdeps/x86_64/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/x86_64/Makefile b/sysdeps/x86_64/Makefile index 8148e12874..54e2ac7151 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 |