diff options
author | James <> | 2013-03-17 12:16:37 +0000 |
---|---|---|
committer | James <> | 2013-03-17 12:16:37 +0000 |
commit | 27b76ab0671089c47506615a796a261e993896a7 (patch) | |
tree | 61213d67e7fa87b20356b23798558e2c4212c42f /target/linux/generic/patches-3.9/.svn/text-base/201-extra_optimization.patch.svn-base | |
download | trunk-36060-master.tar.gz trunk-36060-master.tar.bz2 trunk-36060-master.zip |
Diffstat (limited to 'target/linux/generic/patches-3.9/.svn/text-base/201-extra_optimization.patch.svn-base')
-rw-r--r-- | target/linux/generic/patches-3.9/.svn/text-base/201-extra_optimization.patch.svn-base | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.9/.svn/text-base/201-extra_optimization.patch.svn-base b/target/linux/generic/patches-3.9/.svn/text-base/201-extra_optimization.patch.svn-base new file mode 100644 index 0000000..e78a00a --- /dev/null +++ b/target/linux/generic/patches-3.9/.svn/text-base/201-extra_optimization.patch.svn-base @@ -0,0 +1,24 @@ +--- a/Makefile ++++ b/Makefile +@@ -570,9 +570,9 @@ endif # $(dot-config) + all: vmlinux + + ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE +-KBUILD_CFLAGS += -Os ++KBUILD_CFLAGS += -Os -fno-caller-saves + else +-KBUILD_CFLAGS += -O2 ++KBUILD_CFLAGS += -O2 -fno-reorder-blocks -fno-tree-ch -fno-caller-saves + endif + + include $(srctree)/arch/$(SRCARCH)/Makefile +@@ -646,6 +646,9 @@ endif + NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) + CHECKFLAGS += $(NOSTDINC_FLAGS) + ++# improve gcc optimization ++CFLAGS += $(call cc-option,-funit-at-a-time,) ++ + # warn about C99 declaration after statement + KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) + |