X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libstdc%2B%2B-v3%2FChangeLog;h=c1acd15755e1f48db23b4e8bb5ab96360d8c36fd;hb=819c2b1db5a3f78d671f15620450dcea2acc9518;hp=3a3ac682ab6a372fd681847e5d1ab0557af1e834;hpb=41a381231e357af54e720ee038b7cd63f0bd232b;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 3a3ac682ab6..c1acd15755e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,791 @@ +2003-06-23 Loren J. Rittle + + * 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. + +2003-06-23 Benjamin Kosnik + + * docs/html/17_intro/libstdc++-assign.txt: Update address. + + * testsuite/performance/ifstream_getline.cc: Fix. + +2003-06-23 Doug Gregor + + * include/bits/boost_concept_check.h: Don't use _D or _R for type + names. + +2003-06-22 Paolo Carlini + Nathan C. Myers + + * 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 + + * 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 + + * 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 + + * testsuite/testsuite_performance.h (resource_counter): Don't use + mallinfo at the moment. + +2003-06-20 Matthias Klose + + * configure.host: Set try_cpu to target_cpu for existing + baseline files. + +2003-06-19 Andreas Jaeger + + * 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 + + * include/std/std_sstream.h (_M_sync): Make non virtual. + +2003-06-18 Benjamin Kosnik + + * 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 + Benjamin Kosnik + + * include/std/std_sstream.h (setbuf): Check __n >= 0. + * include/bits/fstream.tcc (setbuf): Tweak. + +2003-06-18 Paolo Carlini + + * include/bits/sstream.tcc (seekoff): We can't seek beyond + _M_out_lim, therefore _M_move_out_cur boils down to simply + updating _M_out_cur. + (seekpos): Likewise, clean up. + +2003-06-18 Nathan C. Myers + Paolo Carlini + + * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too, + simply equivalent to the unbuffered case (0, 0) as far as + _M_buf_size is concerned. + +2003-06-18 Andreas Jaeger + + * testsuite/Makefile.am (new-abi-baseline): Create baseline + directory. + (baseline_file): Use baseline_dir. + (baseline_dir): New. + (mkinstalldirs): New. + + * acinclude.m4: Rename baseline_file to baseline_dir, strip + filename from baseline_dir. + + * testsuite/Makefile.in: Regenerated. + * Makefile.in: Regenerated. + * aclocal.m4: Regenerated. + * configure: Regenerated. + +2003-06-17 Benjamin Kosnik + + * configure.in: Missed check_survey bit. + * configure: Regenerated. + +2003-06-17 Benjamin Kosnik + + * scripts: New. + * config/abi/extract_symvers: Move to... + * scripts/extract_symvers: ...here. + * mkcheck.in: Move to.. + * scripts/check_survey.in: ...here. + * testsuite_flags.in: Move to.. + * scripts/testsuite_flags.in: ...here. + * configure.in: Change check and testsuite_flags locations. + * configure: Regenerate. + * testsuite/Makefile.am (current_symbols.txt): Change location. + * testsuite/Makefile.in: Regenerate. + * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify + location of testsuite_flags. + * Makefile.am (check-script): Move.. + (check-script-install): Move... + * testsuite/Makefile.am: ... here. + * testsuite/Makefile.in: Regenerate. + * Makefile.in: Regenerate. + +2003-06-17 Benjamin Kosnik + + * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0. + +2003-06-16 Benjamin Kosnik + + * Makefile.am (check-abi): Move... + (new-abi-baseline): Move... + * testsuite/Makefile.am: ...here. + (new-abi-baseline): Conditionalize. + (check-abi): Conditionalize. + (check-abi-verbose): New. + * Makefile.in: Regenerate. + * testsuite/Makefile.in: Regenerate. + * configure.in: Consolidate testsuite configure bits. + * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same. + * configure: Regenerate. + * aclocal.m4: Regenerate. + * testsuite/abi_check.cc: Add --check-verbose. + Only output detailed information if --check-verbose. + +2003-06-16 Andreas Jaeger + + * testsuite/abi_check.cc: Create summary report. + +2003-06-16 Paolo Carlini + + * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix + for systems with BUFSIZ != 8192. + * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto. + * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: + Minor tweaks. + +2003-06-16 Andreas Jaeger + + * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make + check-abi multilib aware. + * aclocal.m4: Regenerate. + * configure: Regenerate. + +2003-06-16 Benjamin Kosnik + Andreas Jaeger + + * configure.host: Set x86_64 abi_baseline pair correctly. + +2003-06-16 Paolo Carlini + + * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and + fix for missing seeks between gets and puts into... + * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New. + * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New. + * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New. + * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New. + * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New. + * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New. + +2003-06-15 Richard Henderson + + * config/linker-map.gnu: Export virtual function thunks for + 64-bit systems too. + +2003-06-13 Benjamin Kosnik + + * config/abi/i686-pc-linux-gnu: To.. + * config/abi/i486-linux-gnu: ...this. + * config/abi/alphaev67-unknown-linux-gnu: To.. + * config/abi/alpha-linux-gnu: ...this. + * config/abi/ia64-unknown-linux-gnu: To... + * config/abi/ia64-linux-gnu: ...this. + * config/abi/x86_64-unknown-linux-gnu: To... + * config/abi/x86_64-linux-gnu: ...this. + * config/abi/i386-unknown-freebsd4: To... + * config/abi/i386-freebsd4: ...this. + * config/linker-map.gnu: Cleanups, move libsupc++ bits into + CXXABI. + * configure.host: abi_baseline_triplet to abi_baseline_pair. + Simplify cpu bits so that abi_baseline_pair can use the same + cpu configuration. + * acinclude.m4: Same. + * aclocal.m4: Regenerate. + * configure.in: Can't get enable_abi_check to yes unless native. + * configure: Regenerate. + +2003-06-13 Paolo Carlini + + * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and + fix for missing seeks between gets and puts into... + * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New. + * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New. + * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into... + * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New. + * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New. + * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix + for missing seeks between gets and puts. + * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto. + * testsuite/data/seekoff-1.tst: New. + * testsuite/data/seekoff-2.tst: New. + * testsuite/data/seekpos-1.tst: New. + * testsuite/data/seekpos-2.tst: New. + +2003-06-13 Nathan C. Myers + + Avoid multi-processor bus contention on increment/decrement-and- + test of the reference count in the empty-string object, by comparing + addresses first, and never touching the reference count of the empty- + string object. + * include/bits/basic_string.h: + (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its + members. + (_Rep::_S_empty_rep()): New accessor. + (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to + a base class _Rep_base. + (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string. + (basic_string()): Change to use _M_refdata() in place of _M_refcopy(), + since no longer must increment its refcount. + * include/bits/basic_string.tcc: + (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and + return immediately. The former might be unnecessary. The latter + prevents begin() and end() from cloning it unnecessarily. + (_S_construct(_InIterator, _InIterator, const _Alloc&, + input_iterator_tag), _S_construct(_InIterator, _InIterator, + const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT, + const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy(). + (_M_mutate): Check for the empty string and treat it as shared. + This is necessary here because _M_mutate is sometimes called with + all-zero arguments; in all other uses of _M_is_shared, the test comes + out right anyhow. + +2003-06-12 Benjamin Kosnik + + * src/allocator-inst.cc: Explicitly instantiate. + * include/ext/pool_allocator.h: Inhibit implicit instantiations. + Tweaks. + * config/linker-map.gnu: Add __pool_alloc bits. Tweaks. + +2003-06-11 Benjamin Kosnik + + * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify. + * aclocal.m4: Regenerate. + * Makefile.am (SUBDIRS): Remove libio. + * Makefile.in: Regenerate. + * configure.in: Same. + * configure: Regenerate. + * config/io/basic_file_libio.cc: Remove. + * config/io/basic_file_libio.h: Remove. + * config/io/c_io_libio_codecvt.c: Remove. + * config/io/c_io_libio.h: Remove. + * libio/*: Remove. + * src/Makefile.am: Same. + * src/Makefile.in: Regenerate. + * docs/html/configopts.html: Edits. + * docs/html/explanations.html: Edits. + +2003-06-11 Benjamin Kosnik + + * include/bits/stl_alloc.h (__debug_alloc): Move out. + (__malloc_alloc): Same. + (__pool_alloc): Same. + (__new_alloc): Same. + Rename to.. + * include/bits/allocator.h: ...this. + * include/bits/stl_deque.h: Modify comment. + * include/bits/stl_tree.h: Modify include. + * include/std/std_memory.h: Same. + * include/ext/rope: Same. + * include/ext/slist: Same. + * include/std/std_vector.h: Same. + * include/std/std_stack.h: Same. + * include/std/std_queue.h: Same. + * include/std/std_list.h: Same. + * include/std/std_deque.h: Same. + * include/backward/alloc.h: Same. + * include/ext/debug_allocator.h: New. + * include/ext/malloc_allocator.h: New. + * include/ext/pool_allocator.h: New. + * include/ext/new_allocator.h: New. + * include/bits/pthread_allocimpl.h: Remove. + * include/bits/stl_pthread_alloc.h: Remove. + * include/Makefile.am (ext_headers): Add. + * include/Makefile.in: Regenerate. + * src/stl-inst.cc: Use __gnu_cxx namespace. + * src/stl-inst.cc: Move to... + * src/allocator-inst.cc: Here. + * src/Makefile.am (sources): Update. + * src/Makefile.in: Regenerate. + * config/linker-map.gnu: Remove __pool_alloc bits. + * testsuite/ext/headers.cc: Add. + * testsuite/ext/allocators.cc: Fixup. + +2003-06-11 Stefan Olsson + Ola Rönnerup + + * include/Makefile.am (ext_headers): Add. + * include/Makefile.in: Regenerate. + * include/ext/mt_allocator.h: New file. + +2003-06-10 Paolo Carlini + + * include/bits/fstream.tcc (close): Clean up a bit. + + * include/bits/streambuf.tcc (sbumpc): Clean up a bit. + + * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save + - the saved _M_in_cur, that is - cannot be null. + (sync): Constify a variable. + + * include/std/std_streambuf.h: Tweak a comment. + (in_avail): Constify a variable. + +2003-06-10 Phil Edwards + + * docs/html/17_intro/BUGS: Update from 2.90.8 snapshot. + * docs/html/17_intro/CHECKLIST: Bring up to date with respect to + correctness of container::iterator typedefs. Fix whitespace. + * docs/html/20_util/howto.html, docs/html/ext/howto.html: Add links + to allocator docs. + * docs/html/documentation.html: Regenerate. + + * include/bits/basic_string.h, include/bits/basic_string.tcc, + include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h, + include/bits/stl_algobase.h, include/bits/stl_bvector.h, + include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h, + include/bits/stl_list.h, include/bits/stl_uninitialized.h, + include/bits/stl_vector.h, include/bits/vector.tcc, + include/ext/algorithm, include/ext/slist, include/std/std_bitset.h: + Change _Iter names to _Iterator, and __pos to __position. + + * include/bits/stl_relops.h, include/bits/stl_numeric.h, + include/bits/stl_multiset.h, include/bits/stl_set.h: + Remove emacs markers. + + * include/bits/stl_threads.h (_STL_auto_lock): Add __unused__. + +2003-06-10 Paolo Carlini + + * include/bits/fstream.tcc (overflow): According to + 27.5.2.4.5, overflow() returns not_eof(eof()). + * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New. + * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto. + +2003-06-10 Paolo Carlini + + * include/bits/fstream.tcc (_M_underflow): Check overflow return + value; tweak slightly. + +2003-06-09 Paolo Carlini + + * include/bits/fstream.tcc (_M_underflow): Do not special + case the unbuffered case, which really means simply a one char + get area. + (basic_filebuf): Initialize _M_buf_size. + (setbuf): Unbuffered means _M_buf_size == 1, since only + _M_buf_size - 1 == 0 chars are going to be used for the + put area and 1 for the get area. + * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf. + (~basic_streambuf): Tweak. + (basic_streambuf): Do not initialize _M_buf_size. + * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf. + (~basic_filebuf): Tweak. + (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the + unbuffered situation (i.e., put area pointers NULL). + * include/bits/streambuf.tcc (sbumpc): Clean up. + * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into... + * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New. + * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New. + * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New. + * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New. + * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New. + * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New. + +2003-06-09 Phil Edwards + + * acinclude.m4: Move all AM_CONDITIONAL calls out. + (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL + statements. + * configure.in: Centralize AM_CONDITIONALs so that they are always + run. Make use of GLIBCPP_IS_CROSS_COMPILING. + * aclocal.m4, configure: Regenerated. + +2003-06-09 Paolo Carlini + + * docs/html/ext/howto.html ('LWG Issues'): Add issue 235. + +2003-06-06 Nathan Myers + + * include/bits/stl_iterator.h + (reverse_iterator::reverse_iterator()): Apply DR235: default + constructor default-initializes data member. Instantiated on a + pointer type, the member has to end up equal to zero. + +2003-06-06 Benjamin Kosnik + + * include/bits/stl_alloc.h: Cleanups. + * include/ext/functional: Same. + * include/ext/hash_map: Same. + * include/ext/hash_set: Same. + * include/ext/iterator: Same. + * include/ext/memory: Same. + * include/ext/numeric: Same. + * include/ext/rb_tree: Same. + * include/ext/ropeimpl.h: Same. + * include/ext/slist: Same. + * include/ext/stdio_filebuf.h: Same. + * include/ext/stdio_sync_filebuf.h: Same. + * include/ext/stl_rope.h: Move to... + * include/ext/rope: ...here. + * include/ext/stl_hash_fun.h: Move to... + * include/ext/hash_fun.h: ...here. + * include/ext/stl_hashtable.h: Move to... + * include/ext/hashtable.h: ...here. + * include/backward/hashtable.h: Reflect new names. + * include/Makefile.am: Same. + * include/Makefile.in: Regenerated. + +2003-06-05 Benjamin Kosnik + + PR libstdc++/9024 + * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered. + * include/bits/stl_algobase.h: Tweak. + * include/std/std_fstream.h: Move _M_buf_size to... + * include/std/std_streambuf.h: ...here. Modify. + * include/bits/streambuf.tcc: Same. + * testsuite/testsuite_hooks.h: Tweak. + * testsuite/testsuite_io.h (constraint_filebuf): New. + * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into... + * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New. + * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New. + * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New. + * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New. + * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New. + * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New. + * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into... + * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New. + * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New. + * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New. + * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New. + * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New. + * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New. + * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into... + * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New. + * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New. + * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New. + * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into... + * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New. + * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New. + * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New. + * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New. + * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into... + * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New. + * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New. + * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New. + * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New. + * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New. + * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New. + * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into... + * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New. + * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New. + * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New. + * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into... + * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New. + * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New. + * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New. + * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into... + * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New. + * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New. + * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New. + * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New. + * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New. + * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New. + * testsuite/data/sgetc.txt: New. + * testsuite/data/sgetn.txt: New. + +2003-06-05 Paolo Carlini + + PR libstdc++/11095 + * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)): + Deal with width() smaller than zero. + * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT), + operator<<(basic_ostream&, char), operator<<(basic_ostream&, const + _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const + char*), operator<<(basic_ostream&, const char*), + operator<<(basic_ostream, const basic_string&)): Likewise. + + * testsuite/27_io/basic_istream/extractors_character/char/ + (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New. + * testsuite/27_io/basic_ostream/inserters_character/char/ + (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New. + * testsuite/27_io/basic_ostream/inserters_character/wchar_t/ + (11095-od.cc, 11095-oe.cc, 11095-of.cc): New. + +2003-06-05 Rainer Orth + + * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if + .gch compilation works. + * aclocal.m4, configure: Regenerate. + * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to + initialize PCHFLAGS. + +2003-06-04 Paolo Carlini + + * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT), + erase(iterator), erase(iterator, iterator), c_str, + compare(const basic_string&)): Constify various variables. + * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter, + const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate, + _S_create, resize, _M_replace, _M_replace_safe, + append(const basic_string&), append(const basic_string&, size_type, + size_type), append(const _CharT*, size_type), append(size_type, + _CharT), operator+(const _CharT*, const basic_string&), + operator+(_CharT, const basic_string&), replace(iterator, iterator, + size_type, _CharT), find(const _CharT*, size_type, size_type), + find(_CharT, size_type), rfind(const _CharT*, size_type, size_type), + rfind(_CharT, size_type), compare(size_type, size_type, + const basic_string&), compare(size_type, size_type, + const basic_string&, size_type, size_type), compare(const _CharT*), + compare(size_type, size_type, const _CharT*), compare(size_type, + size_type, const _CharT*, size_type)): Likewise. + +2003-06-03 Benjamin Kosnik + + * include/bits/fstream.tcc (pbackfail): Make a rarely taken + 'if' branch less obscure. + +2003-06-02 Andrew Pinski + + PR libstdc++/9815 + * config/cpu/i386/atomicity.h (__exchange_and_add): add intel + asm case to asm. + * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise. + (__atomic_add): likewise. + +2003-06-02 Paolo Carlini + + * include/bits/sstream.tcc (pbackfail): Minor clean up and + reformatting, consistent with basic_filebuf::pbackfail. + +2003-06-02 Richard Kreckel + + PR libstdc++/11062 + * config/cpu/mips/atomicity.h: Change __attribute__ ((unused)) to + __attribute__ ((__unused__)). + * config/os/aix/atomicity.h: Likewise. + +2003-06-02 Paolo Carlini + + PR libstdc++/9761 + * include/bits/fstream.tcc (pbackfail): If the pback buffer + is already active don't try to store in it a second char. + * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New. + + * include/bits/fstream.tcc (pbackfail): Add unbuffered bits. + +2003-06-02 Paolo Carlini + + * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak + line spacing. + +2003-06-02 Paolo Carlini + + * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg + instead of unnecessarily taking the address of _M_pback. + (xsgetn): Simplify slightly for a single char pback buffer. + +2003-06-02 Paolo Carlini + + * include/bits/sstream.tcc (seekoff): Remove four unnecessary + variables and two 'if', clean up. + +2003-06-02 Paolo Carlini + + * include/bits/sstream.tcc (seekpos): Test against _M_out_lim + not _M_out_end, since the former actually points to the string + end (vs buffer end). + * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New. + +2003-05-30 Phil Edwards + + * docs/doxygen/filter: New file. + * docs/doxygen/filter.sed: New file. + * docs/doxygen/run_doxygen: Add g flag to sed substitutions. Duh. + * docs/doxygen/user.cfg.in (INPUT_FILTER): Point to new filter. + * docs/html/documentation.html: Fix links to doxygen pages. + +2003-05-30 Paolo Carlini + + * include/bits/fstream.tcc (_M_convert_to_external): Don't + check for __ilen > 0. + +2003-05-29 Sylvain Pion + + PR libstdc++/10783 + * include/bits/stl_iterator.h (class __normal_iterator): + Don't inherit from iterator, add missing typedefs. + +2003-05-29 Paolo Carlini + + * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows. + * testsuite/24_iterators/reverse_iterator/1.cc: New. + * testsuite/24_iterators/reverse_iterator/2.cc: New. + * testsuite/24_iterators/reverse_iterator/3.cc: New, from + PR libstdc++/10783. + +2003-05-27 Steve Ellcey + + * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are + on IA64 HP-UX. + * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if + _LIBUNWIND_STD_ABI is set. + +2003-05-26 Brendan Kehoe + + * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and + make sure the number of digits required after the decimal-point + (if any) is exactly the value returned by frac_digits(). + * testsuite/22_locale/money_get/get/char/9.cc: New. + * testsuite/22_locale/money_get/get/wchar_t/9.cc: New. + +2003-05-27 Jonathan Wakely + + * include/std/std_istream.h, include/std/std_ostream.h: Typo in + comment. + +2003-05-26 Benjamin Kosnik + + PR libstdc++/9339 + * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove. + (_M_pback): No array necessary. + * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add + unbuffered case, coalesec into ... + (basic_filebuf::overflow): ...this. + * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New. + * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered. + +2003-05-24 Nathanael Nerode + + * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc, + libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc, + libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc, + libsupc++/eh_catch.cc, libsupc++/eh_exception.cc, + libsupc++/eh_globals.cc, libsupc++/eh_personality.cc, + libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc, + libsupc++/eh_throw.cc, libsupc++/eh_type.cc, + libsupc++/eh_unex_handler.cc, libsupc++/exception, + libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc, + libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc, + libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc, + libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc: + Replace "GNU CC" with "GCC". + + * include/backward/new.h: Replace "GNU CC" with "GCC". + +2003-05-22 Benjamin Kosnik + + PR libstdc++/3066. + * configure.in: Switch target to host, don't assume newlib. + (target_alias): Remove. + * configure: Regenerate. + * acinclude.m4: Same. + * aclocal.m4: Regenerate. + * configure.target: Same. Rename to... + * configure.host: This. + +2003-05-22 Paolo Carlini + + * include/std/std_fstream.h (_S_pback_size): Remove definition. + (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char + pback buffer. + * include/bits/fstream.tcc (_S_pback_size): Remove declaration. + * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation + of _S_pback_size for systems with no COMDAT or weak support. + * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise. + * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise. + * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise. + * testsuite/27_io/basic_fstream/3.cc: Likewise. + * testsuite/27_io/basic_ifstream/3.cc: Likewise. + * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise. + * testsuite/27_io/basic_ofstream/3.cc: Likewise. + * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise. + * testsuite/27_io/basic_streambuf/3.cc: Likewise. + +2003-05-22 Paolo Carlini + + * include/bits/fstream.tcc (_M_underflow): Simplify: + !__testout implies _M_filepos == _M_in_end, therefore + the first _M_file.seekoff call is never issued. + +2003-05-22 Benjamin Kosnik + + * configure.in: Sort cross table. + * configure: Regenerate. + +2003-05-22 Brad Spencer + + PR libstdc++/10106 + * configure.in: Add Solaris cross bits. + +2003-05-21 Danny Smith + + * libstdc++-v3/config/os/mingw32/os_defines.h + (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt. + (NOMINMAX): Define. Update copyright year. + 2003-05-21 Paolo Carlini * include/std/std_fstream.h (_M_set_buffer): Fix indentation. @@ -50,12 +838,12 @@ * testsuite/performance/string_append.cc: New. * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter performance tests. - + 2003-05-20 Gabriel Dos Reis PR libstdc++/10689 * include/std/std_complex.h (pow): Tidy. - + 2003-05-19 Paolo Carlini * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing @@ -102,7 +890,7 @@ 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 * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add @@ -117,11 +905,11 @@ (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/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/basic_ios.tcc: Same. * include/bits/istream.tcc: Same. * include/bits/ostream.tcc: Same. * include/std/std_streambuf.h: Same. @@ -131,7 +919,7 @@ * 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 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove @@ -193,7 +981,7 @@ * include/bits/cpp_type_traits.h (__are_same<>): New traits. (__enable_if): Likewise. * testsuite/26_numerics/cmath/overloads.C: New test. - + 2003-05-10 Petur Runolfsson PR libstdc++/9027 @@ -231,7 +1019,7 @@ * include/bits/fstream.tcc: Same. * src/fstream.cc: Same. * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy. - + 2003-05-10 Petur Runolfsson PR libstdc++/9520 @@ -243,7 +1031,7 @@ * include/Makefile.in: Regenerate. * include/bits/ios_base.h (Init::_S_create_buffers, Init::_S_destroy_buffers): Remove declarations. - * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync, + * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync, buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define. * src/ios.cc (Init::_S_create_buffers, Init::_S_destroy_buffers): Remove. @@ -317,10 +1105,10 @@ (__cxa_call_unexpected): Remove foreign exception fixmes. 2003-05-07 Benjamin Kosnik - + * testsuite/27_io/ios_base/cons: New. * testsuite/27_io/ios_base/cons/assign_neg.cc: New. - * testsuite/27_io/ios_base/cons/copy_neg.cc: New. + * testsuite/27_io/ios_base/cons/copy_neg.cc: New. 2003-05-07 Paolo Carlini @@ -345,7 +1133,7 @@ to clean up. 2003-05-06 Benjamin Kosnik - + * include/bits/stl_algo.h: Enums as _S_. * include/bits/stl_tree.h: Same. * include/bits/stl_bvector.h: Same. @@ -353,12 +1141,12 @@ * include/bits/stl_alloc.h: Same. * include/ext/stl_hashtable.h: Same. * src/ios.cc: And here. - - * include/std/std_sstream.h: Replace _M_really_sync to _M_sync. + + * include/std/std_sstream.h: Replace _M_really_sync to _M_sync. * include/bits/sstream.tcc: Same. * include/bits/basic_ios.h: Correct spacing for '< ctype'. - + * include/bits/locale_facets.tcc: Replace __temp to __tmp. * include/bits/locale_facets.h (__num_base): Remove protected. @@ -366,9 +1154,9 @@ (_S_format_int): Remove. * include/bits/locale_facets.tcc: Same. * src/locale.cc: Same. - + * include/std/std_sstream.h (stringbuf::str): Tweak formatting. - + 2003-05-06 Phil Edwards * docs/html/faq/index.html (3.10): Add note about mips atomicity.h. @@ -459,7 +1247,7 @@ * testsuite/abi_check.cc (check_version): Update known versions. Check added symbols for version_name != base version. Add missing symbols to incompatible list. - + 2003-05-01 Benjamin Kosnik * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline. @@ -553,7 +1341,7 @@ * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same. * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify. - + 2003-04-28 Paolo Carlini * include/std/std_streambuf.h (_M_buf_size): is currently @@ -587,7 +1375,7 @@ * po/Makefile.in, config.h.in, configure: Regenerate. 2003-04-28 Petur Runolfsson - + PR libstdc++/9523 * include/bits/ios_base.h (Init::_S_ios_create, Init::_S_ios_destroy): Remove declarations. @@ -609,12 +1397,12 @@ 2003-04-28 Benjamin Kosnik * testsuite/27_io/objects/char/8.cc: New test. - + 2003-04-28 Benjamin Kosnik * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage. * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same. - + 2003-04-27 Benjamin Kosnik * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to @@ -628,7 +1416,7 @@ * include/bits/streambuf.tcc: Same. * include/bits/fstream.tcc: Same. * include/bits/sstream.tcc: Same. - + 2003-04-27 Benjamin Kosnik * include/bits/locale_classes.h (locale::_Impl): Change _M_names @@ -643,7 +1431,7 @@ * src/localename.cc: Use them. (locale::_Impl::~_Impl): Destroy _M_names. (locale::_Impl::_Impl): Create _M_names. - + 2003-04-27 Andreas Schwab * config/locale/ieee_1003.1-2001/codecvt_specializations.h @@ -661,7 +1449,7 @@ replace(size_type, size_type, const _CharT*, size_type)): Move from here to... * include/bits/basic_string.tcc: ...here. - + 2003-04-26 Paolo Carlini * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines) @@ -676,19 +1464,19 @@ * include/std/std_sstream.h (setbuf): don't set _M_buf_size, in basic_stringbuf it's unused. - + * include/std/std_sstream.h (underflow): consistently use _M_in_cur, not gptr(). 2003-04-25 Ranjit Mathew Phil Edwards - + * testsuite_flags.in: Guard against the possibility of having "xgcc" as a part of a folder name in the path to the GCC build folder. * testsuite/Makefile.am: Likewise. * testsuite/Makefile.in: Regenerated. - + 2003-04-25 Benjamin Kosnik PR libstdc++/10132 @@ -697,27 +1485,27 @@ (basic_filebuf::close): Same. (basic_filebuf::_M_pback_destroy): Same. (basic_filebuf::_M_destroy_internal_buffer): Same. - (basic_filebuf): Remove __res_type typedef. + (basic_filebuf): Remove __res_type typedef. * src/fstream.cc: Same. * include/bits/fstream.tcc (basic_filebuf::_M_convert_to_external): Simplify. (basic_filebuf::seekoff): Use has_facet before use_facet. (basic_filebuf::close): Add exception specification of throw(). * testsuite/27_io/basic_filebuf/cons: New. - * testsuite/27_io/basic_filebuf/cons/wchar_t: New. - * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New. + * testsuite/27_io/basic_filebuf/cons/wchar_t: New. + * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New. * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New. * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New. 2003-04-25 Benjamin Kosnik - + * include/bits/locale_classes.h (locale::_S_extra_categories_size): Remove. * src/locale.cc: Remove _S_extra_categories_size. * src/localename.cc: Same. * config/locale/gnu/c_locale.cc: Same. * config/locale/generic/c_locale.cc: Same. - + 2003-04-24 Richard Sandiford * src/localename.cc (__gnu_cxx::facet_vec): Correct types. @@ -767,9 +1555,9 @@ * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions. * configure: Regenerated. - + 2003-04-23 Benjamin Kosnik - + * config/locale/generic/c_locale.h (__convert_from_v): Use attribute unused. @@ -967,7 +1755,7 @@ * testsuite/thread/pthread4.cc: Same. * testsuite/thread/pthread5.cc: Same. * testsuite/thread/pthread6.cc: Same. - + 2003-04-15 Loren J. Rittle libstdc++/7680 @@ -985,12 +1773,12 @@ * testsuite/26_numerics/c_math_dynamic.cc: New file. 2003-04-14 Andreas Tobler - Benjamin Kosnik + Benjamin Kosnik * config/os/generic/ctype_inline.h: Fix. - + 2003-04-14 Benjamin Kosnik - + * testsuite/testsuite_hooks.h (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher): Change to try_named_locale. @@ -1135,9 +1923,9 @@ * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same. * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same. * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same. - + 2003-04-14 Andreas Tobler - + * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses solaris includes, not generic. @@ -1181,7 +1969,7 @@ Remove _M_buf_size_opt, use directly _M_buf_size instead. * include/bits/fstream.tcc (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove - references to _M_buf_size_opt. + references to _M_buf_size_opt. * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise. * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename __bufsize to __in_avail and __size_opt to __buf_size. @@ -1224,12 +2012,12 @@ * testsuite/22_locale/locale/cons/3.cc: Split. * testsuite/22_locale/locale/cons/7222-c.cc: New. - * testsuite/22_locale/locale/cons/7222-env.cc: New. + * testsuite/22_locale/locale/cons/7222-env.cc: New. Check before trying to create a locale from the environment. * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale. * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc: Adjust includes. - + 2003-04-11 Benjamin Kosnik * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic @@ -1241,7 +2029,7 @@ instantiation for AIX. * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same. * testsuite/25_algorithms/min_max.cc: Same. - + 2003-04-10 John David Anglin * basic_file_stdio.cc (__basic_file::close): Don't flush stream @@ -1615,13 +2403,13 @@ * include/std/std_streambuf.h (basic_streambuf::setp): Set _M_out_lim. - + * include/std/std_sstream.h (basic_strinbuf::str): Zero length output string shouldn't core. (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn type. * include/bits/sstream.tcc: Adjust _M_really_sync bits here. - + * include/bits/istream.tcc (basic_istream::putback): Set gcount to zero. @@ -1629,13 +2417,13 @@ * testsuite/data: New directory. * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify - to copy files from the testsuite data directory. + to copy files from the testsuite data directory. (libstdc++-v3-list-sourcefiles): Add another test list filter, for testfiles containing _xin, which now means this is an interactive test and should be run with the interactive dejagnu hooks. * testsuite/Makefile.am: Remove testsuite_* files. * testsuite/Makefile.in: Regenerate. - + 2003-04-09 Zack Weinberg * docs/html/install.html: Document complete list of locales @@ -2422,7 +3210,7 @@ (basic_streambuf()): Initialize _M_out_lim too. * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak. * testsuite/27_io/filebuf_virtuals.cc (test11): Add. - * testsuite/27_io/stringbuf_virtuals.cc (test09): Add. + * testsuite/27_io/stringbuf_virtuals.cc (test09): Add. 2003-02-24 Benjamin Kosnik