VERSION = 3
PATCHLEVEL = 4
-SUBLEVEL = 49
+SUBLEVEL = 57
EXTRAVERSION =
NAME = Saber-toothed Squirrel
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS += -Os
else
+ifdef CONFIG_LESS_GCC_OPT
+KBUILD_CFLAGS += -O1
+else
KBUILD_CFLAGS += -O2
endif
+endif
+
+# conserve stack if available
+# do this early so that an architecture can override it.
+KBUILD_CFLAGS += $(call cc-option,-fconserve-stack)
include $(srctree)/arch/$(SRCARCH)/Makefile
# disable invalid "can't wrap" optimizations for signed / pointers
KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow)
-# conserve stack if available
-KBUILD_CFLAGS += $(call cc-option,-fconserve-stack)
-
# use the deterministic mode of AR if available
KBUILD_ARFLAGS := $(call ar-option,D)