diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-07-29 09:38:29 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-07-29 09:38:29 +0000 |
commit | 73c4d73d6d3ba54ac0089f2619a6305277f4889d (patch) | |
tree | ffbefec790340b32787547167a277fce48496ec5 /target/linux/generic/patches-3.10/201-extra_optimization.patch | |
parent | 80dd55228e0624348588bf86154d6ce2e7645b57 (diff) | |
download | mtk-20170518-73c4d73d6d3ba54ac0089f2619a6305277f4889d.zip mtk-20170518-73c4d73d6d3ba54ac0089f2619a6305277f4889d.tar.gz mtk-20170518-73c4d73d6d3ba54ac0089f2619a6305277f4889d.tar.bz2 |
build: unify target independent optimization options
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37600
Diffstat (limited to 'target/linux/generic/patches-3.10/201-extra_optimization.patch')
-rw-r--r-- | target/linux/generic/patches-3.10/201-extra_optimization.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/patches-3.10/201-extra_optimization.patch b/target/linux/generic/patches-3.10/201-extra_optimization.patch index 6af3d01..ccb7fcf 100644 --- a/target/linux/generic/patches-3.10/201-extra_optimization.patch +++ b/target/linux/generic/patches-3.10/201-extra_optimization.patch @@ -5,10 +5,10 @@ ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE -KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,) -+KBUILD_CFLAGS += -Os -fno-caller-saves $(call cc-disable-warning,maybe-uninitialized,) ++KBUILD_CFLAGS += -Os $(EXTRA_OPTIMIZATION) $(call cc-disable-warning,maybe-uninitialized,) else -KBUILD_CFLAGS += -O2 -+KBUILD_CFLAGS += -O2 -fno-reorder-blocks -fno-tree-ch -fno-caller-saves ++KBUILD_CFLAGS += -O2 -fno-reorder-blocks -fno-tree-ch $(EXTRA_OPTIMIZATION) endif include $(srctree)/arch/$(SRCARCH)/Makefile |