You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2008/01/24 01:50:27 UTC

svn commit: r614760 - /stdcxx/trunk/tests/src/driver.cpp

Author: sebor
Date: Wed Jan 23 16:50:26 2008
New Revision: 614760

URL: http://svn.apache.org/viewvc?rev=614760&view=rev
Log:
2008-01-23  Martin Sebor  <se...@roguewave.com>

	STDCXX-704
	* driver.cpp [__EDG__](RW_TEST_COMPILER): Moved conditional #definition
	last to avoid preempting the more-specific compiler macro.
	[__HP_aCC](RW_TEST_COMPILER): Correctly detected HP aCC 6 even though
	it uses the EDG front end and added the version of EDG eccp to the
	definition of the macro.

Modified:
    stdcxx/trunk/tests/src/driver.cpp

Modified: stdcxx/trunk/tests/src/driver.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/src/driver.cpp?rev=614760&r1=614759&r2=614760&view=diff
==============================================================================
--- stdcxx/trunk/tests/src/driver.cpp (original)
+++ stdcxx/trunk/tests/src/driver.cpp Wed Jan 23 16:50:26 2008
@@ -22,7 +22,7 @@
  * implied.   See  the License  for  the  specific language  governing
  * permissions and limitations under the License.
  *
- * Copyright 2005-2006 Rogue Wave Software.
+ * Copyright 2005-2008 Rogue Wave Software, Inc.
  *
  **************************************************************************/
 
@@ -134,12 +134,16 @@
 #      define RW_TEST_COMPILER "Intel C++, __INTEL_COMPILER = " \
               RW_TEST_STR (__INTEL_COMPILER)
 #    endif
-#  elif defined (__EDG__)
-#    define RW_TEST_COMPILER "EDG eccp, __EDG_VERSION__ = " \
-            RW_TEST_STR (__EDG_VERSION__)
 #  elif defined (__HP_aCC)
+#    if defined (__EDG_VERSION__)
+#      define RW_TEST_ACC_EDG_VER \
+              ", __EDG_VERSION__ = "  RW_TEST_STR (__EDG_VERSION__)
+#    else
+#      define RW_TEST_ACC_EDG_VER ""
+#    endif
 #    define RW_TEST_COMPILER "HP aCC, __HP_aCC = " \
-            RW_TEST_STR (__HP_aCC)
+            RW_TEST_STR (__HP_aCC) \
+            RW_TEST_ACC_EDG_VER
 #  elif defined (__IBMCPP__)
 #    define RW_TEST_COMPILER "IBM VisualAge C++, __IBMCPP__ = " \
             RW_TEST_STR (__IBMCPP__)
@@ -149,6 +153,12 @@
 #  elif defined (__SUNPRO_CC)
 #    define RW_TEST_COMPILER "SunPro, __SUNPRO_CC = " \
             RW_TEST_STR (__SUNPRO_CC)
+#  elif defined (__EDG__)
+     // handle the vanilla EDG eccp last to avoid overriding
+     // the real compiler's macro (compilers such as Intel C++
+     // and HP aCC use eccp for their C++ front end) 
+#    define RW_TEST_COMPILER "EDG eccp, __EDG_VERSION__ = " \
+            RW_TEST_STR (__EDG_VERSION__)
 #  else
 #    define RW_TEST_COMPILER "unknown"
 #  endif