diff options
-rw-r--r-- | arch/x86/Makefile | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 5692d6ac0f18..920e6160c535 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile | |||
@@ -50,9 +50,6 @@ ifeq ($(CONFIG_X86_32),y) | |||
50 | 50 | ||
51 | KBUILD_CFLAGS += -msoft-float -mregparm=3 -freg-struct-return | 51 | KBUILD_CFLAGS += -msoft-float -mregparm=3 -freg-struct-return |
52 | 52 | ||
53 | # Don't autogenerate MMX or SSE instructions | ||
54 | KBUILD_CFLAGS += -mno-mmx -mno-sse | ||
55 | |||
56 | # Never want PIC in a 32-bit kernel, prevent breakage with GCC built | 53 | # Never want PIC in a 32-bit kernel, prevent breakage with GCC built |
57 | # with nonstandard options | 54 | # with nonstandard options |
58 | KBUILD_CFLAGS += -fno-pic | 55 | KBUILD_CFLAGS += -fno-pic |
@@ -80,8 +77,7 @@ else | |||
80 | KBUILD_AFLAGS += -m64 | 77 | KBUILD_AFLAGS += -m64 |
81 | KBUILD_CFLAGS += -m64 | 78 | KBUILD_CFLAGS += -m64 |
82 | 79 | ||
83 | # Don't autogenerate traditional x87, MMX or SSE instructions | 80 | # Don't autogenerate traditional x87 instructions |
84 | KBUILD_CFLAGS += -mno-mmx -mno-sse | ||
85 | KBUILD_CFLAGS += $(call cc-option,-mno-80387) | 81 | KBUILD_CFLAGS += $(call cc-option,-mno-80387) |
86 | KBUILD_CFLAGS += $(call cc-option,-mno-fp-ret-in-387) | 82 | KBUILD_CFLAGS += $(call cc-option,-mno-fp-ret-in-387) |
87 | 83 | ||
@@ -168,7 +164,7 @@ KBUILD_CFLAGS += -Wno-sign-compare | |||
168 | # | 164 | # |
169 | KBUILD_CFLAGS += -fno-asynchronous-unwind-tables | 165 | KBUILD_CFLAGS += -fno-asynchronous-unwind-tables |
170 | # prevent gcc from generating any FP code by mistake | 166 | # prevent gcc from generating any FP code by mistake |
171 | KBUILD_CFLAGS += $(call cc-option,-mno-sse -mno-mmx -mno-sse2 -mno-3dnow,) | 167 | KBUILD_CFLAGS += -mno-sse -mno-mmx -mno-sse2 -mno-3dnow |
172 | KBUILD_CFLAGS += $(call cc-option,-mno-avx,) | 168 | KBUILD_CFLAGS += $(call cc-option,-mno-avx,) |
173 | 169 | ||
174 | KBUILD_CFLAGS += $(mflags-y) | 170 | KBUILD_CFLAGS += $(mflags-y) |