2015-12-02 22:23:22 +00:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2018-03-02 07:31:03 +00:00
|
|
|
@@ -626,12 +626,12 @@ KBUILD_CFLAGS += $(call cc-disable-warni
|
2017-07-23 12:25:40 +00:00
|
|
|
KBUILD_CFLAGS += $(call cc-disable-warning, int-in-bool-context)
|
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
|
|
|
|
|