Commit c0e9afc0da6cb0f11497e5ea83377b3c451450e0
Committed by
H. Peter Anvin
1 parent
f6365201d8
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
x86: Use -mno-avx when available
On gccs that support AVX it's a good idea to disable that too, similar to how SSE2, SSE1 etc. are already disabled. This prevents the compiler from generating AVX ever implicitely. No failure observed, just from review. [ hpa: Marking this for urgent and stable, simply because the patch will either have absolutely no effect *or* it will avoid potentially very hard to debug failures. ] Signed-off-by: Andi Kleen <ak@linux.intel.com> Link: http://lkml.kernel.org/r/1332960678-11879-1-git-send-email-andi@firstfloor.org Signed-off-by: H. Peter Anvin <hpa@zytor.com> Cc: <stable@vger.kernel.org>
Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff
arch/x86/Makefile
... | ... | @@ -129,6 +129,7 @@ |
129 | 129 | KBUILD_CFLAGS += -fno-asynchronous-unwind-tables |
130 | 130 | # prevent gcc from generating any FP code by mistake |
131 | 131 | KBUILD_CFLAGS += $(call cc-option,-mno-sse -mno-mmx -mno-sse2 -mno-3dnow,) |
132 | +KBUILD_CFLAGS += $(call cc-option,-mno-avx,) | |
132 | 133 | |
133 | 134 | KBUILD_CFLAGS += $(mflags-y) |
134 | 135 | KBUILD_AFLAGS += $(mflags-y) |