OSDN Git Service

And retweak.
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
index 1847d4f..9ca9ce1 100644 (file)
@@ -1,3 +1,244 @@
+2003-05-06  Michael Ritzert <Ritzert@t-online.de>
+           Matt Kraai <kraai@alumni.cmu.edu>
+
+       * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
+       And retweak.
+
+2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
+
+       * configure.target (mips*): Use the generic atomicity.h by default.
+
+2003-05-05  Loren J. Rittle  <ljrittle@acm.org>
+           (Inspired by an alternate patch from Danny Smith.)
+
+       * include/bits/stl_threads.h (_Atomic_swap): Kill it...
+       (_Swap_lock_struct<>): ...and the horse it rode in on.
+       * src/globals.cc (_Swap_lock_struct<>): Likewise.
+       * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
+       member to support...
+       * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
+       visibility rules related to POSIX threads.
+       * testsuite/thread/pthread7-rope.cc: New test.
+
+2003-05-04  Paolo Carlini  <pcarlini@unitus.it>
+
+       * testsuite/21_strings/basic_string/find/char/3.cc: New
+       file, testing basic_string<char>::find_first_not_of.
+       * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
+       Likewise for basic_string<wchar_t>.
+
+2003-05-03  Loren J. Rittle  <ljrittle@acm.org>
+
+       * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
+
+2003-05-02  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/Makefile.am (CLEANFILES): Remove PCH files in target
+       directory.
+       * include/Makefile.in: Regenerate.
+
+2003-05-02  Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/std/std_sstream.h (str()): Tidy.
+
+2003-05-02  Nathan Myers  <ncm@cantrip.org>
+           Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
+
+2003-05-02  Jonathan Wakely  <redi@gcc.gnu.org>
+
+       * include/bits/basic_string.h (swap): Remove redundant template
+       parameters from declaration of non-template member function.
+
+2003-05-01  Phil Edwards  <pme@gcc.gnu.org>
+
+       * acconfig.h (_GLIBCPP_USE_NLS):  New symbol.
+       * configure.in:  Move libintl.h header test...
+       * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  ...to here.  Gather all
+       the NLS-related test results into one symbol.
+       * src/functexcept.cc:  Use it here.
+       * aclocal.m4, config.h.in, configure:  Regenerated.
+
+2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/bits/sstream.tcc (overflow): Instead of calling
+       str(), then _M_string.reserve, thus copying the contents
+       of the current buffer two times, just copy the latter in
+       a temporary, then use the 'swap trick'.
+
+2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/std/std_sstream.h (str()): Revert the best of the
+       previous 'improvement', incorrect due to the COW nature of
+       v3 basic_string; simplify.
+
+2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
+       type of __avail to ptrdiff_t to avoid signed-unsigned warning.
+
+2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * 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  <bkoz@redhat.com>
+
+       * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
+       * aclocal.m4: Regenerated.
+       * configure: Regenerated.
+
+2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
+       Const-ify some variables.
+       (basic_streambuf::xsputn): Likewise; change the type of some
+       variables to size_t.
+       (__copy_streambufs): Change some variables to size_t.
+
+2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/std/std_sstream.h (str()): Avoid constructing
+       a basic_string temporary not only when it would turn out
+       to be zero-sized but also when identical to the current
+       _M_string buffer.
+
+2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/ext/stdio_filebuf.h
+       (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
+       stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
+       Shorten a bit (-10 lines) by factoring out some code.
+
+2003-04-30  Phil Edwards  <pme@gcc.gnu.org>
+
+       * acinclude.m4:  Add bit missing from previous patch.
+       * aclocal.m4, configure:  Regenerated.
+
+2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
+
+       * docs/doxygen/mainpage.html:  Bring up to date.
+       * docs/doxygen/run_doxygen:  Cosmetic tweaks.  Work around a bug
+       in Doxygen.
+       * docs/doxygen/user.cfg.in:  Scanning the precompiled headers
+       breaks everything.  Don't scan them.
+       * docs/html/documentation.html:  Point to "Write after approval"
+       notes.
+
+2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
+
+       * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  Search for gettext outside
+       of libc if message translations are being used.  Fix info text in
+       xieee_1003.1-2001 case.
+       * aclocal.m4, configure:  Regenerate.
+
+2003-04-29 Joel Sherrill  <joel.sherrill@OARcorp.com>
+          Loren J. Rittle <ljrittle@acm.org>
+          Martin v. Loewis  <martin@v.loewis.de>
+
+       * config/cpu/i386/atomicity.h: New file.
+
+2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/bits/fstream.tcc (open): Change to single return.
+
+2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/std/std_sstream.h (underflow): Change to single return.
+
+2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/std/std_streambuf.h (_M_buf): is currently
+       used only for basic_filebuf, therefore move it there.
+       (basic_streambuf(), ~basic_streambuf()): Adjust.
+       * include/std/std_fstream.h (_M_buf): Moved here.
+       * include/std/std_sstream.h (setbuf): Don't set _M_buf,
+       is actually redundant for basic_stringbuf.
+       (_M_really_sync): Likewise.
+       * include/bits/fstream.tcc (basic_filebuf()): Adjust.
+       * include/bits/sstream.tcc (seekoff): Adjust.
+
+2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * src/localename.cc: Standardize exception strings.
+       * src/locale.cc: Same.
+       * src/ios.cc: Same.
+       * include/bits/basic_string.tcc: Same.
+       * include/bits/basic_ios.tcc: Same.
+       * include/std/std_bitset.h: Same.
+       * include/ext/ropeimpl.h: Same.
+       * include/bits/stl_vector.h: Same.
+       * include/bits/stl_deque.h: Same.
+       * include/bits/stl_bvector.h: Same.
+       * config/locale/generic/c_locale.cc: Same.
+       * config/locale/gnu/c_locale.cc: Same.
+       * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
+
+       * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
+       
+2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/std/std_streambuf.h (_M_buf_size): is currently
+       used only for basic_filebuf, therefore move it there.
+       (basic_streambuf(), ~basic_streambuf()): Adjust.
+       * include/std/std_fstream.h (_M_buf_size): Moved here.
+       * include/bits/fstream.tcc (basic_filebuf()): Adjust.
+
+2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/bits/streambuf.tcc (__copy_streambufs): Don't use
+       _M_buf_size (synced input is now correctly dealt with
+       elsewhere); when the output buffer is full don't fall back
+       to a snextc-sputc loop, call overflow instead.
+
+2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
+       the innermost 'if' by factoring out some code.
+
+2003-04-28  Phil Edwards  <pme@gcc.gnu.org>
+
+       * configure.in:  Test for libintl.h.
+       * include/bits/c++config:  Define __N for everybody.
+       * include/bits/basic_string.h, include/bits/stl_bvector.h,
+       include/bits/stl_deque.h, include/bits/stl_vector.h,
+       include/std/std_bitset.h:  Wrap all __throw* text with __N.
+       * po/Makefile.am (pot):  New rule, mostly working.
+       * src/functexcept.cc:  Call gettext on all __throw* arguments when
+       -fexceptions is in effect.
+       * po/Makefile.in, config.h.in, configure:  Regenerate.
+
+2003-04-28  Petur Runolfsson  <peturr02@ru.is>
+        PR libstdc++/9523
+        * include/bits/ios_base.h (Init::_S_ios_create,
+        Init::_S_ios_destroy):  Remove declarations.
+        (Init::_S_create_buffers,
+        Init::_S_destroy_buffers):  Declare
+        * src/ios.cc (Init::_S_ios_create):  Remove
+        (Init::_S_create_buffers):  Create buffers and add to streams.
+        (Init::_S_ios_destroy):  Rename to...
+        (Init::_S_destroy_buffers):  this.
+        (Init::Init):  Only construct streams once.
+        (Init::~Init):  Flush streams, don't destroy them.
+        (ios_base::sync_with_stdio):  Don't destroy streams, only buffers.
+        * testsuite/27_io/ios_base/sync_with_stdio/9523.cc:  New test.
+        * testsuite/27_io/objects/char/5.cc:  New test.
+        * testsuite/27_io/objects/char/5268.cc:  Avoid undefined behavior.
+        * testsuite/27_io/objects/char/6.cc:  New test.
+        * testsuite/27_io/objects/char/7.cc:  New test.
+
+2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
+
+        * testsuite/27_io/objects/char/8.cc:  New test.
+       
+2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
+       * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
+       
 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
 
        * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to