Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -fno-strict-aliasing to LinuxPPC builds #3087

Merged
merged 1 commit into from
Nov 10, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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