projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
when using -O2 instead of -Os, get rid of the two optimizations that are causing...
[openwrt-10.03/.git]
/
target
/
linux
/
generic-2.6
/
patches-2.6.30
/
004-extra_optimization.patch
diff --git
a/target/linux/generic-2.6/patches-2.6.30/004-extra_optimization.patch
b/target/linux/generic-2.6/patches-2.6.30/004-extra_optimization.patch
index 018e673e2035bd4687f009ba2b2871436bb0071a..0b5174cbbdfc82379f206ff66a529c06113e09d1 100644
(file)
--- a/
target/linux/generic-2.6/patches-2.6.30/004-extra_optimization.patch
+++ b/
target/linux/generic-2.6/patches-2.6.30/004-extra_optimization.patch
@@
-1,5
+1,14
@@
--- a/Makefile
+++ b/Makefile
--- a/Makefile
+++ b/Makefile
+@@ -529,7 +529,7 @@ all: vmlinux
+ ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
+ KBUILD_CFLAGS += -Os
+ else
+-KBUILD_CFLAGS += -O2
++KBUILD_CFLAGS += -O2 -fno-reorder-blocks -fno-tree-ch
+ endif
+
+ include $(srctree)/arch/$(SRCARCH)/Makefile
@@ -567,6 +567,9 @@ endif
NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
CHECKFLAGS += $(NOSTDINC_FLAGS)
@@ -567,6 +567,9 @@ endif
NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
CHECKFLAGS += $(NOSTDINC_FLAGS)