]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix libstdc++/61536 - Export out of line typeinfo comparison operators
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 18 Jun 2014 09:44:15 +0000 (09:44 +0000)
committerRamana Radhakrishnan <ramana@gcc.gnu.org>
Wed, 18 Jun 2014 09:44:15 +0000 (09:44 +0000)
2014-06-18  Paolo Carlini  <paolo.carlini@oracle.com>
    Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

PR libstdc++/61536
* config/abi/pre/gnu.ver: Adjust for out of line comparisons.

Co-Authored-By: Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
From-SVN: r211774

libstdc++-v3/ChangeLog
libstdc++-v3/config/abi/pre/gnu.ver

index 5f23ef09e16b6277b6ea4bd1d95c53c763188d63..44168d0eda960b9d5885862f008d998be093906a 100644 (file)
@@ -1,3 +1,9 @@
+2014-06-18  Paolo Carlini  <paolo.carlini@oracle.com>
+           Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
+
+       PR libstdc++/61536
+       * config/abi/pre/gnu.ver: Adjust for out of line comparisons.
+
 2014-06-14  Jonathan Wakely  <jwakely@redhat.com>
 
        * doc/xml/manual/status_cxx2014.xml: Update Fundamentals TS status.
index e7de7563352d115b150d4114b95a7a89ee2cb129..63c9130cbe888c50923fae0acdf782b5f8cac311 100644 (file)
 ## You should have received a copy of the GNU General Public License along
 ## with this library; see the file COPYING3.  If not see
 ## <http://www.gnu.org/licenses/>.
+// By default follow the old inline rules to avoid ABI changes.
+// Logic similar to libsupc++/typeinfo (libstdc++/61536). See
+// commentary on out of line comparisons.
+
+#ifndef __GXX_TYPEINFO_EQUALITY_INLINE
+ #if !__GXX_WEAK__
+   #define __GXX_TYPEINFO_EQUALITY_INLINE 0
+  #else
+    #define __GXX_TYPEINFO_EQUALITY_INLINE 1
+  #endif
+#endif
+
 
 GLIBCXX_3.4 {
 
@@ -760,6 +772,11 @@ GLIBCXX_3.4 {
     _ZNKSt9type_info1*;
     _ZNSt9type_infoD*;
 
+#if !__GXX_TYPEINFO_EQUALITY_INLINE
+    _ZNKSt9type_info6before*;
+    _ZNKSt9type_infoeq*;
+#endif
+
     # std::exception
     _ZNKSt9exception4whatEv;
     _ZNSt9exceptionD*;