Skip to contentSkip to conversation

arch/powerpc/config.mk: Pass -fno-ira-hoist-pressure when possible

PATCH In review Tom Rini 1 participant 2 messages Oct 17, 2015 – Oct 20, 2015 PowerPC

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 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.

---
 arch/powerpc/config.mk |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/powerpc/config.mk +2 -1
index 83b49b5..6b44a37 100644
@@ -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
 
 #
Signature · 1 line
1.7.9.5
author
#1 lore raw
Quoted 6 lines · Tom Rini

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.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151019/4937ee95/attachment.sig>