diff options
Diffstat (limited to 'arch/x86/Makefile')
| -rw-r--r-- | arch/x86/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 41250fb33985..eda00f9be0cf 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile | |||
| @@ -31,6 +31,9 @@ ifeq ($(CONFIG_X86_32),y) | |||
| 31 | 31 | ||
| 32 | KBUILD_CFLAGS += -msoft-float -mregparm=3 -freg-struct-return | 32 | KBUILD_CFLAGS += -msoft-float -mregparm=3 -freg-struct-return |
| 33 | 33 | ||
| 34 | # Don't autogenerate SSE instructions | ||
| 35 | KBUILD_CFLAGS += -mno-sse | ||
| 36 | |||
| 34 | # Never want PIC in a 32-bit kernel, prevent breakage with GCC built | 37 | # Never want PIC in a 32-bit kernel, prevent breakage with GCC built |
| 35 | # with nonstandard options | 38 | # with nonstandard options |
| 36 | KBUILD_CFLAGS += -fno-pic | 39 | KBUILD_CFLAGS += -fno-pic |
| @@ -57,8 +60,11 @@ else | |||
| 57 | KBUILD_AFLAGS += -m64 | 60 | KBUILD_AFLAGS += -m64 |
| 58 | KBUILD_CFLAGS += -m64 | 61 | KBUILD_CFLAGS += -m64 |
| 59 | 62 | ||
| 63 | # Don't autogenerate SSE instructions | ||
| 64 | KBUILD_CFLAGS += -mno-sse | ||
| 65 | |||
| 60 | # Use -mpreferred-stack-boundary=3 if supported. | 66 | # Use -mpreferred-stack-boundary=3 if supported. |
| 61 | KBUILD_CFLAGS += $(call cc-option,-mno-sse -mpreferred-stack-boundary=3) | 67 | KBUILD_CFLAGS += $(call cc-option,-mpreferred-stack-boundary=3) |
| 62 | 68 | ||
| 63 | # FIXME - should be integrated in Makefile.cpu (Makefile_32.cpu) | 69 | # FIXME - should be integrated in Makefile.cpu (Makefile_32.cpu) |
| 64 | cflags-$(CONFIG_MK8) += $(call cc-option,-march=k8) | 70 | cflags-$(CONFIG_MK8) += $(call cc-option,-march=k8) |
