diff options
author | Andi Kleen <ak@linux.intel.com> | 2011-10-04 10:12:25 +0100 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2012-06-20 16:51:52 +0530 |
commit | b12375a9b65963356873d8a72e6d09ffd161d82e (patch) | |
tree | 7846ae465fc5209fd9a87666e3e717e4d497d4cf /Makefile | |
parent | c52faa179a15ab659e4428f3e994f1f8752e55f2 (diff) |
Disable -fconserve-stack on ARM v2
There are reports that -fconserve-stack misaligns variables on the stack.
Disable it for ARM to work around this gcc bug.
v2: Move top level flags definition up
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -564,6 +564,10 @@ else KBUILD_CFLAGS += -O2 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 ifneq ($(CONFIG_FRAME_WARN),0) @@ -629,9 +633,6 @@ KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign) # 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) |