diff options
author | Tom Rini <trini@konsulko.com> | 2015-10-17 08:04:11 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-10-17 08:04:11 -0400 |
commit | b9f06b360df8bb0abae810c4f75c539119d42683 (patch) | |
tree | d477ad56d482c315f37365b91fc26d7423828d5c | |
parent | ac6a53219a1bf5bd30b754d6d3f04f26e3921d15 (diff) | |
download | u-boot-imx-b9f06b360df8bb0abae810c4f75c539119d42683.zip u-boot-imx-b9f06b360df8bb0abae810c4f75c539119d42683.tar.gz u-boot-imx-b9f06b360df8bb0abae810c4f75c539119d42683.tar.bz2 |
arch/powerpc/config.mk: Pass -fno-ira-hoist-pressure when possible
There are various toolchain issues that cause us to produce invalid
binaries with certain gcc 4.8.x and 4.9.x versions when we don't pass
this flag in.
Tested-by: Joakim Tjernlund <joakim.tjernlund@transmode.se>
Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | arch/powerpc/config.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/config.mk b/arch/powerpc/config.mk index 83b49b5..6b44a37 100644 --- a/arch/powerpc/config.mk +++ b/arch/powerpc/config.mk @@ -15,7 +15,8 @@ LDFLAGS_FINAL += --bss-plt PLATFORM_RELFLAGS += -fpic -mrelocatable -ffunction-sections \ -fdata-sections -mcall-linux -PLATFORM_CPPFLAGS += -D__powerpc__ -ffixed-r2 -m32 +PF_CPPFLAGS_POWERPC := $(call cc-option,-fno-ira-hoist-pressure,) +PLATFORM_CPPFLAGS += -D__powerpc__ -ffixed-r2 -m32 $(PF_CPPFLAGS_POWERPC) PLATFORM_LDFLAGS += -m32 -melf32ppclinux # |