]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
eh_tm.cc (free_any_cxa_exception): Use __GCC_ATOMIC_INT_LOCK_FREE, not _GLIBCXX_ATOMI...
authorBenjamin Kosnik <bkoz@redhat.com>
Tue, 20 Dec 2011 00:16:25 +0000 (00:16 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Tue, 20 Dec 2011 00:16:25 +0000 (00:16 +0000)
2011-12-19  Benjamin Kosnik  <bkoz@redhat.com>

* libsupc++/eh_tm.cc (free_any_cxa_exception): Use
__GCC_ATOMIC_INT_LOCK_FREE, not _GLIBCXX_ATOMIC_BUILTINS_4.

From-SVN: r182512

libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/eh_tm.cc

index 07a8d7f456778c00bec510f33887c465d4070cbf..904b66a0bd154d090badb6e1568a8fe996a2839e 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-19  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * libsupc++/eh_tm.cc (free_any_cxa_exception): Use
+       __GCC_ATOMIC_INT_LOCK_FREE, not _GLIBCXX_ATOMIC_BUILTINS_4.
+
 2011-12-19  Benjamin Kosnik  <bkoz@redhat.com>
 
        * testsuite/performance/25_algorithms/search_n.cc: Disambiguate
index a64610283ff7c87ca6a8369890a09c172c10dd99..1df8644ea0c0e5306b00f3d493a14b1339e4bb14 100644 (file)
@@ -1,5 +1,5 @@
 // -*- C++ -*- Exception handling routines for Transactional Memory.
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 2009, 2011 Free Software Foundation, Inc.
 //
 // This file is part of GCC.
 //
@@ -45,7 +45,7 @@ free_any_cxa_exception (_Unwind_Exception *eo)
       __cxa_free_dependent_exception (dep);
     }
 
-#ifdef _GLIBCXX_ATOMIC_BUILTINS_4
+#if __GCC_ATOMIC_INT_LOCK_FREE > 1
   if (__sync_sub_and_fetch (&h->referenceCount, 1) == 0)
 #endif
     __cxa_free_exception (h + 1);