2015-07-16 François Dumont <fdumont@gcc.gnu.org>
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob3362427f99746c64f3fe9ae9e9f188f15e39c96d
1 2015-07-16  François Dumont  <fdumont@gcc.gnu.org>
3         * include/bits/stl_algobase.h (__miter_base): Move...
4         * include/bits/cpp_type_traits.h: ...here.
5         * include/debug/functions.h (__foreign_iterator_aux): Use latter.
6         * testsuite/23_containers/vector/debug/insert7_neg.cc: New.
8 2015-07-13  Jonathan Wakely  <jwakely@redhat.com>
10         PR libstdc++/66855
11         * src/c++11/codecvt.cc (__codecvt_utf8_utf16_base::do_in): Override
12         endianness bit in mode.
13         * testsuite/22_locale/codecvt/codecvt_utf8_utf16/66855.cc: New.
15         * include/bits/c++config (_GLIBCXX_NOEXCEPT_IF): Define.
16         * include/bits/forward_list.h (forward_list::swap): Make noexcept
17         unconditional.
18         * include/bits/hashtable.h (_Hashtable::swap): Do not use
19         _S_nothrow_swap().
20         * include/bits/stl_bvector.h (vector<bool>::swap): Make noexcept
21         unconditional.
22         * include/bits/stl_deque.h (deque::swap): Likewise.
23         (swap(deque&, deque&)): Use _GLIBCXX_NOEXCEPT_IF.
24         * include/bits/stl_list.h (list::swap): Make noexcept unconditional.
25         (swap(list&, list&)): Use _GLIBCXX_NOEXCEPT_IF.
26         * include/bits/stl_map.h (map::swap, swap(map&, map&)): Use
27         _GLIBCXX_NOEXCEPT_IF, do not depend on _S_nothrow_swap.
28         * include/bits/stl_multimap.h (multimap::swap,
29         swap(multimap&, multimap&)): Likewise.
30         * include/bits/stl_multiset.h (multiset::swap,
31         swap(multiset&, multiset&)): Likewise.
32         * include/bits/stl_set.h (set::swap, swap(set&, set&)): Likewise.
33         * include/bits/stl_tree.h (_Rb_tree::swap,
34         swap(_Rb_tree&, _Rb_tree&)): Likewise.
35         * include/bits/stl_vector.h (vector::swap): Make noexcept
36         unconditional.
37         (swap(vector&, vector&)): Use _GLIBCXX_NOEXCEPT_IF.
38         * include/debug/deque (deque::swap, swap): Likewise.
39         * include/debug/forward_list (swap): Add noexcept.
40         * include/debug/list (list::swap, swap): Use _GLIBCXX_NOEXCEPT_IF.
41         * include/debug/map.h (map::swap, swap): Likewise.
42         * include/debug/multimap.h (multimap::swap, swap): Likewise.
43         * include/debug/multiset.h (multiset::Swap, swap): Likewise.
44         * include/debug/set.h (set::swap, swap): Likewise.
45         * include/debug/unordered_map (unordered_map::swap,
46         unordered_multimap::swap, swap): Likewise.
47         * include/debug/unordered_set (unordered_set::swap,
48         unordered_multiset::swap, swap): Likewise.
49         * include/debug/vector (vector::swap, swap): Likewise.
50         * include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()):
51         Remove.
52         * include/profile/deque (deque::swap, swap): Use _GLIBCXX_NOEXCEPT_IF.
53         * include/profile/forward_list (swap): Add noexcept.
54         * include/profile/list (list::swap, swap) : Use _GLIBCXX_NOEXCEPT_IF.
55         * include/profile/map.h (map::swap, swap): Likewise.
56         * include/profile/multimap.h (multimap::swap, swap): Likewise.
57         * include/profile/multiset.h (multiset::swap, swap): Likewise.
58         * include/profile/set.h (set::swap, swap): Likewise.
59         * include/profile/unordered_map (swap): Likewise.
60         * include/profile/unordered_set (swap): Likewise.
61         * include/profile/vector (vector::swap, swap): Likewise. Remove
62         overloads for swapping rvalues.
63         * testsuite/23_containers/deque/allocator/noexcept.cc: Update tests
64         for noexcept on swap.
65         * testsuite/23_containers/forward_list/allocator/noexcept.cc:
66         Likewise.
67         * testsuite/23_containers/list/allocator/noexcept.cc: Likewise.
68         * testsuite/23_containers/map/allocator/noexcept.cc: Likewise.
69         * testsuite/23_containers/multimap/allocator/noexcept.cc: Likewise.
70         * testsuite/23_containers/multiset/allocator/noexcept.cc: Likewise.
71         * testsuite/23_containers/set/allocator/noexcept.cc: Likewise.
72         * testsuite/23_containers/unordered_map/allocator/noexcept.cc:
73         Likewise.
74         * testsuite/23_containers/unordered_multimap/allocator/noexcept.cc:
75         Likewise.
76         * testsuite/23_containers/unordered_multiset/allocator/noexcept.cc:
77         Likewise.
78         * testsuite/23_containers/unordered_set/allocator/noexcept.cc:
79         Likewise.
80         * testsuite/23_containers/vector/allocator/noexcept.cc: Likewise.
81         * testsuite/23_containers/vector/bool/allocator/noexcept.cc: Likewise.
82         * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line
83         number.
85 2015-07-13  John Marino  <gnugcc@marino.st>
87         * config/os/bsd/dragonfly/os_defines.h (_GLIBCXX_USE_C99_CHECK,
88         _GLIBCXX_USE_C99_DYNAMIC, _GLIBCXX_USE_C99_LONG_LONG_CHECK,
89         _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC): Define.
91 2015-07-05  François Dumont  <fdumont@gcc.gnu.org>
93         * include/bits/hashtable.h (_Hashtable<>::__rehash_policy): Do not
94         rehash container.
95         * testsuite/23_containers/unordered_set/max_load_factor/robustness.cc:
96         Adapt.
98 2015-07-03  Jonathan Wakely  <jwakely@redhat.com>
100         * doc/xml/manual/status_cxx2017.xml: Update status table.
101         * doc/html/manual/*: Regenerate.
103 2015-07-03  Ville Voutilainen  <ville.voutilainen@gmail.com>
105         Implement std::experimental::fundamentals_v2::propagate_const.
106         * include/Makefile.am: Add propagate_const.
107         * include/Makefile.in: Regenerate.
108         * include/experimental/propagate_const: New.
109         * testsuite/experimental/propagate_const/assignment/copy.cc: Likewise.
110         * testsuite/experimental/propagate_const/assignment/move.cc: Likewise.
111         * testsuite/experimental/propagate_const/assignment/move_neg.cc:
112         Likewise.
113         * testsuite/experimental/propagate_const/cons/copy.cc: Likewise.
114         * testsuite/experimental/propagate_const/cons/default.cc: Likewise.
115         * testsuite/experimental/propagate_const/cons/move.cc: Likewise.
116         * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
117         * testsuite/experimental/propagate_const/hash/1.cc: Likewise.
118         * testsuite/experimental/propagate_const/observers/1.cc: Likewise.
119         * testsuite/experimental/propagate_const/relops/1.cc: Likewise.
120         * testsuite/experimental/propagate_const/requirements1.cc: Likewise.
121         * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
122         * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
123         * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
124         * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
125         * testsuite/experimental/propagate_const/swap/1.cc: Likewise.
126         * testsuite/experimental/propagate_const/typedefs.cc: Likewise.
128 2015-07-02  Jonathan Wakely  <jwakely@redhat.com>
130         * acinclude.m4 (GLIBCXX_DEFAULT_ABI): Change valid arguments for
131         --with-default-libstdcxx-abi
132         * configure: Regenerate.
133         * doc/xml/manual/configure.xml: Document valid arguments.
135 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
137         * libsupc++/guard.cc (__test_and_acquire): Use __p after __atomic_load
138         to avoid unused variable warning.
139         (__set_and_release): Use __p after __atomic_store to avoid unused
140         variable warning.
142 2015-07-01  Jonathan Wakely  <jwakely@redhat.com>
144         * include/bits/alloc_traits.h (__alloctr_rebind): Remove.
145         (__allocator_traits_base): New base class.
146         (__alloc_rebind): Reimplement in terms of detection idiom.
147         (allocator_traits): Derive from __allocator_traits_base. Reimplement
148         nested types in terms of detection idiom. Simplify SFINAE constraints
149         on overloaded static member functions.
150         * include/bits/hashtable.h (_Hashtable): Use __alloc_rebind instead
151         of __alloctr_rebind.
152         * testsuite/20_util/scoped_allocator/propagation.cc: Define rebind.
153         * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
154         dg-error line number.
156         * include/bits/ptr_traits.h (__ptrtr_elt_type, __ptrtr_diff_type,
157         __ptrtr_rebind, __ptrtr_not_void): Remove
158         (__get_first_arg, __replace_first_arg, __make_not_void): Define new
159         transformations.
160         (__detected_or_): New detection trait.
161         (pointer_traits): Use new traits.
162         * testsuite/20_util/pointer_traits/pointer_to.cc: Add rebind member.
163         * testsuite/20_util/pointer_traits/requirements/
164         explicit_instantiation.cc: Use valid arguments to pointer_traits.
166         * doc/xml/manual/status_cxx2017.xml: Update status table.
167         * include/experimental/type_traits (void_t, is_detected,
168         is_detected_v, detected_t, detected_or, detected_or_t,
169         is_detected_exact, is_detected_exact_v, is_detected_convertible,
170         is_detected_convertible_v): Define.
171         * include/std/type_traits (__detector, __detected_or, __detected_or_t,
172         __detected_or_t_): Define.
173         * testsuite/experimental/type_traits/detection.cc: New.
175 2015-06-30  Jonathan Wakely  <jwakely@redhat.com>
177         * doc/Makefile.am (stamp-pdf-doxygen): Grep for LaTeX errors in log.
178         * doc/Makefile.in: Regenerate.
180         * include/bits/stl_pair.h: Replace class keyword with typename.
182 2015-06-30  Ville Voutilainen  <ville.voutilainen@gmail.com>
184         Implement N4387, "Improving pair and tuple", and LWG 2367.
186         * include/bits/stl_pair.h (_ConstructiblePair,
187         _ImplicitlyConvertiblePair, _MoveConstructiblePair,
188         _ImplicitlyMoveConvertiblePair): New.
189         (pair()): Constrain it.
190         (pair(const _T1&, const _T2&), pair(const pair<_U1, _U2>&),
191         pair(_U1&&, const _T2&), pair(const _T1&, _U2&&), pair(_U1&&, _U2&&),
192         pair(pair<_U1, _U2>&&)): Make conditionally explicit.
193         * include/std/tuple (_TC, tuple::_TC2, tuple::TCC, tuple::TMC): New.
194         (tuple()): Constrain it.
195         (tuple(const _UElements&...), tuple(_UElements&&...),
196         tuple(const tuple<_UElements...>&), tuple(tuple<_UElements...>&&),
197         tuple(allocator_arg_t, const _Alloc&, const _UElements&...),
198         tuple(allocator_arg_t, const _Alloc&, _UElements&&...),
199         tuple(allocator_arg_t, const _Alloc&, const tuple<_UElements...>&),
200         tuple(allocator_arg_t, const _Alloc&, tuple<_UElements...>&&),
201         tuple(const pair<_U1, _U2>&), tuple(pair<_U1, _U2>&&),
202         tuple(allocator_arg_t, const _Alloc&, const pair<_U1, _U2>&),
203         tuple(allocator_arg_t, const _Alloc&, pair<_U1, _U2>&&)): Make
204         conditionally explicit.
205         * include/experimental/functional (__boyer_moore_array_base): Name
206         array type explicitly instead of using an empty braced-init-list.
207         * testsuite/20_util/pair/cons/explicit_construct.cc: New.
208         * testsuite/20_util/pair/piecewise.cc: Use piecewise_construct.
209         * testsuite/20_util/pair/requirements/dr2367.cc: New.
210         * testsuite/20_util/tuple/cons/explicit_construct.cc: New.
211         * testsuite/20_util/tuple/requirements/dr2367.cc: New.
213 2015-06-30  Jonathan Wakely  <jwakely@redhat.com>
215         * configure: Regenerate.
217 2015-06-29  François Dumont  <fdumont@gcc.gnu.org>
219         * include/bits/stl_iterator_base_types.h (_Iter_base): Limit definition
220         to pre-C++11 mode.
221         * include/debug/functions.h
222         (__gnu_debug::__valid_range, __gnu_debug::__base): Move...
223         * include/debug/safe_iterator.h
224         (__gnu_debug::_Sequence_traits): New.
225         (__gnu_debug::__get_distance_from_begin): New.
226         (__gnu_debug::__get_distance_to_end): New.
227         (__gnu_debug::_Safe_iterator<>::_M_valid_range): Expose iterator range
228         distance information. Add optional check_dereferenceable parameter,
229         default true.
230         (__gnu_debug::_Distance_precision, __gnu_debug::__get_distance): Move
231         default definition...
232         (__gnu_debug::__get_distance): New overload for _Safe_iterator.
233         (__gnu_debug::__unsafe): Likewise.
234         * include/debug/helper_functions.h: ...here. New.
235         (__gnu_debug::__unsafe): New helper function to remove safe iterator
236         layer.
237         * include/debug/stl_iterator.h: New. Include latter.
238         * include/bits/stl_iterator.h: Include latter in debug mode.
239         * include/debug/stl_iterator.tcc: Adapt.
240         * include/debug/safe_local_iterator.h (__gnu_debug::__get_distance): Add
241         overload for _Safe_local_iterator.
242         (__gnu_debug::__unsafe): Likewise.
243         * include/debug/safe_local_iterator.tcc: Adapt.
244         * include/debug/macros.h (__glibcxx_check_valid_range2): New.
245         (__glibcxx_check_insert_range): Add _Dist parameter.
246         (__glibcxx_check_insert_range_after): Likewise.
247         (__glibcxx_check_string, __glibcxx_check_string_len): Implement using
248         _GLIBCXX_DEBUG_PEDASSERT.
249         * include/debug/deque (deque<>::assign): Remove iterator debug layer
250         when possible.
251         (deque<>::insert): Likewise.
252         * include/debug/forward_list (__glibcxx_check_valid_fl_range): New.
253         (forward_list<>::splice_after): Use latter.
254         (forward_list<>::assign): Remove iterator debug layer when possible.
255         (forward_list<>::insert_after): Likewise.
256         (__gnu_debug::_Sequence_traits<>): Partial specialization.
257         * include/debug/list (list<>::assign): Remove iterator debug layer when
258         possible.
259         (list<>::insert): Likewise.
260         [__gnu_debug::_Sequence_traits<>]: Partial specialization pre C++11 ABI.
261         * include/debug/map.h (map<>::insert): Remove iterator debug layer when
262         possible.
263         * include/debug/multimap.h (multimap<>::insert): Likewise.
264         * include/debug/set.h (set<>::insert): Likewise.
265         * include/debug/multiset.h (multiset<>::insert): Likewise.
266         * include/debug/string (basic_string<>::append, basic_string<>::assign,
267         basic_string<>::insert, basic_string<>::replace): Likewise.
268         * include/debug/unordered_map
269         (unordered_map<>::insert, unordered_multimap<>::insert): Likewise.
270         * include/debug/unordered_set
271         (unordered_set<>::insert, unordered_multiset<>insert): Likewise.
272         * include/debug/vector
273         (vector<>::assign, vector<>::insert): Likewise.
274         * include/Makefile.am: Add new debug headers.
275         * include/Makefile.in: Regenerate.
277 2015-06-26  Jonathan Wakely  <jwakely@redhat.com>
279         * doc/xml/manual/intro.xml: Document LWG 2108 status.
280         * include/bits/alloc_traits.h (allocator_traits::is_always_equal):
281         Define.
282         * include/bits/allocator.h (allocator::is_always_equal): Likewise.
283         * include/bits/forward_list.h
284         (forward_list::operator=(forward_list&&)): Use __bool_constant.
285         (forward_list::swap(forward_list&)): Add noexcept.
286         * include/bits/hashtable.h (_Hashtable::operator=(_Hashtable&&)):
287         Likewise.
288         (_Hashtable::swap(_Hashtable&)): Likewise.
289         * include/bits/stl_deque.h (_Deque_base::_Deque_base(_Deque_base&&)):
290         Use _Alloc_traits::is_always_equal.
291         (deque::operator=(deque&&)): Likewise.
292         (deque::_M_move_assign1(deque&&, false_type)): Add comment and use
293         __bool_constant.
294         (swap(deque&, deque&)): Add noexcept.
295         * include/bits/stl_list.h (list::operator=(list&&)): Use
296         __bool_constant.
297         (swap(list&, list&)): Add noexcept.
298         * include/bits/stl_map.h (map::swap(map&)): Include _Compare in
299         noexcept.
300         (swap(map&, map&)): Add noexcept.
301         * include/bits/stl_multimap.h (multimap::swap(multimap&)): Include
302         _Compare in noexcept.
303         (swap(multimap&, multimap&)): Add noexcept.
304         * include/bits/stl_multiset.h (multiset::swap(multiset&)): Include
305         _Compare in noexcept.
306         (swap(multiset&, multiset&)): Add noexcept.
307         * include/bits/stl_set.h (set::swap(set&)): Include _Compare in
308         noexcept.
309         (swap(set&, set&)): Add noexcept.
310         * include/bits/stl_tree.h (_Rb_tree::operator=(_Rb_tree&&)): Include
311         _Compare in noexcept.
312         (_Rb_tree::_Rb_tree(_Rb_tree&&, _Node_alloc_type&&)): Use
313         is_always_equal.
314         * include/bits/stl_vector.h (vector::operator=(vector&&)): Use
315         __bool_constant.
316         (swap(vector&, vector&)): Add noexcept.
317         * include/bits/unordered_map.h (swap(unordered_map&, unordered_map&),
318         swap(unordered_multimap& unordered_multimap&)): Add noexcept.
319         * include/bits/unordered_set.h (swap(unordered_set&, unordered_set&),
320         swap(unordered_multiset& unordered_multiset&)): Add noexcept.
321         * include/ext/alloc_traits.h (__allocator_always_compares_equal):
322         Remove.
323         (__alloc_traits::_S_always_equal()): Use is_always_equal instead of
324         __allocator_always_compares_equal.
325         * include/ext/array_allocator.h (array_allocator::is_always_equal):
326         Define.
327         * include/std/scoped_allocator (__any_of, __propagate_on_copy,
328         __propagate_on_move, __propagate_on_swap): Remove.
329         (scoped_allocator_adaptor::propagate_on_container_copy_assignment,
330         scoped_allocator_adaptor::propagate_on_container_move_assignment,
331         scoped_allocator_adaptor::propagate_on_container_swap): Define with
332         __and_ instead of __any_of.
333         (scoped_allocator_adaptor::is_always_equal): Define.
334         * testsuite/20_util/allocator_traits/members/is_always_equal.cc: New.
335         * testsuite/20_util/scoped_allocator/propagation.cc: Make traits
336         derive from true_type or false_type.
337         * testsuite/23_containers/deque/allocator/move_assign-2.cc: Add
338         is_always_equal member and remove the trait specialization.
339         * testsuite/23_containers/vector/52591.cc: Likewise.
340         * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
341         Adjust dg-error line number.
342         * testsuite/23_containers/deque/requirements/dr438/
343         constructor_1_neg.cc: Likewise.
344         * testsuite/23_containers/deque/requirements/dr438/
345         constructor_2_neg.cc: Likewise.
346         * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
347         Likewise.
348         * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
349         Likewise.
350         * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
351         Likewise.
352         * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
353         Likewise.
354         * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
355         Likewise.
356         * testsuite/23_containers/vector/requirements/dr438/
357         constructor_1_neg.cc: Likewise.
358         * testsuite/23_containers/vector/requirements/dr438/
359         constructor_2_neg.cc: Likewise.
360         * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
361         Likewise.
363         * include/bits/stl_bvector.h (vector<bool>::vector()): Add noexcept.
364         * include/bits/stl_map.h (map::map()): Likewise.
365         * include/bits/stl_multimap.h (multimap::multimap()): Likewise.
366         * include/bits/stl_multiset.h (multiset::multiset()): Likewise.
367         * include/bits/stl_set.h (set::set()): Likewise.
369 2015-06-25  Jonathan Wakely  <jwakely@redhat.com>
371         * include/bits/locale_conv.h (__do_str_codecvt): Set __count.
373 2015-06-24  François Dumont  <fdumont@gcc.gnu.org>
375         * include/bits/basic_string.h (basic_string<>::front()): Add !empty
376         debug check.
377         (basic_string<>::back()): Likewise.
378         (basic_string<>::pop_back()): Likewise.
380 2015-06-24  Paolo Carlini  <paolo.carlini@oracle.com>
382         * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
383         dg-error line numbers.
384         * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
385         Likewise.
387 2015-06-23  François Dumont  <fdumont@gcc.gnu.org>
389         * include/debug/array: Include <array>. Add version namespace when
390         specializing tuple interface to array. Add specialization for
391         __is_tuple_like_impl.
392         * include/profile/array: Likewise.
393         * include/std/array: Include <utility>. Add specialization for
394         __is_tuple_like_impl.
395         * include/std/tuple
396         (__is_tuple_like_impl<>, __is_tuple_like_impl<pair>): Move...
397         * include/std/utility: ... here. Include <type_traits>.
398         * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: Adjust
399         dg-error line number.
400         * testsuite/23_containers/array/tuple_interface/
401         tuple_element_debug_neg.cc: Likewise.
403 2015-06-22  Jonathan Wakely  <jwakely@redhat.com>
405         * testsuite/26_numerics/complex/value_operations/1.cc: Use
406         non-negative rho argument.
408         * include/debug/list (__gnu_debug::list): Use allocator-aware
409         _Safe_container base.
410         * include/debug/string (__gnu_debug::basic_string): Use
411         allocator-aware _Safe_container base for cxx11 ABI.
413         * include/bits/locale_conv.h (__do_str_codecvt): Handle empty range.
414         (wstring_convert): Move into __cxx11 namespace.
415         (wbuffer_convert(streambuf*, _Codecvt*, state_type)): Fix exception
416         message.
418         PR libstdc++/64657
419         * include/bits/stl_uninitialized.h
420         (__uninitialized_copy::__uninit_copy): Cast expression to void.
422 2015-06-17  Jonathan Wakely  <jwakely@redhat.com>
424         PR libstdc++/55409
425         * include/bits/list.tcc (_List_base::_M_clear()): Use allocator traits.
426         (list::list(const list&)): Use allocator propagation trait. Use
427         _M_assign_dispatch to copy elements.
428         * include/bits/stl_list.h (_List_node): Use __aligned_membuf in C++11.
429         (_List_node::_M_valptr()): Add accessor for stored value.
430         (_List_iterator, _List_const_iterator, _List_base): Use _M_valptr().
431         (_List_base, list): Use allocator traits.
432         (_List_base::_M_get_Tp_allocator, _List_base::get_allocator): Remove.
433         (_List_base::_M_move_nodes): New function.
434         (_List_base(_List_base&&)): Use _M_move_nodes.
435         (_List_base(_List_base&&, _Node_alloc_type&&)): New constructor.
436         (list::_M_create_node, list::_M_erase, list::max_size): Use allocator
437         traits.
438         (list(size_type)): Add allocator parameter.
439         (list(const list&)): Use allocator propagation trait.
440         (list(const list&, const allocator_type&)): New constructor.
441         (list(list&&, const allocator_type&)): Likewise.
442         (list::operator=(list&&), list::swap(list&)): Use allocator
443         propagation traits.
444         (list::_M_move_assign): New functions.
445         * include/debug/list: Add allocator-extended constructors.
446         * include/profile/list: Likewise.
447         * python/libstdcxx/v6/printers.py (get_value_from_list_node): New
448         function to get value from _List_node.
449         (StdListPrinter): Use get_value_from_list_node.
450         * testsuite/23_containers/list/allocator/copy.cc: New.
451         * testsuite/23_containers/list/allocator/copy_assign.cc: New.
452         * testsuite/23_containers/list/allocator/minimal.cc: New.
453         * testsuite/23_containers/list/allocator/move.cc: New.
454         * testsuite/23_containers/list/allocator/move_assign.cc: New.
455         * testsuite/23_containers/list/allocator/noexcept.cc: New.
456         * testsuite/23_containers/list/allocator/swap.cc: New.
457         * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
458         Adjust dg-prune-output line number.
459         * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
460         Likewise.
461         * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
462         Likewise.
464         * include/bits/forward_list.h
465         (_Fwd_list_base(const _Node_alloc_type&)): Change parameter to
466         rvalue-reference.
467         (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Likewise.
468         (forward_list(const _Alloc&)): Split default constructor out to
469         separate function.
470         (forward_list(forward_list&&, const _Alloc&)): Move elements if base
471         class didn't do so.
472         (forward_list::_M_move_assign(forward_list&&, true_type)): Replace
473         swap call with two assignments.
474         * include/bits/forward_list.tcc
475         (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Don't
476         move elements when allocators are not equal.
477         * include/debug/forward_list (forward_list(const allocator_type&)):
478         Split default constructor out to separate function.
479         * include/profile/forward_list (forward_list(const _Alloc&)):
480         Likewise.
482         * include/bits/forward_list.h (forward_list::_M_get_Node_allocator):
483         Remove unnecessary uses of operator& and static_cast.
484         * include/bits/forward_list.tcc
485         (forward_list::operator=(const forward_list&)): Use __addressof
486         instead of operator&.
487         (forward_list::remove(const _Tp&), forward_list::remove(_Pred)):
488         Remove invalid static_casts.
489         * include/debug/forward_list: Use __addressof instead of operator&.
490         * testsuite/23_containers/forward_list/modifiers/addressof.cc: New.
492         * include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()): Use
493         __is_nothrow_swappable.
495 2015-06-16  Jonathan Wakely  <jwakely@redhat.com>
497         * include/bits/allocated_ptr.h (__allocated_ptr): Use __addressof.
499         * include/bits/list.tcc (list::operator=(const list&), list::merge):
500         Use __addressof instead of operator&.
501         (list::sort): Use array-to-pointer decay instead of operator&.
502         * include/bits/stl_list.h (list::splice): Use __addressof instead of
503         operator&.
504         * include/debug/formatter.h (_Error_formatter::_Parameter::_Parameter):
505         Likewise.
506         * include/debug/functions.h (__check_singular): Likewise.
507         * include/debug/list (list::splice, list::merge): Likewise.
508         * testsuite/23_containers/list/modifiers/addressof.cc: New.
510         PR libstdc++/65393
511         * src/c++11/thread.cc (thread::_M_make_thread): Replace shared_ptr
512         copies with moves.
514 2015-06-12  Jonathan Wakely  <jwakely@redhat.com>
516         * include/precompiled/stdc++.h: Include <codecvt> and <shared_mutex>.
518         PR libstdc++/66464
519         * src/c++11/codecvt.cc (codecvt_utf16_base<char32_t>::do_max_length):
520         Return 4 not 3.
522 2015-06-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
524         PR c++/66192
525         PR target/66200
526         * config/cpu/alpha/atomic_word.h: Remove.
527         * config/cpu/ia64/atomic_word.h: Remove.
528         * config/cpu/powerpc/atomic_word.h: Remove.
529         * config/os/aix/atomic_word.h: Remove.
530         * configure.host (atomic_word_dir) [ia64, aix*, powerpc, alpha]:
531         Use generic definition.
533 2015-06-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
535         PR target/66200
536         PR c++/66192
537         * * config/cpu/generic/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER): Define
538         (_GLIBCXX_WRITE_MEM_BARRIER): Likewise
539         * include/bits/shared_ptr_base.h: Use ACQ_REL barrier.
540         * include/ext/atomicity.h: Likewise.
541         * include/tr1/shared_ptr.h: Likewise.
542         * libsupc++/guard.cc (__test_and_acquire): Rewrite with atomics.
543         Update comment.
544         (__set_and_release): Likewise.
545         * testsuite/20_util/shared_ptr/cons/43820_neg.cc (test01): Adjust for
546         line numbers.
547         * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
548         * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
549         Likewise.
551 2015-06-12  Jonathan Wakely  <jwakely@redhat.com>
553         * include/std/tuple (__is_tuple_like_impl): Disambiguate array in
554         debug and profile modes.
555         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Adjust tests
556         for swap in C++11 and later.
558 2015-06-09  Jonathan Wakely  <jwakely@redhat.com>
560         PR libstdc++/66030
561         * config/abi/pre/gnu.ver: Export codecvt_byname and codecvt symbols
562         for mingw32.
564 2015-06-08  Jonathan Wakely  <jwakely@redhat.com>
566         PR libstdc++/66441
567         * testsuite/22_locale/conversions/string/66441.cc: New.
568         * include/bits/locale_conv.h (__do_str_codecvt): Reserve enough space
569         in the output string for BOM and complete result.
571         PR libstdc++/66417
572         * src/c++11/codecvt.cc (write_utf16_code_point): Use adjust_byte_order
573         for single UTF-16 units.
574         * testsuite/22_locale/codecvt/codecvt_utf16/66417.cc: New.
576 2015-06-07  François Dumont  <fdumont@gcc.gnu.org>
578         * include/bits/stl_tree.h (_Rb_tree<>::__is_transparent<>): Move to
579         outer scope and rename to ...
580         (std::__hash_is_transparent<>): ... this.
581         * include/debug/stl_map.h (map::find<>,
582         map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
583         member function templates to perform heterogeneous lookup.
584         * include/debug/stl_multimap.h (multimap::find<>,
585         multimap::lower_bound<>, multimap::upper_bound<>,
586         multimap::equal_range<>): Likewise.
587         * include/debug/stl_multiset.h (multiset::find<>,
588         multiset::lower_bound<>, multiset::upper_bound<>,
589         multiset::equal_range<>): Likewise.
590         * include/debug/stl_set.h (set::find<>,
591         set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
592         * include/profile/stl_map.h (map::find<>, map::count<>,
593         map::lower_bound<>, map::upper_bound<>, map::equal_range<>): Likewise.
594         * include/profile/stl_multimap.h (multimap::find<>, multimap::count<>,
595         multimap::lower_bound<>, multimap::upper_bound<>,
596         multimap::equal_range<>): Likewise.
597         * include/profile/stl_multiset.h (multiset::find<>, multiset::count<>,
598         multiset::lower_bound<>, multiset::upper_bound<>,
599         multiset::equal_range<>): Likewise.
600         * include/profile/stl_set.h (set::find<>, set::count<>,
601         set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
602         * testsuite/23_containers/map/operations/1.cc: Check const variants.
603         * testsuite/23_containers/multimap/operations/1.cc: Likewise.
604         * testsuite/23_containers/multiset/operations/1.cc: Likewise.
605         * testsuite/23_containers/set/operations/1.cc: Likewise.
607 2015-06-05  Jonathan Wakely  <jwakely@redhat.com>
609         * doc/xml/manual/status_cxx2017.xml: Update status tables.
610         * doc/html/manual/*: Regenerate.
611         * include/std/type_traits (bool_constant): Define.
612         * testsuite/20_util/bool_constant/requirements.cc: New.
613         * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
614         * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
615         Likewise.
616         * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
617         Likewise.
619         * include/std/shared_mutex (__shared_mutex_pthread,
620         __shared_mutex_cv): New helper types implementing the shared mutex
621         requirements.
622         (shared_mutex): New type for C++17.
623         (shared_timed_mutex): Derive from one of the new helper types.
624         * testsuite/30_threads/shared_mutex/cons/1.cc: New.
625         * testsuite/30_threads/shared_mutex/cons/assign_neg.cc: New.
626         * testsuite/30_threads/shared_mutex/cons/copy_neg.cc: New.
627         * testsuite/30_threads/shared_mutex/requirements/standard_layout.cc:
628         New.
629         * testsuite/30_threads/shared_mutex/try_lock/1.cc: New.
630         * testsuite/30_threads/shared_mutex/try_lock/2.cc: New.
632 2015-06-05  Ville Voutilainen  <ville.voutilainen@gmail.com>
634         Add __is_nothrow_swappable and take it into use.
635         * include/bits/algorithmfwd.h (swap): Only declare for C++98 mode.
636         * include/bits/move.h (swap): Add constraints in C++11 and later.
637         * include/bits/stl_pair.h (swap): Use __is_nothrow_swappable
638         for the free swap function for pair.
639         * include/bits/stl_queue.h (swap): Use __is_nothrow_swappable
640         for the free swap functions for queue and priority_queue.
641         * include/bits/stl_stack.h (swap): Use __is_nothrow_swappable
642         for the free swap function for stack.
643         * include/debug/array (swap): Use __is_nothrow_swappable
644         for the free swap function for array.
645         * include/profile/array (swap): Likewise.
646         * include/std/array (swap): Likewise.
647         * include/std/tuple (_Tuple_impl::_M_swap): Use __is_nothrow_swappable.
648         * include/std/type_traits (__is_swappable_impl::__is_swappable,
649         __is_nothrow_swappable_impl, __is_nothrow_swappable): New.
650         * testsuite/20_util/is_nothrow_swappable/requirements/
651         explicit_instantiation.cc: New.
652         * testsuite/20_util/is_nothrow_swappable/requirements/typedefs.cc:
653         New.
654         * testsuite/20_util/is_nothrow_swappable/value.cc: New.
656 2015-06-03  François Dumont  fdumont@gcc.gnu.org>
658         * testsuite/23_containers/list/61347.cc: Add dg-require-normal-mode.
660 2015-06-02  Jonathan Wakely  <jwakely@redhat.com>
662         * doc/xml/manual/abi.xml: Document versioning for 5.1.0 release.
663         * doc/html/manual/*: Regenerate.
665         * doc/html/ext/lwg-active.html: Update to R93.
666         * doc/html/ext/lwg-closed.html: Likewise.
667         * doc/html/ext/lwg-defects.html: Likewise.
668         * doc/html/manual/*: Regenerate.
669         * doc/xml/manual/intro.xml: Document status of several DRs.
671 2015-06-02  Renlin Li  <renlin.li@arm.com>
673         * testsuite/27_io/fpos/14775.cc: Add _GLIBCXX_HAVE_LIMIT_FSIZE check.
675 2015-06-01  Jonathan Wakely  <jwakely@redhat.com>
677         * testsuite/lib/libstdc++.exp (libstdc++_init): Unset LANGUAGE
678         environment variable.
680 2015-05-31  Jonathan Wakely  <jwakely@redhat.com>
682         PR libstdc++/66354
683         * include/bits/stl_algobase.h (__fill_a): Check length before calling
684         memset.
686 2015-05-30  Jonathan Wakely  <jwakely@redhat.com>
688         * include/bits/stl_algobase.h (__equal<true>::equal): Check length
689         instead of checking for null pointers.
690         (__lexicographical_compare<true>::__lc): Only check shorter length.
692 2015-05-29  François Dumont  fdumont@gcc.gnu.org>
694         * include/debug/debug.h (_GLIBCXX_DEBUG_ASSERT,
695         _GLIBCXX_DEBUG_PEDASSERT, _GLIBCXX_DEBUG_ONLY): Move definition...
696         * include/debug/assertions.h: ...here, new.
697         * include/debug/formatter.h
698         (_Error_formatter::_Is_iterator_value_type): New.
699         (_Error_formatter::_Is_instance): New.
700         (_Error_formatter::_Parameter): Make public and not friend anymore.
701         (_Error_formatter::_Parameter::__instance): New _M_kind enum entry.
702         (_Error_formatter::_Parameter::__iterator_value_type): New _M_kind enum
703         entry.
704         (_Error_formatter::_Parameter::_Type): New.
705         (_Error_formatter::_Parameter::_Instance): New, inherit from
706         latter.
707         (union _Error_formatter::_Parameter::_M_variant): Reorganize.
708         (_Parameter(_Iterator const&, const char*, _Is_iterator)): Make all
709         overloads take iterator through a const reference.
710         (_Parameter(const _Iterator&, const char*, _Is_iterator_value_type)):
711         New.
712         (_Parameter(const _Type&, const char*, _Is_instance)): New.
713         (_Error_formatter::_M_print_type): Delete.
714         (_Error_formatter::_M_iterator_value_type): New.
715         (_Error_formatter::_M_instance): New.
716         * include/Makefile.am: Add new above debug file.
717         * include/Makefile.in: Regenerate.
718         * include/debug/functions.h
719         (__check_dereferenceable(const _Safe_iterator<>&),
720         __valid_range(const _Safe_iterator<>&),
721         __is_safe_random_iterator<_Safe_iterator<>>): Move...
722         * include/debug/safe_iterator.h: ... here.
723         Replace debug.h include with assertions.h.
724         (__check_singular_aux): Move...
725         * include/debug/safe_base.h: ... here.
726         * include/debug/functions.h
727         (__check_dereferenceable(const _Safe_local_iterator<>&),
728         __valid_range(const _Safe_local_iterator<>&): Move...
729         * include/debug/safe_local_iterator.h: ...here.
730         * include/debug/safe_sequence.h: Replace debug.h with assertions.h.
731         Remove _Safe_iterator declaration.
732         * include/debug/safe_unordered_container.h: Replace debug.h with
733         assertions.h.
734         * include/debug/array: Replace safe_sequence.h include with
735         formatter.h and macros.h.
736         * include/debug/deque: Include functions.tcc.
737         * include/debug/forward_list: Likewise.
738         * include/debug/list: Likewise.
739         * include/debug/string: Likewise.
740         * include/debug/vector: Likewise.
741         * include/bits/unique_ptr.h: Replace debug.h include with new
742         assertions.h.
743         * include/bits/stl_iterator_base_funcs.h: Likewise.
744         * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
745         Adjust dg-error line number.
746         * testsuite/23_containers/array/tuple_interface/
747         tuple_element_debug_neg.cc: Likewise.
748         * src/c++11/debug.cc: Adapt.
750 2015-05-29  Jonathan Wakely  <jwakely@redhat.com>
752         * doc/xml/manual/status_cxx2017.xml: Fix duplicate ID attribute.
753         * doc/html/manual/*: Regenerate.
755         * include/std/future (__async_result_of): New alias template.
756         (async): Use __async_result_of to pass decayed types to result_of.
757         * testsuite/30_threads/async/lwg2021.cc: New.
758         * doc/xml/manual/intro.xml: Document LWG 2021 status.
760         PR libstdc++/66327
761         * include/bits/stl_algobase.h (__equal<true>::equal): Do not call
762         memcmp with null pointers.
763         (__lexicographical_compare<true>::__lc): Do not call memcmp for empty
764         ranges.
766 2015-05-28  Jonathan Wakely  <jwakely@redhat.com>
768         PR libstdc++/65352
769         * include/profile/array (array::data): Use _S_ptr.
770         * include/debug/array (array::data): Likewise.
772         PR libstdc++/65352
773         * include/std/array (__array_traits::_S_ptr): New function.
774         (array::data): Use _S_ptr to avoid creating invalid reference.
775         * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
776         dg-error line numbers.
777         * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
778         likewise.
780 2015-05-27  Jonathan Wakely  <jwakely@redhat.com>
782         * include/bits/stl_tree.h (_Rb_tree::_M_end()): Return _Base_ptr
783         instead of downcasting.
784         (_Rb_tree::_M_copy): Change second parameter to _Base_ptr.
785         (_Rb_tree::_M_lower_bound, _Rb_tree:_M_upper_bound): Likewise.
786         (_Rb_tree::_S_iter): Remove.
787         (_Rb_tree::_S_lower_bound_tr, _Rb_tree::_S_upper_bound_tr): Remove.
788         (_Rb_tree::_M_find_tr(const _Kt&) const): Call _M_lower_bound_tr
789         instead of _S_lower_bound_tr
790         (_Rb_tree::_M_find_tr(const _Kt&)): Call const overload.
791         (_Rb_tree::_M_lower_bound_tr(const _Kt&) const): Do the search here
792         instead of calling _S_lower_bound_tr.
793         (_Rb_tree::_M_lower_bound_tr(const _Kt&)): Call const overload.
794         (_Rb_tree::_M_upper_bound_tr(const _Kt&) const): Do the search here
795         instead of calling _S_upper_bound_tr.
796         (_Rb_tree::_M_upper_bound_tr(const _Kt&)): Call const overload.
797         (_Rb_tree::_M_equal_range_tr(const _Kt&)): Likewise.
798         (_Rb_tree::equal_range): Use _Base_ptr for end pointer.
799         (_Rb_tree::_M_get_insert_unique_pos): Likewise.
800         (_Rb_tree::_M_get_insert_equal_pos): Likewise.
801         (_Rb_tree::_M_insert_equal_lower_node): Likewise.
802         (_Rb_tree::_M_insert_unique, _Rb_tree::_M_emplace_unique,
803         _Rb_tree::_M_emplace_hint_unique): Remove static_cast.
805         PR libstdc++/66017
806         * include/bits/stl_tree.h (_Rb_tree_node): Use __aligned_membuf.
807         (_Rb_tree_iterator, _Rb_tree_const_iterator): Support construction
808         from _Base_ptr.
809         (_Rb_tree_const_iterator::_M_const_cast): Remove static_cast.
810         (_Rb_tree::begin, _Rb_tree::end): Remove static_cast.
811         * include/ext/aligned_buffer.h (__aligned_membuf): New type using
812         alignment of _Tp as a member subobject, not as a complete object.
813         * python/libstdcxx/v6/printers.py (StdRbtreeIteratorPrinter): Lookup
814         _Link_type manually as it might not be in the debug info.
816 2015-05-26  Doug Evans  <dje@google.com>
818         * python/libstdcxx/v6/xmethods.py (UniquePtrMethodsMatcher): Add
819         operator-> support.
820         * testsuite/libstdc++-xmethods/unique_ptr.cc: Add tests for
821         operator->.
823 2015-05-26  Jonathan Wakely  <jwakely@redhat.com>
825         * include/bits/locale_conv.h: Fix copyright years.
826         * include/bits/quoted_string.h: Likewise.
827         * src/filesystem/Makefile.am: Likewise.
828         * testsuite/22_locale/conversions/buffer/1.cc: Likewise.
829         * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc:
830         Likewise.
831         * testsuite/22_locale/conversions/string/1.cc: Likewise.
832         * testsuite/22_locale/conversions/string/2.cc: Likewise.
833         * testsuite/22_locale/conversions/string/3.cc: Likewise.
834         * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
835         Likewise.
836         * testsuite/22_locale/conversions/string/requirements/typedefs.cc:
837         Likewise.
838         * testsuite/util/testsuite_fs.h: Likewise.
840 2015-05-23  François Dumont  fdumont@gcc.gnu.org>
842         PR libstdc++/64657
843         * include/debug/functions.h (__check_sorted_aux): Cast expression to
844         void.
846 2015-05-21  David Edelsohn  <dje.gcc@gmail.com>
848         PR target/66224
849         * config/cpu/powerpc/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER):
850         Don't use isync. Use lwsync if available.
851         * configure.host (atomic_word_dir) [aix[56789]*]: Delete to use
852         powerpc cpu definition.
854 2015-05-21  Jason Merrill  <jason@redhat.com>
856         * libsupc++/del_opv.cc: Suppress -Wsized-deallocation.
857         * libsupc++/del_op.cc: Likewise.
859 2015-05-20  François Dumont  fdumont@gcc.gnu.org>
861         * include/debug/formatter.h (_GLIBCXX_TYPEID): New macro to simplify
862         usage of typeid.
863         (_Error_formatter::_M_print_type): New.
864         * src/c++11/debug.cc
865         (_Error_formatter::_Parameter::_M_print_field): Use latter.
866         (_Error_formatter::_M_print_type): Implement latter using
867         __cxaabiv1::__cxa_demangle to print demangled type name.
869         * include/bits/cpp_type_traits.h
870         (std::move_iterator): Delete declaration.
871         (std::__is_move_iterator<move_iterator>): Move partial specialization...
872         * include/bits/stl_iterator.h: ... here.
873         (std::__miter_base): Overloads for std::reverse_iterator and
874         std::move_iterator.
875         * include/bits/stl_algobase.h (std::__miter_base): Provide default
876         implementation.
878 2015-05-20  Jonathan Wakely  <jwakely@redhat.com>
880         * testsuite/util/testsuite_fs.h (nonexistent_path): Don't use tempnam.
882         PR libstdc++/66078
883         * include/bits/stl_iterator.h (__make_move_if_noexcept_iterator): Add
884         overload for pointers.
885         * testsuite/20_util/specialized_algorithms/uninitialized_copy/
886         808590.cc: Add -std=gnu++03 switch.
887         * testsuite/20_util/specialized_algorithms/uninitialized_copy/
888         808590-cxx11.cc: Copy of 808590.cc to test with -std=gnu++11.
889         * testsuite/23_containers/vector/modifiers/push_back/
890         strong_guarantee.cc: New.
892 2015-05-19  Jonathan Wakely  <jwakely@redhat.com>
894         * include/bits/stl_list.h (_M_resize_pos(size_type&)): Declare.
895         (operator==(const list&, const list&)): If size() is O(1) compare
896         sizes before comparing each element.
897         * include/bits/list.tcc (list::_M_resize_pos(size_type&)): Define.
898         (list::resize): Use _M_resize_pos.
900 2015-05-19  François Dumont  <fdumont@gcc.gnu.org>
902         * testsuite/23_containers/unordered_map/cons/66055.cc: Add constructor
903         invocations.
904         * testsuite/23_containers/unordered_multimap/cons/66055.cc: Likewise.
905         * testsuite/23_containers/unordered_multiset/cons/66055.cc: Likewise.
906         * testsuite/23_containers/unordered_set/cons/66055.cc: Likewise.
908 2015-05-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
910         * configure.host: Define cpu_defines_dir for ARM.
911         * config/cpu/arm/cpu_defines.h: New file.
913 2015-05-17  François Dumont  <fdumont@gcc.gnu.org>
915         * include/bits/unordered_map.h (unordered_map, unordered_multimap): Add
916         missing constructors.
917         * include/bits/unordered_set.h (unordered_set, unordered_multiset):
918         Likewise.
919         * include/debug/unordered_map (unordered_map, unordered_multimap): Add
920         missing constructors.
921         * include/debug/unordered_set (unordered_set, unordered_multiset):
922         Likewise.
923         * include/profile/unordered_map (unordered_map, unordered_multimap): Add
924         missing constructors.
925         * include/profile/unordered_set (unordered_set, unordered_multiset):
926         Likewise.
928 2015-05-15  Jonathan Wakely  <jwakely@redhat.com>
930         * src/filesystem/ops.cc (stat_type): Define alias for struct stat and
931         use throughout the file.
932         (make_file_type): New function.
933         (file_size(const path&, error_code&)): Report an error for anything
934         that isn't a regular file.
935         (status(const path&), symlink_status(const path&)): Do not throw for
936         file_type::not_found.
937         (temp_directory_path()): Check additional environment variables.
938         * testsuite/experimental/filesystem/operations/exists.cc: New.
939         * testsuite/experimental/filesystem/operations/file_size.cc: New.
940         * testsuite/experimental/filesystem/operations/status.cc: New.
941         * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
942         New.
944 2015-05-14  Nathan Myers  <ncm@cantrip.org>
945             Jonathan Wakely  <jwakely@redhat.com>
947         PR libstdc++/66055
948         * include/std/unordered_map (unordered_map, unordered_multimap): Add
949         missing constructors.
950         * include/std/unordered_set (unordered_set, unordered_multiset):
951         Likewise.
952         * testsuite/23_containers/unordered_map/cons/66055.cc: New.
953         * testsuite/23_containers/unordered_multimap/cons/66055.cc: New.
954         * testsuite/23_containers/unordered_multiset/cons/66055.cc: New.
955         * testsuite/23_containers/unordered_set/cons/66055.cc: New.
957 2015-05-14  Jonathan Wakely  <jwakely@redhat.com>
959         PR libstdc++/66011
960         * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmod and
961         sendfile.
962         * config.h.in: Regenerate.
963         * configure: Regenerate.
964         * src/filesystem/ops.cc (do_copy_file): Fix arguments to open(). Do
965         not return after copying contents. Use fchmod, fchmodat, and sendfile
966         when available.
967         (current_path, permissions, space): Use errno not return value.
969         PR libstdc++/66018
970         * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for struct
971         dirent.d_type.
972         * config.h.in: Regenerate.
973         * configure: Regenerate.
974         * configure.ac (AC_STRUCT_DIRENT_D_TYPE): Remove.
976 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
978         * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Delete.
979         * configure.ac: Remove GLIBCXX_ENABLE_SJLJ_EXCEPTIONS.
980         * config.h.in: Regenerate.
981         * configure: Likewise.
982         * libsupc++/eh_personality.cc: Replace _GLIBCXX_SJLJ_EXCEPTIONS by
983         __USING_SJLJ_EXCEPTIONS__.
984         * libsupc++/eh_throw.cc: Likewise.
985         * libsupc++/eh_ptr.cc: Likewise.
986         * doc/html/manual/appendix_porting.html: Remove
987         GLIBCXX_ENABLE_SJLJ_EXCEPTIONS
988         * doc/xml/manual/build_hacking.xml: Likewise.
989         * doc/html/manual/configure.html: Remove --enable-sjlj-exceptions.
990         * doc/xml/manual/configure.xml: Likewise.
992 2015-05-13  Jonathan Wakely  <jwakely@redhat.com>
994         * include/bits/shared_ptr_base.h (__shared_count(unique_ptr&&)): Check
995         for nullptr (LWG 2415).
996         * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc: Test
997         construction from empty unique_ptr.
998         * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error.
999         * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
1001         * include/bits/stl_raw_storage_iter.h (raw_storage_iterator::base()):
1002         Define (LWG 2454).
1003         * testsuite/20_util/raw_storage_iterator/base.cc: New.
1005         * include/std/future (packaged_task(allocator_arg_t, const A&, F&&):
1006         Remove explicit (LWG 2407).
1008         * include/bits/basic_string.h (basic_string::basic_string()): Make
1009         noexcept conditional on allocator (LWG 2455).
1011         * include/std/complex (polar): Check for negative rho (LWG 2459).
1013         * include/experimental/tuple (apply): Handle pointers to member (LWG
1014         2418).
1015         * include/std/functional (_Mem_fn_base): Make constructors constexpr.
1016         (_Maybe_wrap_member_pointer::__do_wrap): Make constexpr.
1017         * testsuite/experimental/tuple/apply.cc: Test pointer to member.
1019         * include/bits/random.h (seed_seq): More noexcept (LWG 2440).
1021         * include/bits/alloc_traits.h (_S_max_size): Implement LWG 2466.
1022         * testsuite/20_util/allocator_traits/members/max_size.cc: Adjust.
1023         * testsuite/23_containers/forward_list/allocator/minimal.cc:
1024         Likewise.
1025         * testsuite/23_containers/map/allocator/minimal.cc: Likewise.
1026         * testsuite/23_containers/multimap/allocator/minimal.cc: Likewise.
1027         * testsuite/23_containers/multiset/allocator/minimal.cc: Likewise.
1028         * testsuite/23_containers/set/allocator/minimal.cc: Likewise.
1029         * testsuite/23_containers/unordered_map/allocator/minimal.cc:
1030         Likewise.
1031         * testsuite/23_containers/unordered_multimap/allocator/minimal.cc:
1032         Likewise.
1033         * testsuite/23_containers/unordered_multiset/allocator/minimal.cc:
1034         Likewise.
1035         * testsuite/23_containers/unordered_set/allocator/minimal.cc:
1036         Likewise.
1037         * testsuite/util/testsuite_allocator.h: Remove unused parameter.
1039         * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Re-enable on solaris.
1040         * configure: Regenerate.
1042 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
1044         * Makefile.in: Regenerated with automake-1.11.6.
1045         * aclocal.m4: Likewise.
1046         * configure: Likewise.
1047         * doc/Makefile.in: Likewise.
1048         * include/Makefile.in: Likewise.
1049         * libsupc++/Makefile.in: Likewise.
1050         * po/Makefile.in: Likewise.
1051         * python/Makefile.in: Likewise.
1052         * src/Makefile.in: Likewise.
1053         * src/c++11/Makefile.in: Likewise.
1054         * src/c++98/Makefile.in: Likewise.
1055         * src/filesystem/Makefile.in: Likewise.
1056         * testsuite/Makefile.in: Likewise.
1058 2015-05-09  Jason Merrill  <jason@redhat.com>
1060         * testsuite/20_util/headers/functional/synopsis.cc: Add
1061         _GLIBCXX14_CONSTEXPR.
1062         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
1064 2015-05-08  Jason Merrill  <jason@redhat.com>
1066         * testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc: Add -std=c++98.
1067         * testsuite/20_util/auto_ptr/1.cc: Add -std=c++98.
1068         * testsuite/20_util/auto_ptr/2.cc: Add -std=c++98.
1069         * testsuite/20_util/auto_ptr/3.cc: Add -std=c++98.
1070         * testsuite/20_util/auto_ptr/4.cc: Add -std=c++98.
1071         * testsuite/20_util/auto_ptr/5.cc: Add -std=c++98.
1072         * testsuite/20_util/auto_ptr/6.cc: Add -std=c++98.
1073         * testsuite/20_util/auto_ptr/7.cc: Add -std=c++98.
1074         * testsuite/20_util/auto_ptr/3946.cc: Add -std=c++98.
1075         * testsuite/20_util/auto_ptr/assign_neg.cc: Add -std=c++98.
1076         * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc:
1077         Likewise.
1078         * testsuite/20_util/headers/functional/synopsis.cc: Add -Wno-deprecated.
1079         * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
1080         Adjust expected errors.
1081         * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
1082         Likewise.
1083         * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
1084         Likewise.
1085         * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
1086         Likewise.
1087         * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
1088         Likewise.
1089         * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
1090         Likewise.
1091         * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
1092         Likewise.
1093         * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
1094         Likewise.
1095         * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
1096         Likewise.
1097         * testsuite/23_containers/vector/requirements/dr438
1098         /constructor_1_neg.cc: Likewise.
1099         * testsuite/23_containers/vector/requirements/dr438
1100         /constructor_2_neg.cc: Likewise.
1101         * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
1102         Likewise.
1103         * testsuite/ext/array_allocator/1.cc: Add -Wno-deprecated.
1104         * testsuite/ext/array_allocator/2.cc: Add -Wno-deprecated.
1105         * testsuite/ext/array_allocator/26875.cc: Add -Wno-deprecated.
1106         * testsuite/ext/array_allocator/3.cc: Add -Wno-deprecated.
1107         * testsuite/ext/array_allocator/check_allocate_max_size.cc:
1108         Add -Wno-deprecated.
1109         * testsuite/ext/array_allocator/check_deallocate_null.cc:
1110         Add -Wno-deprecated.
1111         * testsuite/ext/array_allocator/check_delete.cc: Add -Wno-deprecated.
1112         * testsuite/ext/array_allocator/check_new.cc: Add -Wno-deprecated.
1113         * testsuite/ext/profile/mutex_extensions_neg.cc: Prune follow-on error.
1114         * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc:
1115         Add -std=c++98.
1116         * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc:
1117         Add -std=c++98.
1118         * testsuite/tr1/2_general_utilities/shared_ptr/assign
1119         /auto_ptr_rvalue_neg.cc: Add -std=c++98.
1120         * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
1121         Add -std=c++98 -fno-show-column.
1122         * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc:
1123         Add -std=c++98.
1124         * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc:
1125         Add -std=c++98.
1126         * testsuite/tr1/6_containers/utility/pair.cc: Add -std=c++98.
1127         * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Add -std=c++98.
1129         * src/c++98/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
1130         * src/c++98/Makefile.in: Regenerate.
1131         * src/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
1132         * src/Makefile.in: Regenerate.
1134 2015-05-02  Jonathan Wakely  <jwakely@redhat.com>
1136         PR libstdc++/51617
1137         * include/std/future (async): Change default policy to launch::async.
1139         * include/experimental/any (any::_Storage): Fix alignment of buffer.
1140         (any::_Internal): Check alignment of type.
1141         * testsuite/experimental/any/cons/aligned.cc: New.
1142         * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
1144         * include/experimental/iterator (ostream_joiner): Simplify by using
1145         the injected-class-name and the ostream_type typedef.
1147         * include/experimental/iterator: New. Define ostream_joiner.
1148         * include/Makefile.am: Add new header.
1149         * include/Makefile.in: Regenerate.
1150         * testsuite/experimental/iterator/make_ostream_joiner.cc: New.
1151         * testsuite/experimental/iterator/ostream_joiner.cc: New.
1152         * testsuite/experimental/iterator/requirements.cc: New.
1153         * doc/xml/manual/status_cxx2017.xml: Update status.
1154         * doc/html/manual/status.html: Regenerate.
1156         * include/experimental/numeric: New. Define gcd and lcm.
1157         * include/Makefile.am: Add new header.
1158         * include/Makefile.in: Regenerate.
1159         * testsuite/experimental/numeric/gcd.cc: New.
1160         * testsuite/experimental/numeric/lcm.cc: New.
1161         * doc/xml/manual/status_cxx2017.xml: Update status.
1162         * doc/html/manual/status.html: Regenerate.
1164 2015-05-02  Edward Smith-Rowland  <3dw4rd@verizon.net>
1166         Revert addition of feature macros from other headers per latest SD-6.
1167         * include/experimental/deque: Remove feature-test macro.
1168         * include/experimental/forward_list: Ditto.
1169         * include/experimental/list: Ditto.
1170         * include/experimental/map: Ditto.
1171         * include/experimental/set: Ditto.
1172         * include/experimental/string: Ditto.
1173         * include/experimental/unordered_map: Ditto.
1174         * include/experimental/unordered_set: Ditto.
1176 2015-05-02  Jonathan Wakely  <jwakely@redhat.com>
1178         * include/experimental/any (any::_Storage): Make non-copyable.
1179         (any::any): Do not copy _Storage object.
1180         (any::operator=): Implement more efficiently than swapping.
1181         (any::swap): Use new _Op_xfer operation.
1182         (any::_Op::_Op_xfer): New enumerator.
1183         (_Manager_internal::_S_alloc): Remove unused function.
1184         (_Manager_internal::_S_create, _Manager_external::_S_create): Use out
1185         parameter instead of returning a _Storage object.
1186         (_Manager_internal::_S_manage, _Manager_external::_S_manage): Add
1187         _Op_xfer operation for moving and swapping.
1188         * testsuite/experimental/any/cons/nontrivial.cc: New.
1189         * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
1191         * include/experimental/fs_path.h (filesystem_error::~filesystem_error):
1192         Declare.
1193         * src/filesystem/path.cc (filesystem_error::~filesystem_error):
1194         Define.
1196         PR libstdc++/65978
1197         * include/std/tuple (forward_as_tuple, tie): Add constexpr.
1198         * testsuite/20_util/tuple/creation_functions/constexpr.cc: Uncomment
1199         and fix tests for forward_as_tuple and tie.
1201         * src/filesystem/ops.cc (last_write_time) [_GLIBCXX_USE_UTIMENSAT]:
1202         Set timespec members explicitly instead of with a braced-init-list.
1203         [_GLIBCXX_HAVE_UTIME_H]: Use lambda to handle st_atime being a macro.
1205 2015-05-02  Edward Smith-Rowland  <3dw4rd@verizon.net>
1207         * include/experimental/deque: Add feature-test macro.
1208         * include/experimental/forward_list: Ditto.
1209         * include/experimental/list: Ditto.
1210         * include/experimental/map: Ditto.
1211         * include/experimental/set: Ditto.
1212         * include/experimental/string: Ditto.
1213         * include/experimental/unordered_map: Ditto.
1214         * include/experimental/unordered_set: Ditto.
1216 2015-05-01  Jonathan Wakely  <jwakely@redhat.com>
1218         * include/experimental/memory: Correct feature-test macro.
1220         * include/experimental/memory: Add feature-test macro.
1221         * include/experimental/vector: Likewise.
1222         * doc/xml/manual/status_cxx2017.xml: Update status.
1223         * doc/html/manual/status.html: Regenerate.
1225 2015-05-01  Ville Voutilainen  <ville.voutilainen@gmail.com>
1227         Implement observer_ptr.
1228         * include/Makefile.am: Add new header.
1229         * include/Makefile.in: Regenerate.
1230         * include/experimental/memory: New.
1231         * testsuite/experimental/memory/observer_ptr/assignment/assign.cc: New.
1232         * testsuite/experimental/memory/observer_ptr/cons/cons.cc: New.
1233         * testsuite/experimental/memory/observer_ptr/hash/hash.cc: New.
1234         * testsuite/experimental/memory/observer_ptr/make_observer.cc: New.
1235         * testsuite/experimental/memory/observer_ptr/relops/relops.cc: New.
1236         * testsuite/experimental/memory/observer_ptr/requirements.cc: New.
1237         * testsuite/experimental/memory/observer_ptr/swap/swap.cc: New.
1238         * testsuite/experimental/memory/observer_ptr/typedefs.cc: New.
1240 2015-05-01  Jonathan Wakely  <jwakely@redhat.com>
1242         * src/filesystem/path.cc (path::compare): Do not copy strings.
1244         * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable when <dirent.h>
1245         is not available.
1246         (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmodat.
1247         * configure: Regenerate.
1248         * config.h.in: Regenerate.
1249         * configure.ac: Check for utime.h
1250         * include/experimental/fs_path.h (path::string<>)
1251         [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove stray typename keyword.
1252         * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H] (DIR, opendir,
1253         closedir, dirent, readdir_r): Replace dummy functions with #error.
1254         (native_readdir, _Dir::advance): Use readdir when readdir_r is missing.
1255         * src/filesystem/ops.cc (do_stat, is_set): Make inline.
1256         (last_write_time) [!_GLIBCXX_USE_UTIMENSAT]: Use utime.
1257         (permissions) [!_GLIBCXX_USE_FCHMODAT]: Use chmod.
1258         (space, temp_directory_path) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Set
1259         error_code.
1261         * include/experimental/fs_path.h (path::_List): Use vector instead of
1262         list.
1263         * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Adapt.
1264         * src/filesystem/path.cc: Use std::prev instead of decrementing
1265         rvalues. Fix whitespace.
1266         * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
1267         Do not decrement iterators before begin.
1269         * include/experimental/fs_dir.h: Fix use of non-reserved names.
1270         * include/experimental/fs_ops.h: Likewise.
1271         * include/experimental/fs_path.h: Likewise.
1272         * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Use
1273         C++11 when checking for support.
1275         * include/bits/locale_classes.h (locale::facet): Delete copy
1276         operations in C++11 mode.
1278         * include/bits/alloc_traits.h (__alloc_rebind): Change parameter name.
1280         * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable for solaris.
1281         * configure: Regenerate.
1283 2015-05-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
1285         Inline one-line erasure dispatch functions.
1286         * include/experimental/forward_list (erase_if(), erase()): Inline.
1287         * include/experimental/list (erase_if(), erase()): Inline.
1288         * include/experimental/map (erase_if(*)): Inline.
1289         * include/experimental/set (erase_if(*)): Inline.
1290         * include/experimental/string (erase_if(), erase()): Inline.
1291         * include/experimental/unordered_map (erase_if(*)): Inline.
1292         * include/experimental/unordered_set (erase_if(*)): Inline.
1294 2015-05-01  Jonathan Wakely  <jwakely@redhat.com>
1296         * doc/xml/manual/intro.xml: Link to new status_cxx2017.xml file.
1297         * doc/xml/manual/status_cxx2011.xml: Update status tables.
1298         * doc/xml/manual/status_cxx2014.xml: Likewise.
1299         * doc/xml/manual/status_cxx2017.xml: New.
1300         * doc/xml/manual/using.xml: Fix typo.
1301         * doc/html/*: Regenerate.
1303         * include/std/memory (pointer_safety, declare_reachable,
1304         undeclare_reachable, declare_no_pointers, undeclare_no_pointers,
1305         get_pointer_safety): Define.
1306         * testsuite/20_util/pointer_safety/1.cc: New.
1308 2015-04-30  Jonathan Wakely  <jwakely@redhat.com>
1310         Implement N4100 File System TS
1311         * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Define.
1312         (GLIBCXX_CHECK_FILESYSTEM_DEPS): Define.
1313         * config.h.in: Regenerate.
1314         * configure: Regenerate.
1315         * configure.ac: Enable filesystem TS and check its dependencies.
1316         * include/Makefile.am: Add new headers.
1317         * include/Makefile.in: Regenerate.
1318         * include/bits/locale_conv.h (__do_str_code_cvt, __str_codecvt_in,
1319         __str_codecvt_out): Move code conversion logic from wstring_convert
1320         into new global functions.
1321         (wstring_convert::to_bytes, wstring_convert::from_bytes): Use new
1322         functions.
1323         (wstring_convert::_M_conv): Remove.
1324         * include/bits/quoted_string.h (_Quoted_string): Split out of iomanip.
1325         * include/experimental/filesystem: New.
1326         * include/experimental/fs_dir.h: New.
1327         * include/experimental/fs_fwd.h: New.
1328         * include/experimental/fs_ops.h: New.
1329         * include/experimental/fs_path.h: New.
1330         * include/std/iomanip (_Quoted_string): Move to bits/quoted_string.h.
1331         * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Add.
1332         * src/Makefile.am (SUBDIRS): Add filesystem.
1333         * src/Makefile.in: Regenerate.
1334         * src/filesystem/Makefile.am: New.
1335         * src/filesystem/Makefile.in: New.
1336         * src/filesystem/dir.cc: New.
1337         * src/filesystem/ops.cc: New.
1338         * src/filesystem/path.cc: New.
1339         * testsuite/experimental/filesystem/operations/absolute.cc: New.
1340         * testsuite/experimental/filesystem/operations/copy.cc: New.
1341         * testsuite/experimental/filesystem/operations/current_path.cc: New.
1342         * testsuite/experimental/filesystem/path/append/path.cc: New.
1343         * testsuite/experimental/filesystem/path/assign/assign.cc: New.
1344         * testsuite/experimental/filesystem/path/assign/copy.cc: New.
1345         * testsuite/experimental/filesystem/path/compare/compare.cc: New.
1346         * testsuite/experimental/filesystem/path/compare/path.cc: New.
1347         * testsuite/experimental/filesystem/path/compare/strings.cc: New.
1348         * testsuite/experimental/filesystem/path/concat/path.cc: New.
1349         * testsuite/experimental/filesystem/path/concat/strings.cc: New.
1350         * testsuite/experimental/filesystem/path/construct/copy.cc: New.
1351         * testsuite/experimental/filesystem/path/construct/default.cc: New.
1352         * testsuite/experimental/filesystem/path/construct/locale.cc: New.
1353         * testsuite/experimental/filesystem/path/construct/range.cc: New.
1354         * testsuite/experimental/filesystem/path/decompose/extension.cc: New.
1355         * testsuite/experimental/filesystem/path/decompose/filename.cc: New.
1356         * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
1357         New.
1358         * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
1359         New.
1360         * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
1361         New.
1362         * testsuite/experimental/filesystem/path/decompose/root_name.cc:
1363         New.
1364         * testsuite/experimental/filesystem/path/decompose/root_path.cc:
1365         New.
1366         * testsuite/experimental/filesystem/path/decompose/stem.cc: New.
1367         * testsuite/experimental/filesystem/path/generic/generic_string.cc:
1368         New.
1369         * testsuite/experimental/filesystem/path/itr/traversal.cc: New.
1370         * testsuite/experimental/filesystem/path/modifiers/clear.cc: New.
1371         * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
1372         New.
1373         * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
1374         New.
1375         * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
1376         New.
1377         * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
1378         New.
1379         * testsuite/experimental/filesystem/path/modifiers/swap.cc: New.
1380         * testsuite/experimental/filesystem/path/nonmember/hash_value.cc: New.
1381         * testsuite/experimental/filesystem/path/query/empty.cc: New.
1382         * testsuite/experimental/filesystem/path/query/has_extension.cc: New.
1383         * testsuite/experimental/filesystem/path/query/has_filename.cc: New.
1384         * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
1385         New.
1386         * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
1387         New.
1388         * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
1389         New.
1390         * testsuite/experimental/filesystem/path/query/has_root_name.cc:
1391         New.
1392         * testsuite/experimental/filesystem/path/query/has_root_path.cc:
1393         New.
1394         * testsuite/experimental/filesystem/path/query/has_stem.cc: New.
1395         * testsuite/experimental/filesystem/path/query/is_relative.cc: New.
1396         * testsuite/util/testsuite_fs.h: New.
1398 2015-04-30  Edward Smith-Rowland  <3dw4rd@verizon.net>
1400         Add fundamentals TR container erasure.
1401         * include/Makefile.am: Add new headers.
1402         * include/Makefile.in: Add new headers.
1403         * include/experimental/array: New.
1404         * include/experimental/deque: New.
1405         * include/experimental/erase_if.tcc: New.
1406         * include/experimental/forward_list: New.
1407         * include/experimental/list: New.
1408         * include/experimental/map: New.
1409         * include/experimental/set: New.
1410         * include/experimental/string: New.
1411         * include/experimental/unordered_map: New.
1412         * include/experimental/unordered_set: New.
1413         * include/experimental/vector: New.
1414         * testsuite/experimental/deque/erasure.cc: New.
1415         * testsuite/experimental/forward_list/erasure.cc: New.
1416         * testsuite/experimental/list/erasure.cc: New.
1417         * testsuite/experimental/map/erasure.cc: New.
1418         * testsuite/experimental/set/erasure.cc: New.
1419         * testsuite/experimental/string/erasure.cc: New.
1420         * testsuite/experimental/unordered_map/erasure.cc: New.
1421         * testsuite/experimental/unordered_set/erasure.cc: New.
1422         * testsuite/experimental/vector/erasure.cc: New.
1424 2015-04-30  François Dumont  <fdumont@gcc.gnu.org>
1426         * include/bits/cpp_type_traits.h
1427         (__gnu_cxx::__is_normal_iterator): Delete.
1428         * include/bits/stl_algobase.h (std::__niter_base): Adapt.
1429         * include/bits/stl_iterator.h (__make_reverse_iterator): New in C++11.
1430         (std::__niter_base): Overloads for std::reverse_iterator,
1431         __gnu_cxx::__normal_iterator and std::move_iterator.
1433 2015-04-30  François Dumont  <fdumont@gcc.gnu.org>
1435         * include/bits/hashtable_policy.h (_Prime_rehash_policy::_S_n_primes):
1436         Delete.
1437         * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
1438         Remove usage of latter and compute size of the prime numbers array
1439         locally.
1441 2015-04-29  Doug Evans  <dje@google.com>
1443         PR libstdc++/65839
1444         * python/libstdcxx/v6/xmethods.py (get_bool_type): New function.
1445         Replace all lookups of "bool" with this.
1446         (get_std_size_type): New function.  Replace all lookups of std::size_t
1447         with this.
1448         (*Worker): New method get_result_type.
1449         (DequeWorkerBase.__init__): New arg val_type.  All callers updated.
1450         (ListWorkerBase.__init__): New arg val_type.  All callers updated.
1451         (UniquePtrGetWorker.__init__): New arg elem_type.  All callers updated.
1452         Delete setting of name, enabled.
1453         (UniquePtrDerefWorker.__init__): New arg elem_type.  All callers
1454         updated.  Delete setting of name.
1455         (UniquePtrMethodsMatcher): Rewrite for consistency with all other
1456         libstdc++ xmethod matchers.
1457         * testsuite/libstdc++-xmethods/array.cc: Add whatis tests.
1458         * testsuite/libstdc++-xmethods/associative-containers.cc: Ditto.
1459         * testsuite/libstdc++-xmethods/deque.cc: Ditto.
1460         * testsuite/libstdc++-xmethods/forwardlist.cc: Ditto.
1461         * testsuite/libstdc++-xmethods/list.cc: Ditto.
1462         * testsuite/libstdc++-xmethods/unique_ptr.cc: Ditto.
1463         * testsuite/libstdc++-xmethods/vector.cc: Ditto.
1465 2015-04-29  Doug Evans  <dje@google.com>
1467         Use consistent naming for value type attributes.
1468         * python/libstdcxx/v6/xmethods.py (ArrayWorkerBase): Rename _valtype
1469         to _val_type.
1470         (ArraySizeWorker, ArrayEmptyWorker): Ditto.
1471         (ArrayFrontWorker, ArrayBackWorker): Ditto.
1472         (ArrayAtWorker, ArraySubscriptWorker): Ditto.
1473         (DequeWorkerBase): Rename elemtype to val_type.
1474         (ForwardListWorkerBase): Rename _elem_type to _val_type.
1475         (ForwardListFrontWorker): Ditto.  And rename elem_address to
1476         val_address.
1477         (ForwardListMethodsMatcher): Rename elem_type to val_type.
1478         (VectorWorkerBase): Rename _elemtype to _val_type.
1480 2015-04-29  Jonathan Wakely  <jwakely@redhat.com>
1482         PR libstdc++/65760
1483         * include/std/functional (__check_func_return_type): Use is_same to
1484         avoid using _is_convertible on incomplete types.
1485         * testsuite/20_util/function/65760.cc: New.
1487         PR libstdc++/64657
1488         * include/bits/basic_string (basic_string::_S_copy_chars): Cast
1489         expression to void.
1490         * include/bits/locale_facets_nonio.tcc (money_get::_M_extract,
1491         time_get::_M_extract_num, time_get::_M_extract_name,
1492         time_get::_M_extract_wday_or_month): Likewise.
1493         * include/bits/stl_algo.h (__includes, __replace_copy_if,
1494         __is_sorted_until, __is_permutation, transform): Likewise.
1495         * include/bits/stl_algobase.h (swap_ranges, __copy_move::__copy_m,
1496         __equal::equal, __lexicographical_compare_impl, equal): Likewise.
1497         * include/bits/stl_numeric.h (inner_product): Likewise.
1498         * include/bits/stl_uninitialized.h (__uninitialized_copy_a): Likewise.
1499         * testsuite/util/testsuite_iterators.h (output_iterator_wrapper,
1500         input_iterator_wrapper): Declare unusable comma operator.
1501         * testsuite/21_strings/basic_string/cons/char/64657.cc: New.
1502         * testsuite/21_strings/basic_string/modifiers/assign/char/64657.cc:
1503         New.
1505 2015-04-28  Doug Evans  <dje@google.com>
1507         * testsuite/libstdc++-xmethods/list.cc (_GLIBCXX_USE_CXX11_ABI):
1508         Define to zero.
1510 2015-04-28  Jonathan Wakely  <jwakely@redhat.com>
1512         * include/bits/stl_algo.h (random_shuffle): Only define for hosted
1513         implementations.
1515 2015-04-28  Jonathan Wakely  <jwakely@redhat.com>
1517         * Makefile.am (SUBDIRS): Move python to hosted_source.
1518         * Makefile.in: Regenerate.
1519         * acinclude.m4 (glibcxx_SUBDIRS): Reorder.
1520         * configure: Regenerate.
1522 2015-04-28  Marc Glisse  <marc.glisse@inria.fr>
1524         PR libstdc++/65883
1525         * include/std/limits (numeric_limits): Add missing unsigned.
1527 2015-04-28  Stephan Bergmann  <sbergman@redhat.com>
1529         * include/debug/vector (_Safe_vector::operator=): Add missing returns.
1531 2015-04-28  Jonathan Wakely  <jwakely@redhat.com>
1533         PR libstdc++/60333
1534         * include/std/type_traits (__make_unsigned_selector<_Tp, false, true>):
1535         Handle enumeration types larger than sizeof(long).
1536         (__make_signed_selector<_Tp, false, true>): Find unsigned type then
1537         make it signed.
1538         * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
1539         * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
1540         Likewise.
1541         * testsuite/20_util/make_signed/requirements/typedefs-3.cc: New.
1542         * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust
1543         dg-error.
1544         * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: New.
1546         PR libstdc++/61645
1547         * include/bits/forward_list.h (forward_list::splice_after): Add
1548         noexcept.
1549         * include/bits/forward_list.tcc (forward_list::splice_after):
1550         Likewise.
1552         PR libstdc++/65631
1553         * include/bits/random.h (seed_seq) Define copy constructor and copy
1554         assignment as deleted.
1555         * testsuite/26_numerics/random/seed_seq/cons/65631.cc: New.
1557         * libsupc++/exception (uncaught_exceptions): Add comment. Reorder #if.
1558         * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
1559         Use -std=gnu++1z. Check feature-test macro.
1561         * include/std/type_traits (void_t): Add.
1562         * testsuite/20_util/void_t/1.cc: New.
1564 2015-04-28  Tim Shen  <timshen@google.com>
1566         * include/bits/regex.tcc: Handle regex_constants::__polynomial.
1567         * include/bits/regex_automaton.tcc: Throw exception when parsing
1568         back-reference with flag __polynomial.
1569         * include/bits/regex_constants.h: Add extension flag
1570         syntax_option_type __polynomial.
1571         * bits/regex_executor.tcc: Still let BFS process ECMAScript.
1572         Alternative operation will be fixed in the coming refactoring.
1573         * testsuite/28_regex/algorithms/regex_search/61424.cc: Turn
1574         loose match_search_debug to use DFS only.
1576 2015-04-27  Sandra Loosemore  <sandra@codesourcery.com>
1578         PR libstdc++/65909
1579         * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale):
1580         Make the generated test program fail gracefully if the target
1581         doesn't support passing command-line arguments.
1583 2015-04-27  Federico Lenarduzzi  <federico.lenarduzzi@tallertechnologies.com>
1584             Jonathan Wakely  <jwakely@redhat.com>
1586         * libsupc++/eh_catch.cc (uncaught_exception, uncaught_exceptions):
1587         Return false or zero if the library is built without exceptions.
1588         * libsupc++/eh_term_handler.cc: Disable verbose terminate handler if
1589         the library is built without exceptions.
1591 2015-04-27  Ville Voutilainen  <ville.voutilainen@gmail.com>
1593         * config/abi/pre/gnu.ver: Fix comment.
1595         Add support for std::uncaught_exceptions.
1596         * acinclude.m4: Bump libtool_VERSION.
1597         * config/abi/pre/gnu.ver: Export the new symbol.
1598         * configure: Regenerate.
1599         * libsupc++/eh_catch.cc (uncaught_exceptions): New.
1600         * libsupc++/exception (uncaught_exceptions): New.
1601         * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc: New.
1602         * testsuite/util/testsuite_abi.cc: Add 3.4.22 as the latest version.
1604 2015-04-27  Dmitry Prokoptsev  <dprokoptsev@gmail.com>
1605             Michael Hanselmann  <public@hansmi.ch>
1607         PR libstdc++/62258
1608         * libsupc++/eh_ptr.cc (rethrow_exception): Increment count of
1609         uncaught exceptions.
1610         * testsuite/18_support/exception_ptr/62258.cc: New.
1612 2015-04-27  Jonathan Wakely  <jwakely@redhat.com>
1614         * doc/xml/manual/extensions.xml: Add cross-reference.
1615         * doc/html/manual/ext_compile_checks.html: Regenerate.
1617 2015-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1619         * config/os/generic/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK): Define.
1620         * configure.host (os_include_dir): Set to "os/generic" for linux-musl*.
1622 2015-04-22  Renlin Li  <renlin.li@arm.com>
1624         * testsuite/lib/dg-options.exp (dg-require-thread-fence): New.
1625         * testsuite/lib/libstdc++.exp (check_v3_target_thread_fence): New.
1626         * testsuite/29_atomics/atomic_flag/clear/1.cc: Use it.
1627         * testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc: Likewise.
1628         * testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc: Likewise.
1630 2015-04-21  Jonathan Wakely  <jwakely@redhat.com>
1632         * doc/xml/manual/configure.xml: Update descriptions of options
1633         affecting dual ABI and add cross-references.
1634         * doc/xml/manual/strings.xml: Clarify that string isn't COW now.
1635         * doc/xml/manual/using.xml: Document ABI transition.
1636         * doc/html/*: Regenerate.
1638         * doc/xml/manual/abi.xml: Use uppercase for C++ Standard Library.
1639         * doc/xml/manual/using.xml: Document newer -std options. Use better
1640         examples of nested namespaces.
1642 2015-04-20  Jonathan Wakely  <jwakely@redhat.com>
1644         * doc/xml/manual/concurrency_extensions.xml: Update documentation
1645         on atomics.
1646         * doc/xml/manual/using.xml: Likewise. Improve markup.
1647         * doc/html/*: Regenerate.
1649 2015-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1651         * scripts/extract_symvers.pl: Ignore elfdump error output.
1653 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
1655         PR libstdc++/61347
1656         * include/bits/stl_iterator_base_funcs.h (_List_iterator,
1657         _List_const_iterator): Declare.
1658         (__distance): Declare new overloads for _List_iterator and
1659         _List_const_iterator.
1660         * include/bits/stl_list.h (__distance): New overloads for
1661         _List_iterator and _List_const_iterator.
1662         * testsuite/23_containers/list/61347.cc: New testcase.
1664 2015-04-14  Jonathan Wakely  <jwakely@redhat.com>
1666         * doc/xml/manual/evolution.xml: Fix typos.
1667         * doc/html/manual/api.html: Regenerate.
1669 2015-04-14  Hans-Peter Nilsson  <hp@axis.com>
1671         * testsuite/29_atomics/atomic/62259.cc: Assert atomic
1672         alignment is larger-equal, not equal, to default alignment.
1674 2015-04-13  Jonathan Wakely  <jwakely@redhat.com>
1676         PR libstdc++/65754
1677         * config/abi/pre/gnu.ver: Export base object constructors for
1678         fstreams.
1679         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
1680         * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
1681         * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
1682         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
1683         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
1684         * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
1685         * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
1686         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
1687         * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
1688         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
1689         * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
1690         * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1691         * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1692         * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1693         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1694         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
1695         * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
1696         * testsuite/27_io/basic_fstream/cons/base.cc: New.
1698 2015-04-13  Jonathan Wakely  <jwakely@redhat.com>
1700         * doc/xml/manual/evolution.xml: Document changes since 4.5 release.
1701         * doc/html/*: Regenerate.
1703 2015-04-12  Uros Bizjak  <ubizjak@gmail.com>
1705         * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
1707 2015-04-10  Andreas Schwab  <schwab@linux-m68k.org>
1709         * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
1711         * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
1713 2015-04-10  Jonathan Wakely  <jwakely@redhat.com>
1715         * doc/xml/manual/test.xml: Improve documentation on running a subset
1716         of tests.
1717         * doc/html/manual/test.html: Regenerate.
1719 2015-04-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1721         * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
1722         for GCC 5.1 release.
1723         * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
1724         Likewise.
1726 2015-04-10  Jonathan Wakely  <jwakely@redhat.com>
1728         * include/std/shared_mutex (shared_timed_mutex): Add comments to
1729         explain the logic in the non-pthread_rwlock_t version.
1730         (_Mutex): Remove redundant type.
1731         (_M_n_readers): Rename to _S_max_readers.
1732         (_M_write_entered, _M_readers): New convenience functions.
1733         (lock, lock_shared, try_lock_shared, unlock_shared): Use convenience
1734         functions. Use predicates with condition variables. Simplify bitwise
1735         operations.
1736         (try_lock_for, try_shared_lock_for): Convert duration to time_point
1737         and call try_lock_until or try_shared_lock_until respectively.
1738         (try_lock_until, try_shared_lock_until): Wait on the condition
1739         variables until the specified time passes.
1740         (unlock): Add Debug Mode assertion.
1741         (unlock_shared): Add Debug Mode assertion.
1742         * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: New.
1744         * include/std/shared_mutex (shared_timed_mutex): Only use
1745         pthread_rwlock_t when the POSIX Timeouts option is supported.
1746         * testsuite/30_threads/shared_lock/cons/5.cc: Remove
1747         dg-require-gthreads-timed.
1748         * testsuite/30_threads/shared_lock/cons/6.cc: Likewise.
1749         * testsuite/30_threads/shared_lock/locking/3.cc: Likewise.
1750         * testsuite/30_threads/shared_lock/locking/4.cc: Likewise.
1752 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
1754         * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
1756 2015-04-09  Jonathan Wakely  <jwakely@redhat.com>
1757             Richard Henderson  <rth@redhat.com>
1759         PR libstdc++/65147
1760         * include/bits/atomic_base.h (__atomic_base<_ITp>): Increase
1761         alignment.
1762         * include/std/atomic (atomic): For types with a power of two size set
1763         alignment to at least the size.
1764         * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
1765         * testsuite/29_atomics/atomic/65147.cc: New.
1766         * testsuite/29_atomics/atomic_integral/65147.cc: New.
1768 2015-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1770         * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1771         * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1772         * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1774 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
1776         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1777         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
1778         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
1779         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
1780         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
1781         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
1782         * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
1783         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
1785 2015-03-30  Jonathan Wakely  <jwakely@redhat.com>
1787         PR libstdc++/65630
1788         * config/abi/pre/gnu.ver: Export operator+ for new strings.
1789         * testsuite/21_strings/basic_string/operators/char/65630.cc: New.
1790         * testsuite/21_strings/basic_string/operators/wchar_t/65630.cc: New.
1792 2015-03-28  Tim Shen  <timshen@google.com>
1794         PR libstdc++/65420
1795         * include/bits/regex_constants.h: Use constexpr variables for flags.
1796         * testsuite/28_regex/constants/constexpr.cc: New testcase.
1798 2015-03-27  Jonathan Wakely  <jwakely@redhat.com>
1800         PR libstdc++/65499
1801         * include/std/chrono: Add using-directive for literals to std::chrono.
1802         * testsuite/20_util/duration/literals/65499.cc: New.
1804 2015-03-26  Jonathan Wakely  <jwakely@redhat.com>
1806         PR libstdc++/58038
1807         PR libstdc++/60421
1808         * include/std/thread (this_thread::sleep_for): Check for negative
1809         durations.
1810         (this_thread::sleep_until): Check for times in the past.
1811         * testsuite/30_threads/this_thread/58038.cc: New.
1812         * testsuite/30_threads/this_thread/60421.cc: New.
1814 2015-03-26  Jonathan Wakely  <jwakely@redhat.com>
1816         PR libstdc++/62259
1817         PR libstdc++/65147
1818         * include/std/atomic (atomic<T>): Increase alignment for types with
1819         the same size as one of the integral types.
1820         * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
1821         * testsuite/29_atomics/atomic/62259.cc: New.
1823 2015-03-26  Richard Henderson  <rth@redhat.com>
1825         PR libstdc++/65033
1826         * include/bits/atomic_base.h (__atomic_base<T>::is_lock_free): Build
1827         a fake pointer indicating type alignment.
1828         (__atomic_base<T *>::is_lock_free): Likewise.
1829         * include/std/atomic (atomic<T>::is_lock_free): Likewise.
1831 2015-03-25  Alan Lawrence  <alan.lawrence@arm.com>
1833         PR libstdc++/33394
1834         * testsuite/21_strings/basic_string/pthread33394.cc: Use
1835         dg-additional-options.
1837 2015-03-25  Paolo Carlini  <paolo.carlini@oracle.com>
1839         PR libstdc++/65543
1840         * include/std/istream (operator>>(basic_istream<>&&, _Tp&): Revert
1841         thinko in r150387.
1842         * include/std/ostream (operator<<(basic_ostream<>&&, const _Tp&):
1843         Likewise.
1844         * testsuite/27_io/rvalue_streams-2.cc: New.
1846 2015-03-24  Jonathan Wakely  <jwakely@redhat.com>
1848         PR libstdc++/33394
1849         * testsuite/21_strings/basic_string/pthread33394.cc: Add test.
1851 2015-03-23  Jonathan Wakely  <jwakely@redhat.com>
1853         PR libstdc++/64967
1854         * acinclude.m4: Disable dual ABI when gnu-versioned-namespace in use.
1855         * configure: Regenerate.
1856         * src/c++11/compatibility-c++0x.cc (error_category), generic_category,
1857         system_category): Use macros for versioned namespace.
1858         * src/c++11/futex.cc: Add missing end macro for versioned namespace.
1860 2015-03-20  James Greenhalgh  <james.greenhalgh@arm.com>
1862         * testsuite/17_intro/headers/c++1998/all_attributes.cc: Disable
1863         test for unused for ARM.
1864         * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise.
1865         * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
1867 2015-03-20  Jonathan Wakely  <jwakely@redhat.com>
1869         * include/bits/c++config (__gnu_cxx::__cxx11): Define new namespace.
1870         * include/ext/codecvt_specializations.h (encoding_state,
1871         encoding_char_traits): Remove abi-tag and use inline namespace.
1872         * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line.
1874 2015-03-19  Jason Merrill  <jason@redhat.com>
1876         * config/locale/gnu/messages_members.cc: Revert abi-tag change.
1877         * src/c++11/cxx11-shim_facets.cc: Revert abi-tag change.
1879 2015-03-18  Jonathan Wakely  <jwakely@redhat.com>
1881         PR c++/65046
1882         * config/locale/gnu/messages_members.cc (Catalog_info, Catalogs,
1883         get_catalogs): Add abi-tag.
1884         * include/ext/codecvt_specializations.h (encoding_state,
1885         encoding_char_traits): Likewise.
1886         * src/c++11/cxx11-ios_failure.cc (io_error_category): Likewise.
1887         * src/c++11/cxx11-shim_facets.cc (__any_string::operator basic_string,
1888         numpunct_shim, collate_shim, time_get_shim, moneypunct_shim,
1889         money_get_shim, money_put_shim, messages_shim): Likewise.
1890         * src/c++11/future.cc (future_error_category::message): Likewise.
1891         * src/c++11/system_error.cc (generic_error_category::message,
1892         system_error_category::message): Likewise.
1893         (__sso_string): Disable -Wabi-tag warnings.
1895 2015-03-18  Jonathan Wakely  <jwakely@redhat.com>
1897         PR libstdc++/13631
1898         * config/locale/gnu/messages_members.cc (get_glibc_msg): Fix fallback
1899         implementation for old glibc. Fix whitespace.
1901 2015-03-18  Jonathan Wakely  <jwakely@redhat.com>
1902             Torvald Riegel  <triegel@redhat.com>
1904         * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.
1905         * config.h.in: Regenerate.
1906         * configure: Regenerate.
1907         * include/std/shared_mutex: Check _GLIBCXX_USE_PTHREAD_RWLOCK_T.
1908         (shared_timed_mutex::_M_rwlock): Use PTHREAD_RWLOCK_INITIALIZER.
1909         (shared_timed_mutex::lock_shared()): Retry on EAGAIN.
1910         (shared_timed_mutex::try_lock_shared_until()): Retry on EAGAIN and
1911         EDEADLK.
1913 2015-03-17  Jonathan Wakely  <jwakely@redhat.com>
1915         * libsupc++/nested_exception.h: Do not try to derive from final
1916         classes.
1917         * testsuite/18_support/nested_exception/throw_with_nested.cc: Test
1918         final class.
1920         * testsuite/30_threads/shared_lock/modifiers/1.cc: Remove name of
1921         unused exception variable.
1922         * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
1923         * testsuite/30_threads/shared_lock/modifiers/2.cc: Remove duplicate
1924         test.
1925         * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
1927 2015-03-13  Jonathan Wakely  <jwakely@redhat.com>
1929         * acinclude.m4: Make --enable-libstdcxx-time=auto work for dragonfly.
1930         * configure: Regenerate.
1932         * include/experimental/system_error: Fix include guard.
1934 2015-03-12  Renlin Li  <renlin.li@arm.com>
1936         * testsuite/27_io/ios_base/sync_with_stdio/1.cc: Remove xfail for
1937         wrapped target.
1939 2015-03-10  Tim Shen  <timshen@google.com>
1941         PR libstdc++/64441
1942         * include/bits/regex.h (match_results<>::size,
1943         match_results<>::position, match_results<>::str,
1944         match_results<>::operator[], match_results<>::prefix,
1945         match_results<>::suffix, match_results<>::end,
1946         match_results<>::_M_resize, match_results<>::_M_unmatched_sub,
1947         match_results<>::_M_prefix, match_results<>::_M_suffix): Remove
1948         global __unmatched_sub. Add unmatched submatch as part of
1949         match_results.
1950         * include/bits/regex.tcc (__regex_algo_impl<>, regex_replace<>,
1951         regex_iterator<>::operator++): Adjust to use match_results::_M_prefix.
1952         * testsuite/28_regex/match_results/out_of_range_submatches.cc:
1953         New testcases.
1955 2015-03-09  Jonathan Wakely  <jwakely@redhat.com>
1957         PR libstdc++/64467
1958         * testsuite/28_regex/traits/char/isctype.cc: Don't test newline
1959         for newlib targets. Really fix mixed line-endings this time.
1961 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
1963         * include/std/future (future_error(error_code)): Construct base
1964         class with error_code's message.
1965         * src/c++11/future.cc (future_error::what()): Do not call c_str() on
1966         temporary string.
1968 2015-03-05  Jonathan Wakely  <jwakely@redhat.com>
1970         * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
1971         noconv result.
1972         * testsuite/22_locale/conversions/string/2.cc: Also test UTF-8.
1973         * testsuite/22_locale/conversions/string/3.cc: Likewise, and UTF-16.
1975 2015-03-04  Jonathan Wakely  <jwakely@redhat.com>
1977         PR libstdc++/64797
1978         * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
1979         incomplete multibyte sequences correctly.
1980         * include/std/codecvt (codecvt_utf8, codecvt_utf16,
1981         codecvt_utf8_utf16): Limit _Maxcode to maximum Unicode code point.
1982         * src/c++11/codecvt.cc (invalid_mb_sequence, incomplete_mb_character):
1983         Define constants.
1984         (is_high_surrogate, is_low_surrogate, surrogate_pair_to_code_point):
1985         Define convenience functions.
1986         (read_utf8_code_point): Return relevant constant to distinguish
1987         incomplete characters from invalid sequences.
1988         (read_utf16_code_point): Likewise. Check for invalid sequences.
1989         (ucs4_in, utf16_in): Use incomplete_mb_character constant.
1990         (utf16_out): Check for invalid sequences.
1991         (utf16_span): Fix condition.
1992         (ucs2_out): Use is_high_surrogate.
1993         (ucs2_in): Use incomplete_mb_character constant and fix condition.
1994         * testsuite/22_locale/codecvt/char16_t.cc: Fix whitespace.
1995         * testsuite/22_locale/conversions/buffer/1.cc: New.
1996         * testsuite/22_locale/conversions/string/2.cc: Use char16_t and
1997         char32_t instead of wchar_t.
1998         * testsuite/22_locale/conversions/string/3.cc: New.
2000 2015-03-03  Iain Sandoe  <iain@codesourcery.com>
2002         PR libstdc++/64883
2003         * testsuite/17_intro/headers/c++1998/all_attributes.cc: Don't check
2004         visibility for Darwin.
2005         * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise, and
2006         also deprecated.
2007         * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
2009 2015-03-02  Jonathan Wakely  <jwakely@redhat.com>
2011         PR libstdc++/65279
2012         * include/std/scoped_allocator (__inner_type_impl,
2013         scoped_allocator_adaptor): Add defaulted copy assignment and move
2014         assignment operators.
2015         * testsuite/20_util/scoped_allocator/65279.cc: New.
2017 2015-03-02  Jonathan Wakely  <jwakely@redhat.com>
2019         PR libstdc++/64367
2020         * include/std/stdexcept (__sso_string): Don't use non-static member
2021         in sizeof.
2023 2015-02-28  Matthias Klose  <doko@ubuntu.com>
2025         PR libstdc++/65246
2026         * python/libstdcxx/v6/__init__.py: Use explicit relative imports.
2028 2015-02-22  Jonathan Wakely  <jwakely@redhat.com>
2030         * doc/xml/manual/status_cxx2011.xml: Remove duplicated information.
2031         * doc/html/manual/status.html: Regenerate.
2033 2015-02-20  Jonathan Wakely  <jwakely@redhat.com>
2035         PR libstdc++/64695
2036         * python/libstdcxx/v6/printers.py (StdTuplePrinter): Handle new
2037         tuple layout.
2039         * doc/xml/manual/status_cxx2011.xml: Document implementation-defined
2040         behavior.
2041         * doc/html/manual/status.html: Regenerate.
2043 2015-02-19  Jonathan Wakely  <jwakely@redhat.com>
2045         PR libstdc++/58357
2046         * include/bits/algorithmfwd.h (rotate): Move to inline namespace _V2.
2047         * include/bits/stl_algo.h (__rotate, rotate): Likewise.
2049 2015-02-19  Hans-Peter Nilsson  <hp@axis.com>
2051         PR testsuite/65093
2052         * testsuite/26_numerics/random/binomial_distribution/operators/values.cc
2053         (test01): Add explanatory comment.  Keep only the bd1 sub-test and
2054         split out bd2, bd3, bd4, and bd5 sub-tests into...
2055         * testsuite/26_numerics/random/binomial_distribution/operators/values2.cc,
2056         testsuite/26_numerics/random/binomial_distribution/operators/values3.cc,
2057         testsuite/26_numerics/random/binomial_distribution/operators/values4.cc,
2058         testsuite/26_numerics/random/binomial_distribution/operators/values5.cc:
2059         New separate files with the old parts.
2061 2015-02-18  Jonathan Wakely  <jwakely@redhat.com>
2063         * src/c++11/codecvt.cc (write_utf16_code_point): Fix code to output
2064         surrogate pairs.
2065         (utf16_in): Pass mode argument to write_utf16_code_point.
2066         (codecvt<char16_t, char, mbstate_t>::do_in): Set mode according to
2067         native byte order.
2068         * testsuite/22_locale/codecvt/char16_t.cc: New.
2069         * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Fix typo.
2071         * testsuite/22_locale/codecvt/char16_t.cc: Add dg-require-cstdint.
2072         * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
2074 2015-02-17  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>
2075             Jonathan Wakely  <jwakely@redhat.com>
2077         * testsuite/22_locale/codecvt/char32_t.cc: New.
2079 2015-02-17  Jonathan Wakely  <jwakely@redhat.com>
2081         PR libstdc++/65085
2082         * include/bits/basic_string.h (basic_string(basic_string&&)): Ensure
2083         empty string gets null-terminated.
2084         * testsuite/21_strings/basic_string/cons/char/65085.cc: New.
2086 2015-02-13  Matthew Wahab  <matthew.wahab@arm.com>
2088         * testsuite/28_regex/traits/char/isctype.cc (test01): Fix
2089         mixed line-endings introduced in last change.
2091 2015-02-12  Matthew Wahab  <matthew.wahab@arm.com>
2093         * testsuite/28_regex/traits/char/isctype.cc (test01): Replace test
2094         for __NEWLIB__ macro with a dejagnu set macro.
2095         * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
2097 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
2099         PR libstdc++/64467
2100         * testsuite/28_regex/traits/char/isctype.cc (test01):   Add newlib
2101         special case for '\n'.
2102         * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
2104 2015-02-01  Jonathan Wakely  <jwakely@redhat.com>
2106         * src/c++11/futex.cc: Do not define for gthr-single.h targets.
2108 2015-02-01  Jonathan Wakely  <jwakely@redhat.com>
2110         PR libstdc++/64883
2111         * include/c_global/cstdio (gets): Use __deprecated__ attribute instead
2112         of deprecated.
2113         * include/c_std/cstdio (gets): Likewise.
2114         * testsuite/17_intro/headers/c++1998/all_attributes.cc: Avoid clashing
2115         with attributes used in darwin headers.
2117 2015-01-29  Jakub Jelinek  <jakub@redhat.com>
2119         * acinclude.m4 (VTV_CYGMIN): Use x$vtv_cygmin = xyes instead of
2120         $vtv_cygmin = yes.  Initialize vtv_cygmin=no unconditionally first.
2121         * configure: Regenerated.
2123 2015-01-29  H.J. Lu  <hongjiu.lu@intel.com>
2125         * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
2126         after vtv_cygmin is set.
2127         * configure: Regenerated.
2129 2015-01-29  Matthias Klose  <doko@ubuntu.com>
2131         * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
2132         unconditionally.
2133         * configure: Regenerate.
2135 2015-01-29  Caroline Tice  <cmtice@google.com>
2137         Committing VTV Cywin/Ming patch for Patrick Wollgast
2138         * configure: Regenerate.
2139         * libsupc++/Makefile.in: Regenerate.
2140         * src/Makefile.in: Regenerate.
2142 2015-01-29  Jonathan Wakely  <jwakely@redhat.com>
2144         * include/bits/atomic_base.h: Use __always_inline__ instead of
2145         always_inline.
2146         * include/bits/atomic_futex.h: Likewise.
2147         * include/bits/c++config: Use __abi_tag__ instead of abi_tag.
2148         * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: Use
2149         __packed__ instead of packed.
2150         * include/std/shared_mutex: Use __unused__ instead of unused.
2151         * testsuite/17_intro/headers/c++1998/all_attributes.cc: New.
2152         * testsuite/17_intro/headers/c++200x/all_attributes.cc: New.
2153         * testsuite/17_intro/headers/c++2014/all_attributes.cc: New.
2155 2015-01-28  Caroline Tice  <cmtice@google.com>
2157         Committing VTV Cywin/Ming patch for Patrick Wollgast
2158         * acinclude.m4: Define VTV_CYGMIN.
2159         * libsupc++/Makefile.am: Add vtv_sources only to libsupc___la_SOURCES
2160         and libsupc__convenience_la_SOURCES if VTV_CYGMIN is not set.
2161         * libsupc++/vtv_stubs.cc: Add none weak declaration of every function
2162         for Cygwin and MinGW.
2163         * src/Makefile.am: Add libvtv.la to toolexeclib_LTLIBRARIES, if
2164         VTV_CYGMIN is set. Define libvtv_la_SOURCES, libvtv_la_LDFLAGS,
2165         libvtv_la_AM_CXXFLAGS and libvtv_la_LINK if VTV_CYGMIN is set.
2167 2015-01-28  Jonathan Wakely  <jwakely@redhat.com>
2169         PR libstdc++/64828
2170         * libsupc++/Makefile.am: Compile del_opvs.cc as C++14.
2171         * libsupc++/Makefile.in: Regenerate.
2172         * src/c++11/Makefile.in: Regenerate.
2174 2015-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2176         * testsuite/lib/libstdc++.exp (v3_target_compile): Remove
2177         check for unsupported.
2178         (v3_target_compile_as_c): Likewise.
2180 2015-01-28  Richard Biener  <rguenther@suse.de>
2182         PR libstdc++/64798
2183         * libsupc++/eh_alloc.cc (struct allocated_entry): Align
2184         data member.
2185         (pool::allocate): Adjust allocation size and alignment to
2186         that change.
2187         (pool::free): Adjust pointer offsetting.
2189 2015-01-27  Jonathan Wakely  <jwakely@redhat.com>
2191         PR libstdc++/64368
2192         * include/std/shared_mutex (shared_timed_mutex::try_lock_for,
2193         shared_timed_mutex::try_lock_until): Only define when POSIX thread
2194         timeouts option is supported.
2195         (shared_timed_mutex::try_shared_lock_for,
2196         shared_timed_mutex::try_shared_lock_until): Likewise.
2198 2015-01-26  Jonathan Wakely  <jwakely@redhat.com>
2200         PR libstdc++/64368
2201         * config/locale/gnu/numeric_members.cc (numpunct<char>::~numpunct(),
2202         numpunct<wchar_t>::~numpunct()): Do not set _M_data->_M_grouping.
2203         * src/c++11/cxx11-shim_facets.cc (numpunct_shim): Remove _M_grouping
2204         and use cache's _M_grouping field.
2205         (__numpunct_fill_cache): Likewise.
2206         (__moneypunct_fill_cache): Improve comments.
2208 2015-01-26  Jonathan Wakely  <jwakely@redhat.com>
2210         * testsuite/23_containers/set/operations/2.cc: Add test for
2211         non-transparent comparison function.
2213 2015-01-25  Oleg Endo  <olegendo@gcc.gnu.org>
2215         PR target/29366
2216         * config/cpu/sh/atomicity.h (__exchange_and_add, __atomic_add): 
2217         Remove SH4A inline asm and lock based implementations and use the
2218         defaults from ext/atomicity.h.
2220 2015-01-23  Jonathan Wakely  <jwakely@redhat.com>
2222         * config/abi/pre/gnu.ver: Tighten GLIBCXX_3.4 patterns to not match
2223         new std::string constructors for byname facets.
2225 2015-01-22  Richard Biener  <rguenther@suse.de>
2227         PR libstdc++/64535
2228         * libsupc++/eh_alloc.cc: Include new.
2229         (bitmask_type): Remove.
2230         (one_buffer): Likewise.
2231         (emergency_buffer): Likewise.
2232         (emergency_used): Likewise.
2233         (dependents_buffer): Likewise.
2234         (dependents_used): Likewise.
2235         (class pool): New custom fixed-size arena, variable size object
2236         allocator.
2237         (emergency_pool): New global.
2238         (__cxxabiv1::__cxa_allocate_exception): Use new emergency_pool.
2239         (__cxxabiv1::__cxa_free_exception): Likewise.
2240         (__cxxabiv1::__cxa_allocate_dependent_exception): Likewise.
2241         (__cxxabiv1::__cxa_free_dependent_exception): Likewise.
2243 2015-01-22  Tim Shen  <timshen@google.com>
2245         PR libstdc++/64680
2246         * include/bits/regex.h (basic_regex<>::basic_regex,
2247         basic_regex<>::operator=, basic_regex<>::imbue): Conform to the
2248         standard interface.
2249         * testsuite/28_regex/basic_regex/assign/char/cstring.cc: New testcase.
2251 2015-01-22  Tim Shen  <timshen@google.com>
2253         PR libstdc++/64649
2254         * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
2255         regex_traits<>::lookup_classname): Correctly narrow input chars.
2256         * testsuite/28_regex/traits/wchar_t/user_defined.cc: New testcase.
2258 2015-01-21  Jonathan Wakely  <jwakely@redhat.com>
2260         * config/abi/pre/gnu.ver: Use [jmy] for size_t parameters.
2262 2015-01-21  Jonathan Wakely  <jwakely@redhat.com>
2264         * testsuite/29_atomics/atomic/64658.cc: Test stored value.
2266 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
2268         * doc/xml/manual/status_cxx2011.xml: Remove stray dbhtml tags.
2269         * doc/xml/manual/status_cxx2014.xml: Update status.
2270         * doc/html/manual/status.html: Regenerate.
2272 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
2274         PR libstdc++/64650
2275         * include/experimental/optional (bad_optional_access): Add default
2276         constructor.
2277         * testsuite/experimental/optional/requirements.cc: Test for default
2278         constructor.
2280 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
2282         * include/bits/stl_map.h (map::find<>, map::count<>,
2283         map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
2284         member function templates to perform heterogeneous lookup.
2285         * include/bits/stl_multimap.h (multimap::find<>, multimap::count<>,
2286         multimap::lower_bound<>, multimap::upper_bound<>,
2287         multimap::equal_range<>): Likewise.
2288         * include/bits/stl_multiset.h (multiset::find<>, multiset::count<>,
2289         multiset::lower_bound<>, multiset::upper_bound<>,
2290         multiset::equal_range<>): Likewise.
2291         * include/bits/stl_set.h (set::find<>, set::count<>,
2292         set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
2293         * include/bits/stl_tree.h (_Rb_tree::_S_lower_bound_tr,
2294         _Rb_tree::_S_upper_bound_tr, _Rb_tree::_M_find_tr,
2295         _Rb_tree::_M_count_tr, _Rb_tree::_M_lower_bound_tr,
2296         _Rb_tree::_M_upper_bound_tr, _Rb_tree::_M_equal_range_tr): Likewise.
2297         * testsuite/23_containers/map/operations/2.cc: New.
2298         * testsuite/23_containers/multimap/operations/2.cc: New.
2299         * testsuite/23_containers/multiset/operations/2.cc: New.
2300         * testsuite/23_containers/set/operations/2.cc: New.
2302 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
2304         * config/abi/pre/gnu.ver: Export new constructors.
2305         * include/bits/codecvt.h (codecvt_byname): Add string constructor.
2306         (codecvt_byname<char16_t>, codecvt_byname<char32_t>): Define explicit
2307         specializations and declare explicit instantiations.
2308         * include/bits/locale_classes.h (locale, collate_byname): Add string
2309         constructors.
2310         * include/bits/locale_facets.h (ctype_byname, numpunct_byname):
2311         Likewise.
2312         * include/bits/locale_facets_nonio.h (time_get_byname,
2313         time_put_byname, moneypunct_byname, messages_byname): Likewise.
2314         * src/c++11/codecvt.cc (codecvt_byname<char16_t>,
2315         codecvt_byname<char32_t>): Define explicit instantiations.
2316         * src/c++11/locale-inst.cc (time_put_byname, codecvt_byname):
2317         Instantiate string constructors.
2318         (ctype_byname): Define string constructor.
2319         * testsuite/22_locale/codecvt_byname/1.cc: New.
2320         * testsuite/22_locale/collate_byname/1.cc: New.
2321         * testsuite/22_locale/ctype_byname/2.cc: New.
2322         * testsuite/22_locale/messages_byname/1.cc: New.
2323         * testsuite/22_locale/moneypunct_byname/1.cc: New.
2324         * testsuite/22_locale/numpunct_byname/1.cc: New.
2326 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
2328         PR libstdc++/64658
2329         * include/std/atomic (atomic_init): Define.
2330         * testsuite/29_atomics/atomic/64658.cc: New.
2332 2015-01-19  Tim Shen  <timshen@google.com>
2334         PR libstdc++/64649
2335         * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
2336         regex_traits<>::lookup_classname): Support forward iterators.
2337         * testsuite/28_regex/traits/char/lookup_classname.cc: New testcases.
2338         * testsuite/28_regex/traits/char/lookup_collatename.cc: New testcase.
2340 2015-01-19  Tim Shen  <timshen@google.com>
2342         PR libstdc++/64584
2343         PR libstdc++/64585
2344         * include/bits/regex.h (basic_regex<>::basic_regex,
2345         basic_regex<>::assign, basic_regex<>::imbue,
2346         basic_regex<>::swap, basic_regex<>::mark_count): Drop NFA after
2347         imbuing basic_regex; Make assign() transactional against exception.
2348         * include/bits/regex_compiler.h (__compile_nfa<>): Add back
2349         __compile_nfa SFINAE.
2350         * include/std/regex: Adjust include order to avoid __compile_nfa
2351         forward declaration.
2352         * testsuite/28_regex/basic_regex/assign/char/string.cc: New testcase.
2353         * testsuite/28_regex/basic_regex/imbue/string.cc: New testcase.
2355 2015-01-19  Ville Voutilainen  <ville.voutilainen@gmail.com>
2356             Jonathan Wakely  <jwakely@redhat.com>
2358         * include/bits/range_access.h (begin, end): Use _GLIBCXX14_CONSTEXPR
2359         on overloads for arrays.
2360         (cbegin, cend, rbegin, rend, crbegin, crend): New.
2361         * testsuite/24_iterators/range_access_cpp14.cc: New.
2363 2015-01-18  Jonathan Wakely  <jwakely@redhat.com>
2365         PR libstdc++/64646
2366         * include/bits/stl_algo.h (__is_permutation): Also test for reaching
2367         end of the second range.
2368         * testsuite/25_algorithms/is_permutation/64646.cc: New.
2370 2015-01-18  Jonathan Wakely  <jwakely@redhat.com>
2372         * doc/xml/manual/status_cxx2011.xml: Remove note about offsetof.
2373         * doc/html/manual/status.html: Regenerate.
2375 2015-01-18  Jonathan Wakely  <jwakely@redhat.com>
2377         * include/bits/atomic_futex.h: Use mutex and condition_variable when
2378         atomic int is not lock-free. Make member variables private.
2379         * src/c++11/futex.cc: Likewise.
2381         * src/c++11/futex.cc: Fix order of includes and preprocessor condition.
2383 2015-01-17  Jonathan Wakely  <jwakely@redhat.com>
2385         PR libstdc++/64638
2386         * include/bits/atomic_futex.h: Use appropriate config macros for
2387         availability of std::mutex, std::condition and std::chrono.
2389 2015-01-17  Ville Voutilainen  <ville.voutilainen@gmail.com>
2390             Jonathan Wakely  <jwakely@redhat.com>
2392         * doc/xml/manual/status_cxx2011.xml: Update C++11 status.
2393         * doc/html/*: Regenerate.
2395 2015-01-17  Jonathan Wakely  <jwakely@redhat.com>
2397         DR 488
2398         PR libstdc++/58357
2399         * include/bits/algorithmfwd.h (rotate): Return an iterator.
2400         * include/bits/stl_algo.h (rotate, __rotate): Likewise.
2401         * testsuite/25_algorithms/rotate/dr488.cc: New.
2402         * testsuite/25_algorithms/rotate/check_type.cc: Adjust function type.
2403         * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
2404         2.cc: Likewise.
2405         * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
2406         pod.cc: Likewise.
2408 2015-01-17  Jonathan Wakely  <jwakely@redhat.com>
2410         PR libstdc++/60940
2411         * include/bits/atomic_base.h: Remove atomic integral typedefs as
2412         synonyms for __atomic_base<int> etc.
2413         * include/std/atomic: Make atomic_int a synonym for atomic<int> and
2414         likewise for all atomic integral types.
2415         * testsuite/29_atomics/atomic_integral/cons/copy_list.cc: New.
2416         * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
2418 2015-01-17  Jonathan Wakely  <jwakely@redhat.com>
2420         PR libstdc++/56785
2421         * include/std/tuple (_Tuple_impl): Remove zero-element specialization
2422         and define one-element specialization.
2423         * testsuite/20_util/tuple/56785.cc: New.
2425 2015-01-17  Jonathan Wakely  <jwakely@redhat.com>
2427         * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc:
2428         Remove unused header.
2429         * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc:
2430         Likewise.
2431         * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
2432         Likewise.
2434 2015-01-16  Jonathan Wakely  <jwakely@redhat.com>
2436         * include/bits/locale_conv.h (wstring_convert, wbuffer_convert): New.
2437         * include/std/locale: Include new header.
2438         * include/Makefile.am: Add it.
2439         * include/Makefile.in: Regenerate.
2440         * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc: New.
2441         * testsuite/22_locale/conversions/string/1.cc: New.
2442         * testsuite/22_locale/conversions/string/2.cc: New.
2443         * testsuite/22_locale/conversions/string/requirements/typedefs.cc: New.
2444         * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
2445         New.
2447 2015-01-16  Jonathan Wakely  <jwakely@redhat.com>
2449         * config/abi/pre/gnu.ver: Export new symbols.
2450         * include/Makefile.am: Add codecvt.
2451         * include/Makefile.in: Regenerate.
2452         * include/std/codecvt: New header.
2453         * src/c++11/codecvt.cc (__codecvt_utf8_base, __codecvt_utf16_base,
2454         __codecvt_utf8_utf16_base): Define specializations.
2455         * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc: New.
2456         * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc: New.
2457         * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
2458         New.
2460 2015-01-16  Torvald Riegel  <triegel@redhat.com>
2462         * src/c++11/futex.cc: New file.
2463         * include/bits/atomic_futex.h: New file.
2464         * include/std/future (__future_base::_State_baseV2): Use
2465         atomic_futex_unsigned instead of mutex+condvar.
2466         * src/c++11/futex.cc: Likewise.
2467         * include/Makefile.am: Add atomic_futex.h.
2468         * include/Makefile.in: Likewise.
2469         * src/c++11/Makefile.am: Add futex.cc.
2470         * src/c++11/Makefile.in: Likewise.
2472 2015-01-16  Jonathan Wakely  <jwakely@redhat.com>
2474         * acinclude.m4: Fix typo in comment.
2475         * configure: Regenerate.
2476         * include/bits/codecvt.h (codecvt<char16_t, char, mbstate_t>,
2477         codecvt<char16_t, char, mbstate_t>): Declare specializations.
2478         * include/bits/locale_facets.h: Reserve space for new specializations.
2479         * src/c++11/Makefile.am: Add codecvt.cc.
2480         * src/c++11/Makefile.in: Regenerate.
2481         * src/c++11/codecvt.cc: New.
2482         * src/c++98/Makefile.am: Compile locale_init.cc and localename.cc
2483         with -std=gnu++11.
2484         * src/c++98/Makefile.in: Regenerate.
2485         * src/c++98/locale_init.cc: Initialize new codecvt specializations.
2486         * src/c++98/localename.cc: Likewise.
2487         * config/abi/pre/gnu.ver: Exports for new codecvt specializations.
2488         * testsuite/22_locale/codecvt/utf8.cc: New.
2489         * testsuite/22_locale/locale/cons/unicode.cc: Check that new
2490         specializations are installed in locale objects.
2492 2015-01-16  Torvald Riegel  <triegel@redhat.com>
2494         * include/std/shared_mutex (shared_timed_mutex): Add POSIX-based
2495         implementation.
2497 2015-01-13  Jonathan Wakely  <jwakely@redhat.com>
2499         PR libstdc++/64571
2500         * config/abi/pre/gnu.ver: Export fstream functions using new string.
2502 2015-01-12  Jonathan Wakely  <jwakely@redhat.com>
2504         PR libstdc++/64560
2505         * src/c++11/cxx11-shim_facets.cc (locale::facet::_M_sso_shim): Check
2506         for RTTI support.
2508         PR libstdc++/64553
2509         * src/c++11/cxx11-shim_facets.cc: Check for wchar_t support.
2511 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
2513         * doc/xml/manual/parallel_mode.xml: Update for libgomp being
2514         renamed from "GNU OpenMP Runtime Library" to "GNU Offloading and
2515         Multi Processing Runtime Library".
2517 2015-01-09  Jonathan Wakely  <jwakely@redhat.com>
2519         PR libstdc++/64476
2520         * include/bits/stl_uninitialized.h (uninitialized_copy): Fix
2521         is_assignable arguments.
2522         * testsuite/20_util/specialized_algorithms/uninitialized_copy/64476.cc:
2523         New.
2525 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
2527         * libsupc++/unwind-cxx.h: Revert previous commit.
2529 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
2531         * configure.host: Add arm*-*-freebsd* port_specific_symbol_files.
2533 2015-01-09  Tim Shen  <timshen@google.com>
2535         PR libstdc++/64239
2536         * include/bits/regex.h (match_results<>::swap): Use std::swap
2537         instead of swap.
2538         * include/bits/regex_compiler.tcc (_Compiler<>::_M_quantifier):
2539         Likewise.
2540         * testsuite/28_regex/match_results/swap.cc: New testcase.
2542 2015-01-08  Jonathan Wakely  <jwakely@redhat.com>
2544         PR libstdc++/60132
2545         * include/std/type_traits (has_trivial_default_constructor,
2546         has_trivial_copy_constructor, has_trivial_copy_assign): Add deprecated
2547         attribute.
2548         * testsuite/20_util/has_trivial_copy_assign/requirements/
2549         explicit_instantiation.cc: Use -Wno-deprecated.
2550         * testsuite/20_util/has_trivial_copy_assign/requirements/typedefs.cc:
2551         Likewise.
2552         * testsuite/20_util/has_trivial_copy_assign/value.cc: Likewise.
2553         * testsuite/20_util/has_trivial_copy_constructor/requirements/
2554         explicit_instantiation.cc: Likewise.
2555         * testsuite/20_util/has_trivial_copy_constructor/requirements/
2556         typedefs.cc: Likewise.
2557         * testsuite/20_util/has_trivial_copy_constructor/value.cc: Likewise.
2558         * testsuite/20_util/has_trivial_default_constructor/requirements/
2559         explicit_instantiation.c: Likewise.
2560         * testsuite/20_util/has_trivial_default_constructor/requirements/
2561         typedefs.cc: Likewise.
2562         * testsuite/20_util/has_trivial_default_constructor/value.cc:
2563         Likewise.
2564         * testsuite/20_util/pair/requirements/dr801.cc: Replace deprecated
2565         trait.
2566         * testsuite/20_util/tuple/requirements/dr801.cc: Likewise.
2567         * testsuite/util/testsuite_common_types.h: Likewise.
2569 2015-01-08  Jonathan Wakely  <jwakely@redhat.com>
2571         * include/bits/hashtable_policy.h: Use __bool_constant.
2573 2015-01-07  Jonathan Wakely  <jwakely@redhat.com>
2575         * libsupc++/Makefile.am: Compile del_ops.cc as C++14.
2576         * libsupc++/Makefile.in: Regenerate.
2578 2015-01-06  Jonathan Wakely  <jwakely@redhat.com>
2580         * config/abi/pre/gnu.ver: Fix version conflict for std::locale::name().
2582 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
2584         Update copyright years.
2586 2015-01-04  Jonathan Wakely  <jwakely@redhat.com>
2588         PR libstdc++/64483
2589         * testsuite/18_support/exception_ptr/64241.cc: Use
2590         dg-require-atomic-builtins.
2592 2015-01-02  Jonathan Wakely  <jwakely@redhat.com>
2594         * testsuite/21_strings/basic_string/modifiers/64422.cc: Fix copyright
2595         date.
2597 2015-01-02  Tim Shen  <timshen@google.com>
2599         PR libstdc++/64475
2600         * include/bits/regex_executor.tcc (_Executor<>::_M_dfs): Copy the
2601         iterator, since the original one shouldn't be mutated.
2603 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2605         PR libstdc++/64422
2606         * src/c++98/misc-inst.cc (string::erase): Add missing overloads.
2607         (string::insert): Likewise.
2608         (string::replace): Likewise.
2609         (wstring::erase): Likewise.
2610         (wstring::insert): Likewise.
2611         (wstring::replace): Likewise.
2612         * testsuite/21_strings/basic_string/modifiers/64422.cc: New testcase.
2614 2015-01-02  Jonathan Wakely  <jwakely@redhat.com>
2616         PR libstdc++/64468
2617         * doc/doxygen/user.cfg.in: Set correct TAB_SIZE.
2619 2015-01-02  Jonathan Wakely  <jwakely@redhat.com>
2621         PR libstdc++/64438
2622         * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
2623         Revert removal of dg-require-string-conversions.
2624         * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
2625         Likewise.
2626         * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
2627         Likewise.
2628         * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
2629         Likewise.
2630         * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
2631         Likewise.
2632         * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
2633         Likewise.
2634         * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
2635         Likewise.
2636         * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
2637         Likewise.
2638         * testsuite/21_strings/basic_string/numeric_conversions/char/
2639         stoull.cc: Likewise.
2640         * testsuite/21_strings/basic_string/numeric_conversions/char/
2641         to_string.cc: Likewise.
2643 Copyright (C) 2015 Free Software Foundation, Inc.
2645 Copying and distribution of this file, with or without modification,
2646 are permitted in any medium without royalty provided the copyright
2647 notice and this notice are preserved.