Author: sebor
Date: Sat Sep  6 13:30:16 2008
New Revision: 692728

URL: http://svn.apache.org/viewvc?rev=692728&view=rev
Log:
2008-09-06  Martin Sebor  <[EMAIL PROTECTED]>

        STDCXX-1014
        * etc/config/acc.config (WARNFLAGS): Enabled the +wperfadvice
        and +wsecurity warning options for HP aCC 6.15 and 6.05 (with
        optimization), respectively.

Modified:
    stdcxx/branches/4.2.x/etc/config/acc.config

Modified: stdcxx/branches/4.2.x/etc/config/acc.config
URL: 
http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/etc/config/acc.config?rev=692728&r1=692727&r2=692728&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/etc/config/acc.config (original)
+++ stdcxx/branches/4.2.x/etc/config/acc.config Sat Sep  6 13:30:16 2008
@@ -46,6 +46,21 @@
 
 ifeq ($(aCC_MAJOR),06)
 
+    ifeq ($(findstring optimized,$(BUILDMODE)),optimized)
+        ifeq ($(shell [ $(aCC_MINOR) -ge 5 ] && echo 1),1)
+            # enable security warnings for aCC 6.05 and higher
+            # when optimization is enabled (the option implicitly
+            # enables a limited form of cross module analysis and
+            # increases compilation times)
+            WARNFLAGS += +wsecurity
+        endif   # aCC >= 6.05
+    endif   # optimization on
+
+    ifeq ($(shell [ $(aCC_MINOR) -ge 15 ] && echo 1),1)
+        # enable performance suggestions for aCC 6.15 and higher
+        WARNFLAGS += +wperfadvice
+    endif   # aCC >= 6.15 
+
 # disabled warnings:
 # 2193 zero used for undefined preprocessing identifier
 # 2236 controlling expression is constant


Reply via email to