From 218e6406e279fdb161eac6201ae97db286a68040 Mon Sep 17 00:00:00 2001 From: Steve Huston Date: Tue, 26 Feb 2013 23:10:00 +0000 Subject: ChangeLogTag:Tue Feb 26 23:07:17 UTC 2013 Steve Huston --- ChangeLog | 6 ++++++ include/makeinclude/platform_g++_common.GNU | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 968990263b3..152fc43c53b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Feb 26 23:07:17 UTC 2013 Steve Huston + + * include/makeinclude/platform_g++_common.GNU: When turning on + no-strict-aliasing, add the option to FLAGS_C_CC instead of + CCFLAGS so that both C and C++ compilers get it. + Thu Jan 3 22:53:44 UTC 2013 Steve Huston * ace/OS_NS_netdb.cpp (ACE_OS::getmacaddress): On Linux, search for diff --git a/include/makeinclude/platform_g++_common.GNU b/include/makeinclude/platform_g++_common.GNU index d7e4db7355d..851e1c905c7 100644 --- a/include/makeinclude/platform_g++_common.GNU +++ b/include/makeinclude/platform_g++_common.GNU @@ -143,7 +143,7 @@ ifeq ($(no-optimize-sibling-calls), 1) endif ifeq ($(no_strict_aliasing), 1) - CCFLAGS += -fno-strict-aliasing + FLAGS_C_CC += -fno-strict-aliasing else ifneq ($(no_strict_aliasing), 0) # if not explicitly disabled enable suppression of strict-aliasing checks by default @@ -152,7 +152,7 @@ else # lot of pain to attempt to solve code issues and the best way to deal is to suppress ifeq ($(GXX_4_OR_BETTER), 1) ifneq ($(findstring $(CXX_MAJOR_VERSION).$(CXX_MINOR_VERSION),4.1),$(CXX_MAJOR_VERSION).$(CXX_MINOR_VERSION)) - CCFLAGS += -fno-strict-aliasing + FLAGS_C_CC += -fno-strict-aliasing endif endif endif -- cgit v1.2.1