lkml.org 
[lkml]   [2012]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] x86: Use -mno-avx when available
Date
From: Andi Kleen <ak@linux.intel.com>

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.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
arch/x86/Makefile | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index 209ba12..2c8aefd 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -113,6 +113,7 @@ KBUILD_CFLAGS += -Wno-sign-compare
KBUILD_CFLAGS += -fno-asynchronous-unwind-tables
# prevent gcc from generating any FP code by mistake
KBUILD_CFLAGS += $(call cc-option,-mno-sse -mno-mmx -mno-sse2 -mno-3dnow,)
+KBUILD_CFLAGS += $(call cc-option,-mno-avx,)

KBUILD_CFLAGS += $(mflags-y)
KBUILD_AFLAGS += $(mflags-y)
--
1.7.7.6


\
 
 \ /
  Last update: 2012-03-28 20:53    [W:0.092 / U:0.792 seconds]
©2003-2014 Jasper Spaans. Advertise on this site