3 @@ -521,7 +521,7 @@ all: vmlinux
4 ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
8 +KBUILD_CFLAGS += -O2 -fno-reorder-blocks -fno-tree-ch
11 include $(srctree)/arch/$(SRCARCH)/Makefile
12 @@ -559,6 +559,9 @@ endif
13 NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
14 CHECKFLAGS += $(NOSTDINC_FLAGS)
16 +# improve gcc optimization
17 +CFLAGS += $(call cc-option,-funit-at-a-time,)
19 # warn about C99 declaration after statement
20 KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)