OSDN Git Service

2011-03-14 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
index cb03341..870fd9c 100644 (file)
@@ -1,3 +1,279 @@
+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.
        * testsuite/ext/is_heap/47709.cc: New.
 
 2011-02-12  Jakub Jelinek  <jakub@redhat.com>
-            Jonathan Wakely  <jwakely.gcc@gmail.com>
+           Jonathan Wakely  <jwakely.gcc@gmail.com>
 
        PR libstdc++/47662
        * testsuite/17_intro/headers/c++200x/operator_names.cc: New.
 
 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>