ostream.tcc (sentry::sentry): Improve performance-wise the fix for libstdc++/9563.
authorPaolo Carlini <pcarlini@unitus.it>
Thu, 13 Feb 2003 17:43:58 +0000 (18:43 +0100)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 13 Feb 2003 17:43:58 +0000 (17:43 +0000)
2003-02-13  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/ostream.tcc (sentry::sentry): Improve
performance-wise the fix for libstdc++/9563.

From-SVN: r62855

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/ostream.tcc

index 78182b919900f97f0375221f1544b5b97b8fe731..7cb7769ea69ccba8fc301d56a531b244d0186eec 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-13  Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/bits/ostream.tcc (sentry::sentry): Improve
+       performance-wise the fix for libstdc++/9563.
+
 2003-02-12  Phil Edwards  <pme@gcc.gnu.org>
 
        * config/cpu/generic/atomicity.h (_Atomic_add_mutex):  Fix declaration.
index 3456e679082e48f3b316ee11763471a99ffa2ccb..847f00b9be48f9964e77064c21e3912dee21645d 100644 (file)
@@ -44,7 +44,7 @@ namespace std
     : _M_os(__os)
     {
       // XXX MT
-      if (__os.good() && __os.tie())
+      if (__os.tie() && __os.good())
        __os.tie()->flush();
 
       if (__os.good())