From b475fac18375cb74051c9d42ba1320429d819c5f Mon Sep 17 00:00:00 2001 From: Peter Bain Date: Thu, 27 Sep 2018 10:16:19 -0400 Subject: [PATCH] Add -fno-strict-aliasing to LinuxPPC builds Update both UMA_OPTIMIZATION_CFLAGS and UMA_OPTIMIZATION_CXXFLAGS for GCC compilation. Signed-off-by: Peter Bain --- runtime/makelib/targets.mk.linux.inc.ftl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/runtime/makelib/targets.mk.linux.inc.ftl b/runtime/makelib/targets.mk.linux.inc.ftl index d43ab5e377b..3ffad375d41 100644 --- a/runtime/makelib/targets.mk.linux.inc.ftl +++ b/runtime/makelib/targets.mk.linux.inc.ftl @@ -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 uma.spec.flags.env_littleEndian.enabled && uma.spec.type.linux> UMA_OPTIMIZATION_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 ifndef USE_PPC_GCC @@ -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 uma.spec.flags.env_littleEndian.enabled && uma.spec.type.linux> UMA_OPTIMIZATION_CXXFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1