aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index d3debde0ce0b..0c5b4072d134 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -64,14 +64,10 @@ else
64 KBUILD_CFLAGS += -mno-red-zone 64 KBUILD_CFLAGS += -mno-red-zone
65 KBUILD_CFLAGS += -mcmodel=kernel 65 KBUILD_CFLAGS += -mcmodel=kernel
66 66
67 KBUILD_CFLAGS += -Wno-sign-compare
68 KBUILD_CFLAGS += -fno-asynchronous-unwind-tables
69 # -funit-at-a-time shrinks the kernel .text considerably 67 # -funit-at-a-time shrinks the kernel .text considerably
70 # unfortunately it makes reading oopses harder. 68 # unfortunately it makes reading oopses harder.
71 KBUILD_CFLAGS += $(call cc-option,-funit-at-a-time) 69 KBUILD_CFLAGS += $(call cc-option,-funit-at-a-time)
72 70
73 # prevent gcc from generating any FP code by mistake
74 KBUILD_CFLAGS += $(call cc-option,-mno-sse -mno-mmx -mno-sse2 -mno-3dnow,)
75 # this works around some issues with generating unwind tables in older gccs 71 # this works around some issues with generating unwind tables in older gccs
76 # newer gccs do it by default 72 # newer gccs do it by default
77 KBUILD_CFLAGS += -maccumulate-outgoing-args 73 KBUILD_CFLAGS += -maccumulate-outgoing-args
@@ -98,7 +94,15 @@ KBUILD_CFLAGS += $(cfi) $(cfi-sigframe)
98 94
99LDFLAGS := -m elf_$(UTS_MACHINE) 95LDFLAGS := -m elf_$(UTS_MACHINE)
100OBJCOPYFLAGS := -O binary -R .note -R .comment -S 96OBJCOPYFLAGS := -O binary -R .note -R .comment -S
97
98# Speed up the build
101KBUILD_CFLAGS += -pipe 99KBUILD_CFLAGS += -pipe
100# Workaround for a gcc prelease that unfortunately was shipped in a suse release
101KBUILD_CFLAGS += -Wno-sign-compare
102#
103KBUILD_CFLAGS += -fno-asynchronous-unwind-tables
104# prevent gcc from generating any FP code by mistake
105KBUILD_CFLAGS += $(call cc-option,-mno-sse -mno-mmx -mno-sse2 -mno-3dnow,)
102 106
103### 107###
104# Sub architecture support 108# Sub architecture support