diff options
author | Andi Kleen <ak@linux.intel.com> | 2011-10-04 10:12:25 +0100 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 12:09:22 -0700 |
commit | 679c50f9effbdf5bb7b783a5b8cc3619dca3b0da (patch) | |
tree | 9104026700f249d2adf447265360d8630b580515 /arch/arm | |
parent | 74b3fbf378f5d64e807529deccaf485194e2c13f (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>
Rebase-Id: R3c09c871e91c8fa5d007ab2d826064d8e859992e
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 314c7be492a9..276b9cb2085a 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -43,6 +43,10 @@ ifeq ($(CONFIG_CC_STACKPROTECTOR),y) KBUILD_CFLAGS +=-fstack-protector endif +# ARM gcc developers unfortunately broke -fconserve-stack. It misaligns +# variables on the stack +KBUILD_CFLAGS += $(call cc-option,-fno-conserve-stack) + ifeq ($(CONFIG_CPU_BIG_ENDIAN),y) KBUILD_CPPFLAGS += -mbig-endian AS += -EB |