201-extra_optimization.patch 522 B

1234567891011121314
  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -618,9 +618,9 @@ KBUILD_CFLAGS += $(call cc-option,-fno-P
  4. KBUILD_AFLAGS += $(call cc-option,-fno-PIE)
  5. ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
  6. -KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,)
  7. +KBUILD_CFLAGS += -Os $(EXTRA_OPTIMIZATION) $(call cc-disable-warning,maybe-uninitialized,)
  8. else
  9. -KBUILD_CFLAGS += -O2
  10. +KBUILD_CFLAGS += -O2 -fno-reorder-blocks -fno-tree-ch $(EXTRA_OPTIMIZATION)
  11. endif
  12. # Tell gcc to never replace conditional load with a non-conditional one