Skip to content

Commit

Permalink
Merge pull request #3087 from pdbain-ibm/build
Browse files Browse the repository at this point in the history
Add -fno-strict-aliasing to LinuxPPC builds
  • Loading branch information
gacholio authored Nov 10, 2018
2 parents 0d8a9ba + b475fac commit dcad51f
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 dcad51f

Please sign in to comment.