[brcm63xx] base-files: brcm63xx.sh: Added comtrend (96348GW-11) to routers with butto...
[openwrt.git] / target / linux / generic / patches-2.6.34 / 012-extra_optimization.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -529,7 +529,7 @@ all: vmlinux
4 ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
5 KBUILD_CFLAGS += -Os
6 else
7 -KBUILD_CFLAGS += -O2
8 +KBUILD_CFLAGS += -O2 -fno-reorder-blocks -fno-tree-ch
9 endif
10
11 include $(srctree)/arch/$(SRCARCH)/Makefile
12 @@ -567,6 +567,9 @@ endif
13 NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
14 CHECKFLAGS += $(NOSTDINC_FLAGS)
15
16 +# improve gcc optimization
17 +CFLAGS += $(call cc-option,-funit-at-a-time,)
18 +
19 # warn about C99 declaration after statement
20 KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
21
This page took 0.046199 seconds and 5 git commands to generate.