projects
/
oweals
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
kernel: stop patching -funit-at-a-time into CFLAGS, it has no effect on recent compilers
[oweals/openwrt.git]
/
target
/
linux
/
generic
/
patches-3.3
/
201-extra_optimization.patch
1
--- a/Makefile
2
+++ b/Makefile
3
@@ -559,9 +559,9 @@ endif # $(dot-config)
4
all: vmlinux
5
6
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
7
-KBUILD_CFLAGS += -Os
8
+KBUILD_CFLAGS += -Os -fno-caller-saves
9
else
10
-KBUILD_CFLAGS += -O2
11
+KBUILD_CFLAGS += -O2 -fno-reorder-blocks -fno-tree-ch -fno-caller-saves
12
endif
13
14
include $(srctree)/arch/$(SRCARCH)/Makefile