]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ios_init.cc (ios_base::Init::~Init): Add back semicolon at the end of the _GLIBCXX_SY...
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 13 Aug 2010 11:48:34 +0000 (11:48 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 13 Aug 2010 11:48:34 +0000 (11:48 +0000)
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

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/include/bits/c++config
libstdc++-v3/include/bits/ios_base.h
libstdc++-v3/include/bits/locale_classes.h
libstdc++-v3/include/ext/rc_string_base.h
libstdc++-v3/include/tr1_impl/boost_sp_counted_base.h
libstdc++-v3/src/ios_init.cc

index f133c0a51fa867cadf4c62eb00ef9cb6a340809f..f7d66a4ee781dbca5bec15ef2ad6e31081c47ea1 100644 (file)
@@ -1,3 +1,15 @@
+2010-08-13  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.
+
 2010-08-12  Kostya Serebryany <kcc@google.com>
            Paolo Carlini  <paolo.carlini@oracle.com>
 
index 74820eb348e8c56aab2539fcafd65c2f17f1ae92..89004f7fb21000e2fddfdac0cd04255186e4d321 100644 (file)
@@ -234,11 +234,11 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
 #endif
            {
              // Be race-detector-friendly.  For more info see bits/c++config.
-             _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&this->_M_refcount)
+             _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&this->_M_refcount);
              if (__gnu_cxx::__exchange_and_add_dispatch(&this->_M_refcount,
                                                         -1) <= 0)
                {
-                 _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&this->_M_refcount)
+                 _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&this->_M_refcount);
                  _M_destroy(__a);
                }
            }
index fef6933a3b5c390ede2c7912802e169d8bfc8a17..19b55bc5b081a9af446aeb08892b72d4ce0f9160 100644 (file)
 // current implementation of the library) is atomic reference counting:
 //   void _M_remove_reference()
 //   {
-//     _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&this->_M_refcount)
+//     _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&this->_M_refcount);
 //     if (__gnu_cxx::__exchange_and_add_dispatch(&this->_M_refcount, -1) <= 0)
 //       {
-//         _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&this->_M_refcount)
+//         _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&this->_M_refcount);
 //         _M_destroy(__a);
 //       }
 //   }
index 6cca99166ca7172e36a1b7eaf7e3ed2f1406731a..6749a731065f03f79ac015e559a1947263a61172 100644 (file)
@@ -476,11 +476,11 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
       _M_remove_reference() 
       {
         // Be race-detector-friendly.  For more info see bits/c++config.
-        _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_refcount)
+        _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_refcount);
         int __res = __gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1);
         if (__res == 0)
           {
-            _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&_M_refcount)
+            _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&_M_refcount);
           }
         return __res;
       }
index c519f3584766f256e7ab5ded0c4de42db86c9a52..8a846bce0c6166a0c999ff8245705c37bb955d3a 100644 (file)
@@ -403,10 +403,10 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
     _M_remove_reference() const throw()
     {
       // Be race-detector-friendly.  For more info see bits/c++config.
-      _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_refcount)
+      _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_refcount);
       if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1)
        {
-          _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&_M_refcount)
+          _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&_M_refcount);
          __try
            { delete this; }
          __catch(...)
@@ -512,10 +512,10 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
     _M_remove_reference() throw()
     {
       // Be race-detector-friendly.  For more info see bits/c++config.
-      _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_refcount)
+      _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_refcount);
       if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1)
        {
-          _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&_M_refcount)
+          _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&_M_refcount);
          __try
            { delete this; }
          __catch(...)
index 32c9d3865aeef4d257ba1ad2b0eaa968c38a1516..9831037bb15a5aca1e4a18d78231796fa5525b80 100644 (file)
@@ -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
index a995df5bb767293e6691645a070e7b412926332f..11a2d052dfc569f59c4389d19884384fd0ecbf71 100644 (file)
@@ -140,10 +140,10 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
       _M_release() // nothrow
       {
         // Be race-detector-friendly.  For more info see bits/c++config.
-        _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_use_count)
+        _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_use_count);
        if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1)
          {
-            _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&_M_use_count)
+            _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&_M_use_count);
            _M_dispose();
            // There must be a memory barrier between dispose() and destroy()
            // to ensure that the effects of dispose() are observed in the
@@ -156,11 +156,11 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
              }
 
             // Be race-detector-friendly.  For more info see bits/c++config.
-            _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_weak_count)
+            _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_weak_count);
            if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count,
                                                       -1) == 1)
               {
-                _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&_M_weak_count)
+                _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&_M_weak_count);
                _M_destroy();
               }
          }
@@ -174,10 +174,10 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
       _M_weak_release() // nothrow
       {
         // Be race-detector-friendly. For more info see bits/c++config.
-        _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_weak_count)
+        _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_M_weak_count);
        if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, -1) == 1)
          {
-            _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&_M_weak_count)
+            _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&_M_weak_count);
            if (_Mutex_base<_Lp>::_S_need_barriers)
              {
                // See _M_release(),
index 209a324a9313e0cd637da705b63144286ce43335..caf25ed80369ae03fef0a8efde53c04b924fafb3 100644 (file)
@@ -123,10 +123,10 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
   ios_base::Init::~Init()
   {
     // Be race-detector-friendly.  For more info see bits/c++config.
-    _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_S_refcount)
+    _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(&_S_refcount);
     if (__gnu_cxx::__exchange_and_add_dispatch(&_S_refcount, -1) == 2)
       {
-        _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&_S_refcount)
+        _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(&_S_refcount);
        // Catch any exceptions thrown by basic_ostream::flush()
        __try
          {