OSDN Git Service

* config/locale/c_locale_generic.cc: Fix typename usage.
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
index 4ae0797..c7f4d2b 100644 (file)
@@ -1,3 +1,449 @@
+2002-01-23  Loren Rittle <ljrittle@acm.org>
+
+        * config/locale/c_locale_generic.cc: Fix typename usage.
+
+2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * config/locale/c_locale_generic.cc: Fix.
+
+2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * docs/html/22_locale/messages.html: Remove angle brackets.
+       * docs/html/17_intro/TODO: Add.
+       
+2002-01-22  Paolo Carlini  <pcarlini@unitus.it>
+
+       * testsuite/27_io/ios_manip_basefield.cc: Enable test02.
+       * testsuite/27_io/ostream_inserter_arith.cc: Enable test03.
+       * testsuite/27_io/ostream_inserter_char.cc: Enable test01.
+       * testsuite/27_io/ostream_inserter_other.cc: Enable test04.
+
+2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
+
+       Audit for LANG independence.
+       * include/bits/localefwd.h: Tweaks.
+       * include/bits/locale_facets.tcc (money_get::do_get(long double)):
+       Use __convert_to_v.
+       (time_get::do_get_year): Same.
+       (__convert_from_v): Add.
+       (num_put::_M_convert_float): Use.
+       (num_put::_M_convert_int): Same.
+       (money_put::do_put): Same.
+       
+       * src/locale-inst.cc: Add instantiations for __convert_from_v.
+       * config/locale/time_members_gnu.cc: Cleanup setlocale usage.
+       * config/locale/time_members_generic.cc: 
+       * config/locale/messages_members_gnu.cc: Same.
+       * config/locale/messages_members_gnu.h: Same.
+       
+       * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test02): New.
+       * testsuite/22_locale/codecvt_members_char_char.cc (test02): New.
+       * testsuite/22_locale/collate_members_wchar_t.cc (test02): New.
+       * testsuite/22_locale/collate_members_char.cc (test02): New.
+       * testsuite/22_locale/ctype_members_wchar_t.cc (test03): New.
+       * testsuite/22_locale/ctype_members_char.cc (test03): New.
+       * testsuite/22_locale/messages_members_char.cc (test02): New.
+       * testsuite/22_locale/moneypunct_members_wchar_t.cc (test02): New.
+       * testsuite/22_locale/moneypunct_members_char.cc (test02): New.
+       * testsuite/22_locale/money_get_members_wchar_t.cc (test04): New.
+       * testsuite/22_locale/money_get_members_char.cc (test04): New.
+       * testsuite/22_locale/money_put_members_wchar_t.cc (test04): New.
+       * testsuite/22_locale/money_put_members_char.cc (test04): New.
+       * testsuite/22_locale/numpunct_members_wchar_t.cc (test02): New.
+       * testsuite/22_locale/numpunct_members_char.cc (test02): New.
+       * testsuite/22_locale/time_put_members_wchar_t.cc (test03): New.
+       * testsuite/22_locale/time_put_members_char.cc (test03): New.
+       * testsuite/22_locale/time_get_members_wchar_t.cc (test07): New.
+       * testsuite/22_locale/time_get_members_char.cc (test07): New.
+       * testsuite/22_locale/num_get_members_wchar_t.cc (test03): New.
+       * testsuite/22_locale/num_get_members_char.cc (test03): New.
+       * testsuite/22_locale/num_put_members_wchar_t.cc (test03): New.
+       * testsuite/22_locale/num_put_members_char.cc (test03): New.
+
+       * testsuite/22_locale/time_get_members_char.cc: Fixups for global
+       locale issues.
+       * testsuite/22_locale/time_get_members_char.cc: Same.
+       
+2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
+
+       libstdc++/5280
+       * include/bits/localefwd.h: Tweak comments.
+       * include/bits/locale_facets.h (__convert_to_v): Add.
+       * include/bits/locale_facets.tcc (num_get::do_get(double)): Use it.
+       (num_get::do_get(float)): Same.
+       (num_get::do_get(long double)): Same.
+       (num_get::do_get(bool)): Same.
+       (num_get::do_get(long)): Same.
+       (num_get::do_get(long long)): Same.
+       (num_get::do_get(unsigned int)): Same.
+       (num_get::do_get(unsigned short)): Same.
+       (num_get::do_get(unsigned long)): Same.
+       (num_get::do_get(unsigned long long)): Same.
+       * config/locale/c_locale_gnu.cc (__convert_to_v): Specialize.
+       * config/locale/c_locale_generic.cc: Same.
+       
+2002-01-22  Loren Rittle <ljrittle@acm.org>
+
+       * include/Makefile.am (c_base_builddir): Remove redundant slash.
+       (std_builddir): Likewise.
+       (std_headers_rename): Fix cut-n-paste typo.
+       (install-data-local): Concat path per element instead of once to
+       first element of list.
+       * include/Makefile.in: Rebuilt.
+
+2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * config/os/aix/bits/ctype_noninline.h: Fix formatting.
+       * config/os/bsd/netbsd/bits/ctype_noninline.h: Fix typo.
+       * config/os/bsd/freebsd/bits/ctype_noninline.h: Fix formatting.
+
+2002-01-20  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/bits/locale_facets.h (ctype<char>::classic_table):
+       Remove definition.
+       (ctype<char>::_S_ctable): Remove.
+       * config/os/gnu-linux/bits/ctype_noninline.h
+       (ctype<char>::_S_table): Remove definition.
+       (ctype<char>::classic_table): Define.
+       (ctype<char>::ctype): Replace _S_ctable with classic_table().
+       * config/os/aix/bits/ctype_noninline.h: Same.
+       * config/os/bsd/freebsd/bits/ctype_noninline.h: Same.
+       * config/os/bsd/netbsd/bits/ctype_noninline.h: Same.
+       * config/os/djgpp/bits/ctype_noninline.h: Same.
+       * config/os/generic/bits/ctype_noninline.h: Same.
+       * config/os/gnu-linux/bits/ctype_noninline.h: Same.
+       * config/os/hpux/bits/ctype_noninline.h: Same.
+       * config/os/irix/irix5.2/bits/ctype_noninline.h: Same.
+       * config/os/irix/irix6.5/bits/ctype_noninline.h: Same.
+       * config/os/mingw32/bits/ctype_noninline.h: Same.
+       * config/os/newlib/bits/ctype_noninline.h: Same.
+       * config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
+       * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
+       * config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
+
+2002-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       * config/os/mingw32/bits/ctype_noninline.h: Declare _ctype instead
+       of _pctype. Use to define _S_ctable.  Add definition for alternate
+       ctor.  Initialise _M_ctable to _S_ctable in ctors.
+       (do_toupper, do_tolower): Use inline code appropriate for C-locale
+       rather than ::toupper, ::tolower.
+
+2002-01-18  Loren Rittle <ljrittle@acm.org>
+
+       * testsuite/18_support/numeric_limits.cc (test_extrema<long double>):
+       Add specialization for FreeBSD systems only to avoid losing test
+       only due to extra precision unmentioned in system headers.
+
+2002-01-18  David Billinghurst <David.Billinghurst@riotinto.com>
+
+       * config/os/irix/irix6.5/bits/ctype_noninline.h: Fix typo
+
+2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * testsuite/testsuite_hooks.h: Fix comment typo.  Memory
+       limiting is only attempted if _GLIBCPP_MEM_LIMIT is defined.
+
+2002-01-17  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
+       
+       * testsuite/22_locale/ctor_copy_dtor.cc: Remove check.
+
+2002-01-17  David Edelsohn  <edelsohn@gnu.org>
+
+       * configure.target: Define OPT_LDFLAGS for AIX case.
+
+2002-01-17  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
+
+       * include/std/std_limits.h (__glibcpp_float_has_quiet_NaN,
+       __glibcpp_double_has_quiet_NaN): Correct mispelling.
+
+2002-01-17  Andreas Tobler  <toa@pop.agri.ch>
+
+       * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Fix.
+
+2002-01-16  David Edelsohn  <dje@watson.ibm.com>
+
+       * acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Do not clear
+       SECTION_LDFLAGS and OPT_LDFLAGS.  Fix ac_sectionLDflags type.
+       * aclocal.m4: Regenerate.
+       * configure: Regenerate.
+       
+2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/Makefile.am (c_base_headers_rename): New.
+       (c_base_headers_extra): New.
+       (stamp-c_base): Modify.
+       (install-data-local): Use both.
+       * include/Makefile.in: Regenerate.
+       * include/c/[cctype ciso646 cmath cstdarg cstdlib cerrno climits
+       csetjmp cstddef cstring cwchar cassert cfloat clocale csignal
+       cstdio ctime cwctype]: Move to..
+       * include/c/std_*: Here.
+       * include/c_std/[cctype ciso646 cmath cstdarg cstdlib cerrno climits
+       csetjmp cstddef cstring cwchar cassert cfloat clocale csignal
+       cstdio ctime cwctype]: Move to..
+       * include/c_std/std_*: Here.
+
+       Alexandre Oliva  <aoliva@redhat.com>    
+       * include/Makefile.am (.PRECIOUS): Add rule.
+       * include/Makefile.in: Regenerate.
+       
+2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
+            Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
+       
+       * include/bits/stl_iterator.h (reverse_iterator::_M_current):
+       Deuglify, should be current.
+       (back_insert_iterator::_M_container): Deuglify, should be container.
+       (front_insert_iterator::_M_container): Same.    
+       (insert_iterator::_M_container): Same.
+       * testsuite/24_iterators/reverse_iterator.cc: Add check.
+       * testsuite/24_iterators/back_insert_iterator.cc: Add check.    
+       * testsuite/24_iterators/front_insert_iterator.cc: Same.
+       * testsuite/24_iterators/insert_iterator.cc: Same.
+       
+2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/bits/locale_facets.h (ctype<char>::classic_table): Make
+       static.
+       (ctype<char>::_M_ctable): Make static, change name to _S_ctable.
+       * config/os/gnu-linux/bits/ctype_noninline.h: Define _S_ctable.
+       * config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
+       * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
+       * config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
+       * config/os/newlib/bits/ctype_noninline.h: Same.
+       * config/os/irix/irix6.5/bits/ctype_noninline.h: Same.
+       * config/os/irix/irix5.2/bits/ctype_noninline.h: Same.
+       * config/os/hpux/bits/ctype_noninline.h: Same.
+       * config/os/djgpp/bits/ctype_noninline.h: Same.
+       * config/os/bsd/netbsd/bits/ctype_noninline.h: Same.
+       * config/os/bsd/freebsd/bits/ctype_noninline.h: Same.
+       * config/os/aix/bits/ctype_noninline.h: Same.
+       
+       Testcase by Dietmar Kühl via Peter Schmid 
+       * testsuite/22_locale/ctype_members_char.cc (char>): Add test for
+       classic_table().
+
+2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * libmath/signbitl.c: Copyright years as list, not range.       
+       * libmath/Makefile.am: Same.
+       * libmath/Makefie.in: Regenerate.
+       * libmath/signbit.c: Same.
+       * libmath/nan.c: Same.
+       * libmath/copysignf.c: Same.
+       * libmath/signbitf.c: Same.
+       * testsuite/22_locale/money_get_members_char.cc: Same.
+       * testsuite/22_locale/money_get_members_wchar_t.cc: Same.
+       * testsuite/22_locale/money_put_members_char.cc: Same.
+       * testsuite/22_locale/money_put_members_wchar_t.cc: Same.
+       * testsuite/22_locale/time_get_members_char.cc: Same.
+       * testsuite/22_locale/time_get_members_wchar_t.cc: Same.
+       * testsuite/22_locale/time_put_members_char.cc: Same.
+       * testsuite/22_locale/time_put_members_wchar_t.cc: Same.
+       * testsuite/21_strings/nonmember.cc: Same.
+       * testsuite/21_strings/compare.cc: Same.
+       * testsuite/27_io/stringstream.cc: Same.
+       * testsuite/27_io/stringbuf.cc: Same.
+       * testsuite/27_io/filebuf.cc: Same.
+       * testsuite/27_io/ios_manip_basefield.cc: Same.
+       * testsuite/27_io/ios_manip_fmtflags.cc: Same.
+       * include/bits/cpp_type_traits.h: Same.
+       * include/bits/generic_shadow.h: Same.
+       * include/bits/gslice_array.h: Same.
+       * include/bits/gslice.h: Same.
+       * include/bits/indirect_array.h: Same.
+       * include/bits/slice_array.h: Same.
+       * include/bits/sstream.tcc: Same.
+       * include/bits/streambuf_iterator.h: Same.
+       * include/bits/valarray_array.tcc: Same.
+       * include/bits/valarray_meta.h: Same.
+       * include/bits/valarray_array.h: Same.
+       * config/os/mingw32/bits/ctype_noninline.h: Same.
+       * config/os/mingw32/bits/ctype_base.h: Same.
+       * config/os/hpux/bits/ctype_noninline.h: Same.
+       * config/os/hpux/bits/ctype_base.h: Same.
+       * config/os/gnu-linux/bits/ctype_noninline.h: Same.
+       * config/os/gnu-linux/bits/ctype_base.h: Same.
+       * config/os/generic/bits/ctype_noninline.h: Same.
+       * config/os/generic/bits/ctype_base.h: Same.
+
+       * libsupc++/tinfo.h: Tweaks.
+
+2002-01-15  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/22_locale/num_put_members_wchar_t.cc (test02): Same.
+       * testsuite/22_locale/num_put_members_char.cc (test01): Tweak.
+       * testsuite/22_locale/ctype_members_char.cc: Tweak.     
+
+2002-01-15  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/bits/locale_facets.tcc (num_put::do_put(bool): Fix.
+       (num_put::do_put(void*)): Fix.
+       * testsuite/22_locale/num_put_members_char.cc (test02): Add.
+       * testsuite/22_locale/num_put_members_wchar_t.cc (test02): Add.
+       * testsuite/22_locale/num_get_members_char.cc (test02): Add
+       long double, void, bool types.
+       * testsuite/22_locale/num_get_members_wchar_t.cc (test02): Add.
+       
+2002-01-15  Benjamin Kosnik  <bkoz@redhat.com>
+           Alexandre Oliva  <aoliva@redhat.com>
+
+       * libmath/Makefile.am (LINK): Add --tag CC.
+       * libmath/Makefile.in: Regenerate.
+
+2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
+
+       * config/os/hpux/bits/ctype_noninline.h: Use __SB_masks for address
+       of character to attribute mapping table.
+
+2002-01-15  David Billinghurst <David.Billinghurst@riotinto.com>
+
+       * testsuite/26_numerics/c99_classification_macros_c.cc
+       Remove dg-error and dg-excess-errors comments.
+
+2002-01-14  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/bits/locale_facets.tcc (time_put::put): Correct output
+       iterator positions.
+       * testsuite/22_locale/time_put_members_char.cc (test02): Add.
+       * testsuite/22_locale/time_put_members_wchar_t.cc (test02): Add.
+       * testsuite/22_locale/time_get_members_wchar_t.cc (test06): Add.
+       * testsuite/22_locale/time_get_members_char.cc (test06): Add.
+
+2002-01-14  Craig Rodrigues  <rodrigc@gcc.gnu.org>
+
+       * docs/html/17_intro/porting-howto.xml: Update filebuf section.
+
+2002-01-14  Paolo Carlini  <pcarlini@unitus.it>
+           Nathan Myers  <ncm@cantrip.org>
+
+       * include/bits/basic_string.h
+       (replace(__pos, __n1, __s, __n2)): Optimize by avoiding
+       temporaries (i.e., call _M_replace_safe) when possible.
+       (replace(__pos, __n, __str)): Call replace(__pos, __n1, __s, __n2).
+       (replace(__pos, __n1, __s)): Call replace(__pos, __n1, __s , __n2).
+       (replace(__i1, __i2, __str)): Call replace(__i1, __i2, __s, __n).
+       (replace(__i1, __i2, __s)): Call replace(__i1, __i2, __s, __n).
+       (replace(__i1, __i2, __s, __n)): Call replace(__pos1, __n1, __s, __n2).
+       * include/bits/basic_string.tcc
+       (replace(__pos1, __n1, __str, __pos2, __n2)): Call
+       replace(__pos, __n1, __s, __n2).
+       * testsuite/21_strings/replace.cc (test03): New testcases.
+
+       * include/bits/basic_string.h (insert(__pos, __s, __n)):
+       Adjust comparison wrt overflow.
+       
+2002-01-12  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/Makefile.am (std_headers_rename): New variable.
+       (install-data-local): Use it.
+       * include/Makefile.in: Regenerate.
+       
+2002-01-12  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/bits/locale_facets.tcc (money_put::do_put(string):
+       Correct output iterator value.
+       * testsuite/22_locale/money_put_members_char.cc (test03): Add.
+       * testsuite/22_locale/money_put_members_wchar_t.cc: Same.
+       
+2002-01-11  Phil Edwards  <pme@gcc.gnu.org>
+
+       * include/Makefile.am, include/Makefile.in (stamp-std):  Fix typo from
+       previous commit.
+
+2002-01-11  Phil Edwards  <pme@gcc.gnu.org>
+
+       * include/Makefile.am (std_headers):  Update list with new names.
+       (stamp-std):  Link to standardized name.
+       * include/Makefile.in:  Regenerate.
+
+       * include/std/algorithm, include/std/bitset, include/std/complex,
+       include/std/deque, include/std/fstream, include/std/functional,
+       include/std/iomanip, include/std/ios, include/std/iosfwd,
+       include/std/iostream, include/std/istream, include/std/iterator,
+       include/std/limits, include/std/list, include/std/locale,
+       include/std/map, include/std/memory, include/std/numeric,
+       include/std/ostream, include/std/queue, include/std/set,
+       include/std/sstream, include/std/stack, include/std/stdexcept,
+       include/std/streambuf, include/std/string, include/std/utility,
+       include/std/valarray, include/std/vector:  Rename to...
+
+       * include/std/std_algorithm.h, include/std/std_bitset.h,
+       include/std/std_complex.h, include/std/std_deque.h,
+       include/std/std_fstream.h, include/std/std_functional.h,
+       include/std/std_iomanip.h, include/std/std_ios.h,
+       include/std/std_iosfwd.h, include/std/std_iostream.h,
+       include/std/std_istream.h, include/std/std_iterator.h,
+       include/std/std_limits.h, include/std/std_list.h,
+       include/std/std_locale.h, include/std/std_map.h,
+       include/std/std_memory.h, include/std/std_numeric.h,
+       include/std/std_ostream.h, include/std/std_queue.h,
+       include/std/std_set.h, include/std/std_sstream.h,
+       include/std/std_stack.h, include/std/std_stdexcept.h,
+       include/std/std_streambuf.h, include/std/std_string.h,
+       include/std/std_utility.h, include/std/std_valarray.h,
+       include/std/std_vector.h:  ...this.
+
+2002-01-11  Loren Rittle <ljrittle@acm.org>
+
+       * include/Makefile.am (extra_target_headers): New list of all
+       target files built with ad hoc naming rules.
+       (stamp-*): Handle LN_S failure in manner portable across make
+       implementations.
+       (install-data-local): Install header files from human-maintained
+       file lists and directory components instead of non-robust find.
+       * include/Makefile.in: Rebuilt.
+
+2002-01-11  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/bits/locale_facets.tcc (money_get::do_get(string)):
+       Check for zero-length negative sign before adding it to output
+       string.
+       (money_get::do_get(long double)): Return beg.
+       * testsuite/22_locale/money_get_members_char.cc (test02): Add
+       iterator checks.
+       * testsuite/22_locale/money_get_members_wchar_t.cc: Same.
+       
+2002-01-10  David Seymour  <seymour_dj@yahoo.com>
+
+       libstdc++/5331
+       * include/bits/locale_facets.h (num_get<>): Return advanced iterator
+       for _M_extract_float and _M_extract_int
+       * include/bits/locale_facets.tcc (num_get<>::_M_extract_float)
+       (num_get<>::_M_extract_int): Likewise, all callers changed
+       * testsuite/22_locale/num_get_members_char.cc: Testcase
+
+2002-01-09  Paolo Carlini <pcarlini@unitus.it>
+
+        * libsupc++/exception (bad_exception): Add comment.
+        * libsupc++/new (bad_alloc): Same.
+        * libsupc++/typeinfo (bad_cast, bad_typeid): Same.
+
+2002-01-09  Paolo Carlini <pcarlini@unitus.it>
+
+       libstdc++/3150: revert 2001-11-30 commit. DR266 only means
+       that the destructors should be removed from the descriptions
+       in the standard: writing them explicitly allows the vtable
+       heuristic to work. For additional information see:
+       http://gcc.gnu.org/ml/libstdc++/2002-01/msg00090.html
+       http://gcc.gnu.org/ml/libstdc++/2002-01/msg00110.html
+       http://gcc.gnu.org/ml/libstdc++/2002-01/msg00155.html
+       * libsupc++/exception (bad_exception::~bad_exception()):
+       Reintroduce declaration.
+       * libsupc++/new (bad_alloc::~bad_alloc()): Same.
+       * libsupc++/typeinfo (bad_cast::~bad_cast()): Same.
+       (bad_typeid::~bad_typeid()): Same.
+       * libsupc++/eh_exception.cc (bad_exception::~bad_exception()):
+       Reintroduce definition.
+       * libsupc++/new_handler.cc (bad_alloc::~bad_alloc()): Same.
+       * libsupc++/tinfo.cc (bad_cast::~bad_cast()): Same.
+       (bad_typeid::~bad_typeid()): Same.
+
+2002-01-09  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/Makefile.am (c_base_srcdir): Remove duplicate '/'.
+       * include/Makefile.in: Regenerate.
+       
 2002-01-09  Bo Thorsen  <bo@suse.co.uk>
 
        * config/cpu/x86-64/bits/cpu_limits.h (__glibcpp_long_bits): Add