333acb612b57496e65c3324e8de68bb478323d22
[openwrt/staging/chunkeey.git] / target / linux / generic-2.6 / patches-2.6.31 / 004-extra_optimization.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -559,6 +559,9 @@ endif
4 NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
5 CHECKFLAGS += $(NOSTDINC_FLAGS)
6
7 +# improve gcc optimization
8 +CFLAGS += $(call cc-option,-funit-at-a-time,)
9 +
10 # warn about C99 declaration after statement
11 KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
12