aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/libsupc++
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@redhat.com>2011-12-20 00:16:25 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2011-12-20 00:16:25 +0000
commitd50fb671239c72981f8622d394b9ca825a212e02 (patch)
tree910838b909ca77a6c954a431161c5cd5caf078ef /libstdc++-v3/libsupc++
parent31785b29eea85ed64331c51136c6d20679998c6f (diff)
downloadgcc-d50fb671239c72981f8622d394b9ca825a212e02.zip
gcc-d50fb671239c72981f8622d394b9ca825a212e02.tar.gz
gcc-d50fb671239c72981f8622d394b9ca825a212e02.tar.bz2
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> * libsupc++/eh_tm.cc (free_any_cxa_exception): Use __GCC_ATOMIC_INT_LOCK_FREE, not _GLIBCXX_ATOMIC_BUILTINS_4. From-SVN: r182512
Diffstat (limited to 'libstdc++-v3/libsupc++')
-rw-r--r--libstdc++-v3/libsupc++/eh_tm.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/libsupc++/eh_tm.cc b/libstdc++-v3/libsupc++/eh_tm.cc
index a646102..1df8644 100644
--- a/libstdc++-v3/libsupc++/eh_tm.cc
+++ b/libstdc++-v3/libsupc++/eh_tm.cc
@@ -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);