201-extra_optimization.patch 494 B

123456789101112131415161718
  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -626,12 +626,12 @@ KBUILD_CFLAGS += $(call cc-disable-warni
  4. KBUILD_CFLAGS += $(call cc-disable-warning, int-in-bool-context)
  5. ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
  6. -KBUILD_CFLAGS += -Os
  7. +KBUILD_CFLAGS += -Os $(EXTRA_OPTIMIZATION)
  8. else
  9. ifdef CONFIG_PROFILE_ALL_BRANCHES
  10. -KBUILD_CFLAGS += -O2
  11. +KBUILD_CFLAGS += -O2 $(EXTRA_OPTIMIZATION)
  12. else
  13. -KBUILD_CFLAGS += -O2
  14. +KBUILD_CFLAGS += -O2 -fno-reorder-blocks -fno-tree-ch $(EXTRA_OPTIMIZATION)
  15. endif
  16. endif