From 19c04ace1d54d84bc0aa4758e8cedb0382ad4def Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Wed, 28 Mar 2018 11:36:33 +0200 Subject: [PATCH] remove strict aliasing warnings for vxWorks 6.3 and mvl40-xscale_be (Moxa) --- configure/os/CONFIG.Common.mvl40-xscale_be | 1 + configure/os/CONFIG.Common.vxWorksCommon | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/configure/os/CONFIG.Common.mvl40-xscale_be b/configure/os/CONFIG.Common.mvl40-xscale_be index 3606ab4cf..9d2b75655 100644 --- a/configure/os/CONFIG.Common.mvl40-xscale_be +++ b/configure/os/CONFIG.Common.mvl40-xscale_be @@ -10,3 +10,4 @@ ARCH_CLASS = xscale GNU_DIR=/afs/psi.ch/project/embeddedlinux/moxa/xscale_be/armv5teb-montavista-linuxeabi ARCH_DEP_CFLAGS += -funwind-tables +ARCH_DEP_CPPFLAGS += -fno-strict-aliasing diff --git a/configure/os/CONFIG.Common.vxWorksCommon b/configure/os/CONFIG.Common.vxWorksCommon index e45928d2c..461478767 100644 --- a/configure/os/CONFIG.Common.vxWorksCommon +++ b/configure/os/CONFIG.Common.vxWorksCommon @@ -161,11 +161,8 @@ OPT_CXXFLAGS_YES = -O2 #-------------------------------------------------- # code flags -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_6 += -fno-strict-aliasing CODE_CPPFLAGS += $(CODE_CPPFLAGS_$(VXWORKS_MAJOR_VERSION)) # # For vxWorks versions before 6.3 we need this g++ compiler flag