OSDN Git Service

2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
index fad6a08..f0024ac 100644 (file)
@@ -1,3 +1,203 @@
+2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
+            Ulrich Drepper  <drepper@redhat.com>
+
+       * testsuite/testsuite_performance.h: Tweak mallinfo.
+
+2003-06-24  Paolo Carlini  <pcarlini@unitus.it>
+            Nathan C. Myers  <ncm-nospam@cantrip.org>
+
+       * include/std/std_fstream.h (_M_filepos): Remove.
+       (_M_reading, _M_writing): New, encode the various I/O modes:
+       'read', 'write' and 'uncommitted'.
+       (sync): If there is something to flush, do it, then go to
+       'uncommitted' mode.
+       * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
+       with three different cases: __off > 0 (upon underflow),
+       __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
+       seekoff/pos).
+       (_M_underflow): Don't call overflow, set _M_reading to true
+       on success, tweak.
+       (pbackfail): Set _M_reading to true on pback creation, tweak.
+       (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
+       set _M_writing to true on success, tweak.
+       (seekoff): Simplify, set _M_reading, _M_writing to false, call
+       _M_set_buffer(-1) ('uncommitted').
+       (open, close, setbuf): Set _M_reading, _M_writing to false and
+       call _M_set_buffer(-1), tweak.
+       (basic_filebuf): Don't set _M_buf_unified.
+       (_M_destroy_internal_buffer): Don't call setg and setp.
+       * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
+       _M_writing and _M_set_buffer(-1).
+       * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
+       _M_out_lim, _M_buf_unified): Remove.
+       (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
+       (setp): Don't set _M_out_lim.   
+       * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
+       the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
+       upon open the mode is 'uncommitted' and therefore the put area
+       pointers are null.
+       * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
+       * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
+       * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
+       * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
+       * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
+       * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
+       * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
+       * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
+       * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
+       * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
+       * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
+       * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
+       * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
+       * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
+       * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
+       * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
+       * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
+       * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
+       * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
+       * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
+
+       * include/bits/fstream.tcc (showmanyc): Use only the
+       documented derivation interface to basic_streambuf (gptr(),
+       setg(), etc.) to work right with user specializations.
+       * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
+       sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
+       * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
+       Likewise.
+       * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
+       xsgetn): Likewise.
+
+2003-06-23  Loren J. Rittle  <ljrittle@acm.org>
+
+       * configure.host (freebsd*): Set abi_baseline_pair.
+       * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
+       (at or near first release) to 3.3.
+       * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
+       * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
+       * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
+
+       * include/ext/mt_allocator.h: Portability.
+       * testsuite/testsuite_performance.h: Likewise.
+
+2003-06-23  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * docs/html/17_intro/libstdc++-assign.txt: Update address.
+
+       * testsuite/performance/ifstream_getline.cc: Fix.
+       
+2003-06-23  Doug Gregor <dgregor@apple.com>
+
+        * include/bits/boost_concept_check.h: Don't use _D or _R for type 
+        names.
+
+2003-06-22  Paolo Carlini  <pcarlini@unitus.it>
+           Nathan C. Myers  <ncm-nospam@cantrip.org>
+
+       * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
+       is now used only for filebuf, when _M_buf_unified is true.
+       epgtr() plays the role of _M_out_lim but it's only updated
+       upon overflow, underflow, uflow, seekoff/pos.
+       * include/bits/sstream.tcc (_M_underflow): New, implements
+       stringbuf::underflow and uflow.
+       (seekoff, seekpos): Tweak, use  _M_update_egptr.
+       * include/std/std_sstream.h (str): Rewrote, deal correctly
+       with the new logic, in particular, when pptr() > egptr().
+       (_M_sync): When __testout && !__testin set all the get area
+       pointers to the current string end.
+       (_M_update_egptr): New, internal function updating egptr()
+       to the actual string end.
+       (_M_underflow): New, declare.
+       (underflow): Dispatch to _M_underflow(false).
+       (uflow): Dispatch to _M_underflow(true).
+
+       * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
+       seekpos): Use only the documented derivation interface to
+       basic_streambuf (gptr(), setg(), etc.) to work right with
+       user specializations.
+       * include/std/std_sstream.h (str, _M_sync): Likewise.
+
+2003-06-20  Doug Gregor <dgregor@apple.com>
+
+       * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
+       * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
+       dereference end iterator.
+       * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
+       * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
+       index equal to the length of a string.
+       * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
+       * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
+       * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
+       * testsuite/22_locale/ctype/widen/char/1.cc: Same.
+       * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
+       * testsuite/23_containers/list_modifiers.cc: Don't dereference
+       singular reverse iterator.
+       * testsuite/23_containers/vector_bool.cc: Don't increment singular
+       iterator.
+       * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
+
+2003-06-20  Doug Gregor <dgregor@apple.com>
+
+       * include/bits/basic_string.h (basic_string::replace): Dispatch 
+       _InputIterator version based on _Is_integer.
+       * include/bits/basic_string.tcc (basic_string::replace):
+       Renamed replace(iterator, iterator, size_type, _CharT) to
+       _M_replace_aux.
+       * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
+       Test basic_string::assign(_InputIterator, _InputIterator),
+       which calls basic_string::replace(iterator, iterator,
+       _Input_iterator, _InputIterator).
+
+2003-06-20  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/testsuite_performance.h (resource_counter): Don't use
+       mallinfo at the moment.
+
+2003-06-20  Matthias Klose  <doko@debian.org>
+
+       * configure.host: Set try_cpu to target_cpu for existing
+       baseline files.
+
+2003-06-19  Andreas Jaeger  <aj@suse.de>
+
+       * testsuite/Makefile.am (extract_symvers): Revert accidental
+       change.
+       * testsuite/Makefile.in: Regenerate.
+
+       * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
+       * configure: Regenerated.
+
+2003-06-19  Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/std/std_sstream.h (_M_sync): Make non virtual.
+
+2003-06-18  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/testsuite_performance.h (time_counter): New.
+       (resource_counter): New.
+       (report_performance): New.
+       (start_counters): New.
+       (stop_counters): New.
+       (clear_counters): New.
+       * testsuite/performance/allocator.cc: Instrument.
+       * testsuite/performance/cout_insert_int.cc: Same.
+       * testsuite/performance/complex_norm.cc: Same.
+       * testsuite/performance/filebuf_sputc.cc: New.
+       * testsuite/performance/fstream_seek_write.cc: Same.
+       * testsuite/performance/ifstream_getline.cc: Same.
+       * testsuite/performance/map_create_fill.cc: Same.
+       * testsuite/performance/ofstream_insert_float.cc: Same.
+       * testsuite/performance/ofstream_insert_int.cc: Same.
+       * testsuite/performance/string_append.cc: Convert.
+       * scripts/check_performance: New.
+       * testsuite/Makefile.am (check-performance): New.
+       (CLEANFILES): Add.
+
+2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
+            Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/std/std_sstream.h (setbuf): Check __n >= 0.
+       * include/bits/fstream.tcc (setbuf): Tweak.
+
 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
 
        * include/bits/sstream.tcc (seekoff): We can't seek beyond