arch/powerpc/config.mk: Pass -fno-ira-hoist-pressure when possible
authorTom Rini <trini@konsulko.com>
Sat, 17 Oct 2015 12:04:11 +0000 (08:04 -0400)
committerTom Rini <trini@konsulko.com>
Sat, 17 Oct 2015 12:04:11 +0000 (08:04 -0400)
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

index 83b49b58c54da331daceec004c4948e52201ba70..6b44a3709a4afd58c7d765784a46eb816a9f718d 100644 (file)
@@ -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
 
 #