aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2005-01-11 01:50:25 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-11 01:50:25 -0800
commitf9e78f69a9e7649b668545aa4ee91559e01e571a (patch)
treee7a66bec16011d84c9cf1de2dafe116cb616882d /arch
parent62672609abaa73d6c47796ccc6033ce04b55d935 (diff)
downloadhistory-f9e78f69a9e7649b668545aa4ee91559e01e571a.tar.gz
[PATCH] x86_64: Prevent gcc from generating MMX code by mistake.
This will help only on gcc 4+. On older gccs there is a workaround too, but it is so ugly and there are no actual observed failures that I didn't apply it. Signed-off-by: Andi Kleen <ak@suse.de> Cc: <rth@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86_64/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86_64/Makefile b/arch/x86_64/Makefile
index a69f7bcdfc2cdf..6f90c246c41899 100644
--- a/arch/x86_64/Makefile
+++ b/arch/x86_64/Makefile
@@ -59,6 +59,8 @@ endif
# -funit-at-a-time shrinks the kernel .text considerably
# unfortunately it makes reading oopses harder.
CFLAGS += $(call cc-option,-funit-at-a-time)
+# prevent gcc from generating any FP code by mistake
+CFLAGS += $(call cc-option,-mno-sse -mno-mmx -mno-sse2 -mno-3dnow,)
head-y := arch/x86_64/kernel/head.o arch/x86_64/kernel/head64.o arch/x86_64/kernel/init_task.o