OSDN Git Service

2003-12-04 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
index 31a4765..3b7d183 100644 (file)
@@ -1,3 +1,119 @@
+2003-12-04  Benjamin Kosnik  <bkoz@redhat.com>
+
+       PR libstdc++/13284
+       * include/bits/stl_algo.h (__random_number): Remove.
+       (random_shuffle): Use rand, as permitted by DR 395.
+       * include/ext/algorithm: Same.
+       * linkage.m4 (GLIBCXX_CHECK_STDLIB_SUPPORT): Remove lrand48.
+       * acconfig.h: Same.
+       * crossconfig.m4: Remove HAVE_DRAND48, HAVE_LRAND48.
+       * config.h.in: Regenerated.
+       * configure: Same.
+       * aclocal.m4: Same.
+       
+2003-12-04  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/12653
+       * include/std/std_bitset.h (operator>>): Implement resolution
+       of DR 303 [WP]: use widen('0') and widen('1').
+       * docs/html/ext/howto.html: Add an entry for DR 303.
+
+       * include/std/std_bitset.h (operator>>): Implement the common
+       requirements of formatted input functions (27.6.1.2.1).
+
+       * include/std/std_bitset.h (operator>>): Set the failbit when
+       nothing was extracted and _Nb != 0.
+       * testsuite/23_containers/bitset/input/1.cc: New.
+
+2003-12-03  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/12791
+       * include/bits/locale_facets.tcc (time_get::_M_extract_num):
+       Rewrite, stop the parsing as soon as a digit cannot possibly
+       lead to a final number within the bounds; otherwise, simplify,
+       avoiding __ctype.is() and atoi().
+       * testsuite/22_locale/time_get/get_date/char/12791.cc: New.
+       * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: New.
+
+       * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
+       Minor tweak: a 4-digit integer cannot be bigger than 9999.
+
+       * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Use
+       type-correct wchar_t string literals.
+       * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
+       * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
+       * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
+       * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
+
+2003-12-02  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/locale_facets.tcc (time_get::do_get_year):
+       Avoid using a basic_string and calling a full blown strtol
+       (via __convert_to_v) for simple 2 or 4 digits, base 10,
+       positive integers; simplify.
+
+2003-12-02  Paolo Carlini  <pcarlini@suse.de>
+
+       * config/locale/gnu/monetary_members.cc
+       (money_base::_S_construct_pattern): For case 3: and 4:
+       exchanging 'if (__precedes)' and 'if (__space)' allows
+       to factor out a few more assignments.
+
+2003-12-01  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/bits/basic_ios.h (basic_ios::setstate): Revert.
+       * include/bits/istream.tcc: Only call setstate if __err != goodbit.
+       * include/bits/ostream.tcc: Same.
+       * testsuite/27_io/basic_ios/exceptions/char/2.cc: New.
+       
+       * testsuite/testsuite_io.h (__gnu_test::fail_streambuf): Make
+       internal buffer non-static.
+
+2003-12-01  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * docs/html/17_intro/C++STYLE: Add exception bits.
+       * include/bits/fstream.tcc: Add location info to exception strings.
+
+       * include/bits/stl_construct.h: Formatting tweaks.
+
+2003-12-01  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/10378
+       * include/bits/allocator.h (allocator::construct): Implement
+       resolution of DR 402 [Ready] (in Revision 28).
+       * include/bits/allocator_traits.h (__allocator::construct):
+       Likewise.
+       * include/bits/stl_construct.h (_Construct): Likewise.
+       * testsuite/20_util/allocator_members.cc: Move to...
+       * testsuite/20_util/allocator/1.cc: ... here.
+       * testsuite/20_util/allocator/10378.cc: New.
+       * docs/html/ext/howto.html: Add an entry for DR 402.
+
+2003-11-30  Paolo Carlini  <pcarlini@suse.de>
+
+       * config/locale/gnu/codecvt_members.cc (codecvt::do_in,
+       codecvt::do_length): More minor tweaks.
+
+2003-11-30  Paolo Carlini  <pcarlini@suse.de>
+
+       * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
+       Minor stylistic tweak.
+
+2003-11-30  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/locale_facets.tcc (num_put::do_put(..., bool)):
+       Minor tweaks, consistent with the style used in other facets.
+
+2003-11-29  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/fstream.tcc (underflow): Minor tweaks in
+       preparation for libstdc++/13217.
+
+2003-11-29  Paolo Carlini  <pcarlini@suse.de>
+
+       * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc:
+       Tweak for a few small problems (fix timings, use VERIFY..)
+
 2003-11-28  Paolo Carlini  <pcarlini@suse.de>
 
        * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: Remove.