From c9a8a551e8499bc1a5165def406464e99ad89bba Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Wed, 28 Feb 2018 16:18:31 +0100 Subject: [PATCH] remove strict alias warnings on more architectures --- configure/os/CONFIG.Common.eldk42-ppc4xxFP | 2 ++ configure/os/CONFIG.Common.vxWorksCommon | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/configure/os/CONFIG.Common.eldk42-ppc4xxFP b/configure/os/CONFIG.Common.eldk42-ppc4xxFP index 001b9df7a..77b2375d9 100644 --- a/configure/os/CONFIG.Common.eldk42-ppc4xxFP +++ b/configure/os/CONFIG.Common.eldk42-ppc4xxFP @@ -11,6 +11,8 @@ ELDK=/opt/eldk-4.2 GNU_TARGET=ppc_4xxFP GNU_DIR=$(ELDK)/usr +ARCH_DEP_CFLAGS += -fno-strict-aliasing + # This cross tool chain is installed in a somehow weired way # Without the following lines it does not work on RHEL7 # but it worked on SL6 diff --git a/configure/os/CONFIG.Common.vxWorksCommon b/configure/os/CONFIG.Common.vxWorksCommon index 2d5d95739..e45928d2c 100644 --- a/configure/os/CONFIG.Common.vxWorksCommon +++ b/configure/os/CONFIG.Common.vxWorksCommon @@ -161,7 +161,12 @@ OPT_CXXFLAGS_YES = -O2 #-------------------------------------------------- # code flags -CODE_CFLAGS = +CODE_CPPFLAGS_6.6 = -fno-strict-aliasing +CODE_CPPFLAGS_6.7 = -fno-strict-aliasing +CODE_CPPFLAGS_6.8 = -fno-strict-aliasing +CODE_CPPFLAGS_6.9 = -fno-strict-aliasing +CODE_CPPFLAGS_6 = $(CODE_CPPFLAGS_$(VXWORKS_VERSION)) +CODE_CPPFLAGS += $(CODE_CPPFLAGS_$(VXWORKS_MAJOR_VERSION)) # # For vxWorks versions before 6.3 we need this g++ compiler flag CODE_CXXFLAGS_5 = -fno-implicit-templates @@ -169,7 +174,7 @@ CODE_CXXFLAGS_6.0 = -fno-implicit-templates CODE_CXXFLAGS_6.1 = -fno-implicit-templates CODE_CXXFLAGS_6.2 = -fno-implicit-templates CODE_CXXFLAGS_6 = $(CODE_CXXFLAGS_$(VXWORKS_VERSION)) -CODE_CXXFLAGS = $(CODE_CXXFLAGS_$(VXWORKS_MAJOR_VERSION)) +CODE_CXXFLAGS += $(CODE_CXXFLAGS_$(VXWORKS_MAJOR_VERSION)) #-------------------------------------------------- # no shared libs for vxWorks