201-extra_optimization.patch 348 B

1234567891011121314
  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -559,9 +559,9 @@ endif # $(dot-config)
  4. all: vmlinux
  5. ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
  6. -KBUILD_CFLAGS += -Os
  7. +KBUILD_CFLAGS += -Os $(EXTRA_OPTIMIZATION)
  8. else
  9. -KBUILD_CFLAGS += -O2
  10. +KBUILD_CFLAGS += -O2 -fno-reorder-blocks -fno-tree-ch $(EXTRA_OPTIMIZATION)
  11. endif
  12. include $(srctree)/arch/$(SRCARCH)/Makefile