From b7bb6d4a6a9cb69ec0abc09a4aab35c92af6bb86 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Thu, 13 Feb 2003 18:43:58 +0100 Subject: [PATCH] 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 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/bits/ostream.tcc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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())