2015-12-02 22:23:22 +00:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2017-07-23 13:00:22 +00:00
|
|
|
@@ -624,12 +624,12 @@ KBUILD_CFLAGS += $(call cc-disable-warni
|
|
|
|
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
|
|
|
|
|