2015-12-02 22:23:22 +00:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2016-09-30 12:12:34 +00:00
|
|
|
@@ -619,12 +619,12 @@ KBUILD_CFLAGS += $(call cc-option,-fno-d
|
|
|
|
KBUILD_CFLAGS += $(call cc-disable-warning,maybe-uninitialized,)
|
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
|
|
|
|
|