kernel: update kernel 3.18 to version 3.18.23
[openwrt/staging/chunkeey.git] / target / linux / generic / patches-3.18 / 201-extra_optimization.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -612,9 +612,9 @@ include $(srctree)/arch/$(SRCARCH)/Makef
4 KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,)
5
6 ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
7 -KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,)
8 +KBUILD_CFLAGS += -Os $(EXTRA_OPTIMIZATION) $(call cc-disable-warning,maybe-uninitialized,)
9 else
10 -KBUILD_CFLAGS += -O2
11 +KBUILD_CFLAGS += -O2 -fno-reorder-blocks -fno-tree-ch $(EXTRA_OPTIMIZATION)
12 endif
13
14 # Tell gcc to never replace conditional load with a non-conditional one