diff mbox

[U-Boot] arch/powerpc/config.mk: Pass -fno-ira-hoist-pressure when possible

Message ID 1445084034-26254-1-git-send-email-trini@konsulko.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Tom Rini Oct. 17, 2015, 12:13 p.m. UTC
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>
---
 arch/powerpc/config.mk |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Tom Rini Oct. 20, 2015, 12:07 a.m. UTC | #1
On Sat, Oct 17, 2015 at 08:13:54AM -0400, Tom Rini wrote:

> 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>

Applied to u-boot/master, thanks!
diff mbox

Patch

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
 
 #