From: Paolo Carlini Date: Thu, 13 Feb 2003 17:43:58 +0000 (+0100) Subject: ostream.tcc (sentry::sentry): Improve performance-wise the fix for libstdc++/9563. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b7bb6d4a6a9cb69ec0abc09a4aab35c92af6bb86;p=gcc.git ostream.tcc (sentry::sentry): Improve performance-wise the fix for libstdc++/9563. 2003-02-13 Paolo Carlini * include/bits/ostream.tcc (sentry::sentry): Improve performance-wise the fix for libstdc++/9563. From-SVN: r62855 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 78182b91990..7cb7769ea69 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2003-02-13 Paolo Carlini + + * include/bits/ostream.tcc (sentry::sentry): Improve + performance-wise the fix for libstdc++/9563. + 2003-02-12 Phil Edwards * config/cpu/generic/atomicity.h (_Atomic_add_mutex): Fix declaration. diff --git a/libstdc++-v3/include/bits/ostream.tcc b/libstdc++-v3/include/bits/ostream.tcc index 3456e679082..847f00b9be4 100644 --- a/libstdc++-v3/include/bits/ostream.tcc +++ b/libstdc++-v3/include/bits/ostream.tcc @@ -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())