aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/ext/rc_string_base.h
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2010-08-13 11:48:34 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2010-08-13 11:48:34 +0000
commit8c61f40011bf6868ab21970dc2eada32270bb65b (patch)
treedcb693ebcc4d94b3e6ea0a2b16c4602f12c23de0 /libstdc++-v3/include/ext/rc_string_base.h
parentec760bea7f3bcc143d02cc1288f69969407eb26b (diff)
downloadgcc-8c61f40011bf6868ab21970dc2eada32270bb65b.zip
gcc-8c61f40011bf6868ab21970dc2eada32270bb65b.tar.gz
gcc-8c61f40011bf6868ab21970dc2eada32270bb65b.tar.bz2
ios_init.cc (ios_base::Init::~Init): Add back semicolon at the end of the _GLIBCXX_SYNCHRONIZATION_HAPPENS* macros...
2010-08-12 Paolo Carlini <paolo.carlini@oracle.com> * src/ios_init.cc (ios_base::Init::~Init): Add back semicolon at the end of the _GLIBCXX_SYNCHRONIZATION_HAPPENS* macros, removed by mistake. * include/tr1_impl/boost_sp_counted_base.h: Likewise. * include/ext/rc_string_base.h: Likewise. * include/bits/locale_classes.h: Likewise. * include/bits/basic_string.h: Likewise. * include/bits/ios_base.h: Likewise. * include/bits/c++config: Adjust comment. From-SVN: r163223
Diffstat (limited to 'libstdc++-v3/include/ext/rc_string_base.h')
-rw-r--r--libstdc++-v3/include/ext/rc_string_base.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/ext/rc_string_base.h b/libstdc++-v3/include/ext/rc_string_base.h
index 32c9d38..9831037 100644
--- a/libstdc++-v3/include/ext/rc_string_base.h
+++ b/libstdc++-v3/include/ext/rc_string_base.h
@@ -201,12 +201,12 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
{
// Be race-detector-friendly. For more info see bits/c++config.
_GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_rep()->_M_info.
- _M_refcount)
+ _M_refcount);
if (__exchange_and_add_dispatch(&_M_rep()->_M_info._M_refcount,
-1) <= 0)
{
_GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&_M_rep()->_M_info.
- _M_refcount)
+ _M_refcount);
_M_rep()->_M_destroy(_M_get_allocator());
}
} // XXX MT