testsuite_abi.cc (check_version): Set incompatible even when adding symbols to CXXABI...
authorJakub Jelinek <jakub@redhat.com>
Mon, 21 Mar 2011 19:00:52 +0000 (20:00 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 21 Mar 2011 19:00:52 +0000 (20:00 +0100)
* testsuite/util/testsuite_abi.cc (check_version): Set incompatible
even when adding symbols to CXXABI_1.3, GLIBCXX_LDBL_3.4 and
CXXABI_LDBL_1.3 versions.

From-SVN: r171257

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/util/testsuite_abi.cc

index 590fb924793305b6e731f674d224fac971793069..9f86e803ec04fd301e6c0ae165330b29f75b5b9d 100644 (file)
@@ -1,3 +1,9 @@
+2011-03-21  Jakub Jelinek  <jakub@redhat.com>
+
+       * testsuite/util/testsuite_abi.cc (check_version): Set incompatible
+       even when adding symbols to CXXABI_1.3, GLIBCXX_LDBL_3.4 and
+       CXXABI_LDBL_1.3 versions.
+
 2011-03-21  Benjamin Kosnik  <bkoz@redhat.com>
 
        * config/abi/pre/gnu.ver: Remove typeinfo name exports for C++0x types.
index 4921716b75ca1b967430b25407413257a230ce55..a533311bb73d888998df1b2f84c14091fb23d4c5 100644 (file)
@@ -1,6 +1,6 @@
 // -*- C++ -*-
 
-// Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010
+// Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
 // Free Software Foundation, Inc.
 
 // This library is free software; you can redistribute it and/or
@@ -217,10 +217,14 @@ check_version(symbol& test, bool added)
       else
        test.version_status = symbol::incompatible;
       
-      // Check that added symbols aren't added in the base version.
-      if (added && test.version_name == known_versions[0])
+      // Check that added symbols aren't added in the base versions.
+      if (added
+         && (test.version_name == known_versions[0]
+             || test.version_name == "CXXABI_1.3"
+             || test.version_name == "GLIBCXX_LDBL_3.4"
+             || test.version_name == "CXXABI_LDBL_1.3"))
        test.version_status = symbol::incompatible;
-      
+
       // Check that long double compatibility symbols demangled as
       // __float128 are put into some _LDBL_ version name.
       if (added && test.demangled_name.find("__float128") != std::string::npos)