Skip to content

Commit

Permalink
Add -fno-strict-aliasing to LinuxPPC builds
Browse files Browse the repository at this point in the history
Update both UMA_OPTIMIZATION_CFLAGS and UMA_OPTIMIZATION_CXXFLAGS for GCC
compilation.

Signed-off-by: Peter Bain <[email protected]>
  • Loading branch information
pdbain-ibm committed Oct 2, 2018
1 parent a9a160d commit b475fac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions runtime/makelib/targets.mk.linux.inc.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ ifndef UMA_DO_NOT_OPTIMIZE_CCODE
UMA_OPTIMIZATION_CFLAGS += -g -O3 -fno-strict-aliasing $(ARM_ARCH_FLAGS) -Wno-unused-but-set-variable
<#elseif uma.spec.processor.ppc>
UMA_OPTIMIZATION_CFLAGS += -O3
<#if uma.spec.flags.env_gcc.enabled>
UMA_OPTIMIZATION_CFLAGS += -fno-strict-aliasing
</#if>
<#if uma.spec.flags.env_littleEndian.enabled && uma.spec.type.linux>
UMA_OPTIMIZATION_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
ifndef USE_PPC_GCC
Expand All @@ -129,6 +132,9 @@ ifndef UMA_DO_NOT_OPTIMIZE_CCODE
UMA_OPTIMIZATION_CXXFLAGS += -g -O3 -fno-strict-aliasing $(ARM_ARCH_FLAGS) -Wno-unused-but-set-variable
<#elseif uma.spec.processor.ppc>
UMA_OPTIMIZATION_CXXFLAGS += -O3
<#if uma.spec.flags.env_gcc.enabled>
UMA_OPTIMIZATION_CXXFLAGS += -fno-strict-aliasing
</#if>
<#if uma.spec.flags.env_littleEndian.enabled && uma.spec.type.linux>
UMA_OPTIMIZATION_CXXFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
</#if>
Expand Down

0 comments on commit b475fac

Please sign in to comment.