summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include
Commit message (Collapse)AuthorAgeFilesLines
...
* Use Solaris prototypes if possible (PR libstdc++-v3/1773)ro2011-08-183-1/+54
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177866 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-08-12 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-08-122-2/+21
| | | | | | | | * include/c_global/cmath (fmod(_Tp, _Up)): Add. * include/c_std/cmath: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177698 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-08-11 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-08-115-47/+47
| | | | | | | | | | | * include/std/future: constexpr functions are implicitly inline. * include/std/chrono: Likewise. * include/std/complex: Likewise. * include/bits/move.h: Likewise. * include/bits/stl_pair.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177679 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-08-07 Jonathan Wakely <jwakely.gcc@gmail.com>redi2011-08-071-1/+1
| | | | | | | * include/bits/alloc_traits.h: Fix doxygen @headername. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177546 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-08-06 Benjamin Kosnik <bkoz@redhat.com>bkoz2011-08-0767-3605/+3693
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/doxygen/user.cfg.in (PDF_HYPERLINKS): To NO. 2011-08-06 Benjamin Kosnik <bkoz@redhat.com> * doc/doxygen/user.cfg.in: Add scoped_allocator. * include/debug/safe_sequence.h: Fix doxygen markup. * include/debug/safe_unordered_base.h: Same. * include/debug/safe_local_iterator.tcc: Same. * include/debug/safe_unordered_container.h: Same. * include/std/valarray: Same. * include/std/iomanip: Same. * include/std/streambuf: Same. * include/std/bitset: Same. * include/std/fstream: Same. * include/std/functional: Same. * include/std/istream: Same. * include/std/ostream: Same. * include/std/scoped_allocator: Same. * include/std/sstream: Same. * include/parallel/multiway_merge.h: Same. * include/parallel/base.h: Same. * include/parallel/for_each_selectors.h: Same. * include/parallel/multiway_mergesort.h: Same. * include/parallel/search.h: Same. * include/parallel/partial_sum.h: Same. * include/parallel/queue.h: Same. * include/parallel/sort.h: Same. * include/parallel/random_number.h: Same. * include/ext/vstring.h: Same. * include/ext/algorithm: Same. * include/ext/pb_ds/assoc_container.h: Same. * include/ext/bitmap_allocator.h: Same. * include/ext/stdio_filebuf.h: Same. * include/ext/memory: Same. * include/ext/functional: Same. * include/bits/basic_ios.h: Same. * include/bits/stl_list.h: Same. * include/bits/stl_map.h: Same. * include/bits/stl_algobase.h: Same. * include/bits/stl_queue.h: Same. * include/bits/gslice.h: Same. * include/bits/locale_classes.h: Same. * include/bits/stl_set.h: Same. * include/bits/locale_facets.h: Same. * include/bits/stl_stack.h: Same. * include/bits/stl_heap.h: Same. * include/bits/forward_list.h: Same. * include/bits/stream_iterator.h: Same. * include/bits/basic_string.h: Same. * include/bits/stl_multimap.h: Same. * include/bits/stl_pair.h: Same. * include/bits/ios_base.h: Same. * include/bits/stl_numeric.h: Same. * include/bits/stl_vector.h: Same. * include/bits/stl_deque.h: Same. * include/bits/codecvt.h: Same. * include/bits/stl_multiset.h: Same. * include/bits/stl_uninitialized.h: Same. * include/bits/ptr_traits.h: Same. * include/bits/slice_array.h: Same. * include/bits/stl_iterator_base_funcs.h: Same. * include/bits/stl_algo.h: Same. * include/bits/stl_iterator.h: Same. * include/bits/stl_tempbuf.h: Same. * include/bits/regex.h: Same. * include/bits/range_access.h: Same. * include/bits/random.h: Same. * include/bits/alloc_traits.h: Same. * include/bits/regex_error.h: Same. * include/bits/locale_facets_nonio.h: Same. * include/bits/stl_relops.h: Same. * include/backward/auto_ptr.h: Same. * libsupc++/initializer_list: Same. * testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Adjust line numbers. * testsuite/23_containers/list/requirements/dr438/insert_neg.cc: Same. * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc: Same. * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177542 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-08-04 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-08-044-375/+424
| | | | | | | | | | | * src/atomic.cc: Use noexcept. * include/std/atomic: Likewise. * include/bits/atomic_0.h: Likewise. * include/bits/atomic_2.h: Likewise. * include/bits/atomic_base.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177413 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-08-03 Benjamin Kosnik <bkoz@redhat.com>bkoz2011-08-031-18/+34
| | | | | | | | | | | | | | | | | | | * include/std/tuple: Mark more constructors constexpr. * testsuite/20_util/tuple/cons/constexpr.cc: Split into and extend as: * testsuite/20_util/tuple/cons/constexpr-2.cc: ...this. * testsuite/20_util/tuple/cons/constexpr-3.cc: ... and this. * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust line numbers. 2011-08-03 Benjamin Kosnik <bkoz@redhat.com> François Dumont <francois.cppdevs@free.fr> * testsuite/23_containers/array/at_neg.cc: Move... * testsuite/23_containers/array/at.cc: ...here. Remove -fno-exceptions, call const at member function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177299 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-08-01 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-08-011-4/+3
| | | | | | | | PR c++/49813 * include/c_global/cmath (isinf): Remove workaround. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177070 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-31 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-07-312-5/+5
| | | | | | | | | | PR libstdc++/49925 * include/bits/shared_ptr.h (make_shared): Qualify allocate_shared with std::. * include/bits/shared_ptr_base.h (__make_shared): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176985 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-27 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-07-271-271/+292
| | | | | | | | PR c++/49813 * include/c_global/cmath: Use _GLIBCXX_CONSTEXPR and constexpr. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176847 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-25 Benjamin Kosnik <bkoz@redhat.com>bkoz2011-07-261-5/+10
| | | | | | | | | * include/std/array (at): Remove constexpr when -fno-exceptions. * testsuite/23_containers/array/at_neg.cc: Test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176780 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-25 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-07-252-1/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nathan Ridge <zeratul976@hotmail.com> PR libstdc++/49836 * include/bits/stl_vector.h (vector<>::_M_emplace_back_aux): Declare. (vector<>::push_back(const value_type&)): Use it. * include/bits/vector.tcc: Define. (vector<>::emplace_back(_Args&&...)): Use it. * testsuite/util/testsuite_tr1.h (CopyConsOnlyType, MoveConsOnlyType): Add. * testsuite/23_containers/vector/modifiers/push_back/49836.cc: New. * testsuite/23_containers/deque/modifiers/push_back/49836.cc: Likewise. * testsuite/23_containers/deque/modifiers/push_front/49836.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Adjust dg-error line number. * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/ constructor_2_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176761 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-24 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-07-241-3/+3
| | | | | | | | * include/bits/hashtable_policy.h (_Prime_rehash_policy::_M_next_bkt, _M_bkt_for_elements, _M_need_rehash): Fix typos in the last commit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176718 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-24 François Dumont <francois.cppdevs@free.fr>fdumont2011-07-241-9/+9
| | | | | | | | | | | | * include/bits/hashtable_policy.h (_Prime_rehash_policy): Use __builtin_floor rather than __builtin_ceil to compute next resize value. * testsuite/23_containers/unordered_set/hash_policy/load_factor.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176717 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-22 Benjamin Kosnik <bkoz@redhat.com>bkoz2011-07-232-9/+9
| | | | | | | | | | | | | Daniel Krugler <daniel.kruegler@googlemail.com> * include/bits/move.h (move, forward): Mark constexpr. * include/bits/stl_pair.h (pair): Mark move ctors constexpr. * testsuite/20_util/pair/make_pair/constexpr.cc: New. * testsuite/20_util/pair/cons/constexpr.cc: Add tests. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176672 138bc75d-0d04-0410-961f-82ee72b054a4
* * fragment.am (CONFIG_CXXFLAGS): Add -frandom-seed.ian2011-07-221-1/+1
| | | | | | | | | | | | | | * Makefile.in: Rebuild. * doc/Makefile.in: Rebuild. * include/Makefile.in: Rebuild. * libsupc++/Makefile.in: Rebuild. * po/Makefile.in: Rebuild. * python/Makefile.in: Rebuild. * src/Makefile.in: Rebuild. * testsuite/Makefile.in: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176626 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-21 François Dumont <francois.cppdevs@free.fr>fdumont2011-07-217-66/+72
| | | | | | | | | | | | | | | | | | | | * include/debug/safe_unordered_sequence.h, safe_unordered_sequence.tcc: Rename respectively in... * include/debug/safe_unordered_container.h, safe_unordered_container.tcc: ...those. _Safe_unordered_sequence rename _Safe_unordered_container. * include/debug/safe_unordered_base.h: _Safe_unordered_sequence_base rename _Safe_unordered_container_base. * include/debug/unordered_map, unordered_set: Adapt to previous modifications. * config/abi/pre/gnu.ver: Likewise. * src/debug.cc: Likewise. * include/Makefile.am: Likewise. * include/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176584 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-21 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-07-211-2/+2
| | | | | | | | | * include/std/mutex (timed_mutex, recursive_timed_mutex): Update to use steady_clock instead of monotonic_clock. * config/abi/pre/gnu.ver: Export steady_clock::now. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176560 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-20 Benjamin Kosnik <bkoz@redhat.com>bkoz2011-07-211-6/+10
| | | | | | | | | | | | Daniel Krugler <daniel.kruegler@googlemail.com> * include/std/array (array::at, array::operator[]): Mark constexpr. * testsuite/23_containers/array/requirements/ constexpr_element_access.cc: Add. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176550 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-20 Benjamin Kosnik <bkoz@redhat.com>bkoz2011-07-211-13/+23
| | | | | | | | | | | | | | | | | | | | | | Daniel Krugler <daniel.kruegler@googlemail.com> * include/std/chrono: (system_clock::is_steady): Update to N3291 from is_monotonic. (time_point): Add constexpr to nonmember arithmetic operators. * src/chrono.cc: Modify for above. * src/compatibility-c++0x.cc: Same. * testsuite/20_util/time_point/nonmember/constexpr.cc: New. * testsuite/20_util/time_point/1.cc: Modify. * testsuite/20_util/system_clock/constexpr_data.cc: Modify. * testsuite/20_util/system_clock/1.cc: Modify. * testsuite/20_util/monotonic_clock/constexpr_data.cc: Move to... * testsuite/20_util/steady_clock/constexpr_data.cc: ...here. * testsuite/30_threads/condition_variable/members/2.cc: Modify. * testsuite/30_threads/condition_variable_any/members/2.cc: Modify. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176549 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-20 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-07-201-51/+53
| | | | | | | | | | | | | | | | | * include/std/system_error: Use noexcept. * src/system_error.cc: Likewise. * testsuite/19_diagnostics/error_condition/modifiers/39881.cc: Adjust. * testsuite/19_diagnostics/error_condition/cons/39881.cc: Likewise. * testsuite/19_diagnostics/error_code/modifiers/39882.cc: Likewise. * testsuite/19_diagnostics/error_code/cons/39882.cc: Likewise. * testsuite/util/testsuite_error.h: Likewise. * include/std/system_error (error_code::error_code(_ErrorCodeEnum)): Use enable_if on template parameter default. (error_condition::error_condition(_ErrorConditionEnum)): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176529 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-20 Ed Smith-Rowland <3dw4rd@verizon.net>paolo2011-07-201-1/+2
| | | | | | | * include/precompiled/stdc++.h: Add scoped_allocator. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176520 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-20 Benjamin Kosnik <bkoz@redhat.com>bkoz2011-07-201-8/+7
| | | | | | | | | * include/std/bitset (operator[]): Make constexpr. * testsuite/23_containers/bitset/operations/constexpr.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176519 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-20 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-07-201-1/+1
| | | | | | | | | * include/debug/safe_local_iterator.h (_Safe_local_iterator<>:: _Safe_local_iterator(const _Iterator&, size_type, const _Sequence*)): Fix typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176500 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-19 François Dumont <francois.cppdevs@free.fr>fdumont2011-07-1913-146/+1365
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/debug/safe_unordered_base.h, safe_unordered_sequence.h, safe_unordered_sequence.tcc, safe_local_iterator.h, safe_local_iterator.tcc: New, support for unordered sequence safe local iterators. * include/Makefile.am: Add previous files. * include/Makefile.in: Regenerate. * include/debug/unordered_map, unordered_set: Implement _Safe_unordered_sequence and expose _Safe_local_iterator. * include/debug/safe_iterator.h, safe_iterator.tcc: Refactor _Safe_iterator::_M_get_distance static method to expose it as __get_distance function and use it in _Safe_local_iterator type. * include/debug/formatter.h: Add __msg_local_iter_compare_bad _Debug_msg_id enum entry to notify invalid comparison between local iterators from different buckets. Add _Parameter constructor from _Safe_local_iterator. * include/debug/functions.h: Add __valid_range overload for _Safe_local_iterator. * src/debug.cc: Add _Safe_unordered_sequence_base and _Safe_local_iterator_base methods implementations. * config/abi/pre/gnu.ver: Add export of some _Safe_unordered_sequence_base and _Safe_local_iterator_base methods. * testsuite/util/debug/checks.h: Add use_invalid_iterator function to simulate use of a singular iterator. * testsuite/util/debug/unordered_checks.h: New, several functions to simulate classic invalid usage of unordered sequence local iterators. * testsuite/23_containers/unordered_map/debug/ use_erased_local_iterator_neg.cc, invalid_local_iterator_range_neg.cc, use_invalid_local_iterator_neg.cc, use_invalid_iterator_neg.cc, invalid_local_iterator_compare_neg.cc: New. * testsuite/23_containers/unordered_multimap/debug/ use_erased_local_iterator_neg.cc, invalid_local_iterator_range_neg.cc, use_invalid_local_iterator_neg.cc, use_invalid_iterator_neg.cc, invalid_local_iterator_compare_neg.cc: New. * testsuite/23_containers/unordered_set/debug/ use_erased_local_iterator_neg.cc, invalid_local_iterator_range_neg.cc, use_invalid_local_iterator_neg.cc, use_invalid_iterator_neg.cc, invalid_local_iterator_compare_neg.cc: New. * testsuite/23_containers/unordered_multiset/debug/ use_erased_local_iterator_neg.cc, invalid_local_iterator_range_neg.cc, use_invalid_local_iterator_neg.cc, use_invalid_iterator_neg.cc, invalid_local_iterator_compare_neg.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176487 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-18 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-07-182-2/+2
| | | | | | | | | | PR libstdc++/48430 * include/bits/shared_ptr.h (struct hash<shared_ptr<>>): Use __hash_base. * include/bits/unique_ptr.h (struct hash<unique_ptr<>>): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176405 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-11 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-07-112-94/+171
| | | | | | | | | | | | | | | | | | PR libstdc++/49559 * include/bits/stl_algo.h (__move_merge_backward): Remove. (__move_merge_adaptive, __move_merge_adaptive_backward): New. (__merge_adaptive): Use the latter two. (__rotate_adaptive): Avoid self move-assignment. * include/bits/stl_algobase.h (move_backward): Fix comment. * testsuite/25_algorithms/stable_sort/49559.cc: New. * testsuite/25_algorithms/inplace_merge/49559.cc: Likewise. * testsuite/25_algorithms/inplace_merge/moveable.cc: Extend. * testsuite/25_algorithms/inplace_merge/moveable2.cc: Likewise. * testsuite/util/testsuite_rvalref.h (rvalstruct::operator= (rvalstruct&&)): Check for self move-assignment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176174 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-09 Jonathan Wakely <jwakely.gcc@gmail.com>redi2011-07-093-0/+375
| | | | | | | | | | | | | | | * include/Makefile.am: Add new header. * include/Makefile.in: Regenerate. * include/std/scoped_allocator: New. * doc/xml/manual/status_cxx200x.xml: Update. * testsuite/20_util/scoped_allocator/1.cc: New. * testsuite/20_util/scoped_allocator/propagation.cc: New. * testsuite/20_util/scoped_allocator/requirements/typedefs.cc: New. * testsuite/20_util/scoped_allocator/requirements/ explicit_instantiation.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176079 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-09 Jonathan Wakely <jwakely.gcc@gmail.com>redi2011-07-092-55/+134
| | | | | | | | | | | | | | | | | | | | | | * include/bits/stl_vector.h: Use new allocator model in C++0x mode. * include/bits/vector.tcc: Likewise. * testsuite/util/testsuite_allocator.h (propagating_allocator): Define. * testsuite/23_containers/vector/allocator/copy_assign.cc: New. * testsuite/23_containers/vector/allocator/noexcept.cc: New. * testsuite/23_containers/vector/allocator/copy.cc: New. * testsuite/23_containers/vector/allocator/swap.cc: New. * testsuite/23_containers/vector/allocator/move_assign.cc: New. * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Adjust dg-error line numbers. * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176078 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-09 Jonathan Wakely <jwakely.gcc@gmail.com>redi2011-07-091-4/+79
| | | | | | | | | | | | | * include/ext/alloc_traits.h (__allocator_always_compares_equal): New trait, provide partial specializations for known allocators. (__alloc_traits::construct, __alloc_traits::destroy): Overload for non-standard pointer types. (__alloc_traits::_S_always_equal): New trait for use with noexcept. (__alloc_traits::_S_nothrow_move): Likewise. (__alloc_traits::_S_nothrow_swap): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176077 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-09 Jonathan Wakely <jwakely.gcc@gmail.com>redi2011-07-092-14/+9
| | | | | | | | | | * include/ext/cast.h: Fix typo in include guard. * include/ext/pointer.h (_Unqualified_type): Remove redundant partial specializations for volatile types. Fix typos in comments. (pointer_traits<_Pointer_adaptor<Tp>>::pointer_to): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176075 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-07-09 Jonathan Wakely <jwakely.gcc@gmail.com>redi2011-07-094-44/+146
| | | | | | | | | | | | | | | | | | | | | | | PR libstdc++/49668 * include/std/functional (__bind_simple): Define. * include/std/future (_Task_setter): Parameterize by type of result pointer instead of state object. (_S_task_setter): Type deduction helper. (_Task_state): Use _S_task_setter and __bind_simple. (_Deferred_state, _Async_state): Store call wrapper directly not as std::function. Use _S_task_setter and __bind_simple. (_S_make_deferred_state, _S_make_async_state): Type deduction helpers. (async): Use new functions and __bind_simple. * include/std/mutex (call_once): Use __bind_simple. * include/std/thread (thread): Likewise. Remove unused headers. * src/thread.cc: Add header. * testsuite/30_threads/async/49668.cc: New. * testsuite/30_threads/call_once/49668.cc: New. * testsuite/30_threads/thread/cons/49668.cc: New. * testsuite/30_threads/thread/cons/moveable.cc: Remove unused bool. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176073 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.host (abi_baseline_subdir_switch): Describe.ro2011-07-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | Provide default. (*-*-solaris2.[89], *-*-solaris2.1[0-9]): Override. * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Substitute baseline_subdir_switch. * testsuite/Makefile.am (site.exp): Emit it. (baseline_subdir): Use it. * testsuite/libstdc++-abi/abi.exp: Use it. * configure: Regenerate. * Makefile.in: Regenerate. * doc/Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * libsupc++/Makefile.in: Regenerate. * po/Makefile.in: Regenerate. * python/Makefile.in: Regenerate. * src/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176032 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-06-29 François Dumont <francois.cppdevs@free.fr>fdumont2011-06-2911-68/+54
| | | | | | | | | | | * include/debug/set.h, unordered_map, multiset.h, forward_list, unordered_set, vector, deque, string, list, multimap.h: Remove base class default constructor calls. * include/debug/map.h: Likewise and cleanup several redefinition of base iterator typedef. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175665 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-06-22 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-06-221-1/+1
| | | | | | | | * include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp: Avoid -Wall warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175321 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-06-22 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-06-222-2/+2
| | | | | | | | * include/bits/stl_construct.h: Update Copyright years. * include/bits/stl_uninitialized.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175309 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-06-22 Jonathan Wakely <jwakely.gcc@gmail.com>redi2011-06-228-411/+647
| | | | | | | | | | | | | | | | * include/Makefile.am: Add alloc_traits.h headers. * include/Makefile.in: Regenerate. * include/std/memory: Include uses_allocator.h explicitly. * include/bits/allocator.h (allocator_traits): Move to ... * include/bits/alloc_traits.h: New header. * include/ext/alloc_traits.h (__alloc_traits): Extension to provide a common allocator interface for C++98 and C++0x. * include/bits/stl_construct.h: Use __alloc_traits. * include/bits/stl_uninitialized.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175305 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-06-22 Daniel Krugler <daniel.kruegler@googlemail.com>paolo2011-06-212-2/+16
| | | | | | | | | | | | | Paolo Carlini <paolo.carlini@oracle.com> * include/bits/move.h (__is_nothrow_swappable): Add. (swap(_Tp(&)[_Nm], _Tp(&)[_Nm])): Use noexcept. * include/bits/algorithmfwd.h: Adjust. * testsuite/25_algorithms/swap/noexcept.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175277 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-06-20 Daniel Krugler <daniel.kruegler@googlemail.com>paolo2011-06-201-111/+38
| | | | | | | | | | | | | | | Paolo Carlini <paolo.carlini@oracle.com> * include/std/tuple (__conv_types, __one_by_one_convertible, __all_convertible): Add. (tuple): Use the latter. (tuple<_T1>): Remove. * testsuite/20_util/uses_allocator/cons_neg.cc: Adjust dg-error line number. * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175204 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-06-14 Jonathan Wakely <jwakely.gcc@gmail.com>redi2011-06-141-1/+1
| | | | | | | | * include/bits/ptr_traits.h (pointer_traits<T*>::pointer_to): Use noexcept. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175057 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-06-14 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-06-142-3/+3
| | | | | | | | | | | | | | | * include/std/valarray (~valarray): Use noexcept. * include/bits/unique_ptr.h (~unique_ptr): Likewise. * testsuite/26_numerics/valarray/noexcept_move_construct.cc: New. * testsuite/20_util/shared_ptr/cons/noexcept_move_construct.cc: Likewise. * testsuite/20_util/unique_ptr/cons/noexcept_move_construct.cc: Likewise. * testsuite/20_util/weak_ptr/cons/noexcept_move_construct.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175039 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-06-14 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-06-142-26/+29
| | | | | | | | * include/std/functional: Use noexcept. * include/bits/stl_tempbuf.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175026 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-06-12 François Dumont <francois.cppdevs@free.fr>paolo2011-06-1211-54/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Paolo Carlini <paolo.carlini@oracle.com> * include/bits/allocator.h (__shrink_to_fit): Rename to __shrink_to_fit_aux, fix. * include/bits/stl_vector.h (_M_shrink_to_fit): Declare. (shrink_to_fit): Use the latter. * include/debug/vector (shrink_to_fit): Likewise. * include/bits/vector.tcc (_M_shrink_to_fit): Define. * include/bits/stl_deque.h (_M_shrink_to_fit): Declare. (shrink_to_fit): Use the latter. * include/debug/deque (shrink_to_fit): Likewise. * include/bits/deque.tcc (_M_shrink_to_fit): Define. * include/bits/vector.tcc (vector<bool>::_M_reallocate): Add. * include/bits/stl_bvector.h (_M_shrink_to_fit): Declare. (shrink_to_fit): Use the latter. (reserve): Use _M_reallocate, move inline. (_Bvector_base<>::_S_nword): Add, use it throughout. * include/debug/string (shrink_to_fit): Redo. * include/ext/vstring.h (shrink_to_fit): Optimize. * include/bits/basic_string.h (shrink_to_fit): Likewise. * testsuite/21_strings/debug/shrink_to_fit.cc: New. * testsuite/23_containers/vector/debug/shrink_to_fit.cc: Likewise. * testsuite/23_containers/vector/debug/bool/shrink_to_fit.cc: Likewise. * testsuite/23_containers/vector/bool/capacity/shrink_to_fit.cc: Likewise. * testsuite/23_containers/deque/debug/shrink_to_fit.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174967 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-06-11 Jonathan Wakely <jwakely.gcc@gmail.com>redi2011-06-111-0/+9
| | | | | | | | | | | * include/ext/extptr_allocator.h (construct, destroy): Fix for C++0x mode by overloading to take allocator's pointer type. * testsuite/23_containers/vector/ext_pointer/types/2.cc: New. * testsuite/23_containers/vector/ext_pointer/explicit_instantiation/ 2.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174958 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-06-108-65/+84
| | | | | | | | | | | | | | | | * include/ext/throw_allocator.h: Use noexcept. * include/ext/pool_allocator.h: Likewise. * include/ext/bitmap_allocator.h: Likewise. * include/ext/new_allocator.h: Likewise. * include/ext/malloc_allocator.h: Likewise. * include/ext/array_allocator.h: Likewise. * include/ext/mt_allocator.h: Likewise. * include/ext/extptr_allocator.h: Likewise. * testsuite/util/testsuite_allocator.h: Likewise; do not include <cassert> directly, include <testsuite_hooks.h> instead. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174918 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-06-10 Benjamin Kosnik <bkoz@redhat.com>bkoz2011-06-1067-1380/+1288
| | | | | | | | | | | * include/ext/pb_ds/*: Doxygen markup redo. * include/Makefile.am: Fold in constructors_destructor_fn_imps.hpp. * include/Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174917 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-06-09 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-06-091-2/+2
| | | | | | | | * include/std/type_traits (__is_copy_assignable_impl, __is_nt_copy_assignable_impl): Fix typos. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174840 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-06-08 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-06-083-6/+7
| | | | | | | | | | | * include/ext/extptr_allocator.h: Include <ext/numeric_traits.h> instead of <limits>. * include/bits/allocator.h: Likewise. * include/std/chrono (duration_values<>::min): Call lowest, not min. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174805 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-06-08 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-06-084-23/+13
| | | | | | | | | | * include/bits/allocator.h (__shrink_to_fit): Simplify. * include/bits/stl_vector.h (vector<>::shrink_to_fit): Adjust. * include/bits/stl_deque.h: Likewise. * include/bits/stl_bvector.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174802 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-06-07 Paolo Carlini <paolo.carlini@oracle.com>paolo2011-06-074-43/+67
| | | | | | | | | | | | | | | | | | | | | * include/bits/move.h (struct __move_if_noexcept_cond): Add. (move_if_noexcept): Use the latter. * include/bits/stl_iterator.h (__make_move_if_noexcept_iterator, _GLIBCXX_MAKE_MOVE_IF_NOEXCEPT_ITERATOR): Add. * include/bits/stl_uninitialized.h (__uninitialized_move_if_noexcept_a): Add. * include/bits/vector.tcc (vector<>::reserve): Use _GLIBCXX_MAKE_MOVE_IF_NOEXCEPT_ITERATOR. (vector<>::_M_insert_aux, _M_fill_insert, _M_default_append, _M_range_insert): Use __uninitialized_move_if_noexcept_a. * testsuite/23_containers/vector/modifiers/moveable2.cc: New. * testsuite/23_containers/vector/capacity/resize/moveable2.cc: Likewise. * testsuite/23_containers/vector/capacity/reserve/moveable2.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174756 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud