Skip to content

Commit

Permalink
arch/powerpc/config.mk: Pass -fno-ira-hoist-pressure when possible
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
  • Loading branch information
trini committed Oct 17, 2015
1 parent ac6a532 commit b9f06b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/powerpc/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

#
Expand Down

0 comments on commit b9f06b3

Please sign in to comment.