From: Jeff Law Date: Wed, 24 May 2000 04:57:22 +0000 (-0600) Subject: iostream.cc (endl): Verify stream can accept characters before writing its eol. X-Git-Tag: prereleases/libstdc++-2.92~6233 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db9aed0ed672a0886f5c5aa7b0dde2209be9f827;p=thirdparty%2Fgcc.git iostream.cc (endl): Verify stream can accept characters before writing its eol. * iostream.cc (endl): Verify stream can accept characters before writing its eol. From-SVN: r34122 --- diff --git a/libio/ChangeLog b/libio/ChangeLog index fdbdf06dd0e9..8735e8f1468a 100644 --- a/libio/ChangeLog +++ b/libio/ChangeLog @@ -1,3 +1,8 @@ +Tue May 23 22:56:56 2000 Jerry Quinn + + * iostream.cc (endl): Verify stream can accept characters + before writing its eol. + 2000-05-15 David Edelsohn * config.shared: Change "pic" to depend on $(PICFLAG), not diff --git a/libio/iostream.cc b/libio/iostream.cc index 4b75fca764dd..cabda6bfede1 100644 --- a/libio/iostream.cc +++ b/libio/iostream.cc @@ -963,7 +963,9 @@ ostream& ends(ostream& outs) ostream& endl(ostream& outs) { - return flush(outs.put('\n')); + if (opfx) + flush(outs.put('\n')); + return outs; } istream& lock(istream& ins)