OSDN Git Service

Add bug ID.
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
index afe93e7..c815979 100644 (file)
@@ -1,3 +1,424 @@
+2001-06-11  Phil Edwards  <pme@sources.redhat.com>
+
+       * 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  <bkoz@redhat.com>
+
+       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  <doko@debian.org>
+            Phil Edwards  <pme@sources.redhat.com>
+
+       * docs/doxygen/run_doxygen (find_doxygen):  Tweak version check.
+       (main script):  Echo more information.
+
+2001-06-10  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * 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  <bkoz@redhat.com>
+
+       * 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  <bkoz@redhat.com>
+
+       * include/c_std/bits/std_cstdio.h: Include cstddef for size_t.
+
+2001-06-09  Alexandre Oliva  <aoliva@redhat.com> 
+           Stephen L Moshier  <moshier@mediaone.net>
+
+       * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
+       nothing, as in autoconf 2.50.
+       * configure: Rebuilt.
+
+2001-06-09  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * 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  <bkoz@redhat.com>
+
+       * 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  <bkoz@redhat.com>
+
+       * include/c_std/bits/std_cstdlib.h: Remove _Exit, strtof injections.
+
+2001-06-08  Benjamin Kosnik  <bkoz@redhat.com>
+
+       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  <ljrittle@acm.org>
+           John David Anglin  <dave@hiauly1.hia.nrc.ca>
+
+       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  <ljrittle@acm.org>
+           John David Anglin  <dave@hiauly1.hia.nrc.ca>
+
+       * 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  <bkoz@redhat.com>
+
+       * src/string-inst.cc (_Rep::_S_max_size): Add instantiation.
+
+2001-06-05  Benjamin Kosnik  <bkoz@redhat.com>
+
+       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  <brendan@zen.org>
+           Benjamin Kosnik  <bkoz@redhat.com>
+       
+       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 <theonetruekenny@yahoo.com>
+            Phil Edwards  <pme@sources.redhat.com>
+
+       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  <pme@sources.redhat.com>
+
+       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  <brendan@zen.org>
+            Phil Edwards  <pme@sources.redhat.com>
+
+       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  <brendan@zen.org>
+
+       PR libstdc++/3016
+       * include/bits/stl_queue.h (classes queue, priority_queue):  Fix
+       ctors to match the standard.
+
+2001-06-04  Jeffrey Oldham  <oldham@codesourcery.com>
+
+       * include/bits/char_traits.h (move): Reverse qualification of
+       memmove with std::.
+       (copy): Reverse qualification of memcpy with std::.
+
+2001-06-04  Jeffrey Oldham  <oldham@codesourcery.com>
+
+       * 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  <hp@axis.com>
+
+       * 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  <hp@axis.com>
+
+       * 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  <snyder@fnal.gov>
+
+       libstdc++/2976
+       * include/bits/istream.tcc: Include std_ostream.h.
+
+2001-05-31  Benjamin Kosnik  <bkoz@redhat.com>
+
+       libstdc++/2997
+       * src/bitset.cc: Qualify size_t with std::.
+
+2001-05-30  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * 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  <ljrittle@acm.org>
+
+       * include/bits/c++config (__USE_MALLOC): Do not define it.
+       Document why not and give pointers to more information.
+
+       * docs/html/23_containers/howto.html: Update documentation
+       to reflect recent understanding of problem.
+       * docs/html/17_intro/howto.html: Likewise.
+
+2001-05-30  Phil Edwards  <pme@sources.redhat.com>
+
+       * docs/doxygen/user.cfg.in:  Minor addition.
+       * docs/html/documentation.html:  Reorganize.  Put most-looked-at
+       stuff first.
+       * docs/html/install.html:  Update for 3.0.  HTML fixups.
+       * docs/html/17_intro/howto.html:  Likewise.
+       * docs/html/18_support/howto.html:  Likewise.
+       * docs/html/19_diagnostics/howto.html:  Likewise.
+       * docs/html/20_util/howto.html:  Likewise.
+       * docs/html/23_containers/howto.html:  Likewise.
+       * docs/html/24_iterators/howto.html:  Likewise.  More notes.
+       * docs/html/25_algorithms/howto.html:  Likewise.
+       * docs/html/26_numerics/howto.html:  Likewise.  More notes.
+       * docs/html/27_io/howto.html:  Likewise.
+       * docs/html/ext/howto.html:  Likewise.
+       * docs/html/faq/index.html:  Likewise.
+       * docs/html/faq/index.txt:  Regenerate.
+       * docs/html/27_io/iostreams_hierarchy.pdf:  Remove in favor of
+       Doxygen-created documentation.
+
+2001-05-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+        * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Use
+        get_multilibs to find gcc.
+       
+2001-05-30  Phil Edwards  <pme@sources.redhat.com>
+
+       * acinclude.m4 (GLIBCPP_ENABLE_C99):  Reorder output messages.
+       * aclocal.m4:  Regenerate.
+       * configure:  Regenerate.
+
+2001-05-29  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
+       * include/c_std/bits/std_cstdlib.h:: Move C99 thingies to __gnu_cxx::. 
+       * include/c_std/bits/std_cwchar.h (__gnu_cxx): Likewise.
+2001-05-27  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
+
+       * include/c_std/bits/std_cmath.h: Move C99 functions in __gnu_cxx::.
+       * include/c_std/bits/std_cstdlib.h: Same.
+       * include/c_std/bits/std_cwchar.h: Same.
+
+2001-05-30  Loren J. Rittle  <ljrittle@acm.org>
+
+       * docs/html/17_intro/howto.html: Update link.
+       * docs/html/23_containers/howto.html: Likewise.  Add new link.
+
+2001-05-26  Gabriel Dos Reis  <gdr@codesourcery.com>
+
+       * include/c_std/bits/std_cmath.h (sqrt): #undef.
+       
+2001-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * mknumeric_limits: Stop if gen-num-limits dies.
+
+2001-05-25  Benjamin Kosnik  <bkoz@redhat.com>
+
+       other/2931
+       * acinclude.m4 (GLIBCPP_ENABLE_C99): Use AC_TRY_COMPILE.
+       * aclocal.m4: Regenerate.
+       * configure: Same.
+       
+2001-05-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+            Phil Edwards  <pme@sources.redhat.com>
+           Alexandre Oliva  <aoliva@redhat.com>
+
+        * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Set glibcpp_srcdir
+        in an amd-safe manner. Revert glibcpp_prefixdir.
+
+2001-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
+
+       * include/c_std/bits/std_cmath.h: Tweak.  #define away abs, cos,
+       fabs, sin, sqrt.  They are now implemented in terms of __builtin_
+       variants. 
+
+2001-05-24  Benjamin Kosnik  <bkoz@redhat.com>
+
+       libstdc++/2830
+       * testsuite/21_strings/inserters_extractors.cc (test09): New test.
+       * include/bits/ostream.tcc: Format to match istream.tcc.
+       (operator<<(basic_ostream __out, const basic_string __s)): Fix.
+       
+2001-05-24  Phil Edwards  <pme@sources.redhat.com>
+
+       * libsupc++/eh_alloc.cc (__cxa_allocate_exception):  Qualify
+       malloc with std:: .
+       (__cxa_free_exception):  Likewise with free.
+
+2001-05-24  Mark Mitchell  <mark@codesourcery.com>
+
+       * include/c_std/bin/std_cstring.h: #define away all global
+       functions we will redeclare in namespace `std'.
+       * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Use
+       std::memset, instead of memset.
+       * testsuite/19_diagnostics/stdexceptions.cc: Use `std::strcmp',
+       not plain `strcmp'.
+       * testsuite/21_strings/c_strings.cc: Use `std::strcpy' instead of
+       plain `strcpy'.
+       
 2001-05-24  Benjamin Kosnik  <bkoz@redhat.com>
 
        libstdc++/2832