aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-3.9/.svn/text-base/201-extra_optimization.patch.svn-base
diff options
context:
space:
mode:
authorJames <>2013-03-17 12:16:37 +0000
committerJames <>2013-03-17 12:16:37 +0000
commit27b76ab0671089c47506615a796a261e993896a7 (patch)
tree61213d67e7fa87b20356b23798558e2c4212c42f /target/linux/generic/patches-3.9/.svn/text-base/201-extra_optimization.patch.svn-base
downloadtrunk-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-base24
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,)
+