d1a30c3350fc1c7d70e853d04d5bdf1c03bf68e4
[openwrt-10.03/.git] / target / linux / generic-2.6 / patches-2.6.24 / 004-extra_optimization.patch
1 Index: linux-2.6.24.7/Makefile
2 ===================================================================
3 --- linux-2.6.24.7.orig/Makefile
4 +++ linux-2.6.24.7/Makefile
5 @@ -527,6 +527,9 @@ KBUILD_CFLAGS         += $(call cc-optio
6  NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
7  CHECKFLAGS     += $(NOSTDINC_FLAGS)
8  
9 +# improve gcc optimization
10 +CFLAGS += $(call cc-option,-funit-at-a-time,)
11 +
12  # warn about C99 declaration after statement
13  KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
14