X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libstdc%2B%2B-v3%2FChangeLog;h=5f3e3d7be81feb6bb09213ccf08090a8873472fb;hb=2a793f18526a05291129d30cab5a446d4d4c0946;hp=98158f93084278f6229cabb4f5412343ce95c07f;hpb=33c2c5afa93f8ddc9d0b6c4948296cea4c2b2ff5;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 98158f93084..5f3e3d7be81 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,476 @@ +2001-06-12 Loren J. Rittle + + libstdc++/2071 + * porting.texi: Add documentation about libstdc++-v3-specific + macros that are currently included in os_defines.h files. + + * config/basic_file_stdio.h (sys_getc): New method. + (sys_ungetc): New method. + * include/bits/basic_file.h: (sys_getc): New method signature. + (sys_ungetc): New method signature. + + * include/bits/fstream.tcc (underflow): Add conditional code + paths which avoid using short seeks on streams (especially + useful when the stream might be interactive or a pipe). At + the moment, this alternate path only avoids seeking when the + ``buffer size'' of underflow() is 1 since the C standard only + guarantees buffer space for one ungetc (this technique could + be extended since *-*-solaris* supports buffering for 4 calls + to ungetc and *-*-*bsd* supports buffering limited only by + memory resources). Also, _GLIBCPP_AVOID_FSEEK must be defined + in a port's os_defines.h file for this alternate path to even + be considered. As a bonus, the idiom of using getc/ungetc + requires no system calls whereas fseek maps to one or two + system call(s) on many platforms. + + * config/os/bsd/freebsd/bits/os_defines.h (_GLIBCPP_AVOID_FSEEK): + Define it. + * config/os/solaris/solaris2.5/bits/os_defines.h + (_GLIBCPP_AVOID_FSEEK): Likewise. + * config/os/solaris/solaris2.6/bits/os_defines.h + (_GLIBCPP_AVOID_FSEEK): Likewise. + * config/os/solaris/solaris2.7/bits/os_defines.h + (_GLIBCPP_AVOID_FSEEK): Likewise. + +2001-06-12 Benjamin Kosnik + + * acinclude.m4 (GLIBCPP_CHECK_COMPILER_VERSION): Change to + AC_TRY_COMPILE, so that the built compiler is checked, and + bootstraps or cross compiles with an older compile still work. + * aclocal.m4: Regenerate. + * configure: Regenerate. + +2001-06-12 Benjamin Kosnik + + libstdc++/3142 + * include/bits/std_sstream.h: Add allocator_type, as per DR 251. + + libstdc++/3141 + * include/bits/istream.tcc (getline, get): Fix as per DR 243. + + libstdc++/3140 + * include/bits/std_bitset.h (bitset::set): Fix as per DR 186. + + libstdc++/3139 + * include/bits/limits_generic.h: Fix as per DR 184. + +2001-06-11 Benjamin Kosnik + + libstdc++/3126 + * include/bits/basic_string.h (string::compare): Adjust signatures + as per DR 5. + * include/bits/basic_string.tcc: And here. + + libstdc++/2346 + * config/c_io_stdio.h: Remove whitespace. + * testsuite/27_io/istream_seeks.cc (test03): Add regression. + (test02): Add regression. + * testsuite/27_io/istream_seeks-3.tst: New file. + +2001-06-11 Phil Edwards + + * 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 + + 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 + Phil Edwards + + * docs/doxygen/run_doxygen (find_doxygen): Tweak version check. + (main script): Echo more information. + +2001-06-10 Benjamin Kosnik + + * 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 + + * 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 + + * include/c_std/bits/std_cstdio.h: Include cstddef for size_t. + +2001-06-09 Alexandre Oliva + Stephen L Moshier + + * acinclude.m4 (AC_EXEEXT): Work around in case it expands to + nothing, as in autoconf 2.50. + * configure: Rebuilt. + +2001-06-09 Benjamin Kosnik + + * 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 + + * 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 + + * include/c_std/bits/std_cstdlib.h: Remove _Exit, strtof injections. + +2001-06-08 Benjamin Kosnik + + 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 + John David Anglin + + 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 + John David Anglin + + * 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 + + * src/string-inst.cc (_Rep::_S_max_size): Add instantiation. + +2001-06-05 Benjamin Kosnik + + 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 + Benjamin Kosnik + + 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 + Phil Edwards + + 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 + + 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 + Phil Edwards + + 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 + + PR libstdc++/3016 + * include/bits/stl_queue.h (classes queue, priority_queue): Fix + ctors to match the standard. + +2001-06-04 Jeffrey Oldham + + * include/bits/char_traits.h (move): Reverse qualification of + memmove with std::. + (copy): Reverse qualification of memcpy with std::. + +2001-06-04 Jeffrey Oldham + + * 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 + + * 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 + + * 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 + + libstdc++/2976 + * include/bits/istream.tcc: Include std_ostream.h. + +2001-05-31 Benjamin Kosnik + + libstdc++/2997 + * src/bitset.cc: Qualify size_t with std::. + +2001-05-30 Benjamin Kosnik + + * 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 + + * 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 + + * 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 + + * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Use + get_multilibs to find gcc. + +2001-05-30 Phil Edwards + + * acinclude.m4 (GLIBCPP_ENABLE_C99): Reorder output messages. + * aclocal.m4: Regenerate. + * configure: Regenerate. + +2001-05-29 Gabriel Dos Reis + + * 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 + + * 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 + + * docs/html/17_intro/howto.html: Update link. + * docs/html/23_containers/howto.html: Likewise. Add new link. + +2001-05-26 Gabriel Dos Reis + + * include/c_std/bits/std_cmath.h (sqrt): #undef. + +2001-05-23 Rainer Orth + + * mknumeric_limits: Stop if gen-num-limits dies. + +2001-05-25 Benjamin Kosnik + + other/2931 + * acinclude.m4 (GLIBCPP_ENABLE_C99): Use AC_TRY_COMPILE. + * aclocal.m4: Regenerate. + * configure: Same. + +2001-05-24 Rainer Orth + Phil Edwards + Alexandre Oliva + + * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Set glibcpp_srcdir + in an amd-safe manner. Revert glibcpp_prefixdir. + +2001-05-25 Gabriel Dos Reis + + * 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 + + 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 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Qualify