2010-08-29 14:35:23 +00:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2010-10-05 08:50:54 +00:00
|
|
|
@@ -537,7 +537,7 @@ all: vmlinux
|
2010-08-29 14:35:23 +00:00
|
|
|
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
|
|
|
|
KBUILD_CFLAGS += -Os
|
|
|
|
else
|
|
|
|
-KBUILD_CFLAGS += -O2
|
|
|
|
+KBUILD_CFLAGS += -O2 -fno-reorder-blocks -fno-tree-ch
|
|
|
|
endif
|
|
|
|
|
|
|
|
include $(srctree)/arch/$(SRCARCH)/Makefile
|
2010-10-05 08:50:54 +00:00
|
|
|
@@ -579,6 +579,9 @@ endif
|
2010-08-29 14:35:23 +00:00
|
|
|
NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
|
|
|
|
CHECKFLAGS += $(NOSTDINC_FLAGS)
|
|
|
|
|
|
|
|
+# improve gcc optimization
|
|
|
|
+CFLAGS += $(call cc-option,-funit-at-a-time,)
|
|
|
|
+
|
|
|
|
# warn about C99 declaration after statement
|
|
|
|
KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
|
|
|
|
|