OSDN Git Service

2003-05-19 Paolo Carlini <pcarlini@unitus.it>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
index 32dd575..6fc5fe7 100644 (file)
@@ -1,3 +1,114 @@
+2003-05-19  Paolo Carlini  <pcarlini@unitus.it>
+
+       * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
+       that upon filebuf::close() 27.8.1.1,3 is enforced.
+
+2003-05-15  Loren J. Rittle  <ljrittle@acm.org>
+
+       * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
+
+2003-05-15  Paolo Carlini  <pcarlini@unitus.it>
+           Nathan Myers  <ncm@cantrip.org>
+
+       * include/bits/fstream.tcc (_M_overflow): Rewrote to call
+       _M_convert_to_external only once (_M_buf_size is now the size of
+       the put area + 1 for the overflow char of a full area); call
+       _M_set_buffer instead of _M_set_indeterminate.
+       (setbuf): Don't accept a buffer smaller than 2 chars.
+       (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
+       instead of _M_set_determinate.
+       (open): Call _M_set_buffer, instead of _M_set_indeterminate.
+       (seekoff): Likewise.
+       * include/ext/stdio_filebuf.h (stdio_filebuf(int,
+       std::ios_base::openmode, bool, size_t),
+       stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
+       Likewise.
+       * include/std/std_fstream.h (_M_set_indeterminate): Remove.
+       (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
+       _M_buf_size - 1.
+       * include/std/std_streambuf.h: Tweak _M_out_lim comment.
+       * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
+       into account that, for _M_buf_size == BUFSIZ == 8192, the size of
+       the put area is now BUFSIZ - 1.
+       * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
+       that now the smallest _M_buf_size is 2 (still fails, for the same
+       reason, with 3.2.3)
+
+2003-05-14  Loren J. Rittle  <ljrittle@acm.org>
+
+       * testsuite/thread/pthread4.cc: Tweak test.
+
+2003-05-13  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
+       excess errors dg marker, use dg-errors instead.
+       * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
+       * testsuite/20_util/auto_ptr_neg.cc: Same.
+       
+2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
+       cached member.
+       * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
+       Initialize _M_codecvt.
+       (basic_filebuf::imbue): Same.
+       (basic_filebuf::showmanyc): Use it.
+       (basic_filebuf::underflow): Use it.
+       (basic_filebuf::_M_convert_to_external): Use it.
+       (basic_filebuf::seekoff): Use it.
+       (basic_filebuf::imbue): Use it, tweaks.
+       * include/bits/localefwd.h (__check_facet): New.
+       * include/bits/locale_classes.h: Tweaks.
+       * include/bits/locale_facets.tcc: Tweaks.       
+       * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
+       _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
+       _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
+       * include/bits/basic_ios.tcc: Same.     
+       * include/bits/istream.tcc: Same.
+       * include/bits/ostream.tcc: Same.
+       * include/std/std_streambuf.h: Same.
+       * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
+       * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
+       * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
+       * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
+       * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
+       * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
+       
+2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
+
+       * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
+       unnecessary includes and unused string literals.
+       * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
+       * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
+       * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
+       * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
+
+2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
+
+2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/std/std_fstream.h (_M_convert_to_external): Change
+       to return bool, take two less streamsize parameters.
+       * include/bits/fstream.tcc (_M_convert_to_external): Tweak
+       consistently definition.
+       (_M_overflow): Adjust call points.
+
+2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
+
+2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
+
+       * testsuite/Makefile.am:  Properly quote /both/ LD_RUN_PATHs.
+       * testsuite/Makefile.in:  Regenerate.
+
+2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
+
+       * testsuite/Makefile.am:  Properly quote LD_RUN_PATH.
+       * testsuite/Makefile.in:  Regenerate.
+
 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
 
        PR libstdc++/3181