OSDN Git Service

* libsupc++/eh_alloc.cc: Ensure that required macros are
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
index dc4ea06..724b5b9 100644 (file)
@@ -1,3 +1,251 @@
+2001-06-07  Loren J. Rittle  <ljrittle@acm.org>
+           John David Anglin  <dave@hiauly1.hia.nrc.ca>
+
+       * 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.