2015-12-02 22:23:22 +00:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2016-11-12 13:52:47 +00:00
|
|
|
@@ -620,12 +620,12 @@ KBUILD_CFLAGS += $(call cc-disable-warni
|
|
|
|
KBUILD_CFLAGS += $(call cc-disable-warning,frame-address,)
|
2015-12-02 22:23:22 +00:00
|
|
|
|
|
|
|
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
|
2016-09-30 12:12:34 +00:00
|
|
|
-KBUILD_CFLAGS += -Os
|
|
|
|
+KBUILD_CFLAGS += -Os $(EXTRA_OPTIMIZATION)
|
2015-12-02 22:23:22 +00:00
|
|
|
else
|
2016-09-30 12:12:34 +00:00
|
|
|
ifdef CONFIG_PROFILE_ALL_BRANCHES
|
2015-12-02 22:23:22 +00:00
|
|
|
-KBUILD_CFLAGS += -O2
|
2016-09-30 12:12:34 +00:00
|
|
|
+KBUILD_CFLAGS += -O2 $(EXTRA_OPTIMIZATION)
|
|
|
|
else
|
|
|
|
-KBUILD_CFLAGS += -O2
|
|
|
|
+KBUILD_CFLAGS += -O2 -fno-reorder-blocks -fno-tree-ch $(EXTRA_OPTIMIZATION)
|
|
|
|
endif
|
2015-12-02 22:23:22 +00:00
|
|
|
endif
|
|
|
|
|