generic 2.6.24 support
[openwrt-10.03/.git] / target / linux / generic-2.6 / patches-2.6.24 / 004-extra_optimization.patch
1 Index: linux-2.6.23-rc6/Makefile
2 ===================================================================
3 --- linux-2.6.23-rc6.orig/Makefile      2007-09-21 16:23:55.000000000 +0800
4 +++ linux-2.6.23-rc6/Makefile   2007-09-21 16:23:56.000000000 +0800
5 @@ -508,6 +508,9 @@
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  CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
14