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