stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r569205 - /incubator/stdcxx/trunk/etc/config/sunpro.config
Date Fri, 24 Aug 2007 00:58:48 GMT
Author: sebor
Date: Thu Aug 23 17:58:45 2007
New Revision: 569205

URL: http://svn.apache.org/viewvc?rev=569205&view=rev
Log:
2007-08-23  Martin Sebor  <sebor@roguewave.com>

	STDCXX-344
	* sunpro.config (WARNFLAGS): For Sun C++ 5.7 and beyond, enabled
	diagnostic "tags" in compiler output and used -erroff to silence
	Warning: std::stringstream::rdbuf hides the function std::ios::
	rdbuf(std::streambuf*) and similar.

Modified:
    incubator/stdcxx/trunk/etc/config/sunpro.config

Modified: incubator/stdcxx/trunk/etc/config/sunpro.config
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/sunpro.config?rev=569205&r1=569204&r2=569205&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/sunpro.config (original)
+++ incubator/stdcxx/trunk/etc/config/sunpro.config Thu Aug 23 17:58:45 2007
@@ -4,7 +4,27 @@
 #
 # configuration file for SunPro CC on SunOS
 #
-##############################################################################
+########################################################################
+#
+# Licensed to the Apache Software  Foundation (ASF) under one or more
+# contributor  license agreements.  See  the NOTICE  file distributed
+# with  this  work  for  additional information  regarding  copyright
+# ownership.   The ASF  licenses this  file to  you under  the Apache
+# License, Version  2.0 (the  "License"); you may  not use  this file
+# except in  compliance with the License.   You may obtain  a copy of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the  License is distributed on an  "AS IS" BASIS,
+# WITHOUT  WARRANTIES OR CONDITIONS  OF ANY  KIND, either  express or
+# implied.   See  the License  for  the  specific language  governing
+# permissions and limitations under the License.
+#
+# Copyright 1999-2007 Rogue Wave Software, Inc.
+#
+########################################################################
 
 CXX             = CC
 
@@ -28,6 +48,15 @@
 endif
 
 WARNFLAGS       = +w
+
+ifeq ($(shell expr    \( $(CCMAJOR) = 5 \& $(CCMINOR) \> 6 \) \
+                   \| $(CCMAJOR) \> 5),1)
+  # for Sun C++ 5.7 and beyond, enable diagnostic "tags" in compiler output
+  # and use -erroff to silence Warning: std::stringstream::rdbuf hides the
+  # function std::ios::rdbuf(std::streambuf*) (see STDCXX-344)
+  WARNFLAGS += -errtags -erroff=hidef
+endif
+
 PICFLAGS        = -KPIC
 LDSOFLAGS       = 
 CXXFLAGS        = -library=%none



Mime
View raw message