OSDN Git Service

* include/bits/atomic_base.h (__calculate_memory_order): Rename to...
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
index 48c3db2..bf5224e 100644 (file)
@@ -1,3 +1,155 @@
+2011-12-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * include/bits/atomic_base.h (__calculate_memory_order): Rename to...
+       (__cmpexch_failure_order): This, and rewrite as constexpr function.
+       (compare_exchange_strong, compare_exchange_weak): Use it.
+       * include/std/atomic (compare_exchange_strong, compare_exchange_weak):
+       Likewise.
+
+2011-12-07  François Dumont <fdumont@gcc.gnu.org>
+
+       PR libstdc++/51386
+       * include/bits/hashtable_policy.h (_Prime_rehash_policy::_M_next_bkt):
+       Fix computation of _M_prev_resize so that hashtable do not keep on
+       being rehashed when _M_max_load_factor is lower than 1.
+
+2011-12-06  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR libstdc++/51438
+       * libsupc++/nested_exception.h (nested_exception::~nested_exception):
+       Declare noexcept.
+       * libsupc++/nested_exception.cc: Adjust.
+       * testsuite/18_support/nested_exception/51438.cc: New.
+       * testsuite/18_support/nested_exception/throw_with_nested.cc: Adjust.
+       * testsuite/18_support/nested_exception/rethrow_if_nested.cc:
+       Likewise.
+
+       * src/shared_ptr.cc: Use noexcept where appropriate.
+       * include/std/system_error: Likewise.
+       * include/std/functional: Likewise.
+       * include/bits/shared_ptr_base.h: Likewise.
+       * src/stdexcept.cc: Use _GLIBCXX_USE_NOEXCEPT where appropriate.
+       * include/std/stdexcept: Likewise.
+       * libsupc++/bad_cast.cc: Likewise.
+       * libsupc++/bad_typeid.cc: Likewise.
+       * libsupc++/eh_exception.cc: Likewise.
+       * libsupc++/typeinfo: Likewise.
+       * libsupc++/exception: Likewise.
+       * libsupc++/eh_ptr.cc: Likewise.
+       * libsupc++/bad_alloc.cc: Likewise.
+       * libsupc++/exception_ptr.h: Likewise.
+
+       * include/std/chrono: Use noexcept where appropriate.
+       * src/chrono.cc: Likewise.
+
+2011-12-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
+           Chris Jefferson  <chris@bubblescope.net>
+
+       PR libstdc++/51183
+       * include/std/stl_pair.h (pair<>::__cons, pair<>::__do_cons): Remove.
+       (pair<>::pair(piecewise_construct_t, tuple<>, tuple<>): Only declare.
+       (pair<>::pair(tuple<>&, tuple<>&, _Index_tuple<>, _Index_tuple<>)):
+       Declare.
+       * include/std/tuple (pair<>::__cons, pair<>::__do_cons): Remove.
+       (pair<>::pair(tuple<>&, tuple<>&, _Index_tuple<>, _Index_tuple<>)):
+       Define.
+       (pair<>::pair(piecewise_construct_t, tuple<>, tuple<>): Define,
+       delegating to the latter.
+       * testsuite/20_util/pair/piecewise2.cc: New.
+
+2011-12-05  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * libsupc++/initializer_list: Do not declare anything if
+       __GXX_EXPERIMENTAL_CXX0X__ is not defined.
+
+2011-12-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * include/std/type_traits: Doxygen improvements.
+       * include/bits/move.h: Likewise.
+       * include/tr1/type_traits:  Likewise.
+       * include/tr2/type_traits:  Likewise.
+       * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error
+       line numbers
+       * testsuite/20_util/forward/c_neg.cc: Likewise.
+       * testsuite/20_util/forward/f_neg.cc: Likewise.
+       * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
+       Likewise.
+       * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
+       Likewise.
+
+2011-12-04  Markus Trippelsdorf <markus@trippelsdorf.de>
+            Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * include/bits/stl_heap.h (pop_heap): Check for non-empty range in
+       overload taking a predicate.
+       * testsuite/25_algorithms/pop_heap/empty2_neg.cc: New.
+
+2011-12-03  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * include/debug/macros.h (__glibcxx_check_non_empty_range): Define.
+       * include/debug/debug.h (__glibcxx_requires_non_empty_range): Define.
+       * include/debug/formatter.h (__msg_non_empty_range): Add.
+       * src/debug.cc: Message text for __msg_non_empty_range.
+       * include/bits/stl_heap.h (pop_heap): Check for non-empty range.
+       * testsuite/25_algorithms/pop_heap/empty_neg.cc: New.
+
+2011-12-03  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * doc/xml/manual/utilities.xml: Remove outdated text.
+
+2011-12-02  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * include/std/iomanip (put_money): Fix thinko, use __err local,
+       like in, eg, basic_ostream::_M_insert.
+
+2011-11-30  Benjamin Kosnik  <bkoz@redhat.com>
+
+        * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Remove
+        size-specific macros. _GLIBCXX_ATOMIC_BUILTINS_1,
+        _GLIBCXX_ATOMIC_BUILTINS_2, _GLIBCXX_ATOMIC_BUILTINS_4,
+        _GLIBCXX_ATOMIC_BUILTINS_8. Use _GLIBCXX_ATOMIC_BUILTINS to
+        indicate use of C++11 atomic builtins.
+        * config.h.in: Regenerate.
+        * configure: Regenerate.
+        * include/Makefile.am (bits_sup_headers): Add atomic_lockfree_defines.h.
+        * include/Makefile.in: Regenerate.
+        * libsupc++/Makefile.am: Compile C++11 support with -std=gnu++0x.
+        * libsupc++/Makefile.in: Regenerate.
+
+        * include/bits/atomic_base.h: Move lock-free property macros...
+        * libsupc++/atomic_lockfree_defines.h: ...here.
+        * include/std/future: Use C++11 macros.
+        * libsupc++/eh_ptr.cc: Same.
+        * libsupc++/eh_throw.cc: Same.
+        * libsupc++/exception: Same.
+        * libsupc++/exception_ptr.h: Same.
+        * libsupc++/guard.cc: Same.
+        * libsupc++/nested_exception.cc: Same.
+        * libsupc++/nested_exception.h: Same.
+        * src/future.cc: Same.
+
+        * include/ext/atomicity.h: Use _GLIBCXX_ATOMIC_BUILTINS.
+
+        * doc/doxygen/user.cfg.in
+        * doc/xml/manual/concurrency_extensions.xml
+
+        * testsuite/18_support/exception_ptr/lifespan.cc
+        * testsuite/lib/libstdc++.exp
+
+2011-11-29  François Dumont <fdumont@gcc.gnu.org>
+
+       * include/bits/hashtable.h (_Hashtable<>::_M_rehash): Remove code
+       useless now that the hashtable implementation put the hash code in
+       cache if the hash functor throws.
+       * testsuite/23_containers/unordered_set/erase/1.cc: Enhance test by
+       checking also distance between begin and end iterators to validate
+       underlying data model.
+       * testsuite/23_containers/unordered_multiset/erase/1.cc: Likewise.
+       * testsuire/23_containers/unordered_map/erase/1.cc: Likewise.
+       * testsuite/23_containers/unordered_multimap/erase/1.cc: Likewise.
+       * testsuite/23_containers/unordered_multiset/erase/2.cc: New.
+       * testsuite/23_containers/unordered_multimap/erase/2.cc: New.
+
 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
 
        * include/bits/atomic_base.h (ATOMIC_*_LOCK_FREE): Use new cpp