]> git.hungrycats.org Git - linux/commitdiff
[PATCH] x86_64: Prevent gcc from generating MMX code by mistake.
authorAndi Kleen <ak@suse.de>
Tue, 11 Jan 2005 09:50:25 +0000 (01:50 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 11 Jan 2005 09:50:25 +0000 (01:50 -0800)
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>
arch/x86_64/Makefile

index a69f7bcdfc2cdf46e3bb2dbc7d79a4df2785847a..6f90c246c4189989d6fcaadc7cff0e9ed18cd905 100644 (file)
@@ -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