X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=libstdc%2B%2B-v3%2FChangeLog;h=37a8457dfe068e7e11698dab1d473b544cb5f0d0;hp=efbefbd8bd6936b1d0ce5391a9e3a59388e43c8f;hb=afbc32a0cd7033ca84946f39440129c49b49054e;hpb=ab51bd9094994e05f641597099c103f3b0edeb69 diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index efbefbd8bd6..37a8457dfe0 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,1126 @@ +2001-07-25 H.J. Lu + + * configure.target (cpu_include_dir): Set to `config/cpu/mips' + for mips. + + * config/cpu/mips/bits/atomicity.h: New. + +2001-07-25 Gabriel Dos Reis + + * acinclude.m4: CHECK_MATH_DECL_AND_LINKAGE for hypot, hypotf, + hypotl, atan2f, atan2l. Remove from REPLACE_MATHFUNCS list. + * aclocal.m4: Regenerate. + * config.h.in: Likewise. + * configure: Likewise. + * libmath/Makefile.am (EXTRA_LONG_DOUBLE_yes): Remove hypotl.c + (EXTRA_DIST): Remove hypot.c hypotf.c. + * libmath/Makefile.am: Regenerate. + * libmath/hypotf.c: Remove. + * libmath/hypot.c: Likewise. + * libmath/hypotl.c: Likewise. + * libmath/stubs.c: The macros seen here are HAVE_xxx, not + _GLIBCPP_HAVE_xxx. Add long double versions. + +2001-07-23 David Edelsohn + + * include/bits/limits_generic.h (int): Set digits and digits10 + appropriately for word size. + (unsigned int,long,unsigned long): Likewise. + +2001-07-19 Peter Schmid + + * include/bits/stl_algo.h : Fix typos. + * testsuite/25_algorithms/unique.cc: New file. + +2001-07-19 Phil Edwards + Mark Mitchell + + Merge from cp-parser-branch. + * include/bits/basic_string.h: Qualify symbols with 'template'. + * include/bits/basic_string.tcc: Likewise. + * include/bits/fstream.tcc: Likewise. + * include/bits/istream.tcc: Likewise. + * include/bits/sstream.tcc: Likewise. + * include/bits/std_istream.h: Likewise. + * include/bits/stl_iterator.h: Likewise. + * include/bits/streambuf.tcc: Likewise. + * src/gen-num-limits.cc: Add 'template<>' to specializations. + * src/locale.cc: Likewise. + +2001-07-19 Gabriel Dos Reis + Bert De Knuydt + + * src/gen-num-limits.cc (set_signals_handler): New function. + Factor out signals setting. Set signal handler for SIGILL. + +2001-07-18 Phil Edwards + + * docs/html/27_io/howto.html: Fix typo. + * docs/html/faq/index.html: Minor updates for 3.0 all around. + * docs/html/faq/index.txt: Regenerated. + +2001-07-18 Stephen M. Webb + Roman Sulzhyk + + libstdc++/3599 + * include/bits/ostream.tcc (ostream::put): Fixed error condition check. + * testsuite/27_io/streambuf.cc (test07): Added new regression test. + +2001-07-17 Stephen M. Webb r + + All occurrences of the __value_type() and __distance_type() + functions, which were required to support the HP STL, have been + removed along with all the auxiliary forwarding functions that + were required to support their use. + + The __iterator_category() function was pretty much left alone + because there was no benefit to removing it and its use made code + just a little more readable. + + Incidences of distance() with nonstandard argument list were + replaced by calls to the standard function (only in the files + affected by the removal of the other HP functions). + + The signature of the rotate() algorithm was changed to match the + standard. + + Headers were reformatted under C++STYLE guidelines (indentation, + linebreaks, typename keyword). + + * include/bits/stl_algo.h: replaced __value_type() and + __distance_type() with iterator_traits, eliminated auxiliary + support functions required to support said function usage. + Changed nonstandard distance() call to standard call. + + * include/bits/stl_algobase.h: Same. + * include/bits/stl_heap.h: Same. + * include/bits/stl_numeric.h: Same. + * include/bits/stl_uninitialized.h: Same. + * include/bits/stl_iterator_base_types.h (__value_type()): + Removed. + (__distance_type()): Removed. + (value_type()): Gone. + (distance_type()): Done in. + (iterator_category()): Hasta la vista, baby. + + * include/bits/stl_iterator_base_funcs.h (iterator_category()): + Replaced with __iterator_category(). + * include/backward/iterator.h: moved definition of value_type(), + distance_type(), and iterator_category() out of std:: and into + here. + * testsuite/23_containers/vector_ctor.cc (test03): New testcases. + * testsuite/23_containers/vector_modifiers.cc (test03): New testcases. + * testsuite/25_algorithms/rotate.cc: New testcase. + * testsuite/25_algorithms/copy.cc: New testcase. + * testsuite/25_algorithms/sort.cc: Same. + * testsuite/25_algorithms/heap.cc: Same. + * testsuite/25_algorithms/partition.cc: Same. + * testsuite/25_algorithms/binary_search.cc: Same. + * testsuite/26_numerics/sum_diff.cc: Ditto. + +001-07-17 Benjamin Kosnik + + * testsuite/README: Add notes on naming test cases. + * testsuite/22_locale/members.cc: Mark as xfail. + * testsuite/22_locale/numpunct_char_members.cc: Same. + +2001-07-16 Stephen M. Webb + + * acinclude.m4 (GLIBCPP_ENABLE_CHEADERS): Use glibcpp_srcdir when + setting C_INCLUDE_DIR. + * configure.in: Revert yesterday's LN_S change. + * aclocal.m4: Regenerate. + * configure: Regenerate. + +2001-07-15 Phil Edwards + + * configure.in: Temporarily force LN_S to copy instead of symlink. + * configure: Regenerate. + +2001-07-13 Phil Edwards + + * include/bits/std_sstream.h (basic_stringbuf::basic_stringbuf(string): + Initialize _M_string with pointer-and-size constructor, not just + pointer. Fix some comments. + * testsuite/21_strings/ctor_copy_dtor.cc (test03): New test. + * testsuite/27_io/stringbuf.cc (test02): Remove unused variable. + (test03): Add embedded-NUL tests. + + * mkcheck.in: When printing totals, match the order of the tests. + * include/bits/stringfwd.h: Use same declaration keywords. + * include/bits/std_iosfwd.h: Cosmetic spacing. + +2001-07-13 Stephen M. Webb + Loren J. Rittle + Phil Edwards + + * include/Makefile.am: New file encapsulating header generation rules. + * Makefile.am (SUBDIRS): Prepend 'include' directory. + * acinclude.m4: Moved/removed rules for building various headers. + * configure.in (AC_OUTPUT): Add include/Makefile. + * mkc++config: Removed. + + * testsuite_flags.in: Changed build-includes to match new scheme. + * mknumeric_limits: Likewise. + * libio/Makefile.am: Changed INCLUDES to maatch new header scheme. + * libmath/Makefile.am: Likewise. + * libsupc++/Makefile.am: Likewise. + * src/Makefile.am: Likewise; removed rules to build headers. + * libmath/mathconf.h: Changed #include'd header names to match. + * libmath/stubs.c: Likewise. + * src/gen-num-limits.cc: Likewise. + + * configure: Regenerated. + * config.h.in: Regenerated. + * aclocal.m4: Regenerated. + * Makefile.in: Regenerated. + * include/Makefile.in: Regenerated. + * libio/Makefile.in: Regenerated. + * libmath/Makefile.in: Regenerated. + * libsupc++/Makefile.in: Regenerated. + * src/Makefile.in: Regenerated. + * testsuite/Makefile.in: Regenerated. + +2001-07-11 Felix Natter + + * docs/html/17_intro/porting-howto.xml: Initial checkin of + master copy. + * docs/html/17_intro/porting-howto.html: check in v0.9.3 + +2001-07-11 Phil Edwards + + * docs/doxygen/run_doxygen: Don't keep output from previous run. + * docs/doxygen/user.cfg.in: Tweaks. + * include/bits/c++config: Documentation comments for Doxygen. + * include/bits/char_traits.h: Likewise. + * include/bits/limits_generic.h: Likewise. + * include/bits/std_stdexcept.h: Likewise. + * include/bits/stl_pair.h: Likewise. + * libsupc++/exception: Likewise. + * libsupc++/new: Likewise. + * libsupc++/typeinfo: Likewise. + * libmath/Makefile.am: Update and correct copyright. + +2001-07-10 Gabriel Dos Reis + + * acinclude.m4: Don't AC_REPLACE_MATHFUNCS expf and atan2f. + * aclocal.m4: Regenerate. + * configure: Same. + +2001-07-09 Phil Edwards + + * docs/html/configopts.html: Fix thinko. + * docs/html/27_io/howto.html: Fix thinko and HTML markup. + * include/bits/stl_iterator.h: Fix typo. + +2001-07-09 Phil Edwards + + * docs/html/explanations.html: New file. + * docs/html/configopts.html: Link to it to provide more notes + on cstdio. Minor markup and spacing fixes. + * docs/html/27_io/howto.html: Talk about sync_with_stdio. + +2001-07-09 Kriang Lerdsuwanakij + + * include/bits/valarray_meta.h (_Expr::operator+): Use qualified id + for _Expr template template argument. + (_Expr::operator-): Likewise. + (_Expr::operator~): Likewise. + (_Expr::operator!): Likewise. + (_DEFINE_EXPR_UNARY_OPERATOR): Likewise. + +2001-07-06 Gabriel Dos Reis + + * libmath/Makefile.am (EXTRA_DIST): Remove atan2f.c and expf.c + * libmath/Makefile.in: Regenerate. + * libmath/expf.c: Remove. + * libmath/atan2f.c: Likewise. + +2001-07-06 Daniel Jacobowitz + + * configure.in: Remove NATIVE, NULL_TARGET. + Set CANADIAN only for Canadian crosses. Set xcompiling + for both Canadian crosses and host-x-host crosses. + * configure: Regenerated. + +2001-07-06 Peter Schmid + + * include/bits/stl_vector.h (vector::_M_initialize_aux): Fix typo. + +2001-07-05 Jason Merrill + + * testsuite_flags.in (--build-includes): backward, not backwards. + +2001-07-04 Jeffrey Oldham + + * include/ext/ropeimpl.h (_Rope_RopeRep::_M_free_c_string): + Replace destroy by _Destroy. + (_Rope_RopeRep::_S_free_string): Likewise. + (rope::c_str()): Likewise. + * include/ext/slist (_Slist_base::_M_erase_after>): Likewise. + (_Slist_base::_M_erase_after): Likewise. + (slist::_M_create_node): Replace construct by _Construct. + (slist::pop_front): Replace destroy by _Destroy. + * include/ext/stl_hashtable.h (hashtable::_M_new_node): Replace + construct by _Construct. + (hashtable::_M_delete_node): Replace destroy by _Destroy. + * include/ext/stl_rope.h (rope::rope): Replace construct by + _Construct. + (rope::copy): Replace destroy by _Destroy. + +2001-07-03 Benjamin Kosnik + + * include/bits/localefwd.h: Format. + * include/bits/locale_facts.tcc (locale::combine): Adjust. + * src/locale.cc (locale::locale::(_Impl)): Don't call + _M_add_reference. + (locale::facet::_M_remove_reference): Simplify. + * src/globals.cc (locale_impl_c): New. Format. + (locale_c): New. + * src/ios.cc (ios_base::Init::Init): Increment _S_ios_base_init last. + +2001-07-02 Loren J. Rittle + + * acinclude.m4 (GLIBCPP_ENABLE_THREADS): Protect variable from shell + expansion (thanks to Alexandre Oliva). + * aclocal.m4: Regenerate. + * configure: Regenerate. + +2001-07-02 Benjamin Kosnik + + * src/locale.cc (locale::locale(const char*)): Make sure global + locales are initialized. + * include/bits/locale_facets.tcc (locale::combine): Refcout should + be zero, not one as it's return-by-value. + * testsuite/27_io/ios_base_callbacks.cc (test01): Don't check for + named locales here. + * testsuite/22_locale/ctor_copy_dtor.cc (test01): Instead, check + for it here. + (test02): Add test. + * libsupc++/eh_alloc.cc: Use climits, not limits.h. + +2001-07-02 Loren J. Rittle + + libstdc++/3284 + * acinclude.m4 (GLIBCPP_ENABLE_THREADS): Portability enhancement. + * aclocal.m4: Regenerate. + * configure: Regenerate. + +2001-07-02 Loren J. Rittle + + libstdc++/3243 + * acinclude.m4 (GLIBCPP_ENABLE_THREADS): Add relative path to + staged/installed area to support -I-. Document. + * aclocal.m4: Regenerate. + * configure: Regenerate. + +2001-07-02 Loren J. Rittle + + libstdc++/2211 + * src/ios.cc (ios_base::Init::_S_ios_create): Rename __bufsize to + __out_bufsize. Add __in_bufsize, document it and use it. + +2001-07-01 Stephen M. Webb + + * include/bits/stl_construct.h (construct): Remove. + (destroy): Remove. + (__destroy): Replaced by use of iterator_traits. + * include/bits/stl_deque.h: replaced HP iterator functions with + iterator_traits. + (construct): changed to _Construct. + (destroy): changed to _Destroy. + * include/bits/stl_tempbuf.h: Same. + * include/bits/stl_tree.h: Same. + * include/bits/stl_vector.h: Same. + * include/backward/iterator.h (construct): moved definition to here. + (destroy): Same. + +2001-06-29 Benjamin Kosnik + + * include/bits/locale_facets.tcc (locale::combine): Clone _Impl. + before replacing facet. + * include/bits/localefwd.h (locale::_Impl::_M_remove_reference): + Correct decrement. + * src/localename.cc (locale::_Impl): Correct ctor initialization + lists. Initialize ref count with one. Simplify. + * src/locale.cc: Add comment. + * testsuite/22_locale/numpunct.cc (test01): Add derivation test. + * testsuite/22_locale/numpunct_char_members.cc (test01): Add tests. + * testsuite/22_locale/members.cc (test02): Fix. + +2001-06-27 Phil Edwards + + * include/backward/algo.h: Add "GPL plus runtime exception" comment + block, this time for real. + * include/backward/algobase.h: Likewise. + * include/backward/alloc.h: Likewise. + * include/backward/bvector.h: Likewise. + * include/backward/defalloc.h: Likewise. + * include/backward/deque.h: Likewise. + * include/backward/function.h: Likewise. + * include/backward/hash_map.h: Likewise. + * include/backward/hash_set.h: Likewise. + * include/backward/hashtable.h: Likewise. + * include/backward/heap.h: Likewise. + * include/backward/iterator.h: Likewise. + * include/backward/list.h: Likewise. + * include/backward/map.h: Likewise. + * include/backward/multimap.h: Likewise. + * include/backward/multiset.h: Likewise. + * include/backward/pair.h: Likewise. + * include/backward/rope.h: Likewise. + * include/backward/set.h: Likewise. + * include/backward/slist.h: Likewise. + * include/backward/stack.h: Likewise. + * include/backward/strstream: Likewise. + * include/backward/tempbuf.h: Likewise. + * include/backward/tree.h: Likewise. + * include/backward/vector.h: Likewise. + * include/bits/pthread_allocimpl.h: Likewise. + * include/bits/std_algorithm.h: Likewise. + * include/bits/std_bitset.h: Likewise. + * include/bits/std_deque.h: Likewise. + * include/bits/std_functional.h: Likewise. + * include/bits/std_iterator.h: Likewise. + * include/bits/std_list.h: Likewise. + * include/bits/std_map.h: Likewise. + * include/bits/std_memory.h: Likewise. + * include/bits/std_numeric.h: Likewise. + * include/bits/std_queue.h: Likewise. + * include/bits/std_set.h: Likewise. + * include/bits/std_stack.h: Likewise. + * include/bits/std_utility.h: Likewise. + * include/bits/std_vector.h: Likewise. + * include/bits/stl_algo.h: Likewise. + * include/bits/stl_algobase.h: Likewise. + * include/bits/stl_alloc.h: Likewise. + * include/bits/stl_bvector.h: Likewise. + * include/bits/stl_construct.h: Likewise. + * include/bits/stl_deque.h: Likewise. + * include/bits/stl_function.h: Likewise. + * include/bits/stl_heap.h: Likewise. + * include/bits/stl_iterator.h: Likewise. + * include/bits/stl_iterator_base_funcs.h: Likewise. + * include/bits/stl_iterator_base_types.h: Likewise. + * include/bits/stl_list.h: Likewise. + * include/bits/stl_map.h: Likewise. + * include/bits/stl_multimap.h: Likewise. + * include/bits/stl_multiset.h: Likewise. + * include/bits/stl_numeric.h: Likewise. + * include/bits/stl_pair.h: Likewise. + * include/bits/stl_pthread_alloc.h: Likewise. + * include/bits/stl_queue.h: Likewise. + * include/bits/stl_raw_storage_iter.h: Likewise. + * include/bits/stl_relops.h: Likewise. + * include/bits/stl_set.h: Likewise. + * include/bits/stl_stack.h: Likewise. + * include/bits/stl_tempbuf.h: Likewise. + * include/bits/stl_threads.h: Likewise. + * include/bits/stl_tree.h: Likewise. + * include/bits/stl_uninitialized.h: Likewise. + * include/bits/stl_vector.h: Likewise. + * include/bits/type_traits.h: Likewise. + * include/ext/hash_map: Likewise. + * include/ext/hash_set: Likewise. + * include/ext/rope: Likewise. + * include/ext/ropeimpl.h: Likewise. + * include/ext/slist: Likewise. + * include/ext/stl_hash_fun.h: Likewise. + * include/ext/stl_hashtable.h: Likewise. + * include/ext/stl_rope.h: Likewise. + * src/bitset.cc: Likewise. + * src/strstream.cc: Likewise. + +2001-06-26 Benjamin Kosnik + + + libstdc++/3272 + * include/bits/streambuf.tcc (__copy_streambufs): Don't set eofbit. + * testsuite/27_io/ostream_inserter_other.cc (test04): Add test. + * testsuite/27_io/istream_extractor_other.cc: Fix. + +2001-06-26 Zoltan Hidvegi + + * acinclude.m4 (glibcpp_toolexeclibdir): Make multilib safe. + * aclocal.m4: Regenerate. + * configure: Regenerate. + +2001-06-26 Benjamin Kosnik + + * include/bits/stream_iterator.h (istream_iterator): Add copy ctor. + (ostream_iterator): Same. + * include/bits/stl_iterator.h (front_insert_iterator::operator=): + Change argument to const_reference. + (back_insert_iterator): Same. + +2001-06-26 Benjamin Kosnik + + * include/bits/sbuf_iter.h: Change to.. + * include/bits/streambuf_iterator.h: This. + * include/bits/stl_iterator.h: Take out of here... + * include/bits/stream_iterator.h: Add. + * src/Makefile.am (base_headers): Add streambuf_iterator, + stream_iterator.h + * src/Makefile.in: Regenerate. + * include/bits/std_string.h: Adjust includes. + * include/bits/basic_ios.h: Same. + * include/bits/locale_facets.tcc: Same. + * include/bits/std_iosfwd.h: Same. + + * include/bits/std_iterator.h: Add istream, ostream includes. + * include/bits/stl_iterator.h: Tweak. + * testsuite/24_iterators/ostream_iterator.cc: Add test. + * testsuite/24_iterators/istream_iterator.cc: Same. + * testsuite/23_containers/multiset.cc: Add iterator include. + +2001-06-26 Phil Edwards + + * acinclude.m4: Clean extraneous tabs, rewrap 'test' lines. + * aclocal.m4: Regenerate. + * configure: Regenerate. + +2001-06-26 Felix Natter + + * docs/html/17_intro/porting-howto.html: Fixed some errors. + +2001-06-26 Benjamin Kosnik + + * include/bits/stl_iterator.h (istream_iterator::operator->): Fix + return values. + (istream_iterator::operator*): Same. + +2001-06-26 Benjamin Kosnik + Alexandre Petit-Bianco + + * testsuite/21_strings/element_access.cc (test01): Chill Out Cafe + is on 41st, not 14th. + +2001-06-26 Benjamin Kosnik + + * include/bits/std_iterator.h: Include sbuf_iter.h via std_ios.h. + + * include/bits/stl_iterator.h (istream_iterator): Inherit from + iterator. + (ostream_iterator): Same. + * testsuite/24_iterators/istream_iterator.cc: New file. + * testsuite/24_iterators/ostream_iterator.cc: New file. + + * include/bits/sbuf_iter.h: Remove self typedef. + * testsuite/24_iterators/ostreambuf_iterator.cc: Add test. + * testsuite/24_iterators/istreambuf_iterator.cc: Add test. + + * include/bits/stl_iterator.h (reverse_iterator): Remove + extraneous typedefs. Add typename. + (__normal_iterator): Remove typedefs referring to self. Add typename. + (reverse_bidiretional_iterator): Remove, not longer required. + +2001-06-26 Gabriel Dos Reis + + * include/bits/stl_iterator.h (__normal_iterator<>): Qualify + dependent names with `typename'. Bring in various required + iterator_traits members. Can't imagine why that used to work. + +2001-06-25 Phil Edwards + Kurt Garloff + + PR libstdc++/3377 + * src/cmath.cc: New [version of an old] file; instantiate + __cmath_power to start with. + * src/Makefile.am (sources): Add cmath.cc (and alphabetize). + * Makefile.in: Regenerate. + * libio/Makefile.in: Regenerate. + * libmath/Makefile.in: Regenerate. + * libsupc++/Makefile.in: Regenerate. + * src/Makefile.in: Regenerate. + * testsuite/Makefile.in: Regenerate. + +2001-06-24 Gabriel Dos Reis + + * libmath/stubs.c: Fix thinko. + +2001-06-24 David Edelsohn + + * libmath/stubs.c (sqrtf): Define. + (tanf): Correct typo. + +2001-06-22 Benjamin Kosnik + + * include/bits/stl_iterator.h (reverse_iterator): Inherit from + iterator. + (back_insert_iterator): Same. + (front_insert_iterator): Same. + (insert_iterator): Same. + + * testsuite/20_util/raw_storage_iterator.cc: Modify. + * testsuite/24_iterators/reverse_iterator.cc: New file. + * testsuite/24_iterators/back_insert_iterator.cc: New file. + * testsuite/24_iterators/front_insert_iterator.cc: New file. + * testsuite/24_iterators/insert_iterator.cc: New file. + +2001-06-22 Phil Edwards + + * include/*: Revert comment/license change from yesterday for all + except libsupc++/unwind-cxx.h. + * src/bitset.cc: Likewise. + * src/strstream.cc: Likewise. + +2001-06-22 Gabriel Dos Reis + + * libmath/stubs.c: New file. + (tanhf): Fix typo. + (powf): Likewise. + + * libmath/Makefile.am (libmath_la_SOURCES): Add. + * libmath/Makefile.in. Regenerate. + +2001-06-21 Phil Edwards + + * include/backward/algo.h: Add "GPL plus runtime exception" comment. + * include/backward/algobase.h: Likewise. + * include/backward/alloc.h: Likewise. + * include/backward/bvector.h: Likewise. + * include/backward/defalloc.h: Likewise. + * include/backward/deque.h: Likewise. + * include/backward/function.h: Likewise. + * include/backward/hash_map.h: Likewise. + * include/backward/hash_set.h: Likewise. + * include/backward/hashtable.h: Likewise. + * include/backward/heap.h: Likewise. + * include/backward/iterator.h: Likewise. + * include/backward/list.h: Likewise. + * include/backward/map.h: Likewise. + * include/backward/multimap.h: Likewise. + * include/backward/multiset.h: Likewise. + * include/backward/pair.h: Likewise. + * include/backward/rope.h: Likewise. + * include/backward/set.h: Likewise. + * include/backward/slist.h: Likewise. + * include/backward/stack.h: Likewise. + * include/backward/strstream: Likewise. + * include/backward/tempbuf.h: Likewise. + * include/backward/tree.h: Likewise. + * include/backward/vector.h: Likewise. + * include/bits/pthread_allocimpl.h: Likewise. + * include/bits/std_algorithm.h: Likewise. + * include/bits/std_bitset.h: Likewise. + * include/bits/std_deque.h: Likewise. + * include/bits/std_functional.h: Likewise. + * include/bits/std_iterator.h: Likewise. + * include/bits/std_list.h: Likewise. + * include/bits/std_map.h: Likewise. + * include/bits/std_memory.h: Likewise. + * include/bits/std_numeric.h: Likewise. + * include/bits/std_queue.h: Likewise. + * include/bits/std_set.h: Likewise. + * include/bits/std_stack.h: Likewise. + * include/bits/std_utility.h: Likewise. + * include/bits/std_vector.h: Likewise. + * include/bits/stl_algo.h: Likewise. + * include/bits/stl_algobase.h: Likewise. + * include/bits/stl_alloc.h: Likewise. + * include/bits/stl_bvector.h: Likewise. + * include/bits/stl_construct.h: Likewise. + * include/bits/stl_deque.h: Likewise. + * include/bits/stl_function.h: Likewise. + * include/bits/stl_heap.h: Likewise. + * include/bits/stl_iterator.h: Likewise. + * include/bits/stl_iterator_base_funcs.h: Likewise. + * include/bits/stl_iterator_base_types.h: Likewise. + * include/bits/stl_list.h: Likewise. + * include/bits/stl_map.h: Likewise. + * include/bits/stl_multimap.h: Likewise. + * include/bits/stl_multiset.h: Likewise. + * include/bits/stl_numeric.h: Likewise. + * include/bits/stl_pair.h: Likewise. + * include/bits/stl_pthread_alloc.h: Likewise. + * include/bits/stl_queue.h: Likewise. + * include/bits/stl_raw_storage_iter.h: Likewise. + * include/bits/stl_relops.h: Likewise. + * include/bits/stl_set.h: Likewise. + * include/bits/stl_stack.h: Likewise. + * include/bits/stl_tempbuf.h: Likewise. + * include/bits/stl_threads.h: Likewise. + * include/bits/stl_tree.h: Likewise. + * include/bits/stl_uninitialized.h: Likewise. + * include/bits/stl_vector.h: Likewise. + * include/bits/type_traits.h: Likewise. + * include/ext/hash_map: Likewise. + * include/ext/hash_set: Likewise. + * include/ext/rope: Likewise. + * include/ext/ropeimpl.h: Likewise. + * include/ext/slist: Likewise. + * include/ext/stl_hash_fun.h: Likewise. + * include/ext/stl_hashtable.h: Likewise. + * include/ext/stl_rope.h: Likewise. + * libsupc++/unwind-cxx.h: Likewise. + * src/bitset.cc: Likewise. + * src/strstream.cc: Likewise. + +2001-06-21 Gabriel Dos Reis + + * include/bits/indirect_array.h (indirect_array<>::operator=): + Make copy and assignment operator public. Implement. Format. + + * include/bits/valarray_array.h (__valarray_copy): Add overloads + for copy between index arrays. Format. + +2001-06-19 Benjamin Kosnik + + * mknumeric_limits: Add static definitions, format. + * testsuite/18_support/numeric_limits.cc (test02): Add test. + + * include/c_std/bits/std_cwchar.h: Include ctime. + * testsuite/17_intro/header_cwchar.cc : Check. + + * include/c_std/bits/std_cwctype.h: Inject wctype. + * testsuite/17_intro/header_cwctype.cc: Update. + +2001-06-18 Benjamin Kosnik + + * include/bits/stl_raw_storage_iter.h: Format. Correct derivation. + * testsuite/20_util/raw_storage_iterator.cc: Same. + + * include/bits/stl_alloc.h (_S_chunk_alloc): Change malloc to + operator new. + (__mem_interface): New typedef for switching between malloc and new. + * testsuite/20_util/allocator_members.cc: New file. + + * testsuite/20_util/comparisons.cc: New file. + * testsuite/20_util/pairs.cc: New file. + +2001-06-15 Phil Edwards + + * docs/html/documentation.html: Point to new doxygen'ed collection. + +2001-06-14 Nathan Sidwell + + * configure.in (auxdir): Replace by ... + (toprel): ... new variable. + (toplevel_srcdir): Construct from $toprel. + * acinclude.m4 (GLIBCPP_ENABLE_THREADS): Use $toprel + rather than .. to locate gcc source directory. + (GLIBCPP_CONFIGURE): Replace $auxdir with $srcdir/$toprel. + * aclocal.m4, configure: Rebuilt. + +2001-06-13 John David Anglin + + (Approved by Mark and Benjamin. Applied by Loren.) + + * src/globals.cc: Define globals _GLIBCPP_mutex_init (), + _GLIBCPP_mutex_address_init (), _GLIBCPP_once, _GLIBCPP_mutex + and _GLIBCPP_mutex_address. + * include/bits/stl_threads.h (_STL_mutex_lock): Use above to provide + once-only runtime initialization of _M_lock mutex when + __GTHREAD_MUTEX_INIT_FUNCTION is defined. + (__STL_MUTEX_INITIALIZER): Provide initializer for _STL_mutex_lock + for __GTHREAD_MUTEX_INIT_FUNCTION case. + +2001-06-13 Gabriel Dos Reis + + * testsuite/26_numerics/slice_array_assignment.cc (main): New test. + + * include/bits/slice_array.h (slice_array<>::operator=): Make + public and implement. + (slice_array<>::slice_array): Make copy-constructor public. + + * include/bits/valarray_array.h (__valarray_copy): Add another + overload to copy between strided arrays. + +2001-06-13 Benjamin Kosnik + + * acinclude.m4 (GLIBCPP_CONFIGURE): Bump version to 3.0.0. + * aclocal.m4: Regenerate. + * configure: Regenerate. + * include/bits/c++config (__GLIBCPP__): Update date. + +2001-06-12 Benjamin Kosnik + + * include/bits/fpos.h (fpos::operator-): Don't return reference, + return original, non-modified version. + (fpos::operator+): Same. + * testsuite/27_io/fpos.cc: Add test. + +2001-06-12 Loren J. Rittle + + libstdc++/2071 + * porting.texi: Add documentation about libstdc++-v3-specific + macros that are currently included in os_defines.h files. + + * config/basic_file_stdio.h (sys_getc): New method. + (sys_ungetc): New method. + * include/bits/basic_file.h: (sys_getc): New method signature. + (sys_ungetc): New method signature. + + * include/bits/fstream.tcc (underflow): Add conditional code + paths which avoid using short seeks on streams (especially + useful when the stream might be interactive or a pipe). At + the moment, this alternate path only avoids seeking when the + ``buffer size'' of underflow() is 1 since the C standard only + guarantees buffer space for one ungetc (this technique could + be extended since *-*-solaris* supports buffering for 4 calls + to ungetc and *-*-*bsd* supports buffering limited only by + memory resources). Also, _GLIBCPP_AVOID_FSEEK must be defined + in a port's os_defines.h file for this alternate path to even + be considered. As a bonus, the idiom of using getc/ungetc + requires no system calls whereas fseek maps to one or two + system call(s) on many platforms. + + * config/os/bsd/freebsd/bits/os_defines.h (_GLIBCPP_AVOID_FSEEK): + Define it. + * config/os/solaris/solaris2.5/bits/os_defines.h + (_GLIBCPP_AVOID_FSEEK): Likewise. + * config/os/solaris/solaris2.6/bits/os_defines.h + (_GLIBCPP_AVOID_FSEEK): Likewise. + * config/os/solaris/solaris2.7/bits/os_defines.h + (_GLIBCPP_AVOID_FSEEK): Likewise. + +2001-06-12 Benjamin Kosnik + + * acinclude.m4 (GLIBCPP_CHECK_COMPILER_VERSION): Change to + AC_TRY_COMPILE, so that the built compiler is checked, and + bootstraps or cross compiles with an older compile still work. + * aclocal.m4: Regenerate. + * configure: Regenerate. + +2001-06-12 Benjamin Kosnik + + libstdc++/3142 + * include/bits/std_sstream.h: Add allocator_type, as per DR 251. + + libstdc++/3141 + * include/bits/istream.tcc (getline, get): Fix as per DR 243. + + libstdc++/3140 + * include/bits/std_bitset.h (bitset::set): Fix as per DR 186. + + libstdc++/3139 + * include/bits/limits_generic.h: Fix as per DR 184. + +2001-06-11 Benjamin Kosnik + + libstdc++/3126 + * include/bits/basic_string.h (string::compare): Adjust signatures + as per DR 5. + * include/bits/basic_string.tcc: And here. + + libstdc++/2346 + * config/c_io_stdio.h: Remove whitespace. + * testsuite/27_io/istream_seeks.cc (test03): Add regression. + (test02): Add regression. + * testsuite/27_io/istream_seeks-3.tst: New file. + +2001-06-11 Phil Edwards + + * README: Update to reflect reality. + * acinclude.m4: Update descriptions, fix typos. Comment changes only. + * configure.in: Make certain target_alias is set and subst'd for 2.50. + * aclocal.m4: Regenerate. + * configure: Regenerate (with 2.13). + +2001-06-11 Benjamin Kosnik + + libstdc++/3114 + * include/bits/ostream.tcc (ostream::seekp): Add error checking as + per DR 129. + * include/bits/istream.tcc (istream::seekg): Same. + * testsuite/27_io/istream_seeks.cc: Fix. + + libstdc++/3113 + * include/bits/stl_function.h (binder2nd): Fix as per DR 109. + (binder1st): Same. + * include/bits/std_queue.h: Add c++config.h. + * testsuite/20_util/binders.cc: New test. + +2001-06-11 Matthias Klose + Phil Edwards + + * docs/doxygen/run_doxygen (find_doxygen): Tweak version check. + (main script): Echo more information. + +2001-06-10 Benjamin Kosnik + + * include/c_std/bits/std_cwchar.h: Alphabetize. + * include/bits/char_traits.h: Tweak. + * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for + everything used by std_cwchar.h. + * aclocal.m4: Regenerate. + * configure.in: Regenerate. + * config.h.in: Regenerate. + +2001-06-10 Benjamin Kosnik + + * acinclude.m4 (GLIBCPP_ENABLE_C99): Add stdio.h checking. + Add checking for strtof, _Exit in stdlib.h + * aclocal.m4: Regenerate. + * configure.in: Regenerate. + * include/c_std/bits/std_cstdio.h: Alphabetize lists. + (snprintf): Put C99 functions into __gnu_cxx namespace. + (vfscanf): Same. + (vscanf): Same. + (vsnprintf): Same. + (vsscanf): Same. + * include/c_std/bits/std_cstdlib.h: Alphabetize lists. Put undefs + for C99 functions within _GLIBCPP_USE_C99 guard. + (_Exit): Same. + (strtof): Same. + (strtold): Same. + * include/bits/locale_facets.tcc: Check if C99 is enabled. + * include/c_std/bits/std_cwchar.h (__gnu_cxx): Put undefs within + C99 guard. + * include/c_std/bits/cmath.tcc: Formatting tweak. + * include/c_std/bits/std_cmath.h: Same. + +2001-06-10 Benjamin Kosnik + + * include/c_std/bits/std_cstdio.h: Include cstddef for size_t. + +2001-06-09 Alexandre Oliva + Stephen L Moshier + + * acinclude.m4 (AC_EXEEXT): Work around in case it expands to + nothing, as in autoconf 2.50. + * configure: Rebuilt. + +2001-06-09 Benjamin Kosnik + + * include/c_std/bits/std_cwchar.h: Remove size_t injection, + include std_cstddef. + * include/c_std/bits/std_ctime.h: Same. + * include/c_std/bits/std_cstring.h: Same. + * include/c_std/bits/std_cstdlib.h: Same. + + * include/c_std/bits/std_cstdio.h: Remove vsnprintf, snprintf. + * include/c_std/bits/std_cctype.h: Remove isblank. + +2001-06-09 Benjamin Kosnik + + * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for fgetwc, + fgetws. + * aclocal.m4: Regenerate. + * configure: Regenerate. + * include/c_std/bits/std_cwchar.h: Remove duplicate fgetwc + injection, guard fgetwc, fgetws. + * include/c_std/bits/std_cstdio.h: Remove superfluous includes. + * include/c_std/bits/std_clocale.h: And here. + * include/c_std/bits/std_cctype.h: And here. + * include/c_std/bits/std_cstdlib.h (strtof): Guard strtof injection. + + * config/basic_file_stdio.h: Don't include unistd.h. + * config/c_io_stdio.h: Don't use compatibility headers. + * libsupc++/eh_terminate.cc: Qualify abort. + (__terminate): And here. + * libsupc++/eh_catch.cc (__cxa_end_catch): Qualify abort. + +2001-06-08 Benjamin Kosnik + + * include/c_std/bits/std_cstdlib.h: Remove _Exit, strtof injections. + +2001-06-08 Benjamin Kosnik + + libstdc++/2767 + libstdc++/2989 + libstdc++/2992 + * include/std/*: Add copyright notice. + * include/c_std/bits/*: Use using statements instead of extern "C". + * include/c_std/bits/std_cmath.h: Don't overload double versions + of math functions with __buitin versions, use global version to + prevent ambiguities. Remove define hacks. + * include/c_std/bits/std_cwchar.h: Using declarations for "C" + functions that have changed signatures and std:: + declarations. Remove define hacks. + * include/c_std/bits/std_cwchar.h: Same, plus remove ambiguous + __builtins in std::. Remove define hacks. + * testsuite/17_intro/headers_c.cc: Add tests. + * testsuite/17_intro/headers_c++.cc: Add test. + +2001-06-07 Loren J. Rittle + John David Anglin + + c++/3082 + * libsupc++/eh_alloc.cc: Ensure that required macros are + defined before including gthr.h. Ensure that we get the + version of gthr.h for which we know how to provide a + configuration. + * libsupc++/eh_globals.cc: Likewise. And, bring the threading + code path into line with the current EH model. Use std, where + appropriate. + +2001-06-07 Loren J. Rittle + John David Anglin + + * config/threads-no.h: Remove file. + * config/threads-posix.h: Remove file. + + * acconfig.h (_GLIBCPP_USE_THREADS): Remove. + (_GLIBCPP_SUPPORTS_WEAK): Add (required by namespace-clean gthr*.h). + (_GLIBCPP_HAVE_GTHR_DEFAULT): Likewise. + * config.h.in: Regenerate. + + * acinclude.m4 (GLIBCPP_ENABLE_THREADS): Completely rework to + setup and use gthr*.h files. In particular, make gthr.h files + namespace-clean in the staging area (they don't have to be for + libgcc.a). + * aclocal.m4: Regenerate. + * configure: Regenerate. + + * src/Makefile.am (build_headers): Remove bits/c++threads.h + and add bits/gthr.h bits/gthr-single.h bits/gthr-default.h. + * src/Makefile.in: Regenerate. + + * include/bits/c++config: Cleanup threading configuration macros. + In particular, define __STL_GTHREADS macro which controls... + * include/bits/stl_threads.h: ...a brand new gthr.h-based + configuration here. + + * config/c_io_stdio.h: Include staged gthr.h instead of local + thread configuration file. Always use __gthread_mutex_t + instead of __mutext_type (or int). + * include/bits/std_fstream.h: Likewise. + + * docs/html/17_intro/howto.html: Remove placeholder comment in + case this configuration patch didn't make it. Add advice that + section only applies if configured with --enable-threads. + * docs/html/23_containers/howto.html: Reword to make clear + that _PTHREADS is no longer required for any port to be + correctly using STL with threads. Add advice that section + only applies if configured with --enable-threads. + +2001-06-06 Benjamin Kosnik + + * src/string-inst.cc (_Rep::_S_max_size): Add instantiation. + +2001-06-05 Benjamin Kosnik + + libstdc++/3045 + * include/bits/basic_ios.tcc: Formatting tweaks. + * include/bits/ios_base.h: Formatting tweaks. + * src/ios.cc (ios_base::Init::_S_ios_create): Use filebufs here. + (ios_base::Init::_S_ios_destroy): ..and here. Explicitly call dtors. + * src/globals.cc: Allocate filebufs for standard streams here. + (buf_cout, buf_cin, buf_cerr): Like so. + (buf_wcout, buf_wcin, buf_wcerr): And so. + * testsuite/27_io/ios_init.cc: Add. + +2001-06-04 Brendan Kehoe + Benjamin Kosnik + + libstdc++/3017 + * include/bits/locale_facets.h (ctype<_CharT>): Add definitions + for generic ctype virtuals. + * src/locale.cc: Minor tweaks, naming consistency. + * testsuite/22_locale/ctype.cc: Add test. + +2001-06-04 Kenny Simpson + Phil Edwards + + PR libstdc++/3035 and PR libstdc++/3036 + * include/bits/stl_pair.h: Fix pair ctor and make_pair according + to LWG DR 181 and 265. + +2001-06-04 Phil Edwards + + PR libstdc++/3034 + * include/bits/stl_multiset.h (find, lower_bound, upper_bound, + equal_range): Add const overloads as per LWG DR 214. + * include/bits/stl_set.h: Likewise. + +2001-06-04 Brendan Kehoe + Phil Edwards + + PR libstdc++/3018 + * include/bits/std_bitset.h (bitset::test): Fix __pos >= _Nb + comparison; all positions must be < _Nb. + * testsuite/23_containers/bitset_members.cc: New file. + +2001-06-04 Brendan Kehoe + + PR libstdc++/3016 + * include/bits/stl_queue.h (classes queue, priority_queue): Fix + ctors to match the standard. + +2001-06-04 Jeffrey Oldham + + * include/bits/char_traits.h (move): Reverse qualification of + memmove with std::. + (copy): Reverse qualification of memcpy with std::. + +2001-06-04 Jeffrey Oldham + + * include/bits/char_traits.h (move): Qualify memmove with std::. + (copy): Qualify memcpy with std::. + * testsuite/27_io/filebuf_virtuals.cc (test01): Qualify strlen and + strncmp with std::. + (test02): Likewise. + * testsuite/27_io/stringbuf_virtuals.cc (test01): Likewise. + +2001-06-04 Hans-Peter Nilsson + + * libsupc++/Makefile.am (install-glibcppinstallHEADERS, + uninstall-glibcppinstallHEADERS): Have explicit rules catering to + SUN make VPATH peculiarities. + * libsupc++/Makefile.in: Regenerate. + +2001-06-01 Hans-Peter Nilsson + + * src/Makefile.am (VPATH): Delimit with ":", not space. + * src/Makefile.in: Regenerate. + + * configure.in (use of GLIBCPP_CHECK_GNU_MAKE): Don't fail if GNU + make isn't found. + * configure: Regenerate. + +2001-05-31 scott snyder + + libstdc++/2976 + * include/bits/istream.tcc: Include std_ostream.h. + +2001-05-31 Benjamin Kosnik + + libstdc++/2997 + * src/bitset.cc: Qualify size_t with std::. + +2001-05-30 Benjamin Kosnik + + * acconfig.h (_GLIBCPP_BUGGY_FLOAT_COMPLEX): Remove. + (_GLIBCPP_BUGGY_COMPLEX): Remove. + * config.h.in: Regenerate. + * acinclude.m4 (GLIBCPP_CHECK_COMPLEX_MATH_COMPILER_SUPPORT): Remove. + * aclocal.m4: Regenerate. + * configure.in: Don't call it. + * configure: Regenerate. + + libstdc++/2970 + * src/complex_io.cc (operator<<(ostream&, const complex&): Fix. + * testsuite/26_numerics/complex_inserters_extractors.cc (test01): + New test. + + libstdc++/2985 + * include/bits/std_complex.h: Include sstream. Put definitions for + complex inserters and extractors here, and remove them from... + * src/complex_io.cc: ...here. + * include/bits/basic_ios.h (basic_ios::__numput_type): Add _Traits + parameter. + (basic_ios::__numget_type): Same. + * include/bits/std_istream.h: Same. + * include/bits/std_ostream.h: Same. + * include/bits/sbuf_iter.h (ostreambuf_iterator): Fix typo in base + class iterator template arguments. + * src/locale-inst.cc: Add explicit has_facet instantiations. + * include/bits/basic_ios.h (basic_ios::_M_get_fctype_ios): Remove. + (_M_get_fnumput): Remove. + (_M_get_fnumget): Remove. + (basic_ios::_M_check_facet): New function. + (basic_ios::_M_cache_facets): New function. + * include/bits/basic_ios.tcc: Definition for _M_cache_facets. + (basic_ios::imbue): Call _M_cache_facets. + (basic_ios::init): Same. + * include/bits/istream.tcc: Format, use _M_check_facet. + * include/bits/ostream.tcc: Same. + * include/bits/locale_facets.tcc (__output_float): Change + signature, add _Traits. + * testsuite/26_numerics/complex_inserters_extractors.cc (test02): + New test. + 2001-05-30 Loren J. Rittle * include/bits/c++config (__USE_MALLOC): Do not define it.