diff options
author | Paolo Carlini <pcarlini@unitus.it> | 2003-02-13 18:43:58 +0100 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2003-02-13 17:43:58 +0000 |
commit | b7bb6d4a6a9cb69ec0abc09a4aab35c92af6bb86 (patch) | |
tree | 3ca73a466a00f622e030de3f0c003c78a2cff87a | |
parent | 047d636f544fad604aec883b45012d59369839fe (diff) | |
download | gcc-b7bb6d4a6a9cb69ec0abc09a4aab35c92af6bb86.zip gcc-b7bb6d4a6a9cb69ec0abc09a4aab35c92af6bb86.tar.gz gcc-b7bb6d4a6a9cb69ec0abc09a4aab35c92af6bb86.tar.bz2 |
ostream.tcc (sentry::sentry): Improve performance-wise the fix for libstdc++/9563.
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
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/ostream.tcc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 78182b9..7cb7769 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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. diff --git a/libstdc++-v3/include/bits/ostream.tcc b/libstdc++-v3/include/bits/ostream.tcc index 3456e67..847f00b 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()) |