mkcheck.in (static_fail): Remove S_FLAG decoration on output.
authorBenjamin Kosnik <bkoz@redhat.com>
Tue, 22 May 2001 18:48:19 +0000 (18:48 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Tue, 22 May 2001 18:48:19 +0000 (18:48 +0000)
commit990101f9738d06674ef25141d0903a5ffb1dd690
treec574ed686c7b6e36bb64e1e91f253684840f886e
parent14fc34261e441958450b279b79ab7a622c41aa33
mkcheck.in (static_fail): Remove S_FLAG decoration on output.

2001-05-21  Benjamin Kosnik  <bkoz@redhat.com>

* mkcheck.in (static_fail): Remove S_FLAG decoration on output.

* include/bits/std_sstream.h (stringbuf::setbuf): Require both
arguments to be non-null.
* include/bits/fstream.tcc (filebuf::_M_allocate_buffers): Only
try allocations if allocated size is greater than zero.
(filebuf::_M_filebuf_init): Change to
(filebuf::_M_allocate_file): Which is what it does now.
(filebuf::_M_allocate_bufers): Change to
(filebuf::_M_allocate_internal_buffer): This, and create
(filebuf::_M_allocate_pback_buffer): New.
(filebuf::_M_destroy_internal_buffer): New.
(filebuf::_M_buf_allocated): New data member.
(filebuf::setbuf): Use new logic, allow use of external buffer.
* testsuite/27_io/stringbuf_virtuals.cc: New file.
* testsuite/27_io/filebuf_virtuals.cc: New file.

From-SVN: r42458
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fstream.tcc
libstdc++-v3/include/bits/std_fstream.h
libstdc++-v3/include/bits/std_sstream.h
libstdc++-v3/mkcheck.in
libstdc++-v3/testsuite/27_io/filebuf_virtuals.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/stringbuf_virtuals.cc [new file with mode: 0644]