3 @@ -543,9 +543,9 @@ endif # $(dot-config)
6 ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
8 +KBUILD_CFLAGS += -Os -fno-caller-saves
11 +KBUILD_CFLAGS += -O2 -fno-reorder-blocks -fno-tree-ch -fno-caller-saves
14 include $(srctree)/arch/$(SRCARCH)/Makefile
15 @@ -600,6 +600,9 @@ endif
16 NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
17 CHECKFLAGS += $(NOSTDINC_FLAGS)
19 +# improve gcc optimization
20 +CFLAGS += $(call cc-option,-funit-at-a-time,)
22 # warn about C99 declaration after statement
23 KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)