OSDN Git Service

2011-03-14 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
index ea2cdf0..870fd9c 100644 (file)
@@ -1,3 +1,482 @@
+2011-03-14  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * src/Makefile.am: Add functional.cc, shared_ptr.cc.
+       * src/Makefile.in: Regenerate.
+       * libsupc++/Makefile.am: Add nested_exception.cc.
+       * libsupc++/Makefile.in: Regenerate.
+       * src/system_error.cc: Add ctor and dtor definitions for error_category.
+       * src/functional.cc: New. Add dtor definition for bad_function_call.
+       * src/stdexcept.cc: Add dtor definitions for domain_error,
+       invalid_argument, length_error, out_of_range, range_error,
+       overflow_error, underflow_error.
+       * src/future.cc: Add dtor definition for __future_base::_Result_base.
+       * src/shared_ptr.cc: New. Add dtor definition for bad_weak_ptr.
+       * src/thread.cc: Add dtor for thread::_Impl_base.
+       * include/std/system_error: Adjust.
+       * include/std/stdexcept: Same.
+       * include/std/future: Same.
+       * include/std/functional: Same.
+       * include/std/thread: Same.
+       * include/bits/shared_ptr_base.h: Same.
+       * libsupc++/nested_exception.cc: New. Add dtor for nested_exception.
+       * libsupc++/nested_exception.h: Adjust.
+       * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line numbers.
+       * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Same.
+       * config/abi/pre/gnu.ver: Add new exports.
+
+       * include/bits/regex_compiler.h: Nest namespace versioning.
+       * include/bits/regex_grep_matcher.tcc: Same.
+       * include/bits/regex_grep_matcher.h: Same.
+       * include/bits/regex_cursor.h: Same.
+       * include/bits/regex_nfa.h: Same.
+       * include/bits/regex_nfa.tcc: Same.
+
+2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * doc/xml/manual/abi.xml: Replace docs.sun.com URLs by their OTN
+       equivalents.
+       * doc/html/manual/abi.html: Regenerate.
+
+2011-03-14  Tom Tromey  <tromey@redhat.com>
+
+       * python/libstdcxx/v6/printers.py (_use_gdb_pp): New global.
+       Try to import `gdb.printing' module.
+       (UniquePointerPrinter.__init__): Add 'typename' argument.
+       (StdSlistPrinter.__init__): Likewise.
+       (StdSlistIteratorPrinter.__init__): Likewise.
+       (StdVectorIteratorPrinter.__init__): Likewise.
+       (StdRbtreeIteratorPrinter.__init__): Likewise.
+       (StdDebugIteratorPrinter.__init__): Likewise.
+       (StdDequeIteratorPrinter.__init__): Likewise.
+       (StdStringPrinter.__init__): Likewise.
+       (RxPrinter, Printer): New class.
+       (libstdcxx_printer): New global.
+       (register_libstdcxx_printers): Rewrite.
+       (build_libstdcxx_dictionary): Rewrite.
+       (pretty_printers_dict): Remove.
+
+2011-03-14  Andrey Zholos  <aaz@althenia.net>
+
+       PR libstdc++/48114
+       * include/bits/random.h (geometric_distribution): Correct formula
+       in comment, per C++0x.
+       (geometric_distribution<>::param_type::param_type(double)): Fix check.
+       (geometric_distribution<>::param_type::_M_initialize):
+       Store log(1 - p).
+       * include/bits/random.tcc (geometric_distribution<>::operator()):
+       Fix computation.
+       (binomial_distribution<>::operator()): Likewise.
+
+2011-03-09  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * testsuite/util/testsuite_rvalref.h: Minor tweaks.
+
+2011-03-09  Jonathan Wakely  <redi@gcc.gnu.org>
+           Chris Jefferson  <chris@bubblescope.net>
+           Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * testsuite/util/testsuite_rvalref.h (rvalstruct_compare_by_value):
+       New.
+       * testsuite/25_algorithms/sort_heap/check_compare_by_value.cc:
+       Likewise.
+       * testsuite/25_algorithms/partial_sort/check_compare_by_value:
+       Likewise.
+       * testsuite/25_algorithms/stable_sort/check_compare_by_value.cc:
+       Likewise.
+       * testsuite/25_algorithms/sort/check_compare_by_value: Likewise.
+
+2011-03-09  Chris Jefferson  <chris@bubblescope.net>
+
+       PR libstdc++/48038
+       * include/bits/stl_algo.h (__merge_backward): Rename to
+       __move_merge_backward and change to always move rather than copy.
+       (__move_merge): New function similar to std::merge except values
+       are moved instead of copied.
+       (__merge_adaptive, __merge_sort_loop): Change from using std::merge
+       and __merge_backward to __move_merge and __move_merge_backward.
+
+2011-03-07  Jason Merrill  <jason@redhat.com>
+
+       * testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Adjust
+       expected errors.
+
+2011-03-07  Benjamin Kosnik  <bkoz@redhat.com>
+           Matthias Klose  <doko@ubuntu.com>
+           Jonathan Wakely  <redi@gcc.gnu.org>
+
+       PR libstdc++/47145
+       * acinclude.m4 (GLIBCXX_CONFIGURE_DOCBOOK): Define.
+       * configure.ac: Use it.
+       * doc/Makefile.am (XSL_STYLE_DIR): Set at configure time.
+       * configure: Regenerate.
+       * doc/Makefile.in: Regenerate.
+
+2011-03-04  Benjamin Kosnik  <bkoz@chula>
+
+       * src/Makefile.am (inst_sources): Make source instantion files
+       conditional.
+       (XTEMPLATE_FLAGS): Make -fno-implicit-templates conditional.
+       * src/Makefile.in: Regenerate.
+       * src/valarray-inst.cc: Move to..
+       * src/valarray.cc: ...this.
+       * acinclude.m4 (GLIBCXX_ENABLE_EXTERN_TEMPLATE]): Define.
+       * configure.ac (GLIBCXX_ENABLE_EXTERN_TEMPLATE): Use it.
+       * configure: Regenerate.
+       * include/Makefile.am (stamp-extern-template): Add.
+       * include/Makefile.in: Regenerate.
+
+       * doc/xml/manual/configure.xml: Document --enable-extern-template.
+
+       * include/bits/locale_classes.tcc: Adjust comment.
+       * include/bits/locale_facets.tcc: Same.
+       * include/bits/basic_ios.tcc: Same.
+       * include/bits/istream.tcc: Same.
+       * include/bits/codecvt.h: Same.
+       * include/bits/ostream.tcc: Same.
+       * include/bits/sstream.tcc: Same.
+       * include/bits/c++config: Same.
+       * include/bits/basic_string.tcc: Same.
+       * include/bits/ostream_insert.h: Same.
+       * include/bits/locale_facets_nonio.tcc: Same.
+       * include/bits/streambuf.tcc: Same.
+       * include/bits/allocator.h: Same.
+       * include/bits/fstream.tcc: Same.
+
+       * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust line numbers.
+
+2011-03-02  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/Makefile.am: Make clean fixups.
+       * testsuite/Makefile.in: Regenerate.
+
+2011-03-02  Marc Glisse  <marc.glisse@normalesup.org>
+
+       * include/std/ratio (ratio_less): Add comments.
+
+2011-03-02  Marc Glisse  <marc.glisse@normalesup.org>
+
+       PR libstdc++/47913
+       * include/std/ratio (ratio_add): Avoid denominator overflow.
+       * testsuite/20_util/ratio/operations/47913.cc: New.
+
+2011-02-28  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/20_util/hash/chi2_quality.cc: Use C++0x mode on simulators.
+       * testsuite/20_util/hash/quality.cc: Same.
+
+2011-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR libstdc++/47921
+       * include/std/streambuf (basic_streambuf<>::__safe_gbump,
+       __safe_pbump): Add.
+       * include/bits/streambuf.tcc (basic_streambuf<>::xgetn,
+       xputn): Use the latter.
+       * include/bits/streambuf_iterator.h: Likewise.
+       * src/strstream.cc: Likewise.
+       * src/streambuf.cc: Likewise.
+       * src/compatibility.cc: Likewise.
+       * src/istream.cc: Likewise.
+       * include/bits/fstream.tcc (basic_filebuf<>::xsgetn): Use setg
+       instead of gbump.
+       * include/std/sstream (basic_stringbuf<>::_M_pbump): Add.
+       * include/bits/sstream.tcc (basic_stringbuf<>::seekoff,
+       seekpos, _M_sync): Use setg, setp, and _M_pbump.
+       * config/abi/pre/gnu.ver: Tweak.
+
+2011-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * testsuite/20_util/ratio/comparisons/comp3.cc: New.
+
+2011-02-28  Marc Glisse  <marc.glisse@normalesup.org>
+
+       PR libstdc++/42622
+       * include/std/ratio (ratio_less): Reimplement to never overflow.
+       * testsuite/20_util/ratio/comparisons/comp2.cc: Extend.
+
+2011-02-24  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/18_support/type_info/fundamental.cc: New.
+
+       * testsuite/Makefile.am: Make clean fixups.
+       * testsuite/Makefile.in: Regenerate.
+
+2011-02-19  François Dumont  <francois.cppdevs@free.fr>
+
+       * include/debug/string (basic_string::insert): Add iterator check and
+       pass normal iterator to normal insert.
+       * include/debug/macros.h (__glibcxx_check_heap,
+       __glibcxx_check_heap_pred): Remove __glibcxx_check_valid_range,
+       already done.
+
+2011-02-17  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR libstdc++/47776
+       * testsuite/ext/vstring/hash/char/1.cc: Fix.
+       * testsuite/ext/vstring/hash/wchar_t/1.cc: Likewise.
+
+2011-02-17  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * include/bits/regex.h (basic_regex::traits_type): Add typedef.
+       (basic_regex::basic_regex(basic_regex&&)): Add noexcept.
+       (basic_regex::operator=(basic_regex&&)): Likewise.
+       (basic_regex::assign(basic_regex&&)): Likewise.
+       (operator==(sub_match,...)): Implement DR 1181.
+       (match_results::match_results(match_results&&)): Define.
+       (match_results::operator=(const match_results&)): Fix parameter type.
+       (match_results::operator=(match_results&&)): Define.
+
+2011-02-17  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       PR libstdc++/47724
+       * include/bits/regex_compiler.h (_Scanner::_M_advance): Do not treat
+       line anchors as metacharacters.
+       * testsuite/28_regex/basic_regex/ctors/47724.cc: New.
+
+2011-02-16  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR libstdc++/47773
+       * include/ext/vstring.h (hash<__gnu_cxx::__vstring>,
+       hash<__gnu_cxx::__wvstring>, hash<__gnu_cxx::__u16vstring>,
+       hash<__gnu_cxx::__u32vstring>): Add.
+       * testsuite/ext/vstring/hash/char/1.cc: New.
+       * testsuite/ext/vstring/hash/wchar_t/1.cc: Likewise.
+
+2011-02-16  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * include/bits/regex.h (match_results::format): Use char_traits.
+
+2011-02-16  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/std/atomic: Remove atomic_address, uplift to N3225.
+       * include/bits/atomic_0.h: Same.
+       * include/bits/atomic_2.h: Same.
+       * include/bits/atomic_base.h: Same.
+       * testsuite/29_atomics/atomic_address/*: Delete.
+
+2011-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * include/bits/regex.h (sub_match::sub_match): Add.
+       (match_results::ready): Add.
+       (match_results::empty): Adjust.
+       (match_results::length): Add missing dereference.
+       (match_results::operator[],prefix,suffix): Add debug mode checks.
+       (match_results::cend): Re-use end().
+       (match_results::format): Adjust signatures.
+       (operator==(match_results,match_results)): Implement.
+       * include/bits/regex_compiler.h (_Scanner_base): Use constexpr.
+       * include/bits/regex_constants.h (syntax_option_type): Likewise.
+       * include/bits/regex_grep_matcher.h: Fix comment typo.
+       (_SpecializedResults::_SpecializedResults): Simplify.
+       * include/bits/regex_cursor.h: Fix comment typo.
+       * include/bits/regex_nfa.h: Likewise.
+       * testsuite/28_regex/basic_regex/ctors/basic/string_range_01_02_03.cc:
+       Fix error code, remove xfail.
+       * testsuite/28_regex/basic_regex/ctors/extended/
+       string_range_01_02_03.cc: Likewise.
+
+2011-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * include/bits/regex_compiler.h: Remove unnecessary bind() calls.
+       * include/bits/regex_nfa.h: Remove unnecessary base classes.
+
+2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * configure: Regenerate.
+
+2011-02-12  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR libstdc++/47709
+       * include/ext/algorithm (is_heap): In C++0x mode import from
+       namespace std.
+       * testsuite/ext/is_heap/47709.cc: New.
+
+2011-02-12  Jakub Jelinek  <jakub@redhat.com>
+           Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       PR libstdc++/47662
+       * testsuite/17_intro/headers/c++200x/operator_names.cc: New.
+       * testsuite/17_intro/headers/c++1998/operator_names.cc: Add comment.
+
+2011-02-12  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * include/tr1/cmath (fabs): Define.
+       * include/tr1/complex (acos, asin, atan): Avoid duplicate definitions
+       in C++0x mode.
+
+2011-02-12  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * testsuite/tr1/headers/c++200x/complex.cc: New.
+
+2011-02-11  Johannes Singler  <singler@kit.edu>
+
+       PR libstdc++/47433
+       * include/parallel/losertree.h
+       (_LoserTreeUnguarded<>::__delete_min_insert):
+       Add missing "using std::swap;", as for other variants.
+
+2011-02-10  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * src/Makefile.am (sources): Add regex.cc.
+       * src/Makefile.in: Regenerate.
+       * src/regex.cc: New.
+       * include/bits/regex_error.h (error_type): Use constexpr.
+       (regex_error): Move ctor and dtor out of line.
+
+       * testsuite/28_regex/03_requirements: To...
+       * testsuite/28_regex/requirements: ... this.
+       * testsuite/28_regex/04_header: To...
+       * testsuite/28_regex/headers: ... this.
+       * testsuite/28_regex/05_constants: To...
+       * testsuite/28_regex/constants: ... this.
+       * testsuite/28_regex/06_exception_type: To...
+       * testsuite/28_regex/regex_error: ... this.
+       * testsuite/28_regex/07_traits: To...
+       * testsuite/28_regex/traits: ... this.
+       * testsuite/28_regex/08_basic_regex: To...
+       * testsuite/28_regex/basic_regex: ... this.
+       * testsuite/28_regex/09_sub_match: To...
+       * testsuite/28_regex/sub_match: ... this.
+       * testsuite/28_regex/10_match_results: To...
+       * testsuite/28_regex/match_results: ... this.
+       * testsuite/28_regex/11_algorithms: To...
+       * testsuite/28_regex/algorithms: ... this.
+       * testsuite/28_regex/12_iterators: To...
+       * testsuite/28_regex/iterators: ... this.
+
+2011-02-10  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       PR libstdc++/47662
+       * include/bits/c++config: Do not use alternative token.
+       * testsuite/17_intro/headers/c++1998/operator_names.cc: New.
+
+2011-02-10  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * src/future.cc (future_error_category::message): Handle no_state.
+
+2011-02-10  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * testsuite/23_containers/multimap/modifiers/erase/47628.cc: Do
+       not test in C++0x mode.
+       * testsuite/23_containers/map/modifiers/erase/47628.cc: Likewise.
+       * testsuite/20_util/headers/utility/synopsis.cc: Tweak to work
+       in C++0x mode too.
+
+2011-02-10  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * doc/xml/manual/status_cxx200x.xml: Update.
+       * doc/html/*: Regenerate.
+
+2011-02-10  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * doc/xml/manual/debug.xml: Improve data race docs.
+
+2011-02-09  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR libstdc++/47668
+       * include/debug/map.h (map): Remove unnecessary using-declaration.
+       * include/debug/multimap.h (multimap): Likewise.
+       * include/profile/map.h (map): Likewise.
+       * include/profile/multimap.h (multimap): Likewise.
+
+2011-02-09  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       PR libstdc++/43863
+       * libsupc++/guard.cc (recursive_init_error::~recursive_init_error):
+       Move to ...
+       * libsupc++/guard_error.cc: ... new file.
+       * libsupc++/Makefile.am: Update.
+       * libsupc++/Makefile.in: Regenerate.
+
+2011-02-09  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * include/std/future (packaged_task::operator bool): Rename to...
+       (packaged_task::valid): ...this.
+       * testsuite/30_threads/packaged_task/cons/1.cc: Adjust.
+       * testsuite/30_threads/packaged_task/cons/2.cc: Adjust.
+       * testsuite/30_threads/packaged_task/cons/move.cc: Adjust.
+       * testsuite/30_threads/packaged_task/cons/move_assign.cc: Adjust.
+       * testsuite/30_threads/packaged_task/cons/alloc.cc: Adjust.
+       * testsuite/30_threads/packaged_task/members/invoke.cc: Adjust.
+       * testsuite/30_threads/packaged_task/members/reset.cc: Adjust.
+       * testsuite/30_threads/packaged_task/members/reset2.cc: Adjust.
+       * testsuite/30_threads/packaged_task/members/swap.cc: Adjust.
+       * testsuite/30_threads/packaged_task/members/boolconv.cc: Remove.
+       * testsuite/30_threads/packaged_task/members/valid.cc: Add.
+
+2011-02-09  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * doc/xml/manual/io.xml: Fix typo.
+       * doc/html/manual/streambufs.html: Likewise.
+
+2011-02-09  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * config/abi/pre/gnu.ver: Fix.
+
+2011-02-08  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * doc/xml/manual/appendix_porting.xml: Add doc section.
+       * doc/xml/manual/appendix_contributing.xml: Split out doc bits to...
+       * doc/xml/manual/documentation_hacking.xml: ...here.
+
+       * doc/xml/manual/debug_mode.xml: Adjust.
+       * doc/xml/manual/prerequisites.xml: Adjust.
+       * doc/Makefile.am (xml_sources): Add dot files,
+       documentation_hacking.xml.
+       * doc/Makefile.in: Regenerate.
+
+       * doc/xml/manual/build_hacking.xml: Use absolute paths for images.
+       * doc/xml/images/confdeps.pdf: Add.
+
+       * doc/html/*: Regenerate.
+
+2011-02-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * doc/xml/gnu/fdl-1.2.xml: Remove.
+       * doc/xml/gnu/gpl-2.0.xml: Remove.
+       * doc/Makefile.am: Update.
+       * doc/Makefile.in: Regenerate.
+
+2011-02-07  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR libstdc++/47628
+       * include/bits/stl_tree.h (_Rb_tree::erase(iterator), erase(iterator,
+       iterator)): Add back in C++03 mode.
+       * testsuite/23_containers/map/modifiers/erase/47628.cc: New.
+       * testsuite/23_containers/multimap/modifiers/erase/47628.cc: Likewise.
+
+2011-02-07  Benjamin Kosnik  <bkoz@redhat.com>
+
+       PR libstdc++/47560 try two
+       * config/os/hpux/os_defines.h: Guard for C++.
+
+2011-02-07  Gerald Pfeifer  <gerald@pfeifer.com>
+
+       * doc/xml/faq.xml: Adjust link to bug database.
+       Remove old item on broken header files.
+
+2011-02-04  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/bits/regex_error.h (__throw_regex_error): Not inline.
+       * src/functexcept.cc: Add definition.
+       * config/abi/pre/gnu.ver: Export.
+
+2011-02-04  Ralf Corsépius <ralf.corsepius@rtems.org>
+
+       * crossconfig.m4 (GLIBCXX_CROSSCONFIG): Add *-rtems*.
+       * configure: Regenerate.
+
+2011-02-01  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR libstdc++/46914
+       * include/bits/atomic_0.h (_ATOMIC_STORE_, _ATOMIC_MODIFY_,
+       _ATOMIC_CMPEXCHNG_): Rename __v -> __w, and __m -> __n, to
+       avoid name conflicts.
+
+2011-02-01  Benjamin Kosnik  <bkoz@redhat.com>
+
+       PR libstdc++/47560
+       * config/os/hpux/os_defines.h: Remove use of macros on namespace.
+
 2011-02-01  Benjamin Kosnik  <bkoz@redhat.com>
 
        * scripts/run_doxygen: Allow doxygen 1.7.0 again.
 
 2011-01-31  Paolo Carlini  <paolo.carlini@oracle.com>
 
-        * doc/html/ext/lwg-active.html: Update to Revision D73.
-        * doc/html/ext/lwg-closed.html: Likewise.
-        * doc/html/ext/lwg-defects.html: Likewise.
-        * doc/xml/manual/intro.xml: Update status of issues 408, 539, 865.
+       * doc/html/ext/lwg-active.html: Update to Revision D73.
+       * doc/html/ext/lwg-closed.html: Likewise.
+       * doc/html/ext/lwg-defects.html: Likewise.
+       * doc/xml/manual/intro.xml: Update status of issues 408, 539, 865.
 
 2011-01-30  Benjamin Kosnik  <bkoz@redhat.com>