summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include
Commit message (Collapse)AuthorAgeFilesLines
...
* 2013-02-09 François Dumont <fdumont@gcc.gnu.org>fdumont2013-02-091-8/+2
| | | | | | | | * include/tr1/bessel_function.tcc (__cyl_bessel_ij_series): Code simplification. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195925 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/56216emsr2013-02-0811-131/+110
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195886 138bc75d-0d04-0410-961f-82ee72b054a4
* PR56193 - Wrong test operator for basic_ios in C++11.emsr2013-02-071-0/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195849 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-02-04 François Dumont <fdumont@gcc.gnu.org>fdumont2013-02-043-3/+30
| | | | | | | | | | | | | | | | * include/bits/functional_hash.h (std::__is_fast_hash<>): New. * include/bits/basic_string.h: Specialize previous to mark std::hash for string types as slow. * include/bits/hashtable.h (__cache_default): Replace is_integral with __is_fast_hash. * src/c++11/hash_c++0x.cc: Add type_traits include. * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adapt dg-error line number. * testsuite/23_containers/unordered_set/ not_default_constructible_hash_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195738 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-02-04 Manuel López-Ibáñez <manu@gcc.gnu.org>paolo2013-02-042-7/+3
| | | | | | | | | | | | | | Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/56202 (again) * include/bits/random.tcc (binomial_distribution<>:: _M_waiting(_UniformRandomNumberGenerator&, _IntType)): Fix thinko in previous commit. * include/bits/random.h: Fix comment typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195732 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-02-04 Manuel López-Ibáñez <manu@gcc.gnu.org>paolo2013-02-041-0/+6
| | | | | | | | | | | | Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/56202 * include/bits/random.tcc (binomial_distribution<>:: _M_waiting(_UniformRandomNumberGenerator&, _IntType)): Avoid division by zero. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195722 138bc75d-0d04-0410-961f-82ee72b054a4
* Update copyright in libstdc++-v3.rsandifo2013-02-03679-955/+679
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195701 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-02-01 François Dumont <fdumont@gcc.gnu.org>fdumont2013-02-011-72/+2
| | | | | | | | | | | | | * include/bits/hashtable_policy.h (_Prime_rehash_policy::_M_next_bkt) (_Prime_rehash_policy::_M_need_rehash): Move definition... * src/c++11/hashtable_c++0x.cc: ... here. * src/shared/hashtable-aux.cc: Remove c++config.h include. * config/abi/gnu.ver (GLIBCXX_3.4.18): Export _Prime_rehash_policy symbols. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195676 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/56112redi2013-01-281-1/+1
| | | | | | | | * include/bits/hashtable_policy.h (insert(_Pair&&)): Use _M_emplace to construct value_type explicitly before trying to extract the key. * testsuite/23_containers/unordered_map/cons/56112.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195520 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-01-28 François Dumont <fdumont@gcc.gnu.org>fdumont2013-01-284-191/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/hashtable_policy.h (_Local_iterator_base): Use _Hashtable_ebo_helper to embed functors into the local_iterator when necessary. Pass information about functors involved in hash code by copy. * include/bits/hashtable.h (__cache_default): Do not cache for builtin integral types unless the hash functor is not noexcept qualified or is not default constructible. Adapt static assertions and local iterator instantiations. * include/debug/unordered_set (std::__debug::unordered_set<>::erase): Detect local iterators to invalidate using contained node rather than generating a dummy local_iterator instance. (std::__debug::unordered_multiset<>::erase): Likewise. * include/debug/unordered_map (std::__debug::unordered_map<>::erase): Likewise. (std::__debug::unordered_multimap<>::erase): Likewise. * testsuite/performance/23_containers/insert_erase/41975.cc: Test std::tr1 and std versions of unordered_set regardless of any macro. Add test on default cache behavior. * testsuite/performance/23_containers/insert/54075.cc: Likewise. * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adapt line number. * testsuite/23_containers/unordered_set/ not_default_constructible_hash_neg.cc: New. * testsuite/23_containers/unordered_set/buckets/swap.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195517 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-01-24 Paolo Carlini <paolo.carlini@oracle.com>paolo2013-01-241-4/+2
| | | | | | | | | PR libstdc++/56085 * include/std/complex (pow(const complex<>&, int)): Avoid __n signed overflow. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195421 138bc75d-0d04-0410-961f-82ee72b054a4
* libstdc++: Add mem_order_hle_acquire/release to atomic.h v2ak2013-01-201-45/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | The underlying compiler supports additional __ATOMIC_HLE_ACQUIRE/RELEASE memmodel flags for TSX, but this was not exposed to the C++ wrapper. Handle it there. These are additional flags, so some of assert checks need to mask off the flags before checking the memory model type. libstdc++-v3/: 2013-01-12 Andi Kleen <ak@linux.intel.com> Jonathan Wakely <jwakely.gcc@gmail.com> PR libstdc++/55223 * include/bits/atomic_base.h (__memory_order_modifier): Add __memory_order_mask, __memory_order_modifier_mask, __memory_order_hle_acquire, __memory_order_hle_release. (operator|,operator&): Add. (__cmpexch_failure_order): Rename to __cmpexch_failure_order2. (__cmpexch_failure_order): Add. (clear, store, load, compare_exchange_weak, compare_exchange_strong): Handle flags. * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc: Add. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195321 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/55861redi2013-01-191-11/+6
| | | | | | | | | | | * include/std/future (_State_base::_S_check(const shared_ptr<T>&)): Fix return type. (__basic_future::_M_get_result()): Const qualify. (shared_future::get()): Likewise. * testsuite/30_threads/shared_future/members/get.cc: Use const objects. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195314 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/55043 (again)redi2013-01-167-157/+35
| | | | | | | | | | | | | | | | | | | | | | | | | * include/bits/alloc_traits.h (allocator_traits::construct): Disable unless construction would be well-formed. (__allow_copy_cons, __check_copy_constructible): Define. * include/bits/unordered_map.h (__check_copy_constructible): Use as base class so copy constructor will be deleted if appropriate. (is_copy_constructible): Remove specialization. * include/bits/unordered_set.h: Likewise. * include/debug/unordered_map.h: Undo previous commit. Default copy and move constructors. * include/debug/unordered_set.h: Likewise. * include/profile/unordered_map.h: Undo previous commit. * include/profile/unordered_set.h: Likewise. * testsuite/23_containers/unordered_map/55043.cc: Fix test. * testsuite/23_containers/unordered_multimap/55043.cc: Likewise. * testsuite/23_containers/unordered_multiset/55043.cc: Likewise. * testsuite/23_containers/unordered_set/55043.cc: Likewise. * testsuite/23_containers/unordered_map/requirements/53339.cc: XFAIL, cannot support incomplete types. * testsuite/23_containers/unordered_multimap/requirements/53339.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195253 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/55043redi2013-01-1610-12/+181
| | | | | | | | | | | | | | | | | | | * include/std/unordered_map: Include alloc_traits.h * include/std/unordered_set: Likewise. * include/bits/alloc_traits.h: Define __is_copy_insertable. * include/bits/unordered_map.h: Use it. * include/bits/unordered_set.h: Likewise. * include/debug/unordered_map.h: Likewise. * include/debug/unordered_set.h: Likewise. * include/profile/unordered_map.h: Likewise. * include/profile/unordered_set.h: Likewise. * include/bits/hashtable.h: Fix comment typos. * testsuite/23_containers/unordered_map/55043.cc: New. * testsuite/23_containers/unordered_multimap/55043.cc: New. * testsuite/23_containers/unordered_multiset/55043.cc: New. * testsuite/23_containers/unordered_set/55043.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195231 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/55908redi2013-01-081-3/+4
| | | | | | | | | * include/std/functional (_Mem_fn::operator()): Fix constraints to avoid ambiguity. * testsuite/20_util/function_objects/mem_fn/55908.cc: New. * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195035 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/55847redi2013-01-071-1/+3
| | | | | | | | | | | | | | * src/c++11/shared_ptr.cc (bad_weak_ptr::what()): Correct string. * testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Verify string. PR libstdc++/55728 * include/std/functional (bad_function_call::what()): Declare. * src/c++11/functional.cc (bad_function_call::what()): Define. * config/abi/pre/gnu.ver (bad_function_call::what()): Export. * testsuite/20_util/bad_function_call/what.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194958 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/bits/unordered_map.h: Fix typo in comments.redi2013-01-061-3/+3
| | | | | | | * doc/xml/manual/status_cxx2011.xml: Add implementation-defined bucket counts for unordered associative containers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194954 138bc75d-0d04-0410-961f-82ee72b054a4
* libstdc++-v3/rsandifo2013-01-061-1/+1
| | | | | | | | | | * include/ext/pb_ds/detail/splay_tree_/insert_fn_imps.hpp: Fix typo in copyright years. * testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194941 138bc75d-0d04-0410-961f-82ee72b054a4
* Update Copyright years for files modified in 2011 and/or 2012.jakub2013-01-04200-203/+214
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194903 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/functional (_Require): Move to ...redi2012-12-204-83/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/std/type_traits (_Require): ... here. * include/bits/shared_ptr_base.h (__shared_count::_S_create_from_up): Handle unique_ptr for arrays or with custom pointer types. (__shared_ptr::__shared_ptr(unique_ptr<_Tp1, _Del>&&): Likewise. * include/bits/unique_ptr.h (unique_ptr<_Tp[], _Dp>): Use _Dp::pointer if defined. Implement proposed resolution of LWG 2118. * testsuite/20_util/shared_ptr/cons/unique_ptr_array.cc: New. * testsuite/20_util/unique_ptr/assign/cv_qual.cc: New. * testsuite/20_util/unique_ptr/cons/array_convertible_neg.cc: New. * testsuite/20_util/unique_ptr/cons/convertible_neg.cc: New. * testsuite/20_util/unique_ptr/cons/cv_qual.cc: New. * testsuite/20_util/unique_ptr/modifiers/cv_qual.cc: New. * testsuite/20_util/unique_ptr/requirements/pointer_type_array.cc: New. * testsuite/20_util/shared_ptr/cons/unique_ptr.cc: Adjust comments. * testsuite/20_util/unique_ptr/cons/pointer_array_convertible_neg.cc: Likewise. * testsuite/20_util/unique_ptr/requirements/pointer_type.cc: Likewise. * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line number. * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. * testsuite/20_util/default_delete/48631_neg.cc: Likewise. * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Likewise. * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Likewise. * testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: Adjust dg-error text. * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Use different instantiations so static_assert fails for each. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194651 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/future (__async_sfinae_helper): Remove.redi2012-12-171-14/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194567 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/55631redi2012-12-113-0/+8
| | | | | | | | | * include/ext/alloc_traits.h: Include missing header. * include/ext/pointer.h: Likewise. * include/ext/string_conversions.h: Require C++11. * libsupc++/initializer_list: Reindent. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194429 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/Makefile.am (${host_builddir}/c++config.h): Replaceschwab2012-12-042-4/+4
| | | | | | | | [<space><tab>] by [<tab><space>]. * include/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194169 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/Makefile.am: Fix regexp broken by previous commit.steven2012-12-042-4/+4
| | | | | | | | * include/Makefile.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194152 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-12-03 Benjamin Kosnik <bkoz@redhat.com>bkoz2012-12-034-130/+6
| | | | | | | | | | | * include/ext/pb_ds/detail/cc_hash_table_map_/standard_policies.hpp: Remove. * include/ext/pb_ds/detail/gp_hash_table_map_/standard_policies.hpp: Remove. * include/Makefile.am (pb_headers): Remove include files. * include/Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194107 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/functional (_Mem_fn): Constrain function call operatorsredi2012-11-281-76/+201
| | | | | | | | | | to avoid ambiguities. Use perfect forwarding. * testsuite/20_util/function_objects/mem_fn/55463.cc: Additional tests. * testsuite/20_util/function_objects/mem_fn/forward.cc: New. * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193879 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix incorrect @headername Doxygen macro invocation.aaw2012-11-271-1/+1
| | | | | | | | | | | Format is @headername{hdr1,hdr2} not @headername{hdr1 or hdr2}. 2012-11-27 Ollie Wild <aaw@google.com> * include/bits/stl_tree.h (@headername): Fix incorrect Doxygen macro invocation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193869 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/functional (__is_socketlike): Change from classredi2012-11-261-8/+2
| | | | | | template to alias template. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193832 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/55463redi2012-11-261-79/+95
| | | | | | | | | * include/std/functional (_Mem_fn): Handle rvalue objects. Add noexcept-specifications. * testsuite/20_util/function_objects/mem_fn/55463.cc: New. * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193831 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/52680redi2012-11-231-11/+13
| | | | | | | | | | | | | | | | | | | | | | | * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Check for usleep and sleep if nanosleep is not available. Bump libtool revision. * config.h.in: Regenerate. * configure: Likewise. * config/abi/pre/gnu.ver (GLIBCXX_3.4.18): Add __sleep_for. * include/std/thread (this_thread::__sleep_for): Add. (this_thread::yield, this_thread::sleep_until, this_thread::sleep_for): Declare unconditionally. * src/c++11/thread.cc (this_thread::__sleep_for): Define. * testsuite/lib/libstdc++.exp (check_v3_target_nanosleep): Rename to check_v3_target_sleep. * testsuite/lib/dg-options.exp (dg-require-nanosleep): Rename to dg-require-sleep. * testsuite/30_threads/condition_variable_any/53830.cc: Update. * testsuite/30_threads/this_thread/2.cc: Likewise. * testsuite/30_threads/this_thread/3.cc: Likewise. * testsuite/30_threads/this_thread/4.cc: Likewise. * testsuite/30_threads/async/54297.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193769 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-11-20 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-11-201-7/+6
| | | | | | | | | | | PR libstdc++/55413 * include/bits/hashtable.h (_Hashtable<>::_M_rehash_aux): Initialize __bbegin_bkt and __prev_bkt to avoid uninitialized warnings. * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust dg-error line number. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193663 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-11-20 Matthias Klose <doko@ubuntu.com>doko2012-11-202-2/+2
| | | | | | | | | * doc/doxygen/user.cfg.in (ALIASES). Escape sharp braces. * include/bits/allocator.h: Escape sharp braces in comment. * include/profile/impl/profiler_algos.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193662 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/ext/array_allocator.h: Replace uses ofredi2012-11-201-2/+2
| | | | | | __GXX_EXPERIMENTAL_CXX0X__ with __cplusplus. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193644 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/bits/stl_algo.h (reverse_copy): Update comment per DR 2074.redi2012-11-1915-21/+122
| | | | | | | | | | | | | | | | | | | | | | | * include/bits/unordered_map.h: Apply DR 2005 resolution. * doc/xml/manual/status_cxx2011.xml: Update per DR 2048. * include/bits/allocator.h (allocator): Apply DR 2103 resolution. * include/ext/array_allocator.h: Likewise. * include/ext/bitmap_allocator.h: Likewise. * include/ext/malloc_allocator.h: Likewise. * include/ext/mt_allocator.h: Likewise. * include/ext/new_allocator.h: Likewise. * include/ext/pool_allocator.h: Likewise. * include/ext/throw_allocator.h: Likewise. * include/ext/alloc_traits.h (__allocator_always_compares_equal): Add additional specializations. * include/std/functional: Add comment about DR resolution. * include/std/future: Likewise. * include/std/scoped_allocator: Likewise. * include/std/thread: Likewise. * testsuite/20_util/allocator/requirements/typedefs.cc: New. * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193638 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/bits/hashtable.h: Improve comments.redi2012-11-192-28/+27
| | | | | | * include/bits/hashtable_policy.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193636 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-11-17 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-11-171-21/+28
| | | | | | | | | | | | | PR libstdc++/55363 * include/std/array (tuple_size, tuple_element): Move out NAMESPACE_CONTAINER. * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust dg-error line numbers. * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193584 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-11-16 François Dumont <fdumont@gcc.gnu.org>fdumont2012-11-162-55/+23
| | | | | | | | | | | | | | | | | | | * include/bits/hashtable_policy.h (_Prime_rehash_policy): Remove automatic shrink. (_Prime_rehash_policy::_M_bkt_for_elements): Do not call _M_next_bkt anymore. (_Prime_rehash_policy::_M_next_bkt): Move usage of _S_growth_factor ... (_Prime_rehash_policy::_M_need_rehash): ... here. * include/bits/hashtable.h (_Hashtable<>): Adapt. * testsuite/performance/23_containers/insert_erase/41975.cc: Add _USE_TR1 to force build using std::tr1 container. * testsuite/performance/23_containers/insert/unordered_set.cc: Likewise. * testsuite/performance/23_containers/insert/54075.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193576 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/53841redi2012-11-151-11/+8
| | | | | | | | | | * include/std/condition_variable (condition_variable::wait_until): Handle clocks with higher resolution than __clock_t. (condition_variable::__wait_until_impl): Remove unnecessary _Clock parameter. * testsuite/30_threads/condition_variable/members/53841.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193523 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libstdc++/55320redi2012-11-142-8/+5
| | | | | | | | | | | | | | | | * include/std/functional (function::function(F)): Set _M_manager after operations that could throw. (_Function_base::_Ref_manager::_M_init_functor): Use addressof. * include/tr1/functional (_Function_base::_Ref_manager::_M_init_functor): Use addressof. (_Function_base::_Base_manager::_M_get_pointer): Likewise. * testsuite/20_util/function/cons/55320.cc: New. * testsuite/20_util/function/cons/addressof.cc: New. * testsuite/20_util/function/cons/callable.cc: Remove header. * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers. * testsuite/tr1/3_function_objects/function/10.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193514 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/future (atomic_future): Remove declaration ofredi2012-11-121-3/+0
| | | | | | non-standard name. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193457 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/std/complex (real, imag): Add ABI tag in C++11 mode.jason2012-11-121-0/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193445 138bc75d-0d04-0410-961f-82ee72b054a4
* * many: Replace uses of __GXX_EXPERIMENTAL_CXX0X__ with __cplusplus.jason2012-11-10138-778/+778
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193392 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-11-08 François Dumont <fdumont@gcc.gnu.org>fdumont2012-11-081-0/+3
| | | | | | | | | | | PR libstdc++/54075 * include/bits/hashtable.h (_Hashtable<>::rehash): Reset hash policy state if no rehash. * testsuite/23_containers/unordered_set/modifiers/reserve.cc (test02): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193339 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/profile/iterator_tracker.h (operator++): Fix returningredi2012-11-081-2/+2
| | | | | | | dangling reference. (operator--): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193323 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-11-07 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-11-078-104/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/debug/array (_GLIBCXX_THROW_OR_ABORT): Move... * include/bits/c++config: ... here. * include/bits/shared_ptr_base.h (__throw_bad_weak_ptr): Use it. * include/ext/pb_ds/exception.hpp: Likewise. * include/ext/throw_allocator.h (__throw_forced_error): Likewise. * include/ext/concurrence.h (__throw_concurrence_lock_error, __throw_concurrence_unlock_error, __throw_concurrence_broadcast_error, __throw_concurrence_wait_error): Likewise. * include/tr1/shared_ptr.h (__throw_bad_weak_ptr): Likewise. * include/tr1/functional (function<_Res(_ArgTypes...)>::operator() (_ArgTypes...)): Likewise. * libsupc++/eh_aux_runtime.cc (__cxxabiv1::__cxa_bad_cast, __cxxabiv1::__cxa_bad_typeid): Likewise. * libsupc++/vec.cc (compute_size): Likewise. * libsupc++/new_op.cc (operator new (std::size_t)): Likewise. * src/c++11/functexcept.cc: Likewise. * testsuite/util/io/illegal_input_error.hpp (__throw_illegal_input_error): Likewise. * libsupc++/eh_personality.cc: Avoid warning with -fno-exceptions. * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line numbers. * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Likewise. * testsuite/23_containers/array/tuple_interface/ tuple_element_debug_neg.cc: Likewise. * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: Likewise. * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193295 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/bits/stl_vector.h (vector(size_type)): Add missing allocatorredi2012-11-074-7/+24
| | | | | | | | | | | | | | | | | | parameter. * include/bits/stl_bvector.h: Likewise. * include/debug/vector (vector(size_type)): Likewise. * include/profile/vector (vector(size_type)): Likewise. Pass allocator to base constructor. * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Adjust dg-error line numbers. * testsuite/23_containers/vector/requirements/dr438/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/ constructor_2_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193284 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-11-06 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-11-076-22/+618
| | | | | | | | | | | | | | | | | | | | | | | | | | | | PR libstdc++/51850 * include/debug/array: New, debug-mode implementation. * include/profile/array: New. * include/std/array: Adjust. * include/std/tuple: Just include <array>. * include/Makefile.am: Add. * include/Makefile.in: Regenerate. * testsuite/23_containers/array/debug/front1_neg.cc: New. * testsuite/23_containers/array/debug/ square_brackets_operator1_neg.cc: Likewise. * testsuite/23_containers/array/debug/front2_neg.cc: Likewise. * testsuite/23_containers/array/debug/ square_brackets_operator2_neg.cc: Likewise. * testsuite/23_containers/array/debug/back1_neg.cc: Likewise. * testsuite/23_containers/array/debug/back2_neg.cc: Likewise. * testsuite/23_containers/array/tuple_interface/get_neg.cc: Tweak to run only in normal-mode. * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc: Likewise. * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: New. * testsuite/23_containers/array/tuple_interface/ tuple_element_debug_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193278 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-11-06 Paolo Carlini <paolo.carlini@oracle.com>paolo2012-11-063-10/+8
| | | | | | | | | | | | * include/bits/atomic_base.h: Don't include <cstddef>, use nullptr. * include/std/atomic: Likewise. * include/tr2/dynamic_bitset: Likewise. * libsupc++/vec.cc (compute_size(std::size_t, std::size_t, std::size_t)): Fix for -fno-exceptions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193232 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/profile/map.h (map::emplace_hint): Add missing return.redi2012-11-061-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193202 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud