Add remaining changes from P1065R2 "constexpr INVOKE"
[platform/upstream/gcc.git] / libstdc++-v3 / ChangeLog
1 2019-10-31  Jonathan Wakely  <jwakely@redhat.com>
2
3         * include/bits/refwrap.h (reference_wrapper, ref, cref): Add constexpr
4         specifiers for C++20.
5         * include/std/functional (_Mem_fn, mem_fn, _Bind, _Bind_result, bind)
6         (bind_front, _Not_fn, not_fn): Likewise.
7         * testsuite/20_util/bind/constexpr.cc: New test.
8         * testsuite/20_util/function_objects/bind_front/constexpr.cc: New test.
9         * testsuite/20_util/function_objects/mem_fn/constexpr.cc: New test.
10         * testsuite/20_util/function_objects/not_fn/constexpr.cc: New test.
11         * testsuite/20_util/reference_wrapper/constexpr.cc: New test.
12
13         * doc/doxygen/user.cfg.in: Add new header.
14         * include/Makefile.am: Add new header.
15         * include/Makefile.in: Regenerate.
16         * include/precompiled/stdc++.h: Include new header.
17         * include/std/ranges: New header.
18         (ranges::sentinel_t, ranges::range_value_t, ranges::range_reference_t)
19         (ranges::range_rvalue_reference_t, ranges::sized_range)
20         (ranges::output_range, ranges::input_ranges, ranges::forward_range)
21         (ranges::bidirectional_range, ranges::random_access_range)
22         (ranges::contiguous_range, ranges::common::range): Define.
23         * testsuite/24_iterators/headers/iterator/synopsis_c++20.cc: Check
24         that disabled_sized_sentinel can be specialized.
25         * testsuite/std/ranges/access/begin.cc: Include <ranges> instead of
26         <iterator>.
27         * testsuite/std/ranges/access/cbegin.cc: Likewise.
28         * testsuite/std/ranges/access/cdata.cc: Likewise.
29         * testsuite/std/ranges/access/cend.cc: Likewise.
30         * testsuite/std/ranges/access/crbegin.cc: Likewise.
31         * testsuite/std/ranges/access/crend.cc: Likewise.
32         * testsuite/std/ranges/access/data.cc: Likewise.
33         * testsuite/std/ranges/access/empty.cc: Likewise.
34         * testsuite/std/ranges/access/end.cc: Likewise.
35         * testsuite/std/ranges/access/end_neg.cc: Likewise.
36         * testsuite/std/ranges/access/rbegin.cc: Likewise.
37         * testsuite/std/ranges/access/rend.cc: Likewise.
38         * testsuite/std/ranges/access/size.cc: Likewise.
39         * testsuite/std/ranges/access/size_neg.cc: Likewise.
40         * testsuite/std/ranges/headers/ranges/synopsis.cc: New test.
41         * testsuite/std/ranges/range.cc: New test.
42         * testsuite/std/ranges/refinements.cc: New test.
43         * testsuite/std/ranges/sized.cc: New test.
44         * testsuite/util/testsuite_iterators.h: Add aliases for range types.
45         (output_iterator_wrapper::WritableObject::operator=): Add const
46         qualifier so that output_iterator_wrapper satisfies writable.
47
48         * testsuite/20_util/add_pointer/value.cc: Check void types.
49
50         * include/bits/range_access.h (__sizable): Rename to __sentinel_size.
51         Remove workaround for PR c++/92268 and remove redundant requirements
52         that are already checked by sized_sentinel_for.
53         * testsuite/std/ranges/access/cend.cc: Fix failures.
54         * testsuite/std/ranges/access/end.cc: Likewise.
55
56         * include/bits/range_access.h (ranges::begin): Combine array and
57         non-array overloads into one function template. Only use ADL for
58         classes and enums.
59         (ranges::end, ranges::size): Likewise. Make unbounded arrays
60         ill-formed.
61         (ranges::rbegin, ranges::rend): Only use ADL for classes and enums.
62         Reformat _S_noexcept() functions to mirror operator() structure.
63         * testsuite/std/ranges/access/begin.cc: Check incomplete array.
64         * testsuite/std/ranges/access/end_neg.cc: New test.
65         * testsuite/std/ranges/access/size.cc: Check array of incomplete type.
66         * testsuite/std/ranges/access/size_neg.cc: New test.
67
68         * testsuite/24_iterators/range_access*.cc: Move to ...
69         * testsuite/24_iterators/range_access/range_access*.cc: ... here.
70         * testsuite/24_iterators/range_access/range_access_cpp20_neg.cc: New
71         test.
72
73 2019-10-30  Jonathan Wakely  <jwakely@redhat.com>
74
75         * include/std/concepts (std::ranges::swap): Use a single overload for
76         the non-array cases, and switch using if-constexpr.
77
78         * include/bits/stl_iterator.h (__normal_iterator::iterator_concept):
79         Guard with __cpp_lib_concepts macro.
80
81         * include/std/bit (__cpp_lib_bitops): Define.
82         * include/std/version (__cpp_lib_constexpr): Remove.
83         (__cpp_lib_bitops, __cpp_lib_constexpr_dynamic_alloc): Define.
84         * testsuite/26_numerics/bit/header.cc: New test.
85         * testsuite/26_numerics/bit/header-2.cc: New test.
86         * testsuite/20_util/allocator_traits/header.cc: New test.
87         * testsuite/20_util/allocator_traits/header-2.cc: New test.
88
89         * include/bits/stl_iterator.h (namespace __gnu_cxx): Remove
90         using-declarations for std::iterator and std::iterator_traits.
91         (__gnu_cxx::__normal_iterator): Qualify iterator_traits.
92         * include/ext/algorithm (namespace __gnu_cxx): Remove
93         using-declarations for std names and qualify those names when used.
94         Also refer to std::min in parentheses to protect against function-like
95         macros.
96         * include/ext/rc_string_base.h: Qualify iterator_traits.
97         * include/ext/sso_string_base.h: Qualify iterator_traits.
98
99         PR libstdc++/92272
100         * include/bits/stl_bvector.h (_Bit_iterator::pointer)
101         (_Bit_const_iterator::pointer): Define as void for C++20.
102         * include/bits/stl_iterator.h (reverse_iterator::operator->()): Add
103         constraints for C++20.
104         (__normal_iterator::iterator_concept): Define for C++20.
105         * include/bits/streambuf_iterator.h (istreambuf_iterator::pointer):
106         Define as void for C++20.
107         (ostreambuf_iterator::difference_type): Define as ptrdiff_t for C++20.
108         (ostreambuf_iterator::ostreambuf_iterator()): Add default constructor
109         for C++20.
110         * testsuite/23_containers/vector/bool/iterator_c++20.cc: New test.
111         * testsuite/24_iterators/bidirectional/concept.cc: New test.
112         * testsuite/24_iterators/bidirectional/tag.cc: New test.
113         * testsuite/24_iterators/contiguous/concept.cc: New test.
114         * testsuite/24_iterators/contiguous/tag.cc: New test.
115         * testsuite/24_iterators/forward/concept.cc: New test.
116         * testsuite/24_iterators/forward/tag.cc: New test.
117         * testsuite/24_iterators/input/concept.cc: New test.
118         * testsuite/24_iterators/input/tag.cc: New test.
119         * testsuite/24_iterators/istreambuf_iterator/requirements/typedefs.cc:
120         New test.
121         * testsuite/24_iterators/ostreambuf_iterator/requirements/typedefs.cc:
122         New test.
123         * testsuite/24_iterators/output/concept.cc: New test.
124         * testsuite/24_iterators/output/tag.cc: New test.
125         * testsuite/24_iterators/random_access/concept.cc: New test.
126         * testsuite/24_iterators/random_access/tag.cc: New test.
127         * testsuite/24_iterators/range_operations/advance_debug_neg.cc: New
128         test.
129         * testsuite/24_iterators/random_access_iterator/26020.cc: Move to ...
130         * testsuite/24_iterators/operations/26020.cc: ... here.
131         * testsuite/24_iterators/random_access_iterator/
132         string_vector_iterators.cc: Move to ...
133         * testsuite/24_iterators/random_access/string_vector_iterators.cc: ...
134         here.
135
136         * testsuite/util/testsuite_iterators.h: Fix typo in __cplusplus check.
137
138 2019-10-29  Jonathan Wakely  <jwakely@redhat.com>
139
140         * include/bits/range_access.h (ranges::disable_sized_range)
141         (ranges::begin, ranges::end, ranges::cbegin, ranges::cend)
142         (ranges::rbegin, ranges::rend, ranges::crbegin, ranges::crend)
143         (ranges::size, ranges::empty, ranges::data, ranges::cdata)
144         (ranges::range, ranges::sized_range, ranges::advance, ranges::distance)
145         (ranges::next, ranges::prev): Guard with __cpp_lib_concepts.
146         * include/bits/stl_iterator.h (disable_sized_sentinel): Likewise.
147
148         * include/bits/alloc_traits.h (__cpp_lib_constexpr_dynamic_alloc):
149         Define.
150         (allocator_traits::_S_construct, allocator_traits::_S_destroy)
151         (__alloc_on_copy, __alloc_on_move, __alloc_on_swap): Use
152         _GLIBCXX14_CONSTEXPR instead of constexpr.
153         * include/bits/stl_construct.h (_Destroy): Likewise.
154
155         * include/Makefile.am: Add new header.
156         * include/Makefile.in: Regenerate.
157         * include/bits/iterator_concepts.h: New header.
158         (contiguous_iterator_tag, iter_reference_t, ranges::iter_move)
159         (iter_rvalue_reference_t, incrementable_traits, iter_difference_t)
160         (readable_traits, iter_value_t, readable, iter_common_reference_t)
161         (writable, waekly_incrementable, incrementable)
162         (input_or_output_iterator, sentinel_for, disable_sized_sentinel)
163         (sized_sentinel_for, input_iterator, output_iterator)
164         (forward_iterator, bidirectional_iterator, random_access_iterator)
165         (contiguous_iterator, indirectly_unary_invocable)
166         (indirectly_regular_unary_invocable, indirect_unary_predicate)
167         (indirect_relation, indirect_strict_weak_order, indirect_result_t)
168         (projected, indirectly_movable, indirectly_movable_storable)
169         (indirectly_copyable, indirectly_copyable_storable, ranges::iter_swap)
170         (indirectly_swappable, indirectly_comparable, permutable, mergeable)
171         (sortable, unreachable_sentinel_t, unreachable_sentinel)
172         (default_sentinel_t, default_sentinel): Define.
173         (__detail::__cpp17_iterator, __detail::__cpp17_input_iterator)
174         (__detail::__cpp17_fwd_iterator, __detail::__cpp17_bidi_iterator)
175         (__detail::__cpp17_randacc_iterator): Define.
176         (__iterator_traits): Define constrained specializations.
177         * include/bits/move.h (move): Only use old concept check for C++98.
178         * include/bits/range_access.h (ranges::disable_sized_range)
179         (ranges::begin, ranges::end, ranges::cbegin, ranges::cend)
180         (ranges::rbegin, ranges::rend, ranges::crbegin, ranges::crend)
181         (ranges::size, ranges::empty, ranges::data, ranges::cdata): Define
182         new customization points for C++20.
183         (ranges::range, ranges::sized_range): Define new concepts for C++20.
184         (ranges::advance, ranges::distance, ranges::next, ranges::prev):
185         Define new functions for C++20.
186         (__adl_end, __adl_cdata, __adl_cbegin, __adl_cend, __adl_rbegin)
187         (__adl_rend, __adl_crbegin, __adl_crend, __adl_cdata, __adl_size)
188         (__adl_empty): Remove.
189         * include/bits/stl_iterator.h (disable_sized_sentinel): Specialize
190         for reverse_iterator.
191         * include/bits/stl_iterator_base_types.h (contiguous_iterator_tag):
192         Define new struct for C++20.
193         (iterator_traits<_Tp*>): Constrain partial specialization in C++20.
194         * include/std/concepts (__is_class_or_enum): Move to __detail
195         namespace.
196         * testsuite/20_util/forward/c_neg.cc: Adjust dg-error line number.
197         * testsuite/20_util/forward/f_neg.cc: Likewise.
198         * testsuite/24_iterators/associated_types/incrementable.traits.cc: New
199         test.
200         * testsuite/24_iterators/associated_types/readable.traits.cc: New test.
201         * testsuite/24_iterators/contiguous/concept.cc: New test.
202         * testsuite/24_iterators/contiguous/tag.cc: New test.
203         * testsuite/24_iterators/customization_points/iter_move.cc: New test.
204         * testsuite/24_iterators/customization_points/iter_swap.cc: New test.
205         * testsuite/24_iterators/headers/iterator/synopsis_c++20.cc: New test.
206         * testsuite/24_iterators/range_operations/advance.cc: New test.
207         * testsuite/24_iterators/range_operations/distance.cc: New test.
208         * testsuite/24_iterators/range_operations/next.cc: New test.
209         * testsuite/24_iterators/range_operations/prev.cc: New test.
210         * testsuite/26_numerics/adjacent_difference/requirements/
211         explicit_instantiation/2.cc: Rename types that conflict with C++20
212         concepts.
213         * testsuite/26_numerics/adjacent_difference/requirements/
214         explicit_instantiation/pod.cc: Likewise.
215         * testsuite/26_numerics/partial_sum/requirements/
216         explicit_instantiation/2.cc: Likewise.
217         * testsuite/26_numerics/partial_sum/requirements/
218         explicit_instantiation/pod.cc: Likewise.
219         * testsuite/experimental/iterator/requirements.cc: Likewise.
220         * testsuite/std/ranges/access/begin.cc: New test.
221         * testsuite/std/ranges/access/cbegin.cc: New test.
222         * testsuite/std/ranges/access/cdata.cc: New test.
223         * testsuite/std/ranges/access/cend.cc: New test.
224         * testsuite/std/ranges/access/crbegin.cc: New test.
225         * testsuite/std/ranges/access/crend.cc: New test.
226         * testsuite/std/ranges/access/data.cc: New test.
227         * testsuite/std/ranges/access/empty.cc: New test.
228         * testsuite/std/ranges/access/end.cc: New test.
229         * testsuite/std/ranges/access/rbegin.cc: New test.
230         * testsuite/std/ranges/access/rend.cc: New test.
231         * testsuite/std/ranges/access/size.cc: New test.
232         * testsuite/util/testsuite_iterators.h (contiguous_iterator_wrapper)
233         (test_range, test_sized_range): New test utilities.
234
235         * testsuite/util/testsuite_iterators.h (BoundsContainer::size()): Add
236         new member function.
237         (WritableObject::operator=): Constrain with enable_if when available.
238         (remove_cv): Use std::remove_if when available.
239         (test_container::it(int)): Use size().
240         (test_container::size()): Use BoundsContainer::size().
241
242         PR libstdc++/92267
243         * include/bits/stl_deque.h (_Deque_iterator(const _Deque_iterator&)):
244         Do not define as defaulted.
245         * testsuite/23_containers/deque/types/92267.cc: New test.
246
247 2019-10-26  Gerald Pfeifer  <gerald@pfeifer.com>
248
249         * doc/xml/manual/codecvt.xml: Switch pubs.opengroup.org to https.
250         * doc/xml/manual/locale.xml (LC_ALL): Ditto.
251         * doc/xml/manual/messages.xml: Ditto.
252         
253 2019-10-26  John David Anglin  <danglin@gcc.gnu.org>
254
255         * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.
256
257 2019-10-25  Jonathan Wakely  <jwakely@redhat.com>
258
259         * testsuite/util/testsuite_iterators.h (output_iterator_wrapper)
260         (input_iterator_wrapper, forward_iterator_wrapper)
261         bidirectional_iterator_wrapper, random_access_iterator_wrapper): Remove
262         user-provided copy constructors and copy assignment operators so they
263         are defined implicitly.
264         (input_iterator_wrapper): Initialize members in default constructor.
265         (forward_iterator_wrapper): Remove assignments to members of base.
266
267         * include/bits/allocator.h: Check __cpp_constexpr_dynamic_alloc
268         before making the std::allocator destructor constexpr.
269         * testsuite/20_util/allocator/requirements/constexpr.cc: New test.
270
271         * include/bits/range_cmp.h: Check __cpp_lib_concepts before defining
272         concepts. Fix comment.
273         * include/bits/allocator.h 
274
275 2019-10-25  Gerald Pfeifer  <gerald@pfeifer.com>
276
277         * doc/xml/manual/policy_data_structures_biblio.xml: Switch
278         pubs.opengroup.org to https.
279
280 2019-10-25  Gerald Pfeifer  <gerald@pfeifer.com>
281         
282         * doc/xml/gnu/gpl-3.0.xml: Switch www.gnu.org to https.
283
284 2019-09-09  Edward Smith-Rowland  <3dw4rd@verizon.net>
285
286         * doc/xml/manual/status_cxx2020.xml: Add rows and update status.
287
288 2019-10-24  Jonathan Wakely  <jwakely@redhat.com>
289
290         * include/bits/allocator.h (allocator<void>): Restore the explicit
291         specialization for C++20, but make its API consistent with the primary
292         template.
293         (allocator::~allocator()): Restore the destructor for C++20, but make
294         it constexpr.
295         * testsuite/20_util/allocator/rebind_c++20.cc: Check allocator<void>.
296         * testsuite/20_util/allocator/requirements/typedefs_c++20.cc: Likewise.
297         * testsuite/20_util/allocator/void.cc: Check that constructors and
298         destructors are trivial. Check for converting constructor in C++20.
299         * testsuite/ext/malloc_allocator/variadic_construct.cc: Simplify
300         dejagnu target selector.
301         * testsuite/ext/new_allocator/variadic_construct.cc: Likewise.
302
303         * include/experimental/executor (__use_future_ct, use_future_t):
304         Define partial specializations for std::allocator.
305         (__use_future_ch): Overload constructor for completion tokens using
306         std::allocator.
307
308         PR libstdc++/88338 Implement P0898R3, C++20 concepts library
309         * doc/xml/manual/status_cxx2020.xml: Update status.
310         * doc/html/*: Regenerate.
311         * testsuite/std/concepts/1.cc: New test.
312         * testsuite/std/concepts/2.cc: New test.
313
314         * include/bits/random.h (uniform_random_bit_generator): Define for
315         C++20.
316         * testsuite/26_numerics/random/concept.cc: New test.
317         * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error line.
318
319 2019-10-23  Jonathan Wakely  <jwakely@redhat.com>
320
321         * include/std/functional (invoke): Add constexpr for C++20.
322         * include/std/version (__cpp_lib_constexpr_invoke): Define.
323         * testsuite/20_util/function_objects/invoke/constexpr.cc: New test.
324
325         PR c++/91369 Implement P0784R7 changes to allocation and construction
326         * include/bits/alloc_traits.h: Include <bits/stl_construct.h>.
327         (allocator_traits::_S_allocate, allocator_traits::_S_construct)
328         (allocator_traits::_S_destroy, allocator_traits::_S_max_size)
329         (allocator_traits::_S_select, allocator_traits::allocate)
330         (allocator_traits::deallocate, allocator_traits::construct)
331         (allocator_traits::destroy, allocator_traits::max_size)
332         (allocator_traits::select_on_container_copy_construction)
333         (allocator_traits<allocator<T>>): Add constexpr specifier for C++20.
334         (allocator_traits<allocator<T>>::construct): Use construct_at.
335         (allocator_traits<allocator<T>>::destroy): Use destroy_at.
336         (__alloc_on_copy, __alloc_on_move, __alloc_on_swap): Add constexpr
337         specifier.
338         (_Destroy(ForwardIterator, ForwardIterator, Alloc&))
339         (_Destroy(ForwardIterator, ForwardIterator, allocator<T>&)): Move here
340         from <bits/stl_construct.h>.
341         * include/bits/allocator.h (allocator::~allocator): Remove for C++20.
342         (allocator::allocate, allocate::deallocate): Define for C++20 and up.
343         (operator==, operator!=): Add constexpr specifier for C++20.
344         * include/bits/stl_construct.h: Don't include <ext/alloc_traits.h>.
345         (destroy_at): For C++20 add constexpr specifier and support for
346         destroying arrays.
347         (construct_at): Define new function for C++20.
348         (_Construct): Return result of placement new-expression. For C++11 and
349         up add constexpr. For C++20 dispatch to std::construct_at during
350         constant evaluation.
351         (_Destroy(pointer)): Add constexpr specifier. For C++20 dispatch to
352         std::destroy_at during constant evaluation.
353         (_Destroy_aux::__destroy, _Destroy_n_aux::__destroy_n): Add constexpr
354         specifier for C++20.
355         (_Destroy(ForwardIterator, ForwardIterator))
356         (_Destroy(ForwardIterator, Size)): Likewise. Do not elide trivial
357         destructors during constant evaluation.
358         (destroy, destroy_n): Add constexpr specifier for C++20.
359         (_Destroy(ForwardIterator, ForwardIterator, Alloc&))
360         (_Destroy(ForwardIterator, ForwardIterator, allocator<T>&)): Move to
361         <bits/alloc_traits.h>, to remove dependency on allocators.
362         * include/bits/stl_uninitialized.h: Include <ext/alloc_traits.h>.
363         Include <bits/stl_pair.h> instead of <utility>.
364         * include/ext/alloc_traits.h: Always include <bits/alloc_traits.h>.
365         (__alloc_traits::construct, __alloc_traits::destroy)
366         (__alloc_traits::_S_select_on_copy, __alloc_traits::_S_on_swap): Add
367         constexpr specifier.
368         * include/ext/malloc_allocator.h  (operator==, operator!=): Add
369         constexpr specifier for C++20.
370         * include/ext/new_allocator.h (operator==, operator!=): Likewise.
371         * testsuite/20_util/headers/memory/synopsis.cc: Add constexpr.
372         * testsuite/20_util/scoped_allocator/69293_neg.cc: Ignore additional
373         errors due to constexpr function called after failed static_assert.
374         * testsuite/20_util/specialized_algorithms/construct_at/1.cc: New test.
375         * testsuite/23_containers/vector/cons/destructible_debug_neg.cc:
376         Ignore additional errors due to constexpr function called after failed
377         static_assert.
378         * testsuite/23_containers/vector/cons/destructible_neg.cc: Likewise.
379
380         * testsuite/20_util/bind/91371.cc: Fix test to compile as C++11.
381
382         * include/debug/helper_functions.h (__valid_range): Change
383         _GLIBCXX_CONSTEXPR to _GLIBCXX14_CONSTEXPR.
384
385         * include/ext/throw_allocator.h (throw_allocator_base): Qualify
386         size_t and ptrdiff_t.
387
388         * include/ext/pb_ds/detail/bin_search_tree_/bin_search_tree_.hpp:
389         Use detail::rebind_traits.
390         * include/ext/pb_ds/detail/bin_search_tree_/node_iterators.hpp:
391         Likewise.
392         * include/ext/pb_ds/detail/bin_search_tree_/traits.hpp: Likewise.
393         * include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp: Likewise.
394         * include/ext/pb_ds/detail/binary_heap_/entry_cmp.hpp: Likewise.
395         * include/ext/pb_ds/detail/binary_heap_/entry_pred.hpp: Likewise.
396         * include/ext/pb_ds/detail/binary_heap_/point_const_iterator.hpp:
397         Likewise.
398         * include/ext/pb_ds/detail/binomial_heap_base_/binomial_heap_base_.hpp:
399         Likewise.
400         * include/ext/pb_ds/detail/branch_policy/branch_policy.hpp: Likewise.
401         * include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp: Likewise.
402         * include/ext/pb_ds/detail/cond_dealtor.hpp: Likewise.
403         * include/ext/pb_ds/detail/eq_fn/hash_eq_fn.hpp (has_eq_fn): Likewise.
404         * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: Likewise.
405         * include/ext/pb_ds/detail/hash_fn/ranged_hash_fn.hpp: Likewise.
406         * include/ext/pb_ds/detail/hash_fn/ranged_probe_fn.hpp: Likewise.
407         * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
408         left_child_next_sibling_heap_.hpp: Likewise.
409         * include/ext/pb_ds/detail/left_child_next_sibling_heap_/node.hpp:
410         Likewise.
411         * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
412         point_const_iterator.hpp: Likewise.
413         * include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp: Likewise.
414         * include/ext/pb_ds/detail/ov_tree_map_/
415         constructors_destructor_fn_imps.hpp: Likewise.
416         * include/ext/pb_ds/detail/ov_tree_map_/node_iterators.hpp: Likewise.
417         * include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hpp: Likewise.
418         * include/ext/pb_ds/detail/pairing_heap_/pairing_heap_.hpp: Likewise.
419         * include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp: Likewise.
420         * include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp: Likewise.
421         * include/ext/pb_ds/detail/rb_tree_map_/node.hpp: Likewise.
422         * include/ext/pb_ds/detail/rc_binomial_heap_/rc.hpp: Likewise.
423         * include/ext/pb_ds/detail/splay_tree_/node.hpp: Likewise.
424         * include/ext/pb_ds/detail/thin_heap_/thin_heap_.hpp: Likewise.
425         * include/ext/pb_ds/detail/trie_policy/sample_trie_access_traits.hpp:
426         Likewise.
427         * include/ext/pb_ds/detail/type_utils.hpp: Fix typo in comment.
428         * include/ext/pb_ds/detail/types_traits.hpp (stored_value): Add
429         bool parameter to control whether the hash value is stored.
430         (select_base_type): New class template and partial specialization.
431         (maybe_null_type): Likewise.
432         (rebind_traits): New class template.
433         (type_base): Remove four nearly identical specializations.
434         (type_dispatch): Remove.
435         (type_traits): Use select_base_type and maybe_null_type instead of
436         type_base to control differences between specializations.
437         * include/ext/pb_ds/list_update_policy.hpp: Use detail::rebind_traits.
438         * include/ext/pb_ds/priority_queue.hpp: Likewise.
439         * include/ext/pb_ds/tree_policy.hpp: Likewise.
440         * include/ext/pb_ds/trie_policy.hpp: Likewise.
441
442         * include/backward/hash_set (hash_set): Use __alloc_traits.
443         * include/backward/hashtable.h (_Hashtable): Likewise.
444         * include/ext/alloc_traits.h (__alloc_traits::allocate): Add overload
445         taking a hint.
446         * include/ext/extptr_allocator.h (_ExtPtr_allocator::allocate): Ignore
447         hint.
448         * include/ext/slist (_Slist_base): Use __alloc_traits.
449         * include/tr1/hashtable.h (_Hashtable): Likewise.
450         * include/tr1/regex (match_results): Use vector::const_reference
451         instead of assuming the allocator defines it.
452         * testsuite/backward/hash_map/23528.cc: Use allocator_traits in C++11.
453         * testsuite/tr1/6_containers/unordered_map/capacity/29134-map.cc: Use
454         __gnu_test::max_size.
455         * testsuite/tr1/6_containers/unordered_multimap/capacity/
456         29134-multimap.cc: Likewise.
457         * testsuite/tr1/6_containers/unordered_multiset/capacity/
458         29134-multiset.cc: Likewise.
459         * testsuite/tr1/6_containers/unordered_set/capacity/29134-set.cc:
460         Likewise.
461
462 2019-10-22  Jonathan Wakely  <jwakely@redhat.com>
463
464         * testsuite/util/testsuite_abi.h: Restore use of tr1/unordered_map
465         when compiled as C++98.
466
467         * include/bits/memoryfwd.h (uses_allocator): Do not declare for C++98.
468         * testsuite/17_intro/names.cc: Check uses_allocator in C++98.
469
470         * include/bits/alloc_traits.h
471         (allocator_traits<allocator<T>>::allocate): Ignore hint for C++20.
472         (allocator_traits<allocator<T>>::construct): Perform placement new
473         directly for C++20, instead of calling allocator<T>::construct.
474         (allocator_traits<allocator<T>>::destroy): Call destructor directly
475         for C++20, instead of calling allocator<T>::destroy.
476         (allocator_traits<allocator<T>>::max_size): Return value directly
477         for C++20, instead of calling std::allocator<T>::max_size().
478         (__do_alloc_on_copy, __do_alloc_on_move, __do_alloc_on_swap): Do not
479         define for C++17 and up.
480         (__alloc_on_copy, __alloc_on_move, __alloc_on_swap): Use if-constexpr
481         for C++17 and up, instead of tag dispatching.
482         * include/bits/allocator.h (allocator<void>): Remove for C++20.
483         (allocator::pointer, allocator::const_pointer, allocator::reference)
484         (allocator::const_reference, allocator::rebind): Remove for C++20.
485         * include/bits/basic_string.h (basic_string): Use __alloc_traits to
486         rebind allocator.
487         * include/bits/memoryfwd.h (allocator<void>): Remove for C++20.
488         * include/ext/debug_allocator.h: Use __alloc_traits for rebinding.
489         * include/ext/malloc_allocator.h (malloc_allocator::~malloc_allocator)
490         (malloc_allocator::pointer, malloc_allocator::const_pointer)
491         (malloc_allocator::reference, malloc_allocator::const_reference)
492         (malloc_allocator::rebind, malloc_allocator::max_size)
493         (malloc_allocator::construct, malloc_allocator::destroy): Do not
494         define for C++20.
495         (malloc_allocator::_M_max_size): Define new function.
496         * include/ext/new_allocator.h (new_allocator::~new_allocator)
497         (new_allocator::pointer, new_allocator::const_pointer)
498         (new_allocator::reference, new_allocator::const_reference)
499         (new_allocator::rebind, new_allocator::max_size)
500         (new_allocator::construct, new_allocator::destroy): Do not
501         define for C++20.
502         (new_allocator::_M_max_size): Define new function.
503         * include/ext/rc_string_base.h (__rc_string_base::_Rep): Use
504         __alloc_traits to rebind allocator.
505         * include/ext/rope (_Rope_rep_base, _Rope_base): Likewise.
506         (rope::rope(CharT, const allocator_type&)): Use __alloc_traits
507         to construct character.
508         * include/ext/slist (_Slist_base): Use __alloc_traits to rebind
509         allocator.
510         * include/ext/sso_string_base.h (__sso_string_base::_M_max_size):
511         Use __alloc_traits.
512         * include/ext/throw_allocator.h (throw_allocator): Do not use optional
513         members of std::allocator, use __alloc_traits members instead.
514         * include/ext/vstring.h (__versa_string): Use __alloc_traits.
515         * include/ext/vstring_util.h (__vstring_utility): Likewise.
516         * include/std/memory: Include <bits/alloc_traits.h>.
517         * testsuite/20_util/allocator/8230.cc: Use __gnu_test::max_size.
518         * testsuite/20_util/allocator/rebind_c++20.cc: New test.
519         * testsuite/20_util/allocator/requirements/typedefs.cc: Do not check
520         for pointer, const_pointer, reference, const_reference or rebind in
521         C++20.
522         * testsuite/20_util/allocator/requirements/typedefs_c++20.cc: New test.
523         * testsuite/23_containers/deque/capacity/29134.cc: Use
524         __gnu_test::max_size.
525         * testsuite/23_containers/forward_list/capacity/1.cc: Likewise.
526         * testsuite/23_containers/list/capacity/29134.cc: Likewise.
527         * testsuite/23_containers/map/capacity/29134.cc: Likewise.
528         * testsuite/23_containers/multimap/capacity/29134.cc: Likewise.
529         * testsuite/23_containers/multiset/capacity/29134.cc: Likewise.
530         * testsuite/23_containers/set/capacity/29134.cc: Likewise.
531         * testsuite/23_containers/vector/capacity/29134.cc: Likewise.
532         * testsuite/ext/malloc_allocator/variadic_construct.cc: Do not run
533         test for C++20.
534         * testsuite/ext/new_allocator/variadic_construct.cc: Likewise.
535         * testsuite/ext/vstring/capacity/29134.cc: Use __gnu_test::max_size.
536         * testsuite/util/replacement_memory_operators.h: Do not assume
537         Alloc::pointer exists.
538         * testsuite/util/testsuite_allocator.h (__gnu_test::max_size): Define
539         helper to call max_size for any allocator.
540
541 2019-10-22  Andreas Schwab  <schwab@suse.de>
542
543         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
544
545 2019-10-18  Jonathan Wakely  <jwakely@redhat.com>
546
547         PR libstdc++/92143
548         * libsupc++/new_opa.cc (operator new) [__APPLE__]: Increase alignment
549         to at least sizeof(void*).
550
551         * include/bits/range_cmp.h (ranges::less::operator()): Inline the
552         logic from std::less::operator() to remove the dependency on it.
553
554 2019-10-17  Jonathan Wakely  <jwakely@redhat.com>
555
556         * doc/doxygen/user.cfg.in (INPUT): Add new C++17 and C++20 headers.
557
558         * include/Makefile.am: Add new header.
559         * include/Makefile.in: Regenerate.
560         * include/bits/range_cmp.h: New header for C++20 function objects.
561         * include/std/functional: Include new header.
562         * testsuite/20_util/function_objects/identity/1.cc: New test.
563         * testsuite/20_util/function_objects/range.cmp/equal_to.cc: New test.
564         * testsuite/20_util/function_objects/range.cmp/greater.cc: New test.
565         * testsuite/20_util/function_objects/range.cmp/greater_equal.cc: New
566         test.
567         * testsuite/20_util/function_objects/range.cmp/less.cc: New test.
568         * testsuite/20_util/function_objects/range.cmp/less_equal.cc: New test.
569         * testsuite/20_util/function_objects/range.cmp/not_equal_to.cc: New
570         test.
571
572         PR libstdc++/92124
573         * include/bits/forward_list.h
574         (_M_move_assign(forward_list&&, false_type)): Do not use
575         __make_move_if_noexcept, instead move unconditionally.
576         * include/bits/stl_deque.h (_M_move_assign2(deque&&, false_type)):
577         Likewise.
578         * include/bits/stl_list.h (_M_move_assign(list&&, false_type)):
579         Likewise.
580         * include/bits/stl_vector.h (_M_move_assign(vector&&, false_type)):
581         Likewise.
582         * testsuite/23_containers/vector/92124.cc: New test.
583
584 2019-10-16  Jonathan Wakely  <jwakely@redhat.com>
585
586         * include/bits/c++config (_GLIBCXX_BUILTIN_IS_SAME_AS): Define to
587         one of __is_same_as or __is_same when available.
588         * include/std/concepts (__detail::__same_as): Use std::is_same_v.
589         * include/std/type_traits (is_same) [_GLIBCXX_BUILTIN_IS_SAME_AS]:
590         Use new macro instead of __is_same_as.
591         (is_same) [!_GLIBCXX_BUILTIN_IS_SAME_AS]: Restore partial
592         specialization.
593         (is_same_v) [_GLIBCXX_BUILTIN_IS_SAME_AS]: Use new macro.
594         (is_same_v) [!_GLIBCXX_BUILTIN_IS_SAME_AS]: Use std::is_same.
595
596 2019-10-16  François Dumont  <fdumont@gcc.gnu.org>
597
598         * src/c++11/debug.cc (print_field): Replace constness_names <unknown>
599         entry with <unknown constness>. Replace state_names <unknown> entry with
600         <unknown state>.
601
602 2019-10-11  Jonathan Wakely  <jwakely@redhat.com>
603
604         * include/Makefile.am: Add new header.
605         * include/Makefile.in: Regenerate.
606         * include/precompiled/stdc++.h: Include <concepts>.
607         * include/std/concepts: New header for C++20.
608         * include/std/version (__cpp_lib_concepts): Define.
609         * scripts/create_testsuite_files: Look for test files in new std
610         directory.
611         * testsuite/libstdc++-dg/conformance.exp: Likewise.
612         * testsuite/std/concepts/concepts.callable/invocable.cc: New test.
613         * testsuite/std/concepts/concepts.callable/regular_invocable.cc: New
614         test.
615         * testsuite/std/concepts/concepts.callable/relation.cc: New test.
616         * testsuite/std/concepts/concepts.callable/strictweakorder.cc: New
617         test.
618         * testsuite/std/concepts/concepts.lang/concept.arithmetic/
619         floating_point.cc: New test.
620         * testsuite/std/concepts/concepts.lang/concept.arithmetic/integral.cc:
621         New test.
622         * testsuite/std/concepts/concepts.lang/concept.arithmetic/
623         signed_integral.cc: New test.
624         * testsuite/std/concepts/concepts.lang/concept.arithmetic/
625         unsigned_integral.cc: New test.
626         * testsuite/std/concepts/concepts.lang/concept.assignable/1.cc: New
627         test.
628         * testsuite/std/concepts/concepts.lang/concept.common/1.cc: New test.
629         * testsuite/std/concepts/concepts.lang/concept.commonref/1.cc: New
630         test.
631         * testsuite/std/concepts/concepts.lang/concept.constructible/1.cc:
632         New test.
633         * testsuite/std/concepts/concepts.lang/concept.convertible/1.cc:
634         New test.
635         * testsuite/std/concepts/concepts.lang/concept.copyconstructible/1.cc:
636         New test.
637         * testsuite/std/concepts/concepts.lang/concept.defaultconstructible/
638         1.cc: New test.
639         * testsuite/std/concepts/concepts.lang/concept.derived/1.cc:
640         New test.
641         * testsuite/std/concepts/concepts.lang/concept.destructible/1.cc:
642         New test.
643         * testsuite/std/concepts/concepts.lang/concept.moveconstructible/1.cc:
644         New test.
645         * testsuite/std/concepts/concepts.lang/concept.same/1.cc:
646         New test.
647         * testsuite/std/concepts/concepts.lang/concept.swappable/swap.cc:
648         New test.
649         * testsuite/std/concepts/concepts.lang/concept.swappable/swappable.cc:
650         New test.
651         * testsuite/std/concepts/concepts.lang/concept.swappable/
652         swappable_with.cc: New test.
653         * testsuite/std/concepts/concepts.object/copyable.cc: New test.
654         * testsuite/std/concepts/concepts.object/movable.cc: New test.
655         * testsuite/std/concepts/concepts.object/regular.cc: New test.
656         * testsuite/std/concepts/concepts.object/semiregular.cc: New test.
657
658         * include/std/type_traits (is_same): Replace partial specialization
659         by using __is_same_as built-in in primary template.
660         (is_same_v): Use __is_same_as built-in instead of instantiating the
661         is_same trait.
662
663         PR libstdc++/92059
664         * include/tr2/dynamic_bitset (__dynamic_bitset_base): Define all
665         special member functions as defaulted. Add noexcept to most members.
666         (__dynamic_bitset_base(size_t, unsigned long long, const _Alloc&)):
667         Mask off unwanted bits in the __val parameter. Avoid undefined left
668         shifts.
669         (__dynamic_bitset_base::_M_assign): Remove.
670         (__dynamic_bitset_base::_M_do_reset): Use std::fill.
671         (__dynamic_bitset_base::_M_are_all_aux): Avoid integer promotion when
672         block_type has lower rank than int.
673         (dynamic_bitset): Add noexcept to most members. Use injected-class-name
674         in return types and parameter types.
675         (dynamic_bitset::_M_Nb): Add default member initializer.
676         (dynamic_bitset(), dynamic_bitset(const dynamic_bitset&)): Define as
677         defaulted.
678         (dynamic_bitset(dynamic_bitset&&)): Clear source object after move.
679         (dynamic_bitset::operator=(const dynamic_bitset&)): Define as
680         defaulted.
681         (dynamic_bitset::operator=(dynamic_bitset&&)): Add noexcept-specifier.
682         Define without using swap, to propagate allocator correctly.
683         (dynamic_bitset(const char*, const _Alloc&)): Use strlen.
684         (dynamic_bitset::_M_do_sanitize, dynamic_bitset::_M_do_fill): Use
685         casts to avoid unwanted integer promotions.
686         (dynamic_bitset::_M_copy_from_ptr): Rearrange template parameters and
687         add default template arguments and default argument to simplify usage.
688         (dynamic_bitset::_M_copy_from_string): Adjust call to _M_copy_from_ptr.
689         (operator==(const dynamic_bitset&, const dynamic_bitset&))
690         (operator<(const dynamic_bitset&, const dynamic_bitset&)): Use _M_Nb.
691         * include/tr2/dynamic_bitset.tcc (dynamic_bitset::_M_copy_from_ptr):
692         Adjust template parameters to match declaration.
693         * testsuite/tr2/dynamic_bitset/cmp.cc: New test.
694         * testsuite/tr2/dynamic_bitset/cons.cc: New test.
695         * testsuite/tr2/dynamic_bitset/copy.cc: New test.
696         * testsuite/tr2/dynamic_bitset/move.cc: New test.
697         * testsuite/tr2/dynamic_bitset/pr92059.cc: New test.
698
699         * include/bits/charconv.h (__to_chars_len): Avoid -Wsign-compare
700         warnings.
701
702 2019-10-10  Jonathan Wakely  <jwakely@redhat.com>
703
704         PR libstdc++/91057
705         * src/c++98/locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]
706         (find_ldbl_sync_facet): Fix parameter type and missing return.
707
708 2019-10-09  Marek Polacek  <polacek@redhat.com>
709
710         PR c++/91364 - P0388R4: Permit conversions to arrays of unknown bound.
711         PR c++/69531 - DR 1307: Differently bounded array parameters.
712         PR c++/88128 - DR 330: Qual convs and pointers to arrays of pointers.
713         * testsuite/23_containers/span/lwg3255.cc: Adjust test to match the
714         post-P0388R4 behavior.
715
716 2019-10-09  Jonathan Wakely  <jwakely@redhat.com>
717
718         PR libstdc++/91057
719         * src/c++98/locale.cc (locale::id::_M_id()) [__GTHREADS]: Use atomic
720         compare-exchange or double-checked lock to ensure only one thread sets
721         the _M_index variable.
722         [_GLIBCXX_LONG_DOUBLE_COMPAT]: Call find_ldbl_sync_facet to detect
723         facets that share another facet's ID.
724         [_GLIBCXX_LONG_DOUBLE_COMPAT] (find_ldbl_sync_facet): New function.
725
726         PR libstdc++/78552
727         * src/c++98/locale_init.cc (locale::classic()): Do not construct a new
728         locale object for every call.
729         (locale::_S_initialize_once()): Construct C locale here.
730
731 2019-10-08  Jonathan Wakely  <jwakely@redhat.com>
732
733         * doc/Makefile.am (doc-html-docbook-regenerate): New target.
734         (${docbook_outdir}/html): Do not create unused 'html/ext' directory.
735         * doc/Makefile.in: Regenerate.
736         * doc/xml/manual/documentation_hacking.xml: Document new target.
737         * doc/html/*: Regenerate.
738
739         * doc/xml/manual/allocator.xml: Use archived copy of CUJ article.
740         * doc/html/*: Regenerate.
741
742 2019-10-06  François Dumont  <fdumont@gcc.gnu.org>
743
744         * include/bits/stl_algo.h
745         (__copy_n_a(_IIte, _Size, _OIte)): New.
746         (__copy_n_a(istreambuf_iterator<>, _Size, _CharT*)): New declaration.
747         (__copy_n(_IIte, _Size, _OIte, input_iterator_tag)): Adapt to use
748         latter.
749         * include/bits/streambuf_iterator.h (istreambuf_iterator<>): Declare
750         std::__copy_n_a friend.
751         (__copy_n_a(istreambuf_iterator<>, _Size, _CharT*)): New.
752         * testsuite/25_algorithms/copy_n/istreambuf_iterator/1.cc: New.
753         * testsuite/25_algorithms/copy_n/istreambuf_iterator/1_neg.cc: New.
754         * testsuite/25_algorithms/copy_n/istreambuf_iterator/2_neg.cc: New.
755
756         * include/bits/stl_iterator_base_types.h (__iterator_category_t): Define
757         for C++11.
758         (_RequireInputIte): Likewise and use __enable_if_t.
759         * include/std/numeric
760         (__is_random_access_iter): Use __iterator_category_t.
761
762         * include/bits/stl_algo.h (copy_n): Add __glibcxx_requires_can_increment
763         debug checks.
764         * testsuite/25_algorithms/copy_n/debug/1_neg.cc: New.
765         * testsuite/25_algorithms/copy_n/debug/2_neg.cc: New.
766
767 2019-10-04  François Dumont  <fdumont@gcc.gnu.org>
768
769         * include/debug/forward_list
770         (_Sequence_traits<__debug::forward_list<>>::_S_size): Returns __dp_sign
771         distance when not empty.
772         * include/debug/list (_Sequence_traits<__debug::list<>>::_S_size):
773         Likewise.
774         * include/debug/helper_functions.h (__dp_sign_max_size): New
775         _Distance_precision enum entry.
776         (__valid_range_aux(_IIte, _IIte, _Distance_traits<>::__type,
777         __false_type)): Adapt.
778         * include/debug/safe_iterator.tcc
779         (_Safe_iterator<>::_M_get_distance_to(const _Safe_iterator&)): Review
780         distance computation.
781
782 2019-10-04  Jonathan Wakely  <jwakely@redhat.com>
783
784         PR libstdc++/81091
785         PR libstdc++/91947
786         * configure.ac: Use AC_SYS_LARGEFILE to enable 64-bit file APIs.
787         * config.h.in: Regenerate:
788         * configure: Regenerate:
789         * include/Makefile.am (${host_builddir}/largefile-config.h): New
790         target to generate config header for filesystem library.
791         (${host_builddir}/c++config.h): Rename macros for large file support.
792         * include/Makefile.in: Regenerate.
793         * src/c++17/fs_dir.cc: Include new config header.
794         * src/c++17/fs_ops.cc: Likewise.
795         (filesystem::file_size): Use uintmax_t for size.
796         * src/filesystem/dir.cc: Include new config header.
797         * src/filesystem/ops.cc: Likewise.
798         (experimental::filesystem::file_size): Use uintmax_t for size.
799
800         * testsuite/util/testsuite_abi.h: Use std::unordered_map instead of
801         std::tr1::unordered_map.
802         * testsuite/util/testsuite_allocator.h: Likewise.
803
804         * include/tr1/hashtable.h: Add header for __gnu_cxx::__alloc_traits.
805
806         * include/tr1/hashtable.h (tr1::_Hashtable::_M_allocate_node): Use
807         __gnu_cxx::__alloc_traits for allocator construct function.
808         (tr1::_Hashtable::_M_deallocate_node): Likewise for destroy function.
809
810         * include/precompiled/stdc++.h: Include <span> for C++20.
811         * testsuite/17_intro/names.cc: Do not define 'e' for C++20.
812
813 2019-10-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
814
815         * include/parallel/multiway_merge.h (_RAIter3): Replace _C by _Cp.
816
817 2019-10-02  Jonathan Wakely  <jwakely@redhat.com>
818
819         * config/abi/pre/gnu.ver: Tighten up greedy wildcards.
820
821         * doc/xml/manual/parallel_mode.xml: Add caveat about support for
822         recent standards.
823         * doc/html/*: Regenerate.
824
825 2019-10-01  Jonathan Wakely  <jwakely@redhat.com>
826
827         * include/experimental/algorithm (experimental::sample): Qualify call
828         to __sample correctly.
829         * include/parallel/algo.h (sample, for_each_n): Add using-declarations
830         for algorithms that don't have parallel implementations.
831
832         * include/parallel/algobase.h (equal, lexicographical_compare): Add
833         _GLIBCXX20_CONSTEXPR and dispatch to sequential algorithm when being
834         constant evaluated.
835         * include/parallel/algorithmfwd.h (equal, lexicographical_compare):
836         Add _GLIBCXX20_CONSTEXPR.
837
838         * testsuite/17_intro/using_namespace_std_tr1_neg.cc: Skip test for
839         parallel mode.
840         * testsuite/20_util/hash/84998.cc: Likewise.
841         * testsuite/23_containers/deque/types/pmr_typedefs_debug.cc: Likewise.
842         * testsuite/23_containers/forward_list/pmr_typedefs_debug.cc: Likewise.
843         * testsuite/23_containers/list/pmr_typedefs_debug.cc: Likewise.
844         * testsuite/23_containers/map/pmr_typedefs_debug.cc: Likewise.
845         * testsuite/23_containers/multimap/pmr_typedefs_debug.cc: Likewise.
846         * testsuite/23_containers/multiset/pmr_typedefs_debug.cc: Likewise.
847         * testsuite/23_containers/set/pmr_typedefs_debug.cc: Likewise.
848         * testsuite/23_containers/unordered_map/pmr_typedefs_debug.cc:
849         Likewise.
850         * testsuite/23_containers/unordered_multimap/pmr_typedefs_debug.cc:
851         Likewise.
852         * testsuite/23_containers/unordered_multiset/pmr_typedefs_debug.cc:
853         Likewise.
854         * testsuite/23_containers/unordered_set/pmr_typedefs_debug.cc:
855         Likewise.
856         * testsuite/23_containers/vector/cons/destructible_debug_neg.cc:
857         Likewise.
858         * testsuite/23_containers/vector/types/pmr_typedefs_debug.cc: Likewise.
859         * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
860         * testsuite/25_algorithms/copy/86658.cc: Likewise.
861         * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
862         * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
863         * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
864         * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
865
866         * include/parallel/algo.h: Replace non-reserved names.
867         * include/parallel/multiway_merge.h: Likewise.
868         * include/parallel/multiway_mergesort.h: Likewise.
869         * include/parallel/numericfwd.h: Likewise.
870         * testsuite/17_intro/names.cc: Add RAI to test macros.
871
872 2019-09-30  François Dumont  <fdumont@gcc.gnu.org>
873
874         * include/debug/array: Add C++20 constexpr to comparison operators.
875         * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: Adapt
876         dg-error line numbers.
877         * testsuite/23_containers/array/tuple_interface/
878         tuple_element_debug_neg.cc: Likewise.
879
880 2019-09-30  Andreas Tobler  <andreast@gcc.gnu.org>
881
882         * include/experimental/internet: Include netinet/in.h if we have
883         _GLIBCXX_HAVE_NETINET_IN_H defined.
884
885         * testsuite/ext/special_functions/airy_ai/check_nan.cc: Ignore the
886         FreeBSD warning about lower advertised precision of tgammal.
887         * testsuite/ext/special_functions/airy_bi/check_nan.cc: Likewise.
888         * testsuite/special_functions/07_cyl_bessel_i/check_nan.cc: Likewise.
889         * testsuite/special_functions/08_cyl_bessel_j/check_nan.cc: Likewise.
890         * testsuite/special_functions/09_cyl_bessel_k/check_nan.cc: Likewise.
891         * testsuite/special_functions/10_cyl_neumann/check_nan.cc: Likewise.
892         * testsuite/special_functions/19_sph_bessel/check_nan.cc: Likewise.
893         * testsuite/special_functions/21_sph_neumann/check_nan.cc: Likewise.
894         * testsuite/tr1/5_numerical_facilities/special_functions/
895         08_cyl_bessel_i/check_nan.cc: Likewise.
896         * testsuite/tr1/5_numerical_facilities/special_functions/
897         09_cyl_bessel_j/check_nan.cc: Likewise.
898         * testuite/tr1/5_numerical_facilities/special_functions/
899         10_cyl_bessel_k/check_nan.cc: Likewise.
900         * testsuite/tr1/5_numerical_facilities/special_functions/
901         11_cyl_neumann/check_nan.cc: Likewise.
902         * testsuite/tr1/5_numerical_facilities/special_functions/
903         21_sph_bessel/check_nan.cc: Likewise.
904         * testsuite/tr1/5_numerical_facilities/special_functions/
905         23_sph_neumann/check_nan.cc: Likewise.
906
907 2019-09-30  Jonathan Wakely  <jwakely@redhat.com>
908
909         * include/std/span (span(element_type(&)[N]))
910         (span(array<value_type, N>&), span(const array<value_type, N>&)):
911         Deduce array element type to allow safe const conversions (LWG 3255).
912         [!_GLIBCXX_P1394] (span(Container&), span(const Container&)): Use
913         remove_cv_t on arguments to __is_std_span and __is_std_array.
914         * testsuite/23_containers/span/lwg3255.cc: New test.
915
916         PR libstdc++/77936
917         * include/parallel/checkers.h (__is_sorted): Remove unused variable.
918
919 2019-09-28  François Dumont  <fdumont@gcc.gnu.org>
920
921         * include/bits/stl_algo.h (merge): Fix documentation.
922         * include/debug/functions.h (__check_sorted_aux): Add C++20 constexpr.
923         (__check_sorted): Likewise and remove nested irreflexive check.
924         (__check_sorted_set_aux, __check_sorted_set): Add C++20 constexpr.
925         (__check_partitioned_lower, __check_partitioned_upper): Likewise.
926         (_Irreflexive_checker::_S_is_valid): Likewise.
927         (__is_irreflexive, __is_irreflexive_pred): Likewise.
928         * include/debug/helper_functions.h (__get_distance): Add constexpr.
929         (__valid_range_aux): Add C++20 constexpr.
930         (__valid_range(_Iter, _Iter, _Distance_traits<_Iter>::__type&)):
931         Likewise and add std::is_constant_evaluated check.
932         (__valid_range_aux(_Iter, _Iter, std::input_iterator_tag)): New.
933         (__valid_range_aux(_Iter, _Iter, std::random_accss_iterator_tag)): New.
934         (__valid_range_aux(_Integral, _Integral, std::__true_type)): New,
935         use latter.
936         (__valid_range(_Iter, _Iter)): Adapt to use latter, add constexpr and
937         __builtin_is_contant_evaludated check..
938         (__can_advance, __base): Add constexpr.
939         * include/debug/macros.h [_GLIBCXX_HAVE_BUILTIN_IS_CONSTANT_EVALUATED]
940         (_GLIBCXX_DEBUG_VERIFY_COND_AT): New.
941         (__glibcxx_check_sorted): Use __glibcxx_check_irreflexive.
942         (__glibcxx_check_sorted_pred): Use __glibcxx_check_irreflexive_pred.
943         * testsuite/25_algorithms/binary_search/constexpr.cc: Use irreflexive
944         std::less.
945         * testsuite/25_algorithms/is_sorted/constexpr.cc: Likewise.
946         * testsuite/25_algorithms/merge/constexpr.cc: Fix order in camm. Fix
947         lambda to be irreflexive.
948
949 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
950
951         * configure: Regenerate.
952
953 2019-09-27  Jonathan Wakely  <jwakely@redhat.com>
954
955         PR libstdc++/91910
956         * src/c++11/debug.cc (_Safe_iterator_base::_M_detach()): Load pointer
957         atomically and lock the mutex before accessing the sequence.
958         (_Safe_local_iterator_base::_M_detach()): Likewise.
959         (_Safe_iterator_base::_M_reset()): Clear _M_sequence atomically.
960
961 2019-09-26  Jonathan Wakely  <jwakely@redhat.com>
962
963         * include/debug/array (to_array): Define for debug mode.
964
965         * include/bits/stl_pair.h (pair): Add _GLIBCXX20_CONSTEXPR to
966         piecewise construction constructor, assignment operators, and swap.
967         * include/std/tuple (pair::pair(piecewise_construct_t, tuple, tuple)):
968         Add _GLIBCXX20_CONSTEXPR.
969         (pair::pair(tuple, tuple, _Index_tuple, _Index_tuple)): Likewise.
970         * testsuite/20_util/pair/constexpr_assign.cc: New test.
971         * testsuite/20_util/pair/constexpr_swap.cc: New test.
972
973         * include/experimental/internet (operator==, operator<): Fix loop
974         condition to avoid reading past the end of the array.
975
976         * include/std/array: Remove references to profile mode.
977         * include/std/bitset: Likewise.
978         * include/std/deque: Likewise.
979         * include/std/forward_list: Likewise.
980         * include/std/list: Likewise.
981         * include/std/map: Likewise.
982         * include/std/set: Likewise.
983         * include/std/unordered_map: Likewise.
984         * include/std/unordered_set: Likewise.
985         * include/std/vector: Likewise.
986         * testsuite/17_intro/headers/c++1998/profile_mode.cc: New test.
987         * testsuite/17_intro/headers/c++2011/profile_mode.cc: New test.
988
989 2019-09-25  Jonathan Wakely  <jwakely@redhat.com>
990
991         * include/bits/regex.h
992         (basic_regex::assign(const C*, size_t, flag_type)): Add default
993         argument (LWG 3296).
994         * testsuite/28_regex/basic_regex/assign/char/lwg3296.cc: New test.
995         * testsuite/28_regex/basic_regex/assign/wchar_t/lwg3296.cc: New test.
996
997 2019-09-24  Jonathan Wakely  <jwakely@redhat.com>
998
999         * include/std/variant (variant::index()): Remove impossible case.
1000
1001         PR libstdc++/91871
1002         * testsuite/util/testsuite_hooks.h
1003         (conversion::iterator_to_const_iterator()): Do not return an invalid
1004         iterator. Test direct-initialization and direct-list-initialization
1005         as well as implicit conversion.
1006
1007 2019-09-23  Jonathan Wakely  <jwakely@redhat.com>
1008
1009         PR libstdc++/91788 (partial)
1010         * include/std/variant (variant::index()): Improve codegen for cases
1011         where conversion to size_t already works correctly.
1012
1013 2019-09-23  Andreas Schwab  <schwab@suse.de>
1014
1015         * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
1016
1017 2019-09-12  Jonathan Wakely  <jwakely@redhat.com>
1018
1019         PR libstdc++/91748
1020         * include/bits/stl_algo.h (for_each_n): Fix random access iterator
1021         case.
1022         * testsuite/25_algorithms/for_each/for_each_n.cc: Test with random
1023         access iterators.
1024
1025 2019-09-11  Jonathan Wakely  <jwakely@redhat.com>
1026
1027         * python/libstdcxx/v6/xmethods.py (SharedPtrUseCountWorker.__call__):
1028         Fix syntax error.
1029
1030         * testsuite/20_util/result_of/sfinae_friendly_1.cc: Add -Wno-volatile
1031         for C++2a and up. Define HAS_52748_FIXED and fix incorrect tests.
1032         * testsuite/tr1/3_function_objects/result_of.cc: Add -Wno-volatile
1033         for C++2a and up.
1034
1035 2019-09-10  Jonathan Wakely  <jwakely@redhat.com>
1036
1037         * include/std/type_traits (__do_common_type_impl): Implement
1038         additional COND-RES(CREF(D1), CRED(D2)) condition for C++20.
1039         (basic_common_reference, common_reference, common_reference_t): Define
1040         for C++20.
1041         * testsuite/20_util/common_reference/requirements/alias_decl.cc: New
1042         test.
1043         * testsuite/20_util/common_reference/requirements/
1044         explicit_instantiation.cc: New test.
1045         * testsuite/20_util/common_reference/requirements/typedefs.cc: New
1046         test.
1047
1048         * include/std/charconv (to_chars): Rename to __to_chars_i. Define
1049         non-template overloads for each signed and unsigned integer type and
1050         char. Define deleted overload for bool (LWG 3266).
1051         * testsuite/20_util/to_chars/1_neg.cc: Remove.
1052         * testsuite/20_util/to_chars/3.cc: New test.
1053         * testsuite/20_util/to_chars/lwg3266.cc: New test.
1054
1055 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
1056
1057         * acinclude.m4: Handle uclinux*.
1058         * configure: Regenerate.
1059         * configure.host: Handle uclinux*
1060
1061 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
1062         Mickaël Guêné <mickael.guene@st.com>
1063
1064         * libsupc++/eh_personality.cc (get_ttype_entry): Add FDPIC
1065         support.
1066
1067 2019-09-10  Jonathan Wakely  <jwakely@redhat.com>
1068
1069         PR libstdc++/91711
1070         * testsuite/23_containers/span/get_neg.cc: Avoid ambiguity due to
1071         0ul being a valid null pointer constant.
1072
1073         * include/std/type_traits (__remove_cv_t): New alias template.
1074         (is_void, is_integral, is_floating_point, is_pointer)
1075         (is_member_object_pointer, is_member_function_pointer, is_null_pointer)
1076         (is_member_point), __is_signed_integer, __is_unsigned_integer)
1077         (__make_unsigned_selector, __make_signed_selector, remove_pointer)
1078         (__decay_selector): Use __remove_cv_t.
1079         (remove_cv): Add partial specializations for cv-qualified types.
1080         (__decay_t): New alias template.
1081         (__decay_and_strip, __common_type_impl, __result_of_impl): Use
1082         __decay_t.
1083         (__enable_if_t): Move earlier in the file.
1084         (_Require): Use __enable_if_t.
1085         (swap(T&, T&)): Use _Require.
1086         (swap(T(&)[N])): Use __enable_if_t.
1087
1088 2019-09-09  Edward Smith-Rowland  <3dw4rd@verizon.net>
1089
1090         Implement C++20 p1424 - 'constexpr' feature macro concerns,
1091         Issue 3256 - Feature testing macro for constexpr algorithms,
1092         and Issue 3257 - Missing feature testing macro update from P0858.
1093         * include/std/version (__cpp_lib_constexpr_algorithms): Bump value.
1094         * include/bits/algorithmfwd.h: Ditto.
1095         * include/std/utility: Ditto.
1096         * testsuite/25_algorithms/constexpr_macro.cc: Ditto.
1097         * testsuite/25_algorithms/cpp_lib_constexpr.cc: New check for
1098         __cpp_lib_constexpr macro in <algorith>.
1099         * testsuite/20_util/exchange/constexpr.cc: Add check for
1100         __cpp_lib_constexpr macro in <utility>.
1101         * testsuite/25_algorithms/adjacent_find/constexpr.cc: Remove check for
1102         __cpp_lib_constexpr_algorithms.
1103         * testsuite/25_algorithms/all_of/constexpr.cc: Ditto.
1104         * testsuite/25_algorithms/any_of/constexpr.cc: Ditto.
1105         * testsuite/25_algorithms/binary_search/constexpr.cc: Ditto.
1106         * testsuite/25_algorithms/copy/constexpr.cc: Ditto.
1107         * testsuite/25_algorithms/copy_backward/constexpr.cc: Ditto.
1108         * testsuite/25_algorithms/copy_if/constexpr.cc: Ditto.
1109         * testsuite/25_algorithms/copy_n/constexpr.cc: Ditto.
1110         * testsuite/25_algorithms/count/constexpr.cc: Ditto.
1111         * testsuite/25_algorithms/count_if/constexpr.cc: Ditto.
1112         * testsuite/25_algorithms/equal/constexpr.cc: Ditto.
1113         * testsuite/25_algorithms/equal_range/constexpr.cc: Ditto.
1114         * testsuite/25_algorithms/fill/constexpr.cc: Ditto.
1115         * testsuite/25_algorithms/fill_n/constexpr.cc: Ditto.
1116         * testsuite/25_algorithms/find/constexpr.cc: Ditto.
1117         * testsuite/25_algorithms/find_end/constexpr.cc: Ditto.
1118         * testsuite/25_algorithms/find_first_of/constexpr.cc: Ditto.
1119         * testsuite/25_algorithms/find_if/constexpr.cc: Ditto.
1120         * testsuite/25_algorithms/find_if_not/constexpr.cc: Ditto.
1121         * testsuite/25_algorithms/for_each/constexpr.cc: Ditto.
1122         * testsuite/25_algorithms/generate/constexpr.cc: Ditto.
1123         * testsuite/25_algorithms/generate_n/constexpr.cc: Ditto.
1124         * testsuite/25_algorithms/is_heap/constexpr.cc: Ditto.
1125         * testsuite/25_algorithms/is_heap_until/constexpr.cc: Ditto.
1126         * testsuite/25_algorithms/is_partitioned/constexpr.cc: Ditto.
1127         * testsuite/25_algorithms/is_permutation/constexpr.cc: Ditto.
1128         * testsuite/25_algorithms/is_sorted/constexpr.cc: Ditto.
1129         * testsuite/25_algorithms/is_sorted_until/constexpr.cc: Ditto.
1130         * testsuite/25_algorithms/lexicographical_compare/constexpr.cc: Ditto.
1131         * testsuite/25_algorithms/lower_bound/constexpr.cc: Ditto.
1132         * testsuite/25_algorithms/merge/constexpr.cc: Ditto.
1133         * testsuite/25_algorithms/mismatch/constexpr.cc: Ditto.
1134         * testsuite/25_algorithms/none_of/constexpr.cc: Ditto.
1135         * testsuite/25_algorithms/partition_copy/constexpr.cc: Ditto.
1136         * testsuite/25_algorithms/partition_point/constexpr.cc: Ditto.
1137         * testsuite/25_algorithms/remove/constexpr.cc: Ditto.
1138         * testsuite/25_algorithms/remove_copy/constexpr.cc: Ditto.
1139         * testsuite/25_algorithms/remove_copy_if/constexpr.cc: Ditto.
1140         * testsuite/25_algorithms/remove_if/constexpr.cc: Ditto.
1141         * testsuite/25_algorithms/replace_copy/constexpr.cc: Ditto.
1142         * testsuite/25_algorithms/replace_copy_if/constexpr.cc: Ditto.
1143         * testsuite/25_algorithms/replace_if/constexpr.cc: Ditto.
1144         * testsuite/25_algorithms/reverse_copy/constexpr.cc: Ditto.
1145         * testsuite/25_algorithms/rotate_copy/constexpr.cc: Ditto.
1146         * testsuite/25_algorithms/search/constexpr.cc: Ditto.
1147         * testsuite/25_algorithms/search_n/constexpr.cc: Ditto.
1148         * testsuite/25_algorithms/set_difference/constexpr.cc: Ditto.
1149         * testsuite/25_algorithms/set_intersection/constexpr.cc: Ditto.
1150         * testsuite/25_algorithms/set_symmetric_difference/constexpr.cc: Ditto.
1151         * testsuite/25_algorithms/set_union/constexpr.cc: Ditto.
1152         * testsuite/25_algorithms/transform/constexpr.cc: Ditto.
1153         * testsuite/25_algorithms/unique/constexpr.cc: Ditto.
1154         * testsuite/25_algorithms/unique_copy/constexpr.cc: Ditto.
1155         * testsuite/25_algorithms/upper_bound/constexpr.cc: Ditto.
1156
1157 2019-09-09  Edward Smith-Rowland  <3dw4rd@verizon.net>
1158
1159         Update docs for recent <span> and constexpr lib changes.
1160         * doc/xml/manual/status_cxx2020.xml: Update p0202r3, p0858r0, p0879r0,
1161         p1023r0, p1085r2 status.
1162         * doc/html/manual/status.html: Regenerate.
1163
1164 2019-09-09  Antony Polukhin  <antoshkka@gmail.com>
1165
1166         * include/bits/charconv.h (__detail::__to_chars_10_impl): Replace
1167         final offsets with constants.
1168
1169 2019-09-09  Jonathan Wakely  <jwakely@redhat.com>
1170
1171         * include/bits/range_access.h (__adl_to_address): Remove.
1172         * include/std/span (__is_base_derived_safe_convertible_v): Replace
1173         with span::__is_compatible.
1174         (__is_std_array_v): Replace with __is_std_array class template and
1175         partial specializations.
1176         (__is_std_array, __is_std_span): New class templates and partial
1177         specializations.
1178         (span::__is_compatible): New alias template for SFINAE constraints.
1179         (span::span(element_type (&)[N])): Remove redundant constraints. Do
1180         not use __adl_data to obtain a pointer.
1181         (span::span(array<value_type, N>&)): Likewise.
1182         (span::span(const array<value_type, N>&)): Likewise.
1183         [_GLIBCXX_P1394] (span::iter_reference_t, span::iterator_t)
1184         (span::iter_value_t, span::derived_from): New alias templates for
1185         SFINAE constraints, until the equivalents are supported in <concepts>
1186         and <iterator>.
1187         [_GLIBCXX_P1394] (span::__is_compatible_iterator): New alias template
1188         for SFINAE constraints.
1189         [_GLIBCXX_P1394] (span::is_compatible_range): New class template for
1190         SFINAE constraints.
1191         [_GLIBCXX_P1394] (span::span(Range&&)): Improve constraints.
1192         [_GLIBCXX_P1394] (span::span(ContiguousIterator, Sentinel)): Likewise.
1193         Use std::to_address instead of __adl_to_address.
1194         [_GLIBCXX_P1394] (span::span(ContiguousIterator, size_type)): Likewise.
1195         [!_GLIBCXX_P1394] (span::__is_compatible_container): New alias
1196         template for SFINAE constraints.
1197         [!_GLIBCXX_P1394] (span::span(Container&))
1198         (span::span(const Container&)): Improve constraints.
1199         [!_GLIBCXX_P1394] (span::span(pointer, size_type))
1200         (span::span(pointer, pointer)): Remove redundant cast of pointer.
1201         (span(const span<OType, OExtent>&)): New constructor.
1202
1203 2019-09-06  Jonathan Wakely  <jwakely@redhat.com>
1204
1205         * include/bits/range_access.h (ssize): Define for C++20.
1206         * testsuite/24_iterators/range_access_cpp20.cc: New test.
1207         * doc/xml/manual/status_cxx2020.xml: Update P1227R2 status.
1208         * doc/html/*: Regenerate.
1209
1210 2019-09-06  Florian Weimer  <fweimer@redhat.com>
1211
1212         * configure: Regenerate.
1213
1214 2019-09-05  Jonathan Wakely  <jwakely@redhat.com>
1215
1216         * doc/xml/manual/status_cxx2020.xml: Update status for P0122R7 and
1217         P1024R3. Remove entry for P0920R2.
1218         * include/std/span  (__cpp_lib_span): Change value.
1219         (__extent_storage, __extent_storage<dynamic_extent>): Remove default
1220         constructor.
1221         (span): Replace __extent_storage base class with data member.
1222         (span::_S_subspan_extent): New function.
1223         (span::empty()): Add nodiscard attribute.
1224         (span::front, span::back, span::operator[]): Check preconditions.
1225         (span::first, span::last, span::subspan): Add noexcept. Improve
1226         precondition checks (LWG 3103).
1227         (get): Remove redundant condition from static_assert.
1228         (tuple_element<I, span<T, E>>): Fix static_assert message and simplify.
1229         (as_writable_bytes): Add inline specifier.
1230         * include/std/version (__cpp_lib_span): Change value.
1231         * testsuite/23_containers/span/back_neg.cc: Remove stray semi-colon.
1232         * testsuite/23_containers/span/front_neg.cc: Likewise.
1233         * testsuite/23_containers/span/index_op_neg.cc: Likewise.
1234         * testsuite/23_containers/span/last_neg.cc: Improve test.
1235         * testsuite/23_containers/span/subspan_neg.cc: Likewise.
1236         * testsuite/23_containers/span/1.cc: New test.
1237         * testsuite/23_containers/span/2.cc: New test.
1238         * testsuite/23_containers/span/back_assert_neg.cc: New test.
1239         * testsuite/23_containers/span/first_2_assert_neg.cc: New test.
1240         * testsuite/23_containers/span/first_assert_neg.cc: New test.
1241         * testsuite/23_containers/span/first_neg.cc: New test.
1242         * testsuite/23_containers/span/front_assert_neg.cc: New test.
1243         * testsuite/23_containers/span/index_op_assert_neg.cc: New test.
1244         * testsuite/23_containers/span/last_2_assert_neg.cc: New test.
1245         * testsuite/23_containers/span/last_assert_neg.cc: New test.
1246         * testsuite/23_containers/span/subspan_2_assert_neg.cc: New test.
1247         * testsuite/23_containers/span/subspan_3_assert_neg.cc: New test.
1248         * testsuite/23_containers/span/subspan_4_assert_neg.cc: New test.
1249         * testsuite/23_containers/span/subspan_5_assert_neg.cc: New test.
1250         * testsuite/23_containers/span/subspan_6_assert_neg.cc: New test.
1251         * testsuite/23_containers/span/subspan_assert_neg.cc: New test.
1252
1253 2019-09-05  JeanHeyd Meneide  <phdofthehouse@gmail.com>
1254
1255         * include/Makefile.am: Add <span> header.
1256         * include/Makefile.in: Regenerate.
1257         * include/bits/range_access.h (__adl_begin, __adl_end, __adl_cbegin)
1258         (__adl_cend, __adl_rbegin, __adl_rend, __adl_crbegin, __adl_crend)
1259         (__adl_data, __adl_cdata, __adl_size, __adl_empty, __adl_to_address):
1260         New functions for performing argument-dependent lookup of range
1261         customization points.
1262         * include/bits/stl_iterator.h (__normal_iterator): Add
1263         _GLIBCXX20_CONSTEXPR to all functions.
1264         * include/std/span: New header.
1265         * include/std/version (__cpp_lib_span): Define feature test macro.
1266         * testsuite/23_containers/span/contiguous_range_neg.cc: New test.
1267         * testsuite/23_containers/span/everything.cc: New test.
1268         * testsuite/23_containers/span/get_neg.cc: New test.
1269         * testsuite/23_containers/span/last_neg.cc: New test.
1270         * testsuite/23_containers/span/subspan_neg.cc: New test.
1271         * testsuite/23_containers/span/tuple_element_dynamic_neg.cc: New test.
1272         * testsuite/23_containers/span/tuple_element_oob_neg.cc: New test.
1273         * testsuite/23_containers/span/tuple_size_neg.cc: New test.
1274
1275 2019-09-05  Jonathan Wakely  <jwakely@redhat.com>
1276
1277         * doc/xml/manual/allocator.xml: Remove URL for bibliography entry.
1278         * doc/html/*: Regenerate.
1279
1280 2019-09-04  Mike Crowe  <mac@mcrowe.com>
1281
1282         PR libstdc++/41861
1283         * acinclude.m4 (GLIBCXX_CHECK_PTHREAD_COND_CLOCKWAIT): Check for new
1284         pthread_cond_clockwait function.
1285         * configure.ac: Use GLIBCXX_CHECK_PTHREAD_COND_CLOCKWAIT.
1286         * configure: Regenerate.
1287         * config.h.in: Regenerate.
1288         * include/std/condition_variable: (condition_variable): Rename
1289         __steady_clock_t typedef and add system_clock. Change __clock_t to be
1290         a typedef for the preferred clock to convert arbitrary other clocks to.
1291         [_GLIBCXX_USE_PTHREAD_COND_CLOCKWAIT] (wait_until): Add a steady_clock
1292         overload.
1293         (wait_until): Change __clock_t overload to use system_clock.
1294         [_GLIBCXX_USE_PTHREAD_COND_CLOCKWAIT] (__wait_until_impl): Add
1295         steady_clock overload that calls pthread_cond_clockwait.
1296         (__wait_until_impl): Change __clock_t overload to use system_clock.
1297         (condition_variable_any) [_GLIBCXX_USE_PTHREAD_COND_CLOCKWAIT]: Use
1298         steady_clock for __clock_t if pthread_cond_clockwait is available.
1299
1300 2019-09-04  Mike Crowe  <mac@mcrowe.com>
1301
1302         * testsuite/30_threads/condition_variable/members/2.cc (test01):
1303         Parameterise so that test can be run against an arbitrary clock.
1304         (main): Test using std::chrono::steady_clock and a user-defined
1305         clock in addition to the previous std::chrono::system_clock.
1306         * testsuite/30_threads/condition_variable_any/members/2.cc: Likewise.
1307
1308 2019-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
1309
1310         * crossconfig.m4: Remove references to spu.
1311         * configure: Regenerate.
1312         * doc/xml/manual/appendix_contributing.xml: Remove references
1313         to __ea as "badword" for spu.
1314         * doc/html/manual/source_code_style.html: Regenerate.
1315         * include/tr1/ell_integral.tcc (__ellint_rd): Do not attempt
1316         to avoid __ea (as "badword" for spu).
1317         (__ellint_rj): Likewise.
1318
1319 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
1320
1321         PR other/79543
1322         * acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Fix GNU ld --version
1323         scanning to conform to the GNU Coding Standards.
1324         * configure: Regenerate.
1325
1326 2019-09-02  Jonathan Wakely  <jwakely@redhat.com>
1327
1328         * src/c++17/memory_resource.cc: Use __constinit keyword.
1329
1330 2019-09-02  Jonathan Wakely  <jwakely@redhat.com>
1331
1332         * doc/xml/manual/abi.xml: Document 9.x library versions.
1333         * doc/html/*: Regenerate.
1334
1335 2019-09-02  Jonathan Wakely  <jwakely@redhat.com>
1336
1337         * include/std/charconv (__detail::__to_chars_2_len): Use std::log2p1.
1338         (__detail::__to_chars_8_len): Remove.
1339         (__detail::__to_chars_8): Inline length calculation here.
1340         (__detail::__from_chars_binary): Use numeric_limits instead of
1341         CHAR_BIT.
1342
1343 2019-09-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1344
1345         * config/abi/post/i386-solaris/baseline_symbols.txt: Regenerate.
1346         * config/abi/post/i386-solaris/amd64/baseline_symbols.txt: Likewise.
1347         * config/abi/post/sparc-solaris/baseline_symbols.txt: Likewise.
1348         * config/abi/post/sparc-solaris/sparcv9/baseline_symbols.txt:
1349         Likewise.
1350
1351 2019-09-01  François Dumont  <fdumont@gcc.gnu.org>
1352
1353         * testsuite_files/util/testsuite_performance.h
1354         (resource_counter::start): Ignore unused malloc(0) result.
1355
1356 2019-09-01  Gerald Pfeifer  <gerald@pfeifer.com>
1357
1358         * doc/xml/manual/policy_data_structures_biblio.xml (COM: Component
1359         Model Object Technologies): Adjust name and link.
1360
1361 2019-08-30  Antony Polukhin  <antoshkka@gmail.com>
1362
1363         * include/std/charconv (__detail::__to_chars_8)
1364         __detail::__to_chars_16): Replace array of precomputed digits with
1365         arithmetic operations to avoid CPU cache misses. Remove zero
1366         termination from array of digits to allow symbol merge with generic
1367         implementation of __detail::__to_chars. Replace final offsets with
1368         constants. Use __detail::__to_chars_len_2 instead of a generic
1369         __detail::__to_chars_len.
1370         (__detail::__to_chars): Remove zero termination from array of digits.
1371         (__detail::__to_chars_2): Leading digit is always '1'.
1372
1373 2019-08-30  Jonathan Wakely  <jwakely@redhat.com>
1374
1375         * testsuite/23_containers/vector/cons/89164_c++17.cc: Fix errors.
1376
1377 2019-08-30  Uros Bizjak  <ubizjak@gmail.com>
1378
1379         * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
1380
1381 2019-08-30  Jonathan Wakely  <jwakely@redhat.com>
1382
1383         PR libstdc++/89164
1384         * include/bits/stl_algobase.h (__copy_move): Give descriptive names
1385         to template parameters.
1386         * include/bits/stl_uninitialized.h (uninitialized_copy)
1387         (uninitialized_fill, uninitialized_fill_n): Add static assertions to
1388         diagnose invalid uses.
1389         * testsuite/20_util/specialized_algorithms/uninitialized_copy/1.cc:
1390         Adjust expected error.
1391         * testsuite/20_util/specialized_algorithms/uninitialized_copy/89164.cc:
1392         New test.
1393         * testsuite/20_util/specialized_algorithms/uninitialized_copy_n/
1394         89164.cc: New test.
1395         * testsuite/20_util/specialized_algorithms/uninitialized_fill/89164.cc:
1396         New test.
1397         * testsuite/20_util/specialized_algorithms/uninitialized_fill_n/
1398         89164.cc: New test.
1399         * testsuite/23_containers/vector/cons/89164.cc: New test.
1400         * testsuite/23_containers/vector/cons/89164_c++17.cc: New test.
1401
1402 2019-08-29  Jonathan Wakely  <jwakely@redhat.com>
1403
1404         PR libstdc++/91067
1405         * acinclude.m4 (libtool_VERSION): Bump to 6:28:0.
1406         * configure: Regenerate.
1407         * config/abi/pre/gnu.ver (GLIBCXX_3.4.28): Add new version. Export
1408         missing symbols.
1409         * testsuite/27_io/filesystem/iterators/91067.cc: Test move
1410         constructors.
1411         * testsuite/util/testsuite_abi.cc: Add new symbol version.
1412
1413 2019-08-29  Jakub Jelinek  <jakub@redhat.com>
1414
1415         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
1416         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
1417
1418 2019-08-28  Jonathan Wakely  <jwakely@redhat.com>
1419
1420         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
1421         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
1422         * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
1423         * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
1424         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
1425         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
1426         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1427
1428 2019-08-23  Joseph Myers  <joseph@codesourcery.com>
1429
1430         * src/filesystem/ops-common.h [_GLIBCXX_FILESYSTEM_IS_WINDOWS]
1431         (std::filesystem::__gnu_posix::lstat): Add return type.
1432
1433 2019-08-20  Jonathan Wakely  <jwakely@redhat.com>
1434
1435         * doc/doxygen/user.cfg.in (INPUT): Remove profile mode headers.
1436
1437         * include/std/numeric (reduce): Fix Doxygen markup.
1438
1439         PR libstdc++/91371
1440         * include/std/type_traits (is_function): Simplify definition. Remove
1441         partial specializations for function types.
1442         (__is_referenceable): Simplify definition.
1443         * testsuite/20_util/bind/91371.cc: New test.
1444         * testsuite/20_util/is_function/91371.cc: New test.
1445         * testsuite/20_util/is_function/value.cc: Check more pointer types.
1446         * testsuite/20_util/is_member_function_pointer/91371.cc: New test.
1447         * testsuite/20_util/is_object/91371.cc: New test.
1448
1449 2019-08-16  Uros Bizjak  <ubizjak@gmail.com>
1450
1451         * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
1452
1453 2019-08-15  Jonathan Wakely  <jwakely@redhat.com>
1454
1455         PR libstdc++/91456
1456         * include/bits/std_function.h (__check_func_return_type): Remove.
1457         (function::_Callable): Use std::__is_invocable_impl instead of
1458         __check_func_return_type.
1459         * include/std/type_traits (__is_invocable_impl): Add another defaulted
1460         template parameter. Define a separate partial specialization for
1461         INVOKE and INVOKE<void>. For INVOKE<R> replace is_convertible check
1462         with a check that models delayed temporary materialization.
1463         * testsuite/20_util/function/91456.cc: New test.
1464         * testsuite/20_util/is_invocable/91456.cc: New test.
1465
1466 2019-08-14  Jonathan Wakely  <jwakely@redhat.com>
1467
1468         * include/std/type_traits (__is_nullptr_t): Add deprecated attribute.
1469
1470 2019-08-14  Edward Smith-Rowland  <3dw4rd@verizon.net>
1471
1472         Implement C++20 p0879 - Constexpr for swap and swap related functions.
1473         * include/std/version (__cpp_lib_constexpr_swap_algorithms): New macro.
1474         * include/bits/algorithmfwd.h (__cpp_lib_constexpr_swap_algorithms):
1475         New macro.
1476         (iter_swap, make_heap, next_permutation, partial_sort_copy, pop_heap)
1477         (prev_permutation, push_heap, reverse, rotate, sort_heap, swap)
1478         (swap_ranges, nth_element, partial_sort, sort): Add constexpr.
1479         * include/bits/move.h (swap): Add constexpr.
1480         * include/bits/stl_algo.h (__move_median_to_first, __reverse, reverse)
1481         (__gcd, __rotate, rotate, __partition, __heap_select)
1482         (__partial_sort_copy, partial_sort_copy, __unguarded_partition)
1483         (__unguarded_partition_pivot, __partial_sort, __introsort_loop, __sort)
1484         (__introselect, __chunk_insertion_sort, next_permutation)
1485         (prev_permutation, partition, partial_sort, nth_element, sort)
1486         (__iter_swap::iter_swap, iter_swap, swap_ranges): Add constexpr.
1487         * include/bits/stl_algobase.h (__iter_swap::iter_swap, iter_swap)
1488         (swap_ranges): Add constexpr.
1489         * include/bits/stl_heap.h (__push_heap, push_heap, __adjust_heap,
1490         __pop_heap, pop_heap, __make_heap, make_heap, __sort_heap, sort_heap):
1491         Add constexpr.
1492         * include/std/type_traits (swap): Add constexpr.
1493         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Add constexpr.
1494         * testsuite/25_algorithms/iter_swap/constexpr.cc: New test.
1495         * testsuite/25_algorithms/make_heap/constexpr.cc: New test.
1496         * testsuite/25_algorithms/next_permutation/constexpr.cc: New test.
1497         * testsuite/25_algorithms/nth_element/constexpr.cc: New test.
1498         * testsuite/25_algorithms/partial_sort/constexpr.cc: New test.
1499         * testsuite/25_algorithms/partial_sort_copy/constexpr.cc: New test.
1500         * testsuite/25_algorithms/partition/constexpr.cc: New test.
1501         * testsuite/25_algorithms/pop_heap/constexpr.cc: New test.
1502         * testsuite/25_algorithms/prev_permutation/constexpr.cc: New test.
1503         * testsuite/25_algorithms/push_heap/constexpr.cc: New test.
1504         * testsuite/25_algorithms/reverse/constexpr.cc: New test.
1505         * testsuite/25_algorithms/rotate/constexpr.cc: New test.
1506         * testsuite/25_algorithms/sort/constexpr.cc: New test.
1507         * testsuite/25_algorithms/sort_heap/constexpr.cc: New test.
1508         * testsuite/25_algorithms/swap/constexpr.cc: New test.
1509         * testsuite/25_algorithms/swap_ranges/constexpr.cc: New test.
1510
1511 2019-08-12  Jonathan Wakely  <jwakely@redhat.com>
1512
1513         PR libstdc++/90361
1514         * src/c++17/string-inst.cc: Use _GLIBCXX_USE_CXX11_ABI=1 by default.
1515
1516         * include/std/tuple (__unpack_std_tuple): New variable template and
1517         partial specializations.
1518         (apply, make_from_tuple): Add noexcept-specifier.
1519         * testsuite/20_util/tuple/apply/2.cc: New test.
1520         * testsuite/20_util/tuple/make_from_tuple/2.cc: New test.
1521
1522 2019-08-09  Corentin Gay  <gay@adacore.com>
1523
1524         * testsuite/ext/random/beta_distribution/operators/serialize.cc,
1525         testsuite/ext/random/hypergeometric_distribution/operators/serialize.cc,
1526         testsuite/ext/random/normal_mv_distribution/operators/serialize.cc,
1527         testsuite/ext/random/triangular_distribution/operators/serialize.cc,
1528         testsuite/ext/random/von_mises_distribution/operators/serialize.cc:
1529         Add call to `VERIFY`.
1530
1531 2019-08-09  Alexandre Oliva <oliva@adacore.com>
1532
1533         * include/ext/random
1534         (normal_mv_distribution::param_type::param_type): New private
1535         ctor taking a decomposed varcov matrix, for use by...
1536         (operator>>): ... this, befriended.
1537         * include/ext/random.tcc (operator>>): Use it.
1538         (normal_mv_distribution::param_type::_M_init_lower): Adjust
1539         member function name in exception message.
1540
1541 2019-08-08  Jonathan Wakely  <jwakely@redhat.com>
1542
1543         P0325R4 to_array from LFTS with updates
1544         * include/experimental/array (to_array): Qualify call to __to_array.
1545         * include/std/array (__cpp_lib_to_array, to_array): Define for C++20.
1546         * include/std/version (__cpp_lib_to_array): Likewise.
1547         * testsuite/23_containers/array/creation/1.cc: New test.
1548         * testsuite/23_containers/array/creation/2.cc: New test.
1549         * testsuite/23_containers/array/creation/3_neg.cc: New test.
1550         * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
1551         Use zero for dg-error line number.
1552
1553 2019-08-06  Jonathan Wakely  <jwakely@redhat.com>
1554
1555         P1651R0 bind_front should not unwrap reference_wrapper
1556         * include/std/functional (bind_front): Don't unwrap reference_wrapper.
1557         * include/std/version (__cpp_lib_bind_front): Update value.
1558         * testsuite/20_util/function_objects/bind_front/1.cc: Fix test for
1559         feature test macro.
1560         * testsuite/20_util/function_objects/bind_front/2.cc: New test.
1561
1562         * include/std/numbers [!__STRICT_ANSI__ && _GLIBCXX_USE_FLOAT128]
1563         (e_v, log2e_v, log10e_v, pi_v, inv_pi_v, inv_sqrtpi_v, ln2_v, ln10_v)
1564         (sqrt2_v, sqrt3_v, inv_sqrt3, egamma_v, phi_v): Add explicit
1565         specializations for __float128.
1566         * testsuite/26_numerics/numbers/float128.cc: New test.
1567
1568 2019-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
1569
1570         * doc/xml/manual/documentation_hacking.xml: doxygen.org is now
1571         doxygen.nl.
1572
1573 2019-08-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
1574
1575         Implement C++20 p0202 - Add Constexpr Modifiers to Functions
1576         in <algorithm> and <utility> Headers.
1577         Implement C++20 p1023 - constexpr comparison operators for std::array.
1578         * include/bits/algorithmfwd.h (all_of, any_of, binary_search, copy,
1579         copy_backward, copy_if, copy_n, equal_range, fill, find_end,
1580         find_if_not, includes, is_heap, is_heap_until, is_partitioned,
1581         is_permutation, is_sorted, is_sorted_until, iter_swap, lower_bound,
1582         none_of, partition_copy, partition_point, remove, remove_if,
1583         remove_copy, remove_copy_if, replace_copy, replace_copy_if,
1584         reverse_copy, rotate_copy, uunique, upper_bound, adjacent_find, count,
1585         count_if, equal, find, find_first_of, find_if, for_each, generate,
1586         generate_n, lexicographical_compare, merge, mismatch, replace,
1587         replace_if, search, search_n, set_difference, set_intersection,
1588         set_symmetric_difference, set_union, transform, unique_copy):
1589         Mark constexpr.
1590         * include/bits/cpp_type_traits.h (__miter_base): Mark constexpr.
1591         * include/bits/predefined_ops.h (_Iter_less_val::operator(),
1592         _Val_less_iter::operator(), _Iter_equal_to_iter::operator(),
1593         _Iter_equal_to_val::operator(), _Iter_equals_val::operator()):
1594          Use const ref instead of ref arg;
1595         (_Iter_less_val, __iter_less_val, _Val_less_iter, __val_less_iter,
1596         __iter_equal_to_iter, __iter_equal_to_val, __iter_comp_val,
1597         _Iter_comp_val, _Val_comp_iter, __val_comp_iter, __iter_equals_val,
1598         _Iter_equals_iter, __iter_comp_iter, _Iter_pred, __pred_iter,
1599         _Iter_comp_to_val, __iter_comp_val, _Iter_comp_to_iter,
1600         __iter_comp_iter): Mark constexpr.
1601         * include/bits/stl_algo.h (__find_if, __find_if_not, __find_if_not_n,
1602         __search, __search_n_aux, __search_n, __find_end, find_end, all_of,
1603         none_of, any_of, find_if_not, is_partitioned, partition_point,
1604         __remove_copy_if, remove_copy, remove_copy_if, copy_if, __copy_n,
1605         copy_n, partition_copy, __remove_if, remove, remove_if, __adjacent_find,
1606         __unique, unique, __unique_copy, reverse_copy, rotate_copy,
1607         __unguarded_linear_insert, __insertion_sort, __unguarded_insertion_sort,
1608         __final_insertion_sort, lower_bound, __upper_bound, upper_bound,
1609         __equal_range, equal_range, binary_search, __includes, includes,
1610         __next_permutation, __prev_permutation, __replace_copy_if, replace_copy,
1611         replace_copy_if, __count_if, is_sorted, __is_sorted_until,
1612         is_sorted_until, __is_permutation, is_permutation, for_each, find,
1613         find_if, find_first_of, adjacent_find, count, count_if, search,
1614         search_n, transform, replace, replace_if, generate, generate_n,
1615         unique_copy, __merge, merge, __set_union, set_union, __set_intersection,
1616         set_intersection, __set_difference, set_difference,
1617         __set_symmetric_difference, set_symmetric_difference):  Mark constexpr.
1618         * include/bits/stl_algobase.h (__memmove, __memcmp): New maybe constexpr
1619         wrappers around __builtin_memmove and __builtin_memcmp
1620         respectively;
1621         (__niter_base, __niter_wrap, __copy_m, __copy_move_a, __copy_move_a2,
1622         copy, move, __copy_move_b, __copy_move_backward_a,
1623         __copy_move_backward_a2, copy_backward, move_backward, __fill_a, fill,
1624         __fill_n_a, fill_n, equal, __lc_rai::__newlast1, __lc_rai::__cnd2,
1625         __lexicographical_compare_impl, __lexicographical_compare,
1626         __lexicographical_compare<true>::__lc, __lexicographical_compare_aux,
1627         __lower_bound, lower_bound, equal, __equal4, lexicographical_compare,
1628         __mismatch, mismatch, __is_heap_until, __is_heap, is_heap_until,
1629         is_heap): Mark constexpr.
1630         * include/bits/stl_heap.h (__is_heap_until, __is_heap, is_heap_until,
1631         is_heap): Mark constexpr.
1632         * include/bits/stl_iterator.h (__niter_base, __miter_base): Mark constexpr.
1633         * include/std/array: Make comparison ops constexpr.
1634         * include/std/utility: Make exchange constexpr.
1635         * include/std/version (__cpp_lib_constexpr_algorithms): New macro.
1636         * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust.
1637         * testsuite/23_containers/array/tuple_interface/
1638         tuple_element_neg.cc: Adjust.
1639         * testsuite/20_util/exchange/constexpr.cc: New.
1640         * testsuite/23_containers/array/comparison_operators/constexpr.cc: New.
1641         * testsuite/25_algorithms/constexpr_macro.cc: New.
1642         * testsuite/25_algorithms/adjacent_find/constexpr.cc: New.
1643         * testsuite/25_algorithms/all_of/constexpr.cc: New.
1644         * testsuite/25_algorithms/any_of/constexpr.cc: New.
1645         * testsuite/25_algorithms/binary_search/constexpr.cc: New.
1646         * testsuite/25_algorithms/copy/constexpr.cc: New.
1647         * testsuite/25_algorithms/copy_backward/constexpr.cc: New.
1648         * testsuite/25_algorithms/copy_if/constexpr.cc: New.
1649         * testsuite/25_algorithms/copy_n/constexpr.cc: New.
1650         * testsuite/25_algorithms/count/constexpr.cc: New.
1651         * testsuite/25_algorithms/count_if/constexpr.cc: New.
1652         * testsuite/25_algorithms/equal/constexpr.cc: New.
1653         * testsuite/25_algorithms/equal_range/constexpr.cc: New.
1654         * testsuite/25_algorithms/fill/constexpr.cc: New.
1655         * testsuite/25_algorithms/fill_n/constexpr.cc: New.
1656         * testsuite/25_algorithms/find/constexpr.cc: New.
1657         * testsuite/25_algorithms/find_end/constexpr.cc: New.
1658         * testsuite/25_algorithms/find_first_of/constexpr.cc: New.
1659         * testsuite/25_algorithms/find_if/constexpr.cc: New.
1660         * testsuite/25_algorithms/find_if_not/constexpr.cc: New.
1661         * testsuite/25_algorithms/for_each/constexpr.cc: New.
1662         * testsuite/25_algorithms/generate/constexpr.cc: New.
1663         * testsuite/25_algorithms/generate_n/constexpr.cc: New.
1664         * testsuite/25_algorithms/is_heap/constexpr.cc: New.
1665         * testsuite/25_algorithms/is_heap_until/constexpr.cc: New.
1666         * testsuite/25_algorithms/is_partitioned/constexpr.cc: New.
1667         * testsuite/25_algorithms/is_permutation/constexpr.cc: New.
1668         * testsuite/25_algorithms/is_sorted/constexpr.cc: New.
1669         * testsuite/25_algorithms/is_sorted_until/constexpr.cc: New.
1670         * testsuite/25_algorithms/lexicographical_compare/constexpr.cc: New.
1671         * testsuite/25_algorithms/lower_bound/constexpr.cc: New.
1672         * testsuite/25_algorithms/merge/constexpr.cc: New.
1673         * testsuite/25_algorithms/mismatch/constexpr.cc: New.
1674         * testsuite/25_algorithms/none_of/constexpr.cc: New.
1675         * testsuite/25_algorithms/partition_copy/constexpr.cc: New.
1676         * testsuite/25_algorithms/partition_point/constexpr.cc: New.
1677         * testsuite/25_algorithms/remove/constexpr.cc: New.
1678         * testsuite/25_algorithms/remove_copy/constexpr.cc: New.
1679         * testsuite/25_algorithms/remove_copy_if/constexpr.cc: New.
1680         * testsuite/25_algorithms/remove_if/constexpr.cc: New.
1681         * testsuite/25_algorithms/replace_copy/constexpr.cc: New.
1682         * testsuite/25_algorithms/replace_copy_if/constexpr.cc: New.
1683         * testsuite/25_algorithms/replace_if/constexpr.cc: New.
1684         * testsuite/25_algorithms/reverse_copy/constexpr.cc: New.
1685         * testsuite/25_algorithms/rotate_copy/constexpr.cc: New.
1686         * testsuite/25_algorithms/search/constexpr.cc: New.
1687         * testsuite/25_algorithms/search_n/constexpr.cc: New.
1688         * testsuite/25_algorithms/set_difference/constexpr.cc: New.
1689         * testsuite/25_algorithms/set_intersection/constexpr.cc: New.
1690         * testsuite/25_algorithms/set_symmetric_difference/constexpr.cc: New.
1691         * testsuite/25_algorithms/set_union/constexpr.cc: New.
1692         * testsuite/25_algorithms/transform/constexpr.cc: New.
1693         * testsuite/25_algorithms/unique/constexpr.cc: New.
1694         * testsuite/25_algorithms/unique_copy/constexpr.cc: New.
1695         * testsuite/25_algorithms/upper_bound/constexpr.cc: New.
1696
1697 2019-07-31  Jonathan Wakely  <jwakely@redhat.com>
1698
1699         * include/std/memory (make_obj_using_allocator): Qualify call to
1700         uses_allocator_construction_args.
1701
1702         P0631R4 Math Constants
1703         * include/Makefile.am: Add new header.
1704         * include/Makefile.in: Regenerate.
1705         * include/precompiled/stdc++.h: Include new header.
1706         * include/std/numbers: New header.
1707         * include/std/version (__cpp_lib_math_constants): Define.
1708         * testsuite/26_numerics/numbers/1.cc: New test.
1709         * testsuite/26_numerics/numbers/2.cc: New test.
1710         * testsuite/26_numerics/numbers/3.cc: New test.
1711         * testsuite/26_numerics/numbers/nonfloat_neg.cc: New test.
1712
1713         * include/std/bit: Add Doxygen comments.
1714
1715         PR libstdc++/91308
1716         * include/bits/unique_ptr.h (unique_ptr::__safe_conversion_up): Remove
1717         constraints on deleter that should only apply to the constructor.
1718         (unique_ptr<T[], D>::__safe_conversion_up): Likewise.
1719         (unique_ptr<T[], D>::unique_ptr(unique_ptr<U, D>&&)): Restore
1720         constraints on deleter here.
1721         * testsuite/20_util/unique_ptr/assign/91308.cc: New test.
1722
1723 2019-07-29  Jonathan Wakely  <jwakely@redhat.com>
1724
1725         PR libstdc++/51333
1726         * libsupc++/cxxabi.h (__gnu_cxx::recursive_init_error): Do not define
1727         constructor inline.
1728         * libsupc++/guard_error.cc (__gnu_cxx::recursive_init_error): Define
1729         constructor.
1730         * testsuite/18_support/51333.cc: New test.
1731
1732 2019-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
1733
1734         * doc/xml/manual/documentation_hacking.xml: Fix broken reference
1735         to the Doxygen manual. Avoid a "here" link on the way.
1736         Fix another broken link to Doxygen docblocks.
1737
1738 2019-07-26  Jonathan Wakely  <jwakely@redhat.com>
1739
1740         * include/std/bit (__cpp_lib_endian): Define.
1741         * include/std/version (__cpp_lib_endian): Define.
1742         * testsuite/26_numerics/endian/2.cc: New.
1743         * testsuite/26_numerics/endian/3.cc: New.
1744         * testsuite/26_numerics/endian/4.cc: New.
1745
1746 2019-07-26  François Dumont  <fdumont@gcc.gnu.org>
1747
1748         * testsuite/util/testsuite_iterators.h
1749         (bidirectional_iterator_wrapper): Fix type comment.
1750         (random_access_iterator_wrapper): Likewise.
1751
1752 2019-07-25  Jonathan Wakely  <jwakely@redhat.com>
1753
1754         * include/std/bit (endian): Move definition here as per P1612R1.
1755         * include/std/type_traits (endian): Remove definition from here.
1756         * testsuite/20_util/endian/1.cc: Rename to ...
1757         * testsuite/26_numerics/endian/1.cc: ... here. Adjust header.
1758
1759 2019-07-25  Martin Liska  <mliska@suse.cz>
1760             Dominik Infuhr  <dominik.infuehr@theobroma-systems.com>
1761
1762         PR c++/23383
1763         * testsuite/ext/bitmap_allocator/check_delete.cc: Add
1764         -fno-allocation-dce.
1765         * testsuite/ext/bitmap_allocator/check_new.cc: Likewise.
1766         * testsuite/ext/new_allocator/check_delete.cc: Likewise.
1767         * testsuite/ext/new_allocator/check_new.cc: Likewise.
1768
1769 2019-07-22  Jonathan Wakely  <jwakely@redhat.com>
1770
1771         * testsuite/26_numerics/bit/bitops.count/*: Rename to ...
1772         * testsuite/26_numerics/bit/bit.count/*: Here.
1773
1774         * include/std/bit (__rotl, __rotr): Change second parameter from
1775         unsigned int to int and handle negative values.
1776         (rotl, rotr): Remove check for __STRICT_ANSI__. Change second
1777         parameter from unsigned int to int. Add nodiscard attribute.
1778         * testsuite/26_numerics/bit/bitops.rot/rotl.cc: Rename to ...
1779         * testsuite/26_numerics/bit/bit.rotate/rotl.cc: Here. Test negative
1780         shifts.
1781         * testsuite/26_numerics/bit/bitops.rot/rotr.cc: Rename to ...
1782         * testsuite/26_numerics/bit/bit.rotate/rotr.cc: Here. Test negative
1783         shifts.
1784
1785         * include/std/bit (__ceil2): Make unrepresentable results undefined,
1786         as per P1355R2. Add debug assertion. Perform one left shift, not two,
1787         so that out of range values cause undefined behaviour. Ensure that
1788         shift will still be undefined if left operand is promoted.
1789         * testsuite/26_numerics/bit/bit.pow.two/ceil2.cc: Replace checks for
1790         unrepresentable values with checks that they are not core constant
1791         expressions.
1792         * testsuite/26_numerics/bit/bit.pow.two/ceil2_neg.cc: New test.
1793
1794 2019-07-19  François Dumont  <fdumont@gcc.gnu.org>
1795
1796         * include/bits/stl_tempbuf.h (__detail::__return_temporary_buffer): Fix
1797         sized deallocation size computation.
1798
1799 2019-07-19  Andreas Schwab  <schwab@linux-m68k.org>
1800
1801         * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
1802
1803 2019-07-18  François Dumont  <fdumont@gcc.gnu.org>
1804
1805         * include/bits/stl_tempbuf.h (__detail::__return_temporary_buffer): New.
1806         (~_Temporary_buffer()): Use latter.
1807         (_Temporary_buffer(_FIterator, size_type)): Likewise.
1808
1809 2019-07-17  Andreas Schwab  <schwab@suse.de>
1810
1811         * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
1812
1813 2019-07-16  Jason Merrill  <jason@redhat.com>
1814
1815         * include/std/memory (uses_allocator_construction_args): Add parens
1816         around constraint.
1817
1818 2019-07-12  Jonathan Wakely  <jwakely@redhat.com>
1819
1820         * testsuite/29_atomics/atomic_float/1.cc: Fix comment.
1821
1822         * include/experimental/string_view (__detail::__idt): Remove.
1823         (operator==, operator!=, operator<, operator>, operator<=, operator>=):
1824         Use __type_identity_t instead of __detail::__idt;
1825         * include/std/string_view (__detail::__idt): Remove.
1826         (operator==, operator!=, operator<, operator>, operator<=, operator>=):
1827         Use __type_identity_t instead of __detail::__idt;
1828         * include/std/type_traits (__type_identity_t): New alias template.
1829
1830         * doc/xml/manual/status_cxx2020.xml: Update status for atomic_ref
1831         and floating point atomics.
1832
1833 2019-07-11  Jonathan Wakely  <jwakely@redhat.com>
1834
1835         * doc/xml/manual/configure.xml: Improve documentation of
1836         --enable-libstdcxx-time option.
1837
1838         * include/bits/atomic_base.h (__atomic_impl): New namespace for
1839         wrappers around atomic built-ins.
1840         (__atomic_float, __atomic_ref): New class templates for use as base
1841         classes.
1842         * include/std/atomic (atomic<float>, atomic<double>)
1843         (atomic<long double>): New explicit specializations.
1844         (atomic_ref): New class template.
1845         (__cpp_lib_atomic_ref): Define.
1846         * include/std/version (__cpp_lib_atomic_ref): Define.
1847         * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error.
1848         * testsuite/29_atomics/atomic_float/1.cc: New test.
1849         * testsuite/29_atomics/atomic_float/requirements.cc: New test.
1850         * testsuite/29_atomics/atomic_ref/deduction.cc: New test.
1851         * testsuite/29_atomics/atomic_ref/float.cc: New test.
1852         * testsuite/29_atomics/atomic_ref/generic.cc: New test.
1853         * testsuite/29_atomics/atomic_ref/integral.cc: New test.
1854         * testsuite/29_atomics/atomic_ref/pointer.cc: New test.
1855         * testsuite/29_atomics/atomic_ref/requirements.cc: New test.
1856
1857 2019-07-06  Jonathan Wakely  <jwakely@redhat.com>
1858
1859         * include/ext/atomicity.h (__exchange_and_add, __atomic_add): Replace
1860         throw() with _GLIBCXX_NOTHROW.
1861         (__atomic_add_dispatch): Return after performing atomic increment.
1862
1863 2019-07-05  Jonathan Wakely  <jwakely@redhat.com>
1864
1865         * include/ext/atomicity.h [_GLIBCXX_ATOMIC_BUILTINS] (__atomic_add)
1866         (__exchange_and_add): Replace static specifier with always_inline
1867         attribute.
1868         (__exchange_and_add_single, __atomic_add_single): Likewise.
1869         (__exchange_and_add_dispatch, __atomic_add_dispatch): Likewise. Also
1870         combine !__gthread_active_p() and !__GTHREADS branches.
1871
1872 2019-07-03  Jonathan Wakely  <jwakely@redhat.com>
1873
1874         PR libstdc++/91067
1875         * acinclude.m4 (libtool_VERSION): Bump to 6:27:0.
1876         * configure: Regenerate.
1877         * config/abi/pre/gnu.ver (GLIBCXX_3.4.27): Add new version. Export
1878         missing symbols.
1879         * testsuite/27_io/filesystem/iterators/91067.cc: New test.
1880         * testsuite/util/testsuite_abi.cc: Add new symbol version.
1881
1882 2019-07-02  Jonathan Wakely  <jwakely@redhat.com>
1883
1884         * include/bits/c++config (_GLIBCXX_HAVE_BUILTIN_LAUNDER)
1885         (_GLIBCXX_HAVE_BUILTIN_IS_CONSTANT_EVALUATED): Use __has_builtin
1886         instead of __is_identifier to detect Clang support.
1887
1888 2019-07-02  Jim Wilson  <jimw@sifive.com>
1889
1890         * configure.ac (BUILD_PDF): Also test for doxygen, dot, xsltproc,
1891         and xmllint.
1892         * configure: Regenerate.
1893
1894 2019-06-27  Jonathan Wakely  <jwakely@redhat.com>
1895
1896         PR libstdc++/91012
1897         * src/c++17/fs_path.cc (filesystem_error::_Impl): Use a string_view
1898         for the what_arg parameters.
1899         (filesystem_error::filesystem_error): Pass system_error::what() to
1900         the _Impl constructor.
1901         * testsuite/27_io/filesystem/filesystem_error/cons.cc: Ensure that
1902         filesystem_error::what() contains system_error::what().
1903
1904 2019-06-26  Jonathan Wakely  <jwakely@redhat.com>
1905
1906         * include/std/charconv (chars_format): Define bitmask type.
1907         * testsuite/20_util/to_chars/chars_format.cc: New test.
1908
1909         * include/bits/fs_path.h (path::__is_encoded_char): Use __is_one_of.
1910         * include/std/bit (_If_is_unsigned_integer_type): Remove.
1911         (_If_is_unsigned_integer): Use __is_unsigned_integer.
1912         (rotl(byte, unsigned), rotr(byte, unsigned), countl_zero(byte))
1913         (countl_one(byte), countr_zero(byte), countr_one(byte))
1914         (popcount(byte), ispow2(byte), ceil2(byte), floor2(byte))
1915         (log2p1(byte)): Remove.
1916         * include/std/charconv (__detail::__is_one_of): Move to <type_traits>.
1917         (__detail::__is_int_to_chars_type): Remove.
1918         (__detail::__integer_to_chars_result_type): Use __is_signed_integer
1919         and __is_unsigned_integer.
1920         * include/std/type_traits (__is_one_of): Move here from <charconv>.
1921         (__is_signed_integer, __is_unsigned_integer): New helpers.
1922         * testsuite/26_numerics/bit/bit.pow.two/ceil2.cc: Remove test for
1923         std::byte overload.
1924         * testsuite/26_numerics/bit/bit.pow.two/floor2.cc: Likewise.
1925         * testsuite/26_numerics/bit/bit.pow.two/ispow2.cc: Likewise.
1926         * testsuite/26_numerics/bit/bit.pow.two/log2p1.cc: Likewise.
1927         * testsuite/26_numerics/bit/bitops.count/countl_one.cc: Likewise.
1928         * testsuite/26_numerics/bit/bitops.count/countl_zero.cc: Likewise.
1929         * testsuite/26_numerics/bit/bitops.count/countr_one.cc: Likewise.
1930         * testsuite/26_numerics/bit/bitops.count/countr_zero.cc: Likewise.
1931         * testsuite/26_numerics/bit/bitops.count/popcount.cc: Likewise.
1932         * testsuite/26_numerics/bit/bitops.rot/rotl.cc: Likewise.
1933         * testsuite/26_numerics/bit/bitops.rot/rotr.cc: Likewise.
1934
1935 2019-06-25  Jonathan Wakely  <jwakely@redhat.com>
1936
1937         * include/std/numeric (midpoint(T, T)): Avoid std::abs in constexpr
1938         function.
1939
1940 2019-06-25  Jakub Jelinek  <jakub@redhat.com>
1941
1942         * include/pstl/pstl_config.h (_PSTL_PRAGMA_SIMD_SCAN,
1943         _PSTL_PRAGMA_SIMD_INCLUSIVE_SCAN, _PSTL_PRAGMA_SIMD_EXCLUSIVE_SCAN):
1944         Define to OpenMP 5.0 pragmas even for GCC 10.0+.
1945         (_PSTL_UDS_PRESENT): Define to 1 for GCC 10.0+.
1946
1947 2019-06-24  Jonathan Wakely  <jwakely@redhat.com>
1948
1949         * include/std/numeric (midpoint(T, T)): Change implementation for
1950         floating-point types to avoid incorrect rounding of denormals.
1951         * testsuite/26_numerics/midpoint/floating.cc: Add check for correct
1952         rounding with denormals.
1953         * testsuite/26_numerics/gcd/gcd_neg.cc: Adjust dg-error line numbers.
1954         * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
1955
1956         * testsuite/18_support/headers/cfloat/values_c++17.cc: New test.
1957
1958 2019-06-20  Jonathan Wakely  <jwakely@redhat.com>
1959
1960         * acinclude.m4 (GLIBCXX_ENABLE_DEBUG): Only do debug build for final
1961         stage of bootstrap.
1962         * configure: Regenerate.
1963
1964         * include/std/variant (_Variant_storage, _Extra_visit_slot_needed):
1965         Qualify calls to __never_valueless.
1966
1967         * doc/xml/manual/status_cxx2017.xml: Fix outdated reference to
1968         C++17 working draft.
1969
1970         * testsuite/libstdc++-prettyprinters/simple.cc: Use non-palindromic
1971         vector<bool> for test.
1972         * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1973
1974 2019-06-19  Jonathan Wakely  <jwakely@redhat.com>
1975
1976         * include/bits/stream_iterator.h (istream_iterator::_M_equal()): Make
1977         private.
1978         (istream_iterator::_M_read()): Do not check stream state before
1979         attempting extraction. Set stream pointer to null when extraction
1980         fails (P0738R2).
1981         (operator==(const istream_iterator&, const istream_iterator&)): Change
1982         to be a hidden friend of istream_iterator.
1983         (operator!=(const istream_iterator&, const istream_iterator&)):
1984         Likewise.
1985         (ostream_iterator::ostream_iterator()): Add default constructor.
1986         (ostream_iterator::ostream_iterator(ostream_type*, const C*)): Use
1987         addressof.
1988         * testsuite/24_iterators/istream_iterator/1.cc: New test.
1989         * testsuite/24_iterators/ostream_iterator/1.cc: New test.
1990         * testsuite/24_iterators/ostream_iterator/70766.cc: Also check
1991         constructor taking a string.
1992         * testsuite/24_iterators/ostream_iterator/requirements/constexpr.cc:
1993         New test.
1994
1995 2019-06-19  Michael Weghorn  <m.weghorn@posteo.de>
1996             Jonathan Wakely  <jwakely@redhat.com>
1997
1998         PR libstdc++/90945
1999         * python/libstdcxx/v6/printers.py (StdVectorPrinter._iterator): Use
2000         values of type bool for vector<bool> elements.
2001         * testsuite/libstdc++-prettyprinters/simple.cc: Test vector<bool>.
2002         * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
2003
2004 2019-06-19  Jonathan Wakely  <jwakely@redhat.com>
2005
2006         PR libstdc++/90920 partially revert r263433
2007         * include/bits/stl_algo.h (__rotate): Restore checks for empty ranges.
2008         (rotate): Remove checks.
2009         * testsuite/25_algorithms/rotate/90920.cc: New test.
2010
2011         * include/std/numeric (reduce(Iter, Iter, T, BinOp)): Fix value
2012         category used in invocable check.
2013         (reduce(Iter, Iter, T)): Pass initial value as rvalue.
2014         * testsuite/26_numerics/reduce/2.cc: New test.
2015
2016 2019-06-18  Jonathan Wakely  <jwakely@redhat.com>
2017
2018         * include/bits/algorithmfwd.h: Change title of doc group.
2019         * include/bits/stl_algo.h (for_each_n): Add new C++17 algorithm from
2020         P0024R2.
2021         * include/bits/stl_numeric.h: Define doc group and add algos to it.
2022         * include/std/numeric (__is_random_access_iter): New internal trait.
2023         (reduce, transform_reduce, exclusive_scan, inclusive_scan)
2024         (transform_exclusive_scan, transform_inclusive_scan): Likewise.
2025         * testsuite/25_algorithms/for_each/for_each_n.cc: New test.
2026         * testsuite/26_numerics/exclusive_scan/1.cc: New test.
2027         * testsuite/26_numerics/inclusive_scan/1.cc: New test.
2028         * testsuite/26_numerics/reduce/1.cc: New test.
2029         * testsuite/26_numerics/transform_exclusive_scan/1.cc: New test.
2030         * testsuite/26_numerics/transform_inclusive_scan/1.cc: New test.
2031         * testsuite/26_numerics/transform_reduce/1.cc: New test.
2032         * testsuite/util/testsuite_iterators.h (test_container::size()): New
2033         member function.
2034
2035         * include/c_global/cstddef (std::byte): Perform arithmetic operations
2036         in unsigned int to avoid promotion (LWG 2950).
2037
2038 2019-06-17  Jonathan Wakely  <jwakely@redhat.com>
2039
2040         * testsuite/20_util/allocator/1.cc: Add sized delete, which fixes a
2041         failure on AIX.
2042
2043         * include/c_global/cmath (__lerp, lerp): Add noexcept (LWG 3201).
2044
2045         PR libstdc++/90281 Fix string conversions for filesystem::path
2046         * include/bits/fs_path.h (u8path) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]:
2047         Use codecvt_utf8_utf16 instead of codecvt_utf8. Use
2048         __str_codecvt_in_all to fail for partial conversions and throw on
2049         error.
2050         [!_GLIBCXX_FILESYSTEM_IS_WINDOWS && _GLIBCXX_USE_CHAR8_T]
2051         (path::_Cvt<char8_t>): Add explicit specialization.
2052         [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_wconvert): Remove
2053         overloads.
2054         [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_convert): Use
2055         if-constexpr instead of dispatching to _S_wconvert. Use codecvt
2056         instead of codecvt_utf8. Use __str_codecvt_in_all and
2057         __str_codecvt_out_all.
2058         [!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_convert): Use
2059         codecvt instead of codecvt_utf8. Use __str_codecvt_out_all.
2060         (path::_S_str_convert) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
2061         codecvt_utf8_utf16 instead of codecvt_utf8. Construct return values
2062         with allocator. Use __str_codecvt_out_all. Fallthrough to POSIX code
2063         after converting to UTF-8.
2064         (path::_S_str_convert): Use codecvt instead of codecvt_utf8. Use
2065         __str_codecvt_in_all.
2066         (path::string): Fix initialization of string types with different
2067         allocators.
2068         (path::u8string) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
2069         codecvt_utf8_utf16 instead of codecvt_utf8. Use __str_codecvt_out_all.
2070         * include/bits/locale_conv.h (__do_str_codecvt): Reorder static and
2071         runtime conditions.
2072         (__str_codecvt_out_all, __str_codecvt_in_all): New functions that
2073         return false for partial conversions.
2074         * include/experimental/bits/fs_path.h (u8path):
2075         [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Implement correctly for mingw.
2076         [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_wconvert): Add
2077         missing handling for char8_t. Use codecvt and codecvt_utf8_utf16
2078         instead of codecvt_utf8. Use __str_codecvt_in_all and
2079         __str_codecvt_out_all.
2080         [!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_convert): Use
2081         codecvt instead of codecvt_utf8. Use __str_codecvt_out_all.
2082         (path::string) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
2083         codecvt_utf8_utf16 instead of codecvt_utf8. Construct return values
2084         with allocator. Use __str_codecvt_out_all and __str_codecvt_in_all.
2085         (path::string) [!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
2086         __str_codecvt_in_all.
2087         (path::u8string) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
2088         codecvt_utf8_utf16 instead of codecvt_utf8. Use __str_codecvt_out_all.
2089         * src/c++17/fs_path.cc (path::_S_convert_loc): Use
2090         __str_codecvt_in_all.
2091         * src/filesystem/path.cc (path::_S_convert_loc): Likewise.
2092         * testsuite/27_io/filesystem/path/construct/90281.cc: New test.
2093         * testsuite/27_io/filesystem/path/factory/u8path.cc: New test.
2094         * testsuite/27_io/filesystem/path/native/string.cc: Test with empty
2095         strings and with Unicode characters outside the basic multilingual
2096         plane.
2097         * testsuite/27_io/filesystem/path/native/alloc.cc: New test.
2098         * testsuite/experimental/filesystem/path/construct/90281.cc: New test.
2099         * testsuite/experimental/filesystem/path/factory/u8path.cc: New test.
2100         * testsuite/experimental/filesystem/path/native/alloc.cc: New test.
2101         * testsuite/experimental/filesystem/path/native/string.cc: Test with
2102         empty strings and with Unicode characters outside the basic
2103         multilingual plane.
2104
2105 2019-06-17  François Dumont  <fdumont@gcc.gnu.org>
2106             Jonathan Wakely  <jwakely@redhat.com>
2107
2108         * include/bits/hashtable.h (struct _Hashtable::_Scoped_node): New type.
2109         (_Hashtable::_M_insert_unique_node): Add key_type parameter. Don't
2110         deallocate node if insertion fails.
2111         (_Hashtable::_M_insert_multi_node): Likewise.
2112         (_Hashtable::_M_reinsert_node): Pass additional key argument.
2113         (_Hashtable::_M_reinsert_node_multi): Likewise. Remove FIXME.
2114         (_Hashtable::_M_extract_node(size_t, __node_base*)): New function.
2115         (_Hashtable::extract(const_iterator)): Use _M_extract_node.
2116         (_Hashtable::extract(const _Key&)): Likewise.
2117         (_Hashtable::_M_merge_unique): Pass additional key argument.
2118         (_Hashtable::_M_emplace<Args>(true_type, Args&&...)): Likewise. Use
2119         _Scoped_node.
2120         (_Hashtable::_M_insert): Likewise.
2121         * include/bits/hashtable_policy.h (_Map_base::operator[]): Likewise.
2122         (_Hashtable_alloc): Add comments to functions with misleading names.
2123
2124 2019-06-17  Jonathan Wakely  <jwakely@redhat.com>
2125
2126         * testsuite/20_util/bad_function_call/what.cc: Include <string> header
2127         for std::string.
2128         * testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Likewise.
2129         * testsuite/20_util/tuple/cons/allocator_with_any.cc: Include <memory>
2130         header for std::allocator.
2131         * testsuite/23_containers/array/tuple_interface/tuple_element.cc: Add
2132         using-declaration for std::size_t.
2133         * testsuite/23_containers/array/tuple_interface/tuple_size.cc:
2134         Likewise.
2135         * testsuite/23_containers/deque/cons/55977.cc: Include <istream> for
2136         std::istream.
2137         * testsuite/23_containers/vector/cons/55977.cc: Likewise.
2138         * testsuite/experimental/map/erasure.cc: Include <string> for
2139         std::string.
2140         * testsuite/experimental/unordered_map/erasure.cc: Likewise.
2141
2142 2019-06-14  Jonathan Wakely  <jwakely@redhat.com>
2143
2144         * include/experimental/type_traits (experimental::nonesuch): Use
2145         pragma to disable -Wctor-dtor-privacy warnings.
2146         * include/std/type_traits (__is_convertible_helper<From, To, false>)
2147         (__is_nt_convertible_helper<From, To, false>, __nonesuch): Likewise.
2148
2149         * include/std/version (__cpp_lib_bind_front): Add missing macro.
2150
2151 2019-06-12  Jonathan Wakely  <jwakely@redhat.com>
2152
2153         * include/std/algorithm (__cpp_lib_parallel_algorithm): Fix value.
2154         * include/std/memory (__cpp_lib_parallel_algorithm): Likewise.
2155         * include/std/numeric (__cpp_lib_parallel_algorithm): Likewise.
2156         * testsuite/25_algorithms/pstl/feature_test.cc: New test.
2157
2158         * include/std/variant (get<T>, get<N>, get_if<N>, get_if<T>)
2159         (variant::emplace): Change static_assert messages from "should be"
2160         to "must be".
2161         (hash<monostate>::operator()): Remove name of unused parameter.
2162
2163         * include/std/mutex (scoped_lock::~scoped_lock()): Use fold
2164         expression.
2165
2166         * include/Makefile.am: Add new <bits/charconv.h> header.
2167         * include/Makefile.in: Regenerate.
2168         * include/bits/basic_string.h (to_string(int), to_string(unsigned))
2169         (to_string(long), to_string(unsigned long), to_string(long long))
2170         (to_string(unsigned long long)): Rewrite to use __to_chars_10_impl.
2171         * include/bits/charconv.h: New header.
2172         (__detail::__to_chars_len): Move here from <charconv>.
2173         (__detail::__to_chars_10_impl): New function extracted from
2174         __detail::__to_chars_10.
2175         * include/std/charconv (__cpp_lib_to_chars): Add, but comment out.
2176         (__to_chars_unsigned_type): New class template that reuses
2177         __make_unsigned_selector_base::__select to pick a type.
2178         (__unsigned_least_t): Redefine as __to_chars_unsigned_type<T>::type.
2179         (__detail::__to_chars_len): Move to new header.
2180         (__detail::__to_chars_10): Add inline specifier. Move code doing the
2181         output to __detail::__to_chars_10_impl and call that.
2182         * include/std/version (__cpp_lib_to_chars): Add, but comment out.
2183         * testsuite/21_strings/basic_string/numeric_conversions/char/
2184         to_string.cc: Fix reference in comment. Remove unused variable.
2185         * testsuite/21_strings/basic_string/numeric_conversions/char/
2186         to_string_int.cc: New test.
2187
2188 2019-06-09  Edward Smith-Rowland  <3dw4rd@verizon.net>
2189
2190         Fix ConstexprIterator requirements tests - No constexpr algorithms!
2191         * testsuite/21_strings/basic_string_view/requirements/constexpr_iter.cc:
2192         Replace copy with hand-rolled loop.
2193         * testsuite/23_containers/array/requirements/constexpr_iter.cc:
2194         Ditto.
2195
2196 2019-06-08  Edward Smith-Rowland  <3dw4rd@verizon.net>
2197
2198         Test for C++20 p0858 - ConstexprIterator requirements.
2199         * testsuite/21_strings/basic_string_view/requirements/constexpr_iter.cc:
2200         New test.
2201         * testsuite/23_containers/array/requirements/constexpr_iter.cc:
2202         New test.
2203
2204 2019-06-07  Thomas Rodgers  <trodgers@redhat.com>
2205
2206         Rename PSTL macro's consistent with libstdc++ (and llvm upstream
2207         project) standards.
2208         * include/bits/c++config: Rename all macros of the form __PSTL* to
2209         _PSTL*.
2210         * include/std/algorithm: Likewise.
2211         * include/std/execution: Likewise.
2212         * include/std/numeric: Likewise.
2213         * include/std/memory: Likewise.
2214         * include/pstl/glue_memory_impl.h: Likewise.
2215         * include/pstl/numeric_impl.h: Likewise.
2216         * include/pstl/glue_memory_defs.h: Likewise.
2217         * include/pstl/execution_defs.h: Likewise.
2218         * include/pstl/utils.h: Likewise.
2219         * include/pstl/algorithm_fwd.h: Likewise.
2220         * include/pstl/unseq_backend_simd.h: Likewise.
2221         * include/pstl/glue_execution_defs.h: Likewise.
2222         * include/pstl/algorithm_impl.h: Likewise.
2223         * include/pstl/parallel_impl.h: Likewise.
2224         * include/pstl/memory_impl.h: Likewise.
2225         * include/pstl/glue_numeric_defs.h: Likewise.
2226         * include/pstl/parallel_backend_utils.h: Likewise.
2227         * include/pstl/glue_algorithm_defs.h: Likewise.
2228         * include/pstl/parallel_backend.h: Likewise.
2229         * include/pstl/glue_numeric_impl.h: Likewise.
2230         * include/pstl/parallel_backend_tbb.h: Likewise.
2231         * include/pstl/numeric_fwd.h: Likewise.
2232         * include/pstl/glue_algorithm_impl.h: Likewise.
2233         * include/pstl/execution_impl.h: Likewise.
2234         * include/pstl/pstl_config.h: Likewise.
2235         * testsuite/util/pstl/pstl_test_config.h: Likewise.
2236         * testsuite/util/pstl/test_utils.h: Likewise.
2237         * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc:
2238         Likewise.
2239         * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc:
2240         Likewise.
2241         * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc:
2242         Likewise.
2243         * testsuite/26_numerics/pstl/numeric_ops/scan.cc: Likewise.
2244         * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: Likewise.
2245         * testsuite/26_numerics/pstl/numeric_ops/reduce.cc: Likewise.
2246         * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: Likewise.
2247         * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc:
2248         Likewise.
2249         * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: Likewise.
2250         * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: Likewise.
2251         * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: Likewise.
2252         * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: Likewise.
2253         * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc:
2254         Likewise.
2255         * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: Likewise.
2256         * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: Likewise.
2257         * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: Likewise.
2258         * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: Likewise.
2259         * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc:
2260         Likewise.
2261         * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: Likewise.
2262         * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: Likewise.
2263         * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc:
2264         Likewise.
2265         * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc:
2266         Likewise.
2267         * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: Likewise.
2268         * testsuite/25_algorithms/pstl/alg_merge/merge.cc: Likewise.
2269         * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc:
2270         Likewise.
2271         * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc:
2272         Likewise.
2273         * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc:
2274         Likewise.
2275         * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc:
2276         Likewise.
2277         * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc:
2278         Likewise.
2279         * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc:
2280         Likewise.
2281         * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc:
2282         Likewise.
2283         * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc:
2284         Likewise.
2285         * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc:
2286         Likewise.
2287         * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc:
2288         Likewise.
2289         * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc:
2290         Likewise.
2291         * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: Likewise.
2292
2293         Rename header guards to be consistent with upstream project's
2294         conventions.
2295         * include/pstl/glue_memory_impl.h: Rename all macros of the form
2296         _PSTL_(.*)_H to _PSTL_\U\1_H.
2297         * include/pstl/numeric_impl.h: Likewise.
2298         * include/pstl/glue_memory_defs.h: Likewise.
2299         * include/pstl/execution_defs.h: Likewise.
2300         * include/pstl/utils.h: Likewise.
2301         * include/pstl/algorithm_fwd.h: Likewise.
2302         * include/pstl/unseq_backend_simd.h: Likewise.
2303         * include/pstl/glue_execution_defs.h: Likewise.
2304         * include/pstl/algorithm_impl.h: Likewise.
2305         * include/pstl/parallel_impl.h: Likewise.
2306         * include/pstl/memory_impl.h: Likewise.
2307         * include/pstl/glue_numeric_defs.h: Likewise.
2308         * include/pstl/parallel_backend_utils.h: Likewise.
2309         * include/pstl/glue_algorithm_defs.h: Likewise.
2310         * include/pstl/parallel_backend.h: Likewise.
2311         * include/pstl/glue_numeric_impl.h: Likewise.
2312         * include/pstl/parallel_backend_tbb.h: Likewise.
2313         * include/pstl/numeric_fwd.h: Likewise.
2314         * include/pstl/glue_algorithm_impl.h: Likewise.
2315         * include/pstl/execution_impl.h: Likewise.
2316         * include/pstl/pstl_config.h: Likewise.
2317         * testsuite/util/pstl/pstl_test_config.h: Likewise.
2318
2319         Synchronize libstdc++ parallel algorithms with upstream
2320         project.
2321         * include/pstl/algorithm_fwd.h: Synchronize with
2322         upstream PSTL project.
2323         * include/pstl/algorithm_impl.h: Likewise.
2324         * include/pstl/execution_defs.h: Likewise.
2325         * include/pstl/execution_impl.h: Likewise.
2326         * include/pstl/glue_algorithm_impl.h: Likewise.
2327         * include/pstl/glue_execution_defs.h: Likewise.
2328         * include/pstl/numeric_fwd.h: Likewise.
2329         * include/pstl/numeric_impl.h: Likewise.
2330         * include/pstl/parallel_backend.h: Likewise.
2331         * include/pstl/pstl_config.h: Likewise.
2332         * include/pstl/unseq_backend_simd.h: Likewise.
2333         * include/pstl/parallel_backend_serial.h: New file.
2334         * include/Makefile.am (pstl_headers): Add
2335         parallel_backend_serial.h.
2336         * include/Makefile.in: Regenerate.
2337
2338         Clean up non-conforming names
2339         * include/pstl/algorithm_impl.h (__parallel_set_union_op):
2340         Uglfiy copy_range1 and copy_range2
2341         (__pattern_walk2_n): Rename local n to __n
2342         * include/pstl/parallel_backend_tbb.h (struct __binary_no_op):
2343         Rename parameter _T to _Tp.
2344
2345         Integrate non-TBB serial backend support
2346         * include/bits/c++config: Adjust TBB detection logic to select serial
2347         PSTL backend if no TBB present.
2348         * testsuite/utils/pstl/test_utils.h: Remove check for
2349         _PSTL_USE_PAR_POLICIES
2350         
2351 2019-06-07  Jonathan Wakely  <jwakely@redhat.com>
2352
2353         * testsuite/24_iterators/container_access.cc: Move dg-options before
2354         dg-do directive so the target check uses the -std option.
2355
2356         PR libstdc++/90770
2357         * configure: Regenerate.
2358         * src/Makefile.am (stamp-debug): Also test for missing makefile.
2359         * src/Makefile.in: Regenerate.
2360
2361 2019-06-06  Jonathan Wakely  <jwakely@redhat.com>
2362
2363         * include/std/array: Do not include <stdexcept>.
2364         * include/std/optional: Include <exception> and
2365         <bits/exception_defines.h> instead of <stdexcept>.
2366         * testsuite/20_util/function_objects/searchers.cc: Include <cctype>
2367         for std::isalnum.
2368         * testsuite/20_util/tuple/cons/deduction.cc: Include <memory> for
2369         std::allocator.
2370         * testsuite/23_containers/map/erasure.cc: Include <string>.
2371         * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
2372
2373         * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Add
2374         dg-prune-output for different C++98 diagnostic.
2375         * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
2376         Likewise.
2377         * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
2378         Likewise.
2379         * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
2380         Likewise.
2381         * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
2382         Likewise.
2383         * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
2384         Likewise.
2385         * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
2386         Likewise.
2387         * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
2388         Likewise.
2389         * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
2390         Likewise.
2391         * testsuite/23_containers/vector/requirements/dr438/
2392         constructor_1_neg.cc: Likewise.
2393         * testsuite/23_containers/vector/requirements/dr438/
2394         constructor_2_neg.cc: Likewise.
2395         * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
2396         Likewise.
2397         * testsuite/libstdc++-prettyprinters/compat.cc: Do not run for C++98.
2398
2399         * testsuite/23_containers/unordered_map/requirements/debug_container.cc:
2400         Do not test allocator rebinding extension for C++2a.
2401         * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Change
2402         dg-do directive for C++17 and C++2a.
2403
2404         * testsuite/23_containers/deque/requirements/explicit_instantiation/
2405         1_c++0x.cc: Remove redundant test.
2406         * testsuite/23_containers/deque/requirements/explicit_instantiation/
2407         2.cc: Use target selector instead of preprocessor condition.
2408         * testsuite/23_containers/deque/requirements/explicit_instantiation/
2409         3.cc: Do not run test for C++2a.
2410         * testsuite/23_containers/forward_list/requirements/
2411         explicit_instantiation/3.cc: Likewise.
2412         * testsuite/23_containers/forward_list/requirements/
2413         explicit_instantiation/5.cc: Do not test allocator rebinding extension
2414         for C++2a.
2415         * testsuite/23_containers/list/requirements/explicit_instantiation/
2416         1_c++0x.cc: Remove redundant test.
2417         * testsuite/23_containers/list/requirements/explicit_instantiation/
2418         2.cc: Use target selector instead of preprocessor condition.
2419         * testsuite/23_containers/list/requirements/explicit_instantiation/
2420         3.cc: Do not run test for C++2a.
2421         * testsuite/23_containers/list/requirements/explicit_instantiation/
2422         5.cc: Do not test allocator rebinding extension for C++2a.
2423         * testsuite/23_containers/map/requirements/explicit_instantiation/
2424         1_c++0x.cc: Remove redundant test.
2425         * testsuite/23_containers/map/requirements/explicit_instantiation/
2426         2.cc: Adjust comment.
2427         * testsuite/23_containers/map/requirements/explicit_instantiation/
2428         3.cc: Do not run test for C++2a.
2429         * testsuite/23_containers/map/requirements/explicit_instantiation/
2430         5.cc: Do not test allocator rebinding extension for C++2a.
2431         * testsuite/23_containers/multimap/requirements/explicit_instantiation/
2432         1_c++0x.cc: Remove redundant test.
2433         * testsuite/23_containers/multimap/requirements/explicit_instantiation/
2434         3.cc: Do not run test for C++2a.
2435         * testsuite/23_containers/multimap/requirements/explicit_instantiation/
2436         5.cc: Do not test allocator rebinding extension for C++2a.
2437         * testsuite/23_containers/multiset/requirements/explicit_instantiation/
2438         3.cc: Do not run test for C++2a.
2439         * testsuite/23_containers/multiset/requirements/explicit_instantiation/
2440         5.cc: Do not test allocator rebinding extension for C++2a.
2441         * testsuite/23_containers/set/requirements/explicit_instantiation/3.cc:
2442         Do not run test for C++2a.
2443         * testsuite/23_containers/set/requirements/explicit_instantiation/
2444         1_c++0x.cc: Remove redundant test.
2445         * testsuite/23_containers/set/requirements/explicit_instantiation/5.cc:
2446         Do not test allocator rebinding extension for C++2a.
2447         * testsuite/23_containers/unordered_map/requirements/
2448         explicit_instantiation/3.cc: Likewise.
2449         * testsuite/23_containers/unordered_map/requirements/
2450         explicit_instantiation/5.cc: Do not test allocator rebinding extension
2451         for C++2a.
2452         * testsuite/23_containers/unordered_multimap/requirements/
2453         explicit_instantiation/3.cc: Do not run test for C++2a.
2454         * testsuite/23_containers/unordered_multimap/requirements/
2455         explicit_instantiation/5.cc: Do not test allocator rebinding extension
2456         for C++2a.
2457         * testsuite/23_containers/unordered_multiset/requirements/
2458         explicit_instantiation/3.cc: Do not run test for C++2a.
2459         * testsuite/23_containers/unordered_multiset/requirements/
2460         explicit_instantiation/5.cc: Do not test allocator rebinding extension
2461         for C++2a.
2462         * testsuite/23_containers/unordered_set/requirements/
2463         explicit_instantiation/3.cc: Do not run test for C++2a.
2464         * testsuite/23_containers/unordered_set/requirements/
2465         explicit_instantiation/5.cc: Do not test allocator rebinding extension
2466         for C++2a.
2467         * testsuite/23_containers/vector/ext_pointer/explicit_instantiation/
2468         2.cc: Remove redundant test.
2469         * testsuite/23_containers/vector/ext_pointer/explicit_instantiation/
2470         3.cc: Do not run test for C++2a.
2471         * testsuite/23_containers/vector/requirements/explicit_instantiation/
2472         3.cc: Likewise.
2473
2474         * include/std/type_traits (is_empty, is_polymorphic, is_final)
2475         (is_abstract, is_aggregate): Remove static_assert.
2476         * testsuite/20_util/is_abstract/incomplete_neg.cc: Check for error
2477         from builtin only.
2478         * testsuite/20_util/is_aggregate/incomplete_neg.cc: Likewise. Add
2479         missing -std=gnu++17 option.
2480         * testsuite/20_util/is_empty/incomplete_neg.cc: New test.
2481         * testsuite/20_util/is_final/incomplete_neg.cc: New test.
2482         * testsuite/20_util/is_polymorphic/incomplete_neg.cc: Check for error
2483         from builtin only.
2484
2485         * testsuite/18_support/set_terminate.cc: Do not run for C++98 mode.
2486         * testsuite/18_support/set_unexpected.cc: Likewise.
2487         * testsuite/20_util/is_nothrow_invocable/value.cc: Test converting to
2488         void.
2489         * testsuite/20_util/is_nothrow_invocable/value_ext.cc: Fix constexpr
2490         function to be valid in C++11.
2491         * testsuite/26_numerics/complex/proj.cc: Do not run for C++98 mode.
2492         * testsuite/experimental/names.cc: Do not run for C++98 mode. Do not
2493         include Library Fundamentals or Networking headers in C++11 mode.
2494         * testsuite/ext/char8_t/atomic-1.cc: Do not run for C++98 mode.
2495
2496         * include/std/tuple (_TC): Replace with _TupleConstraints.
2497         (_TupleConstraints): New helper for SFINAE constraints, with more
2498         expressive member functions to reduce duplication when used.
2499         (tuple::_TC2, tuple::_TMC, tuple::_TNTC): Remove.
2500         (tuple::_TCC): Replace dummy type parameter with bool non-type
2501         parameter that can be used to check the pack size.
2502         (tuple::_ImplicitDefaultCtor, tuple::_ExplicitDefaultCtor)
2503         (tuple::_ImplicitCtor, tuple::_ExplicitCtor): New alias templates for
2504         checking constraints in constructors.
2505         (tuple::__valid_args, tuple::_UseOtherCtor, tuple::__use_other_ctor):
2506         New SFINAE helpers.
2507         (tuple::tuple): Use new helpers to reduce repitition in constraints.
2508         (tuple::tuple(allocator_arg_t, const Alloc&)): Constrain.
2509         (tuple<T1, T2>::_TCC, tuple<T1, T2>::_ImplicitDefaultCtor)
2510         (tuple<T1, T2>::_ExplicitDefaultCtor, tuple<T1, T2>::_ImplicitCtor)
2511         (tuple<T1, T2>::_ExplicitCtor): New alias templates for checking
2512         constraints in constructors.
2513         (tuple::__is_alloc_arg()): New SFINAE helpers.
2514         (tuple<T1, T2>::tuple): Use new helpers to reduce repitition in
2515         constraints.
2516         (tuple<T1, T2>::tuple(allocator_arg_t, const Alloc&)): Constrain.
2517         * testsuite/20_util/tuple/cons/90700.cc: New test.
2518         * testsuite/20_util/tuple/cons/allocators.cc: Add default constructor
2519         to meet new constraint on allocator-extended default constructor.
2520
2521 2019-06-03  Jonathan Wakely  <jwakely@redhat.com>
2522
2523         * include/bits/stl_map.h (map): Disable static assert for C++98 mode.
2524         * include/bits/stl_multimap.h (multimap): Likewise.
2525
2526 2019-06-03  François Dumont  <fdumont@gcc.gnu.org>
2527
2528         Rename variables and cleanup comments.
2529         * include/bits/hashtable_policy.h
2530         * include/bits/hashtable.h
2531
2532 2019-06-03  Jonathan Wakely  <jwakely@redhat.com>
2533
2534         * doc/xml/manual/status_cxx2020.xml: Add missing row for P0920R2.
2535         Fix bgcolor for P0340R3.
2536         * doc/html/*: Regenerate.
2537
2538         PR libstdc++/90686
2539         * doc/xml/manual/status_cxx2014.xml: Document what's missing from
2540         <experimental/memory_resource>.
2541         * doc/xml/manual/status_cxx2020.xml: Document status of P1285R0,
2542         P0339R6, P0340R3, P1164R1 and P1357R1.
2543         * doc/html/*: Regenerate.
2544
2545         * doc/xml/manual/status_cxx2020.xml: Document P1463R1 status.
2546         * include/bits/forward_list.h [__cplusplus > 201703]: Enable
2547         allocator::value_type assertion for C++2a.
2548         * include/bits/hashtable.h: Likewise.
2549         * include/bits/stl_deque.h: Likewise.
2550         * include/bits/stl_list.h: Likewise.
2551         * include/bits/stl_map.h: Likewise.
2552         * include/bits/stl_multimap.h: Likewise.
2553         * include/bits/stl_multiset.h: Likewise.
2554         * include/bits/stl_set.h: Likewise.
2555         * include/bits/stl_vector.h: Likewise.
2556         * testsuite/23_containers/deque/48101-3_neg.cc: New test.
2557         * testsuite/23_containers/forward_list/48101-3_neg.cc: New test.
2558         * testsuite/23_containers/list/48101-3_neg.cc: New test.
2559         * testsuite/23_containers/map/48101-3_neg.cc: New test.
2560         * testsuite/23_containers/multimap/48101-3_neg.cc: New test.
2561         * testsuite/23_containers/multiset/48101-3_neg.cc: New test.
2562         * testsuite/23_containers/set/48101-3_neg.cc: New test.
2563         * testsuite/23_containers/unordered_map/48101-3_neg.cc: New test.
2564         * testsuite/23_containers/unordered_multimap/48101-3_neg.cc: New test.
2565         * testsuite/23_containers/unordered_multiset/48101-3_neg.cc: New test.
2566         * testsuite/23_containers/unordered_set/48101-3_neg.cc: New test.
2567         * testsuite/23_containers/vector/48101-3_neg.cc: New test.
2568
2569 2019-05-31  Gerald Pfeifer  <gerald@pfeifer.com>
2570
2571         * doc/xml/manual/allocator.xml: Move hoard.org back to http.
2572
2573 2019-05-31  Jonathan Wakely  <jwakely@redhat.com>
2574
2575         * include/std/tuple (tuple<>): Add noexcept to allocator-extended
2576         constructors.
2577         (tuple<T1, T2>::__nothrow_default_constructible()): New helper
2578         function.
2579         (tuple<T1, T2>::tuple(), explicit tuple<T1, T2>::tuple()): Use helper.
2580
2581 2019-05-31  Jonathan Wakely  <jwakely@redhat.com>
2582
2583         * src/c++98/bitmap_allocator.cc: Add using-declaration for size_t.
2584
2585         PR libstdc++/90682
2586         * libsupc++/eh_term_handler.cc: Include eh_term_handler.h to get
2587         definition of _GLIBCXX_DEFAULT_TERM_HANDLER.
2588         * libsupc++/eh_term_handler.h: New header defining
2589         _GLIBCXX_DEFAULT_TERM_HANDLER.
2590         * libsupc++/eh_terminate.cc: Include eh_term_handler.h.
2591         (set_terminate): Restore default handler when argument is null.
2592         (set_unexpected): Likewise.
2593         * testsuite/18_support/set_terminate.cc: New test.
2594         * testsuite/18_support/set_unexpected.cc: New test.
2595
2596         * include/backward/hashtable.h (size_t, ptrdiff_t)
2597         (forward_iterator_tag, input_iterator_tag, _Construct, _Destroy)
2598         (distance, vector, pair, __iterator_category): Remove
2599         using-declarations that add these names to namespace __gnu_cxx.
2600         * include/ext/bitmap_allocator.h (size_t, ptrdiff_t): Likewise.
2601         * include/ext/debug_allocator.h (size_t): Likewise.
2602         * include/ext/functional (size_t, unary_function, binary_function)
2603         (mem_fun1_t, const_mem_fun1_t, mem_fun1_ref_t, const_mem_fun1_ref_t):
2604         Likewise.
2605         * include/ext/malloc_allocator.h (size_t, ptrdiff_t): Likewise.
2606         * include/ext/memory (ptrdiff_t, pair, __iterator_category): Likewise.
2607         * include/ext/mt_allocator.h (size_t, ptrdiff_t): Likewise.
2608         * include/ext/new_allocator.h (size_t, ptrdiff_t): Likewise.
2609         * include/ext/numeric (iota): Fix outdated comment.
2610         * include/ext/pool_allocator.h (size_t, ptrdiff_t): Likewise.
2611         * include/ext/rb_tree (_Rb_tree, allocator): Likewise.
2612         * include/ext/rope (size_t, ptrdiff_t, allocator, _Destroy): Likewise.
2613         * include/ext/ropeimpl.h (size_t, printf, basic_ostream)
2614         (__throw_length_error, _Destroy, std::__uninitialized_fill_n_a):
2615         Likewise.
2616         * include/ext/slist (size_t, ptrdiff_t, _Construct, _Destroy)
2617         (allocator, __true_type, __false_type): Likewise.
2618
2619 2019-05-31  Antony Polukhin  <antoshkka@gmail.com>
2620
2621         PR libstdc++/71579
2622         * include/std/type_traits __type_identity, __is_complete_or_unbounded):
2623         New helpers for checking preconditions in traits.
2624         (is_trivial, is_trivially_copyable, is_standard_layout, is_pod)
2625         (is_literal_type, is_empty, is_polymorphic, is_final, is_abstract)
2626         (is_destructible, is_nothrow_destructible, is_constructible)
2627         (is_default_constructible, is_copy_constructible)
2628         (is_move_constructible, is_nothrow_default_constructible)
2629         (is_nothrow_constructible, is_nothrow_copy_constructible)
2630         (is_nothrow_move_constructible, is_copy_assignable, is_move_assignable)
2631         (is_nothrow_assignable, is_nothrow_copy_assignable)
2632         (is_nothrow_move_assignable, is_trivially_constructible)
2633         (is_trivially_copy_constructible, is_trivially_move_constructible)
2634         is_trivially_assignable, is_trivially_copy_assignable)
2635         (is_trivially_move_assignable, is_trivially_destructible)
2636         (alignment_of, is_swappable, is_nothrow_swappable, is_invocable)
2637         (is_invocable_r, is_nothrow_invocable)
2638         (has_unique_object_representations, is_aggregate): Add static_asserts
2639         to make sure that type traits are not misused with incomplete types.
2640         (__is_constructible_impl, __is_nothrow_default_constructible_impl)
2641         (__is_nothrow_constructible_impl, __is_nothrow_assignable_impl): New
2642         base characteristics without assertions that can be reused in other
2643         traits.
2644         * testsuite/20_util/is_complete_or_unbounded/memoization.cc: New test.
2645         * testsuite/20_util/is_complete_or_unbounded/memoization_neg.cc: New
2646         test.
2647         * testsuite/20_util/is_complete_or_unbounded/value.cc: New test.
2648         * testsuite/20_util/is_abstract/incomplete_neg.cc: New test.
2649         * testsuite/20_util/is_aggregate/incomplete_neg.cc: New test.
2650         * testsuite/20_util/is_class/value.cc: Check incomplete type.
2651         * testsuite/20_util/is_function/value.cc: Likewise.
2652         * testsuite/20_util/is_move_constructible/incomplete_neg.cc: New test.
2653         * testsuite/20_util/is_nothrow_move_assignable/incomplete_neg.cc: New
2654         test.
2655         * testsuite/20_util/is_polymorphic/incomplete_neg.cc: New test.
2656         * testsuite/20_util/is_reference/value.cc: Check incomplete types.
2657         * testsuite/20_util/is_unbounded_array/value.cc: Likewise.
2658         * testsuite/20_util/is_union/value.cc: Likewise.
2659         * testsuite/20_util/is_void/value.cc: Likewise.
2660         * testsuite/util/testsuite_tr1.h: Add incomplete union type.
2661
2662 2019-05-31  Jonathan Wakely  <jwakely@redhat.com>
2663
2664         * include/bits/random.h (random_device::_M_init(const char*, size_t)):
2665         Add new private member function.
2666         * src/c++11/cow-string-inst.cc (random_device::_M_init(const string&))
2667         (random_device::_M_init_pretr1(const string&)): Call new private
2668         member with string data.
2669         * src/c++11/random.cc (random_device::_M_init(const char*, size_t)):
2670         Define.
2671         * testsuite/26_numerics/random/random_device/cons/default-cow.cc: New
2672         test using COW strings.
2673         * testsuite/26_numerics/random/random_device/cons/default.cc: Generate
2674         a value from the device.
2675         * testsuite/26_numerics/random/random_device/cons/token.cc: Likewise.
2676         Fix typo in token string.
2677
2678 2019-05-30  Nina Dinka Ranns  <dinka.ranns@gmail.com>
2679
2680         LWG2788 basic_string spurious use of a default constructible allocator
2681         * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
2682         (basic_string::_M_replace_dispatch): Construct temporary string with
2683         the current allocator.
2684         * testsuite/21_strings/basic_string/allocator/char/lwg2788.cc: New.
2685         * testsuite/21_strings/basic_string/allocator/wchar_t/lwg2788.cc: New.
2686
2687 2019-05-30  Jonathan Wakely  <jwakely@redhat.com>
2688
2689         * doc/xml/manual/diagnostics.xml: Update list of headers that define
2690         exception classes.
2691         * doc/xml/manual/support.xml: Rewrite advice around NULL. Rewrite
2692         section about new/delete overloads. Improve section on verbose
2693         terminate handler.
2694         * doc/html/*: Regenerate.
2695
2696         * doc/xml/manual/status_cxx2020.xml: Add feature-test macro for
2697         P0811R3. Change status of P1353R0.
2698         * doc/html/*: Regenerate.
2699
2700         * doc/xml/manual/status_cxx2011.xml: Use <variablelist> for
2701         documentation of implementation-defined types for [thread.req.native].
2702         * doc/xml/manual/status_cxx2017.xml: Update documentation of
2703         implementation-defined strings for [variant.bad.access]. Fix typo in
2704         documentation of implementation-defined support for [fs.conform.9945].
2705         * doc/html/*: Regenerate.
2706
2707 2019-05-29  Jonathan Wakely  <jwakely@redhat.com>
2708
2709         PR libstdc++/85494
2710         * testsuite/26_numerics/random/random_device/cons/token.cc: Fix test
2711         that fails on mingw-w64.
2712
2713         PR libstdc++/88881
2714         * src/c++17/fs_ops.cc [_GLIBCXX_FILESYSTEM_IS_WINDOWS]
2715         (status(const path&, error_code&)): Use parent_path() to remove
2716         trailing slash.
2717         (symlink_status(const path&, error_code&)): Duplicate workaround for
2718         bug in _wstat for paths with trailing slash.
2719         * testsuite/27_io/filesystem/operations/remove_all.cc: Check path
2720         with trailing slash.
2721         * testsuite/27_io/filesystem/operations/status.cc: Likewise.
2722         * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
2723
2724         * src/c++17/fs_path.cc (path::parent_path()): Create whole path at
2725         once instead of building it iteratively.
2726
2727         * testsuite/util/testsuite_api.h: Remove names of unused parameters.
2728
2729         PR libstdc++/85494 use rdseed and rand_s in std::random_device
2730         * acinclude.m4 (GLIBCXX_CHECK_X86_RDSEED): Define macro to check if
2731         the assembler supports rdseed.
2732         * config.h.in: Regenerate.
2733         * configure: Regenerate.
2734         * configure.ac: Use GLIBCXX_CHECK_X86_RDSEED.
2735         * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_CRT_RAND_S): Define.
2736         * doc/html/*: Regenerate.
2737         * doc/xml/manual/status_cxx2011.xml: Document new tokens.
2738         * include/bits/random.h (random_device::random_device()): Always call
2739         _M_init rather than _M_init_pretr1.
2740         (random_device::random_device(const string&)): Likewise.
2741         (random_device::operator()()): Always call _M_getval().
2742         (random_device::_M_file): Replace first member of union with an
2743         anonymous struct, with _M_file as its first member.
2744         * src/c++11/random.cc [_GLIBCXX_X86_RDRAND] (USE_RDRAND): Define.
2745         [_GLIBCXX_X86_RDSEED] (USE_RDSEED): Define.
2746         (USE_MT19937): Define if none of the above are defined.
2747         (USE_POSIX_FILE_IO): Define.
2748         (_M_strtoul): Remove.
2749         [USE_RDSEED] (__x86_rdseed): Define new function.
2750         [_GLIBCXX_USE_CRT_RAND_S] (__winxp_rand_s): Define new function.
2751         (random_device::_M_init(const string&)): Initialize new union members.
2752         Add support for "rdseed" and "rand_s" tokens. Decide what the
2753         "default" token does according to which USE_* macros are defined.
2754         [USE_POSIX_FILE_IO]: Store a file descriptor.
2755         [USE_MT19937]: Forward to _M_init_pretr1 instead.
2756         (random_device::_M_init_pretr1(const string&)) [USE_MT19937]: Inline
2757         code from _M_strtoul.
2758         [!USE_MT19937]: Call _M_init, transforming the old default token or
2759         numeric tokens to "default".
2760         (random_device::_M_fini()) [USE_POSIX_FILE_IO]: Use close not fclose.
2761         (random_device::_M_getval()): Use new union members to obtain a
2762         random number from the stored function pointer or file descriptor.
2763         [USE_MT19937]: Obtain a value from the mt19937 engine.
2764         (random_device::_M_getval_pretr1()): Call _M_getval().
2765         (random_device::_M_getentropy()) [USE_POSIX_FILE_IO]: Use _M_fd
2766         instead of fileno.
2767         [!USE_MT19937] (mersenne_twister): Do not instantiate when not needed.
2768         * testsuite/26_numerics/random/random_device/85494.cc: New test.
2769
2770 2019-05-28  Jonathan Wakely  <jwakely@redhat.com>
2771
2772         PR libstdc++/90634
2773         * include/experimental/bits/fs_path.h (path::path(path&&)): Only call
2774         _M_split_cmpts() for a path with multiple components.
2775         (path::_S_is_dir_sep()): Add missing 'static' keyword to function.
2776         * src/filesystem/path.cc (path::_M_split_cmpts()): Count number of
2777         components and reserve space in vector. Return early when there is
2778         only one component.
2779         * testsuite/27_io/filesystem/path/construct/90634.cc: New test.
2780         * testsuite/experimental/filesystem/path/construct/90634.cc: New test.
2781
2782         * testsuite/util/testsuite_fs.h (compare_paths): Use three-argument
2783         form of std::equals for C++11 compatibility.
2784
2785 2019-05-26  Gerald Pfeifer  <gerald@pfeifer.com>
2786
2787         * doc/xml/manual/appendix_contributing.xml: Update pointer to
2788         C++ standard at ansi.org.
2789
2790 2019-05-24  Jonathan Wakely  <jwakely@redhat.com>
2791
2792         * include/std/numeric (midpoint(T*, T*)): Fix incorrect result.
2793         * testsuite/26_numerics/midpoint/pointer.cc: Change "compile" test
2794         to "run".
2795
2796         * testsuite/20_util/shared_ptr/cons/alias-rval.cc: Fix test.
2797         * testsuite/20_util/shared_ptr/cons/alias.cc: Remove unused function.
2798
2799 2019-05-23  Jonathan Wakely  <jwakely@redhat.com>
2800
2801         * testsuite/20_util/function_objects/invoke/1.cc: Move C++17-specific
2802         tests to ...
2803         * testsuite/20_util/function_objects/invoke/3.cc: New test.
2804         * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Change
2805         "compile" test to "run".
2806
2807         * doc/xml/manual/intro.xml: Document LWG DR 2996 change.
2808         * doc/html/*: Regenerate.
2809         * include/bits/shared_ptr.h (shared_ptr(shared_ptr&&, T*)): Add
2810         rvalue aliasing constructor.
2811         (static_pointer_cast, const_pointer, dynamic_pointer_cast)
2812         (reinterpret_pointer_cast): Add overloads taking rvalues.
2813         * include/bits/shared_ptr_base.h (__shared_ptr(__shared_ptr&&, T*)):
2814         Add rvalue aliasing constructor.
2815         * testsuite/20_util/shared_ptr/casts/1.cc: Change "compile" test to
2816         "run" and check return values as well as types.
2817         * testsuite/20_util/shared_ptr/casts/reinterpret.cc: Likewise.
2818         * testsuite/20_util/shared_ptr/casts/rval.cc: New test.
2819         * testsuite/20_util/shared_ptr/cons/alias-rval.cc: New test.
2820         * testsuite/20_util/shared_ptr/cons/alias.cc: Remove unused return
2821         values.
2822
2823         * doc/xml/manual/evolution.xml: Document LWG DR 2921 change.
2824         * doc/xml/manual/intro.xml: Likewise.
2825         * include/std/future (__create_task_state): Add default arguments
2826         to make providing an allocator optional.
2827         (packaged_task::packaged_task(F&&)): Call __create_task_state directly
2828         instead of delegating to another constructor.
2829         (packaged_task::packaged_task(allocator_arg_t, const A&, ...)): Do not
2830         define allocator-extended constructors for C++17 and later.
2831         * testsuite/30_threads/packaged_task/cons/alloc.cc: Only run test for
2832         C++11 and C++14.
2833         * testsuite/30_threads/packaged_task/cons/alloc2.cc: Likewise.
2834         * testsuite/30_threads/packaged_task/cons/alloc_min.cc: Likewise.
2835         * testsuite/30_threads/packaged_task/uses_allocator.cc: Likewise.
2836
2837 2019-05-23  Hans-Peter Nilsson  <hp@axis.com>
2838
2839         * testsuite/26_numerics/random/poisson_distribution/operators/values.cc:
2840         Don't run the libstdc++/83237 part on simulator targets.
2841
2842 2019-05-23  Jonathan Wakely  <jwakely@redhat.com>
2843
2844         * doc/xml/manual/status_cxx2017.xml: Add feature test macro for
2845         P0040R3.
2846         * doc/html/*: Regenerate.
2847
2848         * include/experimental/any (__any_caster): Use RTTI if comparing
2849         addresses fails, to support non-unique addresses in shared libraries.
2850         * include/std/any (__any_caster): Likewise.
2851
2852         PR libstdc++/90220
2853         * include/experimental/any (__any_caster): Constrain to only be
2854         callable for object types. Use remove_cv_t instead of decay_t.
2855         If the type decays or isn't copy constructible, compare the manager
2856         function to a dummy specialization.
2857         (__any_caster): Add overload constrained for non-object types.
2858         (any::_Manager_internal<_Op>): Add dummy specialization.
2859         * testsuite/experimental/any/misc/any_cast.cc: Test function types
2860         and array types.
2861
2862 2019-05-22  Jonathan Wakely  <jwakely@redhat.com>
2863
2864         PR libstdc++/90557
2865         * src/c++17/fs_path.cc (path::_List::operator=(const _List&)): Fix
2866         reversed arguments to uninitialized_copy_n.
2867         * testsuite/27_io/filesystem/path/assign/copy.cc: Check that source
2868         is unchanged by copy assignment.
2869         * testsuite/util/testsuite_fs.h (compare_paths): Use std::equal to
2870         compare path components.
2871
2872         PR libstdc++/77691
2873         * include/experimental/memory_resource: Add system header pragma and
2874         do not define anything unless compiled as C++14 or later.
2875         (__resource_adaptor_common::__guaranteed_alignment): Remove.
2876         (__resource_adaptor_imp::do_allocate): If the requested alignment
2877         is a fundamental alignment then either allocate directly from _M_alloc
2878         or call the new _M_allocate function.
2879         (__resource_adaptor_imp::do_deallocate): Likewise for deallocation.
2880         (__resource_adaptor_imp::_M_allocate): New function that uses a copy
2881         of the allocator rebound to a POD type with the specified alignment.
2882         (__resource_adaptor_imp::_M_deallocate): Likewise for deallocation.
2883         * testsuite/experimental/memory_resource/new_delete_resource.cc:
2884         Adjust expected allocation sizes.
2885         * testsuite/experimental/memory_resource/resource_adaptor.cc: Remove
2886         xfail for Solaris x86.
2887
2888 2019-05-21  Thomas Rodgers  <trodgers@redhat.com>
2889
2890         LWG 3062 - Unnecessary decay_t in is_execution_policy_v
2891         * include/pstl/execution_defs.h (__enable_if_execution_policy):
2892         Use std::__remove_cvref_t when building with GCC.
2893
2894 2019-05-21  Jonathan Wakely  <jwakely@redhat.com>
2895
2896         PR libstdc++/90252
2897         * testsuite/lib/libstdc++.exp (check_effective_target_tbb-backend):
2898         Use "additional_flags" to pass -ltbb to v3_target_compile command.
2899         Use check_v3_target_prop_cached to cache the result of the test.
2900
2901         * doc/xml/manual/shared_ptr.xml: Fix names of lock policy constants.
2902
2903 2019-05-20  Thomas Rodgers  <trodgers@redhat.com>
2904
2905         PR libstdc++/90252
2906         * testsuite/lib/libstdc++.exp (check_effective_target_tbb-backend):
2907         Changed v3_target_compile check from preprocess to executable.
2908         Added "-ltbb" to v3_target_compile flags.
2909
2910 2019-05-20  Thomas Rodgers  <trodgers@redhat.com>
2911
2912         * testsuite/lib/libstdc++.exp (check_effective_target_tbb-backend):
2913         Add check for Thread Building Blocks 2018 or later.
2914
2915 2019-05-20  Jonathan Wakely  <jwakely@redhat.com>
2916
2917         * testsuite/experimental/names.cc: Only include Networking TS headers
2918         on targets with the necessary Gthreads support.
2919
2920 2019-05-20  Marek Polacek  <polacek@redhat.com>
2921
2922         CWG 2094 - volatile scalars are trivially copyable.
2923         PR c++/85679
2924         * testsuite/20_util/is_trivially_copyable/value.cc: Change the expected
2925         result for volatile int.
2926
2927 2019-05-20  Jonathan Wakely  <jwakely@redhat.com>
2928
2929         * testsuite/17_intro/names.cc: Do not check 'ptr' on Solaris.
2930         * testsuite/experimental/names.cc: Include <experimental/filesystem>
2931         conditionally.
2932
2933         PR c++/90532 Ensure __is_constructible(T[]) is false
2934         * include/std/type_traits (__do_is_default_constructible_impl)
2935         (__is_default_constructible_atom, __is_default_constructible_safe):
2936         Remove.
2937         (is_default_constructible): Use is_constructible.
2938         * testsuite/20_util/is_constructible/value.cc: Check int[] case.
2939         * testsuite/20_util/is_default_constructible/value.cc: Likewise.
2940         * testsuite/20_util/is_trivially_constructible/value.cc: Likewise.
2941         * testsuite/20_util/is_trivially_default_constructible/value.cc:
2942         Likewise.
2943
2944 2019-05-20  Pádraig Brady  <pbrady@fb.com>
2945
2946         * libstdc++-v3/include/ext/new_allocator.h (deallocate): Pass the size
2947         to the deallocator with -fsized-deallocation.
2948
2949 2019-05-20  Jonathan Wakely  <jwakely@redhat.com>
2950
2951         * testsuite/experimental/memory_resource/new_delete_resource.cc: Fix
2952         test by passing correct alignment to deallocate function.
2953
2954 2019-05-18  Jonathan Wakely  <jwakely@redhat.com>
2955
2956         PR libstdc++/90520
2957         * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__):
2958         Raise exception if unique_ptr tuple member has unknown structure.
2959         * python/libstdcxx/v6/xmethods.py (UniquePtrGetWorker.__call__):
2960         Adjust worker to support new __uniq_ptr_data base class. Do not
2961         assume field called _M_head_impl is the first tuple element.
2962
2963 2019-05-17  François Dumont  <fdumont@gcc.gnu.org>
2964
2965         * include/bits/stl_deque.h
2966         (_Deque_iterator<>::__ptr_to): Remove, use std::__ptr_rebind.
2967         (_Deque_base(_Deque_base&&, const allocator_type&)): New.
2968         (_Deque_base::_Deque_impl_data): New.
2969         (_Deque_base::_Deque_impl): Inherit latter.
2970         (_Deque_base::_Deque_impl::_M_swap_data): Move...
2971         (_Deque_base::_Deque_impl_data::_M_swap_data): ... here.
2972         (_Deque_base::_Deque_impl()): Add noexcept qualification.
2973         (_Deque_base::_Deque_impl(_Deque_impl&&, _Tp_alloc_type&&)): New.
2974         (_Deque_base::_Deque_impl::_M_get_Tp_allocator()): Remove static_cast.
2975         (deque<>::deque()): Default.
2976         (deque<>::deque(deque&&)): Default.
2977         (deque<>::deque(deque&&, const allocator_type&, false_type)): New.
2978         (deque<>::deque(deque&&, const allocator_type&, true_type)): New.
2979         (deque<>::deque(deque&&, const allocator_type&)): Delegate to latters.
2980         (deque<>::deque<_It>(_It, _It, const allocator_type&)): Use
2981         _M_range_initialize.
2982         (deque<>::assign<_It>(_It, _It)): Use _M_assign_aux.
2983         (deque<>::resize(size_type, const value_type&)): Share a single
2984         implementation.
2985         (deque<>::insert<_It>(const_iterator, _It, _It)): Use
2986         _M_range_insert_aux.
2987         [__cplusplus >= 201103L](_M_initialize_dispatch): Remove.
2988         [__cplusplus >= 201103L](_M_assign_dispatch): Remove.
2989         [__cplusplus >= 201103L](_M_insert_dispatch): Remove.
2990         * testsuite/23_containers/deque/allocator/default_init.cc: New.
2991
2992 2019-05-17  Jonathan Wakely  <jwakely@redhat.com>
2993
2994         PR libstdc++/90246
2995         * include/std/variant (holds_alternative, get, get_if): Improve
2996         static assertion messages.
2997         (bad_variant_access::bad_variant_access()): Change default message.
2998         (__throw_bad_variant_access(bool)): New overload.
2999         (get): Use new overload.
3000         (visit, visit<R>): Improve exception message.
3001
3002         * testsuite/20_util/variant/compile.cc: Fix narrowing test for ILP32
3003         targets. Add more cases from P0608R3.
3004         * testsuite/20_util/variant/run.cc: Add more cases from P0608R3.
3005
3006         * include/bits/random.h (seed_seq::param): Fix non-reserved name.
3007         * include/experimental/type_traits (is_detected_exact)
3008         (is_detected_exact_v): Likewise.
3009         * include/pstl/execution_defs.h (is_execution_policy)
3010         (is_execution_policy_v, __enable_if_execution_policy): Likewise.
3011         * include/pstl/execution_impl.h (__policy_traits): Likewise.
3012         * testsuite/17_intro/names.cc: Check for more non-reserved names.
3013         * testsuite/experimental/names.cc: New test.
3014
3015         PR libstdc++/85965
3016         * include/bits/hashtable.h (_Hashtable::~_Hashtable()): Remove static
3017         assertions from the destructor.
3018         * include/bits/hashtable_policy.h (_Hash_code_base::_M_hash_code):
3019         Move static_assert for hash function to here.
3020         (_Hash_table_base::_M_equals): Move static_assert for equality
3021         predicate to here.
3022         * include/bits/stl_tree.h (_Rb_tree::_S_value(_Const_Link_type)):
3023         Remove.
3024         (_Rb_tree::_S_key(_Const_Link_type)): Move assertions here. Access
3025         the value directly instead of calling _S_value.
3026         (_Rb_tree::_S_value(_Const_Base_ptr)): Remove.
3027         (_Rb_tree::_S_key(_Const_Base_ptr)): Do downcast and forward to
3028         _S_key(_Const_Link_type).
3029         * testsuite/23_containers/set/85965.cc: Check construction,
3030         destruction, assignment and size() do not trigger the assertions.
3031         * testsuite/23_containers/unordered_set/85965.cc: Likewise.
3032         * testsuite/23_containers/map/48101_neg.cc: Call find and adjust
3033         expected errors.
3034         * testsuite/23_containers/multimap/48101_neg.cc: Likewise.
3035         * testsuite/23_containers/multiset/48101_neg.cc: Likewise.
3036         * testsuite/23_containers/set/48101_neg.cc: Likewise.
3037         * testsuite/23_containers/unordered_map/48101_neg.cc: Likewise.
3038         * testsuite/23_containers/unordered_multimap/48101_neg.cc: Likewise.
3039         * testsuite/23_containers/unordered_multiset/48101_neg.cc: Likewise.
3040         * testsuite/23_containers/unordered_set/48101_neg.cc: Likewise.
3041
3042         * include/bits/invoke.h [__cplusplus < 201703L] (__invoke_r<void>):
3043         Use _GLIBCXX14_CONSTEXPR because void functions cannot be constexpr
3044         in C++11.
3045
3046         * doc/xml/manual/status_cxx2020.xml: Update P0608R3, P0777R1, and
3047         P1165R1 entries.
3048         * doc/html/*: Regenerate.
3049         * include/std/tuple (make_from_tuple): Use remove_reference_t instead
3050         of decay_t (P0777R1).
3051
3052 2019-05-17  François Dumont  <fdumont@gcc.gnu.org>
3053
3054         Move from state of allocators (LWG2593)
3055         * include/bits/stl_deque.h
3056         (_Deque_base(_Deque_base&&, false_type)): Remove.
3057         (_Deque_base(_Deque_base&&, true_type)): Remove.
3058         (_Deque_base(_Deque_base&&)): Adapt.
3059         (_Deque_base::_M_move_impl()): Remove.
3060         * testsuite/util/testsuite_allocator.h
3061         (propagating_allocator(propagating_allocator&&)): Preserve move from
3062         state.
3063         * testsuite/23_containers/deque/allocator/move_assign.cc (test02):
3064         Adapt.
3065         * testsuite/23_containers/forward_list/allocator/move_assign.cc (test02):
3066         Adapt.
3067         * testsuite/23_containers/list/allocator/move_assign.cc (test02): Adapt.
3068         * testsuite/23_containers/map/allocator/move_assign.cc (test02): Adapt.
3069         * testsuite/23_containers/multimap/allocator/move_assign.cc (test02):
3070         Adapt.
3071         * testsuite/23_containers/multiset/allocator/move_assign.cc (test02):
3072         Adapt.
3073         * testsuite/23_containers/set/allocator/move_assign.cc (test02): Adapt.
3074         * testsuite/23_containers/unordered_map/allocator/move_assign.cc
3075         (test02): Adapt.
3076         * testsuite/23_containers/unordered_multimap/allocator/move_assign.cc
3077         (test02): Adapt.
3078         * testsuite/23_containers/unordered_multiset/allocator/move_assign.cc
3079         (test02): Adapt.
3080         * testsuite/23_containers/unordered_set/allocator/move_assign.cc
3081         (test02): Adapt.
3082         * testsuite/23_containers/vector/allocator/move_assign.cc (test02):
3083         Adapt.
3084         * testsuite/23_containers/vector/bool/allocator/move_assign.cc (test02):
3085         Adapt.
3086         * testsuite/21_strings/basic_string/allocator/char/move_assign.cc
3087         (test02): Adapt.
3088         * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc
3089         (test02): Adapt.
3090
3091 2019-05-16  Jonathan Wakely  <jwakely@redhat.com>
3092
3093         * src/c++17/fs_ops.cc (absolute(const path&, error_code&))
3094         [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove bogus assertion.
3095
3096         * include/std/variant (__overload_set): Remove.
3097         (_Arr): New helper.
3098         (_Build_FUN): New class template to define a single FUN overload,
3099         with specializations to prevent unwanted conversions, as per P0608R3.
3100         (_Build_FUNs): New class template to build an overload set of FUN.
3101         (_FUN_type): New alias template to perform overload resolution.
3102         (__accepted_type): Use integer_constant base for failure case. Use
3103         _FUN_type for successful case.
3104         (variant::__accepted_index): Use _Tp instead of _Tp&&.
3105         (variant::variant(_Tp&&)): Likewise.
3106         (variant::operator=(_Tp&&)): Likewise.
3107
3108         * include/std/variant (_Variant_storage<false, _Types...>::_M_reset):
3109         Replace raw visitation with a runtime check for the valueless state
3110         and a non-raw visitor.
3111         (_Variant_storage<false, _Types...>::_M_reset_impl): Remove.
3112         (variant::index()): Remove branch.
3113         (variant::swap(variant&)): Use valueless_by_exception() instead of
3114         comparing the index to variant_npos, and add likelihood attribute.
3115
3116         * include/bits/hashtable_policy.h (_Equal_helper): Remove.
3117         (_Hashtable_base::_Equal_hash_code): Define new class template.
3118         (_Hashtable_base::_M_equals): Use _Equal_hash_code instead of
3119         _Equal_helper.
3120
3121         * include/bits/hashtable_policy.h (_Hashtable_ebo_helper::_S_get):
3122         Replace with _M_get non-static member function.
3123         (_Hashtable_ebo_helper::_S_cget): Replace with _M_cget non-static
3124         member function.
3125         (_Hash_code_base, _Local_iterator_base, _Hashtable_base):
3126         (_Hashtable_alloc): Adjust to use non-static members of EBO helper.
3127
3128         * include/bits/hashtable_policy.h (_Hash_code_base::_M_swap): Use
3129         _S_get accessors for members in EBO helpers.
3130         (_Hash_code_base::_M_extract(), _Hash_code_base::_M_ranged_hash())
3131         (_Hash_code_base::_M_h1(), _Hash_code_base::_M_h2()): Remove non-const
3132         overloads.
3133         (_Hashtable_base::_M_swap): Use _S_get accessors for members in EBO
3134         helpers.
3135         (_Hashtable_base::_M_eq()): Remove non-const overload.
3136
3137 2019-05-15  Jonathan Wakely  <jwakely@redhat.com>
3138
3139         * include/std/variant (visit, visit<R>): Qualify calls to __do_visit.
3140
3141 2019-05-14  Jonathan Wakely  <jwakely@redhat.com>
3142
3143         * testsuite/util/testsuite_allocator.h (NullablePointer::operator bool):
3144         Fix return value.
3145
3146 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3147
3148         * config/os/solaris/solaris2.10: Move to ...
3149         * config/os/solaris: ... this.
3150         * configure.host (os_include_dir): Adapt.
3151         (abi_baseline_pair): Remove Solaris 10 handling.
3152         * config/abi/post/i386-solaris2.10: Remove.
3153         * config/abi/post/sparc-solaris2.10: Remove.
3154         * config/abi/post/i386-solaris2.11: Rename to ...
3155         * config/abi/post/i386-solaris: ... this.
3156         * config/abi/post/sparc-solaris2.11: Rename to ...
3157         * config/abi/post/sparc-solaris: ... this.
3158
3159         * libsupc++/new_opa.cc [_GLIBCXX_HAVE_MEMALIGN] [__sun]: Remove
3160         workaround.
3161
3162         * testsuite/ext/enc_filebuf/char/13598.cc: Remove *-*-solaris2.10
3163         xfail.
3164
3165 2019-05-14  Jonathan Wakely  <jwakely@redhat.com>
3166
3167         * include/std/variant (__visit_with_index): Remove typedef.
3168         (__deduce_visit_result): New tag type.
3169         (__raw_visit, __raw_idx_visit): New helper functions for "raw"
3170         visitation of possibly-valueless variants, forwarding to __do_visit
3171         with the relevant tag type.
3172         (_Variant_storage<false, _Types...>::_M_reset_impl): Use __raw_visit
3173         and make lambda return void.
3174         (__variant_construct): Likewise.
3175         (_Copy_assign_base::operator=, _Move_assign_base::operator=): Use
3176         __raw_idx_visit and make lambda return void.
3177         (_Multi_array::__untag_result): Add metafunction to check the function
3178         pointer type for a tag type that dictates the kind of visitation.
3179         (_Multi_array<_Ret(*)(_Visitor, _Variants...), __first, __rest...>):
3180         Use decltype(auto) instead of tagged function pointer type.
3181         (__gen_vtable_impl): Remove bool non-type parameter and unused
3182         _Variant_tuple parameter.
3183         (__gen_vtable_impl::__visit_invoke_impl): Remove.
3184         (__gen_vtable_impl::__do_visit_invoke): Remove.
3185         (__gen_vtable_impl::__do_visit_invoke_r): Remove.
3186         (__gen_vtable_impl::__visit_invoke): Use if-constexpr and __invoke_r
3187         for the visit<R> case, rather than dispatching to separate functions.
3188         (_VARIANT_RELATION_FUNCTION_TEMPLATE): Use __raw_idx_visit and make
3189         lambda return void.
3190         (variant::swap): Likewise.
3191         (__do_visit): Replace two non-type template parameters with a single
3192         type parameter, so that the caller must specify the visitor's return
3193         type (or one of the tag types).
3194         (visit): Deduce a return type from the visitor and use the
3195         __deduce_visit_result tag to enforce that all overloads return the
3196         same type.
3197         (visit<R>): Call __do_visit<R> with explicit result type.
3198         (__variant_hash_call_base_impl::operator()): Use __raw_visit and make
3199         lambda return void.
3200
3201 2019-05-14  Nina Dinka Ranns  <dinka.ranns@gmail.com>
3202
3203         nonesuch is insufficiently useless (lwg2996)
3204         * include/std/type_traits (struct __nonesuch): Added private base
3205         class to make __nonesuch not an aggregate and removed deleted default
3206         constructor.
3207         * include/bits/stl_pair.h (struct __nonesuch_no_braces): Removed.
3208         (operator=(const pair&)): Use __nonesuch instead of
3209         __nonesuch_no_braces.
3210         (operator=(pair&&)): Likewise
3211         * include/std/tuple (operator=(const tuple&)): Use __nonesuch instead
3212         of __nonesuch_no_braces.
3213         (operator=(tuple&&)): Likewise
3214         * include/experimental/type_traits (struct nonesuch): Added private
3215         base class to make nonesuch not an aggregate and removed deleted
3216         default constructor.
3217         * testsuite/20_util/nonesuch/nonesuch.cc: New.
3218         * testsuite/experimental/type_traits/nonesuch.cc: New.
3219
3220 2019-05-14  Jonathan Wakely  <jwakely@redhat.com>
3221
3222         * include/bits/std_function.h (_Simple_type_wrapper): Remove.
3223         (_Function_handler): Remove partial specializations for void return
3224         types and pointers to member.
3225         (_Function_handler::_M_manager): Adapt to removal of
3226         _Simple_type_wrapper.
3227         (_Function_handler::_M_invoke): Use __invoke_r instead of __invoke.
3228         * include/std/functional (_Bind_result::__enable_if_void)
3229         (_Bind_result::__disable_if_void): Remove sfinae helpers.
3230         (_Bind_result::__call): Use __invoke_r and remove overloads for void
3231         return types.
3232         * include/std/future (__future_base::_Task_state::_M_run)
3233         (__future_base::_Task_state::_M_run_delayed): Use __invoke_r and
3234         change return type of lambda expressions.
3235
3236         * include/bits/invoke.h (__invoke_r): Define new function implementing
3237         the INVOKE<R> pseudo-function.
3238         * testsuite/20_util/function_objects/invoke/1.cc: Add more tests.
3239         * testsuite/20_util/function_objects/invoke/2.cc: New test.
3240
3241         * include/std/type_traits (__is_nt_convertible_helper): Define it
3242         unconditionally, not only for C++20.
3243         (__is_nothrow_convertible): Define internal trait for use in C++11.
3244         (__is_nt_invocable_impl: Fix by using __is_nothrow_convertible.
3245         (is_invocable_r_v, is_nothrow_invocable_r_v): Add missing parameter.
3246         * testsuite/20_util/is_nothrow_convertible/value_ext.cc: New test.
3247         * testsuite/20_util/is_nothrow_convertible/value.cc: Check with type
3248         that has nothrow explicit conversion but potentially-throwing implicit
3249         conversion.
3250         * testsuite/20_util/is_nothrow_invocable/value.cc: Likewise.
3251         * testsuite/20_util/is_nothrow_invocable/value_ext.cc: Fix helper
3252         function to only consider implicit conversions.
3253         * testsuite/20_util/tuple/cons/noexcept_specs.cc: Add comment.
3254
3255         * include/std/iterator: Include <iosfwd> instead of <istream> and
3256         <ostream>.
3257
3258         * include/bits/stl_tree.h (_Rb_tree::erase(const Key*, const Key*)):
3259         Remove unused, non-standard function.
3260
3261         * include/bits/regex.h (match_results::max_size()): Adjust return
3262         value to account for prefix/suffix/unmatched subs.
3263         (match_results::_M_resize(unsigned int)): Use _Base_type::assign to
3264         reset the contained sub matches.
3265         (match_results::_M_establish_failed_match(_Bi_iter)): Add new member
3266         function to set result state following a failed match.
3267         * include/bits/regex.tcc (__regex_algo_impl): Remove loop to set
3268         sub_match states after _M_resize. Use _M_establish_failed_match.
3269
3270         PR libstdc++/69724
3271         * include/std/thread (thread::_State_impl, thread::_S_make_state):
3272         Replace single _Callable parameter with variadic _Args pack, to
3273         forward them directly to the tuple of decayed copies.
3274         * testsuite/30_threads/thread/cons/69724.cc: New test.
3275
3276 2019-05-14  Nina Dinka Ranns  <dinka.ranns@gmail.com>
3277
3278         Inconsistency wrt Allocators in basic_string assignment (LWG2579)
3279         * include/bits/basic_string.h: (operator=(const basic_string&):
3280         Move allocator decision to assign.
3281         (assign(const basic_string&)): Move allocator decision here.
3282         * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
3283         Add tests.
3284         * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
3285         Add tests.
3286
3287 2019-05-14  Jonathan Wakely  <jwakely@redhat.com>
3288
3289         * testsuite/util/testsuite_allocator.h (memory_resource)
3290         (default_resource_mgr): Fix indentation.
3291
3292         * testsuite/20_util/allocator_traits/members/allocate_hint_nonpod.cc:
3293         Use operator-> to access raw pointer member.
3294         * testsuite/23_containers/vector/59829.cc: Likewise.
3295         * testsuite/23_containers/vector/bool/80893.cc: Likewise.
3296         * testsuite/libstdc++-prettyprinters/cxx11.cc: Use NullablePointer.
3297         * testsuite/util/testsuite_allocator.h (NullablePointer): New utility
3298         for tests.
3299         (PointerBase, PointerBase_void): Derive from NullablePointer and use
3300         its constructors and equality operators. Change converting
3301         constructors to use operator-> to access private member of the other
3302         pointer type.
3303         (PointerBase_void::operator->()): Add, for access to private member.
3304         (operator-(PointerBase, PointerBase)): Change to hidden friend.
3305         (operator==(PointerBase, PointerBase)): Remove.
3306         (operator!=(PointerBase, PointerBase)): Remove.
3307
3308         * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__): Do
3309         not assume field called _M_head_impl is the first tuple element.
3310         * testsuite/libstdc++-prettyprinters/compat.cc: Make tuple
3311         implementation more accurate.
3312         * testsuite/libstdc++-prettyprinters/cxx11.cc: Check unique_ptr with
3313         empty pointer type and non-empty deleter.
3314
3315         LWG 2899 - Make is_move_constructible correct for unique_ptr
3316         * include/bits/unique_ptr.h (__uniq_ptr_impl): Add move constructor,
3317         move assignment operator.
3318         (__uniq_ptr_impl::release(), __uniq_ptr_impl::reset(pointer)): Add.
3319         (__uniq_ptr_data): New class template with conditionally deleted
3320         special members.
3321         (unique_ptr, unique_ptr<T[], D>): Change type of data member from
3322         __uniq_ptr_impl<T, D> to __uniq_ptr_data<T, D>. Define move
3323         constructor and move assignment operator as defaulted.
3324         (unique_ptr::release(), unique_ptr<T[], D>::release()): Forward to
3325         __uniq_ptr_impl::release().
3326         (unique_ptr::reset(pointer), unique_ptr<T[], D>::reset<U>(U)): Forward
3327         to __uniq_ptr_impl::reset(pointer).
3328         * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__):
3329         Check for new __uniq_ptr_data type.
3330         * testsuite/20_util/unique_ptr/dr2899.cc: New test.
3331
3332 2019-05-13  Jonathan Wakely  <jwakely@redhat.com>
3333
3334         PR libstdc++/90454.cc path construction from void*
3335         * include/bits/fs_path.h (path::_Path): Use remove_pointer so that
3336         pointers to void are rejected as well as void.
3337         * include/experimental/bits/fs_path.h (path::_Path): Likewise.
3338         * testsuite/27_io/filesystem/path/construct/80762.cc: Also check
3339         pointers to void.
3340         * testsuite/experimental/filesystem/path/construct/80762.cc: Likewise.
3341
3342         * doc/xml/manual/policy_data_structures.xml: Comment out stray
3343         <remark> elements. Fix formatting of bibliography references.
3344
3345 2019-05-13  Edward Smith-Rowland  <3dw4rd@verizon.net>
3346
3347         * doc/xml/manual/status_cxx2020.xml: Document P0811R3 status.
3348
3349 2019-05-13  Jonathan Wakely  <jwakely@redhat.com>
3350
3351         Remove Profile Mode, deprecated since 7.1.0
3352         * doc/Makefile.am: Remove XML file for profile mode docs.
3353         * doc/Makefile.in: Regenerate.
3354         * doc/xml/authors.xml: Remove authors of profile mode docs.
3355         * doc/xml/manual/appendix_contributing.xml: Remove mention of profile
3356         mode.
3357         * doc/xml/manual/debug.xml: Likewise.
3358         * doc/xml/manual/evolution.xml: Document removal of profile mode.
3359         * doc/xml/manual/profile_mode.xml: Remove profile mode docs.
3360         * doc/xml/manual/spine.xml: Remove profile mode author credit.
3361         * doc/xml/manual/test.xml: Remove docs for dg-require-profile-mode
3362         directive.
3363         * doc/xml/manual/using.xml: Remove docs for profile mode headers and
3364         macro.
3365         * doc/html/*: Regenerate.
3366         * include/Makefile.am: Remove profile mode headers.
3367         * include/Makefile.in: Regenerate.
3368         * include/bits/c++config (std::__profile): Remove namespace.
3369         [_GLIBCXX_PROFILE]: Remove checks for macro.
3370         * include/profile/array: Remove.
3371         * include/profile/base.h: Remove.
3372         * include/profile/bitset: Remove.
3373         * include/profile/deque: Remove.
3374         * include/profile/forward_list: Remove.
3375         * include/profile/impl/profiler.h: Remove.
3376         * include/profile/impl/profiler_algos.h: Remove.
3377         * include/profile/impl/profiler_container_size.h: Remove.
3378         * include/profile/impl/profiler_hash_func.h: Remove.
3379         * include/profile/impl/profiler_hashtable_size.h: Remove.
3380         * include/profile/impl/profiler_list_to_slist.h: Remove.
3381         * include/profile/impl/profiler_list_to_vector.h: Remove.
3382         * include/profile/impl/profiler_map_to_unordered_map.h: Remove.
3383         * include/profile/impl/profiler_node.h: Remove.
3384         * include/profile/impl/profiler_state.h: Remove.
3385         * include/profile/impl/profiler_trace.h: Remove.
3386         * include/profile/impl/profiler_vector_size.h: Remove.
3387         * include/profile/impl/profiler_vector_to_list.h: Remove.
3388         * include/profile/iterator_tracker.h: Remove.
3389         * include/profile/list: Remove.
3390         * include/profile/map: Remove.
3391         * include/profile/map.h: Remove.
3392         * include/profile/multimap.h: Remove.
3393         * include/profile/multiset.h: Remove.
3394         * include/profile/ordered_base.h: Remove.
3395         * include/profile/set: Remove.
3396         * include/profile/set.h: Remove.
3397         * include/profile/unordered_base.h: Remove.
3398         * include/profile/unordered_map: Remove.
3399         * include/profile/unordered_set: Remove.
3400         * include/profile/vector: Remove.
3401         * scripts/run_doxygen: Do not process profile mode headers.
3402         * testsuite/23_containers/array/element_access/60497.cc: Don't use
3403         profile mode type.
3404         * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
3405         Remove dg-skip-if for profile mode.
3406         * testsuite/23_containers/forward_list/capacity/1.cc: Remove
3407         preprocessor check for profile mode.
3408         * testsuite/23_containers/list/capacity/29134.cc: Likewise.
3409         * testsuite/23_containers/map/modifiers/extract.cc: Remove dg-skip-if
3410         for profile mode.
3411         * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
3412         Likewise.
3413         * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
3414         * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
3415         * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
3416         * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
3417         * testsuite/23_containers/unordered_map/modifiers/extract.cc:
3418         Likewise.
3419         * testsuite/23_containers/unordered_multimap/modifiers/extract.cc:
3420         Likewise.
3421         * testsuite/23_containers/unordered_multiset/modifiers/extract.cc:
3422         Likewise.
3423         * testsuite/23_containers/unordered_set/modifiers/extract.cc:
3424         Likewise.
3425         * testsuite/23_containers/vector/bool/capacity/29134.cc: Remove
3426         preprocessor check for profile mode.
3427         * testsuite/23_containers/vector/bool/modifiers/insert/31370.cc:
3428         Likewise.
3429         * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
3430         Remove dg-skip-if for profile mode.
3431         * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
3432         * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
3433         * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
3434         * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
3435         * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
3436         * testsuite/Makefile.am: Remove profile_flags variable and
3437         * testsuite/Makefile.am: Remove profile_flags variable and
3438         check-profile target.
3439         * testsuite/Makefile.in: Regenerate.
3440         * testsuite/ext/profile/all.cc: Remove.
3441         * testsuite/ext/profile/mutex_extensions_neg.cc: Remove.
3442         * testsuite/ext/profile/profiler_algos.cc: Remove.
3443         * testsuite/ext/profile/replace_new.cc: Remove.
3444         * testsuite/ext/throw_allocator/deallocate_global.cc: Remove
3445         preprocessor check for profile mode.
3446         * testsuite/ext/throw_allocator/deallocate_local.cc: Likewise.
3447         * testsuite/lib/libstdc++.exp (check_v3_target_profile_mode): Remove.
3448         (check_v3_target_normal_mode): Do not check for profile mode macro.
3449         * testsuite/libstdc++-prettyprinters/80276.cc: Remove dg-skip-if for
3450         profile mode.
3451         * testsuite/libstdc++-prettyprinters/compat.cc: Likewise.
3452         * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
3453         * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
3454         * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
3455         * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
3456         * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
3457         * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
3458         * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
3459         * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
3460         * testsuite/libstdc++-prettyprinters/whatis2.cc: Likewise.
3461
3462         Remove array_allocator extension, deprecated since 4.9.0
3463         * doc/xml/manual/allocator.xml: Remove documentation for
3464         array_allocator.
3465         * doc/xml/manual/evolution.xml: Document array_allocator removal.
3466         * doc/xml/manual/using.xml: Remove header from documentation.
3467         * include/Makefile.am: Remove <ext/array_allocator.h> header.
3468         * include/Makefile.in: Regenerate.
3469         * include/ext/array_allocator.h: Remove.
3470         * include/precompiled/extc++.h: Do not include removed header.
3471         * testsuite/ext/array_allocator/1.cc: Remove.
3472         * testsuite/ext/array_allocator/2.cc: Remove.
3473         * testsuite/ext/array_allocator/26875.cc: Remove.
3474         * testsuite/ext/array_allocator/3.cc: Remove.
3475         * testsuite/ext/array_allocator/check_deallocate_null.cc: Remove.
3476         * testsuite/ext/array_allocator/check_delete.cc: Remove.
3477         * testsuite/ext/array_allocator/check_new.cc: Remove.
3478         * testsuite/ext/array_allocator/variadic_construct.cc: Remove.
3479         * testsuite/ext/headers.cc: Do not include removed header.
3480
3481 2019-05-11  François Dumont  <fdumont@gcc.gnu.org>
3482
3483         * include/bits/stl_bvector.h
3484         (operator==(const _Bit_iterator_base&, const _Bit_iterator_base&)):
3485         Make hidden friend.
3486         (operator<(const _Bit_iterator_base&, const _Bit_iterator_base&)):
3487         Likewise.
3488         (operator!=(const _Bit_iterator_base&, const _Bit_iterator_base&)):
3489         Likewise.
3490         (operator>(const _Bit_iterator_base&, const _Bit_iterator_base&)):
3491         Likewise.
3492         (operator<=(const _Bit_iterator_base&, const _Bit_iterator_base&)):
3493         Likewise.
3494         (operator>=(const _Bit_iterator_base&, const _Bit_iterator_base&)):
3495         Likewise.
3496         (operator-(const _Bit_iterator_base&, const _Bit_iterator_base&)):
3497         Likewise.
3498         (_Bit_iterator::operator+(difference_type)): Likewise and allow NRVO
3499         copy elision.
3500         (_Bit_iterator::operator-(difference_type)): Likewise.
3501         (operator+(ptrdiff_t, const _Bit_iterator&)): Make hidden friend.
3502         (_Bit_const_iterator::operator+(difference_type)): Likewise and allow
3503         NRVO copy elision.
3504         (_Bit_const_iterator::operator-(difference_type)): Likewise.
3505         (operator+(ptrdiff_t, const _Bit_const_iterator&)): Make hidden friend.
3506
3507 2019-05-10  Jonathan Wakely  <jwakely@redhat.com>
3508
3509         PR libstdc++/81266
3510         * testsuite/util/thread/all.h: Do not use remove_pointer for
3511         std::thread::native_handle_type.
3512
3513         PR libstdc++/90397
3514         * include/std/variant (_Variant_storage<false, Types...>::_M_storage())
3515         (_Variant_storage<true, Types...>::_M_reset()))
3516         (_Variant_storage<true, Types...>::_M_storage())): Add noexcept.
3517         (__get_storage): Likewise.
3518         (variant): Add noexcept to friend declarations for __get and
3519         __get_storage.
3520
3521         PR libstdc++/90388
3522         * include/bits/unique_ptr.h (default_delete, default_delete<T[]>):
3523         Use _Require for constraints.
3524         (operator>(nullptr_t, const unique_ptr<T,D>&)): Implement exactly as
3525         per the standard.
3526         (__uniq_ptr_hash): New base class with conditionally-disabled call
3527         operator.
3528         (hash<unique_ptr<T,D>>): Derive from __uniq_ptr_hash.
3529         * testsuite/20_util/default_delete/48631_neg.cc: Adjust dg-error line.
3530         * testsuite/20_util/unique_ptr/hash/90388.cc: New test.
3531
3532         * include/bits/shared_ptr.h: Improve docs.
3533         * include/bits/shared_ptr_base.h: Likewise.
3534         * include/bits/stl_uninitialized.h: Likewise.
3535         * include/bits/unique_ptr.h: Likewise.
3536         * libsupc++/new: Likewise.
3537
3538 2019-05-09  François Dumont  <fdumont@gcc.gnu.org>
3539
3540         * include/bits/stl_deque.h
3541         (operator==(const _Deque_iterator<>&, const _Deque_iterator<>&)):
3542         Make hidden friend.
3543         (operator!=(const _Deque_iterator<>&, const _Deque_iterator<>&)):
3544         Likewise.
3545         (operator<(const _Deque_iterator<>&, const _Deque_iterator<>&)):
3546         Likewise.
3547         (operator<=(const _Deque_iterator<>&, const _Deque_iterator<>&)):
3548         Likewise.
3549         (operator>(const _Deque_iterator<>&, const _Deque_iterator<>&)):
3550         Likewise.
3551         (operator>=(const _Deque_iterator<>&, const _Deque_iterator<>&)):
3552         Likewise.
3553         (_Deque_iterator<>::operator+(difference_type)): Likewise and allow NRVO
3554         copy elision.
3555         (_Deque_iterator<>::operator-(difference_type)): Likewise.
3556
3557 2019-05-08  François Dumont  <fdumont@gcc.gnu.org>
3558
3559         PR libstdc++/90277
3560         * testsuite/23_containers/unordered_multiset/insert/24061-multiset.cc
3561         (test01): Reserve for number of insertions to avoid rehash during test.
3562         * testsuite/23_containers/unordered_multimap/insert/24061-multimap.cc
3563         (test01): Likewise.
3564         * testsuite/23_containers/unordered_multimap/insert/24061-multimap.cc
3565         (test01): Likewise.
3566         (test02): Likewise.
3567         (test03): Likewise.
3568
3569 2019-05-08  Jonathan Wakely  <jwakely@redhat.com>
3570
3571         * include/experimental/bits/fs_path.h: Improve docs.
3572         * include/experimental/bits/net.h: Fix wrong header name in comment.
3573         Do not document implementation details.
3574         * include/experimental/netfwd: Fix doxygen grouping.
3575
3576 2019-05-07  Jonathan Wakely  <jwakely@redhat.com>
3577
3578         * include/bits/stl_pair.h: Improve docs.
3579         * include/std/tuple: Likewise.
3580
3581         * doc/doxygen/doxygroups.cc (std::literals): Add documentation for
3582         inline namespace.
3583         * include/std/chrono: Improve docs.
3584         * include/std/ratio: Do not document implementation details.
3585         * testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Adjust dg-error
3586         line numbers.
3587         * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Likewise.
3588
3589         PR libstdc++/89102
3590         * doc/xml/manual/intro.xml: Document DR 2408 and 2465 changes.
3591         * include/std/chrono (__duration_common_type_wrapper): Replace with ...
3592         (__duration_common_type): New helper.
3593         (common_type<chrono::duration<R1, P2>, chrono::duration<R2, P2>>): Use
3594         __duration_common_type.
3595         (__timepoint_common_type_wrapper): Replace with ...
3596         (__timepoint_common_type): New helper.
3597         (common_type<chrono::time_point<C, D2>, chrono::time_point<C, D2>>):
3598         Use __time_point_common_type.
3599         * include/std/type_traits (common_type<>): Define, as per LWG 2408.
3600         (__common_type_impl): If either argument is transformed by decay,
3601         use the common_type of the decayed types.
3602         (__common_type_impl<_Tp, _Up, _Tp, _Up>): If the types are already
3603         decayed, use __do_common_type_impl to get the common_type.
3604         (common_type<_Tp>): Use common_type<_Tp, _Tp>.
3605         (__do_member_type_wrapper, __member_type_wrapper)
3606         (__expanded_common_type_wrapper): Remove.
3607         (__common_type_pack, __common_type_fold): New helpers.
3608         (common_type<_Tp, _Up, _Vp...>): Use new helpers instead of
3609         __member_type_wrapper and __expanded_common_type_wrapper.
3610         * testsuite/20_util/common_type/requirements/explicit_instantiation.cc:
3611         Test zero-length template argument list.
3612         * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc:
3613         Test single argument cases and argument types that should decay.
3614         * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc:
3615         Adjust expected error.
3616         * testsuite/20_util/duration/literals/range_neg.cc: Use zero for
3617         dg-error lineno.
3618         * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
3619         * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
3620         * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
3621
3622         * doc/xml/manual/intro.xml: Fix DR 2537 and DR 2566 confusion.
3623
3624 2019-05-01  Nina Dinka Ranns  <dinka.ranns@gmail.com>
3625
3626         Make allocator propagation more consistent for
3627         operator+(basic_string) (P1165R1)
3628         * include/bits/basic_string.h
3629         (operator+(basic_string&&, basic_string&&): Changed resulting
3630         allocator to always be the one from the first parameter.
3631         * include/bits/basic_string.tcc
3632         (operator+(const _CharT*, const basic_string&)): Changed
3633         resulting allocator to be SOCCC on the second parameter's allocator.
3634         (operator+(_CharT, const basic_string&)): Likewise.
3635         * testsuite/21_strings/basic_string/allocator/char/operator_plus.cc:
3636         New.
3637         * testsuite/21_strings/basic_string/allocator/wchar_t/operator_plus.cc:
3638         New.
3639
3640 2019-05-07  Jonathan Wakely  <jwakely@redhat.com>
3641
3642         * include/bits/regex.h: Improve docs.
3643         * include/bits/regex.tcc: Do not document implementation details.
3644
3645         * testsuite/19_diagnostics/error_code/hash.cc: New test.
3646
3647 2019-05-06  François Dumont  <fdumont@gcc.gnu.org>
3648
3649         * python/libstdcxx/v6/printers.py (add_one_template_type_printer):
3650         Add type printer for container types in std::__debug namespace.
3651         * testsuite/lib/gdb-test.exp (whatis-regexp-test): New.
3652         (gdb-tests): Use distinct parameters for the type of test and use of
3653         regex.
3654         (gdb-test): Check for regex test even if 'whatis' test.
3655         * testsuite/libstdc++-prettyprinters/80276.cc: Adapt for _GLIBCXX_DEBUG
3656         mode.
3657         * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
3658         * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
3659         * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
3660         * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
3661         * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
3662         * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
3663         * testsuite/libstdc++-prettyprinters/whatis2.cc: Likewise.
3664
3665 2019-05-04  Jonathan Wakely  <jwakely@redhat.com>
3666
3667         * include/std/system_error (error_category): Fix comment.
3668
3669         PR libstdc++/90299
3670         * src/c++17/fs_ops.cc (absolute(const path&)): Report an error if the
3671         argument is an empty path.
3672         (absolute(const path&, error_code&)): Use invalid_argument as error
3673         code instead of no_such_file_or_directory.
3674         * testsuite/27_io/filesystem/operations/absolute.cc: Check handling
3675         of non-existent paths and empty paths with both overloads of absolute.
3676
3677         * include/std/system_error (error_category, error_code)
3678         (error_condition): Improve docs.
3679         * libsupc++/exception: Add missing @addtogroup Doxygen command.
3680         * libsupc++/exception_ptr.h (exception_ptr): Link equality operators
3681         to class documentation. Suppress documentation for implementation
3682         details.
3683         * libsupc++/nested_exception.h (throw_with_nested, rethrow_if_nested):
3684         Suppress documentation for implementation details.
3685
3686         * include/std/system_error (error_code): Remove friend declaration
3687         for hash<error_code>.
3688         (hash<error_code>::operator()): Use public member functions to access
3689         value and category.
3690         (hash<error_condition>::operator()): Use address of category, not
3691         its object representation.
3692         * src/c++11/compatibility-c++0x.cc (hash<error_code>::operator()):
3693         Use public member functions to access value and category.
3694         * testsuite/19_diagnostics/error_condition/hash.cc: New test.
3695
3696 2019-05-04  François Dumont  <fdumont@gcc.gnu.org>
3697
3698         * include/bits/hashtable.h (_Hashtable<>::rehash): Review comment.
3699         * include/bits/hashtable_policy.h
3700         (_Prime_rehash_policy::_M_bkt_for_elements): Use __builtin_ceill.
3701         (_Power2_rehash_policy::_M_bkt_for_elements): Likewise.
3702         (_Power2_rehash_policy::_M_next_bkt): Enforce returning a result not
3703         smaller than input value rather than always greater. Preserve
3704         _M_next_resize if called with 0 input. Use __builtin_floorl.
3705         (_Power2_rehash_policy::_M_need_rehash): Rehash only if number of
3706         elements + number of insertions is greater than _M_next_resize. Start
3707         with 11 buckets if not told otherwise. Use __builtin_floorl.
3708         (_Rehash_base<>::reserve): Use rehash policy _M_bkt_for_elements.
3709         * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
3710         Preserve _M_next_resize if called with 0 input. Use __builtin_floorl.
3711         (_Prime_rehash_policy::_M_need_rehash): Start with 11 buckets if not
3712         told otherwise. Use __builtin_floorl.
3713         * testsuite/23_containers/unordered_set/hash_policy/71181.cc: Adapt test
3714         to also validate _Power2_rehash_policy.
3715         * testsuite/23_containers/unordered_set/hash_policy/power2_rehash.cc:
3716         Adapt.
3717
3718 2019-05-03  Jonathan Wakely  <jwakely@redhat.com>
3719
3720         PR libstdc++/61761
3721         * testsuite/26_numerics/complex/proj.cc: Don't assume <cmath> defines
3722         std::copysign.
3723
3724         PR libstdc++/52119
3725         * include/ext/numeric_traits.h (__glibcxx_min): Avoid integer
3726         overflow warning with -Wpedantic -Wsystem-headers.
3727
3728 2019-05-02  Jonathan Wakely  <jwakely@redhat.com>
3729
3730         PR libstdc++/90314
3731         * include/bits/c++config (_GLIBCXX_NOEXCEPT_IF): Use variadic macro.
3732         * include/bits/move.h (swap): Remove extra parentheses.
3733
3734         * include/experimental/bits/lfts_config.h: Improve doc markup.
3735         * include/experimental/optional: Improve docs.
3736         (_Has_addressof_mem, _Has_addressof_free, _Has_addressof)
3737         (__constexpr_addressof): Remove.
3738         (optional::operator->()): Use std::__addressof().
3739         * include/std/optional (optional::operator->()): Adjust whitespace.
3740         * testsuite/experimental/optional/constexpr/observers/2.cc: Check
3741         that operator-> is still constexpr with overloaded operator&. Change
3742         to compile-only test.
3743         * testsuite/experimental/optional/constexpr/observers/3.cc: Change to
3744         compile-only test.
3745
3746         * include/bits/shared_ptr.h: Improve docs.
3747         * include/bits/shared_ptr_atomic.h: Likewise.
3748         * include/bits/unique_ptr.h: Likewise. Adjust whitespace.
3749
3750         * include/bits/basic_string.h: Fix iterator/index confusion in
3751         Doxygen comments.
3752         * include/bits/range_access.h: Fix Doxygen warnings.
3753         * include/bits/refwrap.h: Do not document implementation details.
3754         (ref, cref): Group docs with reference_wrapper.
3755         * include/std/fstream: Fix Doxygen markup.
3756         * libsupc++/initializer_list (begin, end): Group docs with
3757         initializer_list.
3758
3759         * doc/doxygen/user.cfg.in: Set MARKDOWN_SUPPORT=YES.
3760
3761         * include/bits/unique_lock.h: Fix/improve doxygen markup.
3762         * include/std/mutex: Likewise.
3763         * include/std/shared_mutex: Likewise.
3764
3765         * include/bits/fs_dir.h: Fix/improve doxygen markup.
3766         * include/bits/fs_fwd.h: Likewise.
3767         * include/bits/fs_ops.h: Likewise.
3768         * include/bits/fs_path.h: Likewise.
3769         * include/std/filesystem: Likewise.
3770
3771         * include/experimental/bits/net.h: Fix/improve doxygen markup.
3772         * include/experimental/buffer: Likewise.
3773         * include/experimental/executor: Likewise.
3774         * include/experimental/internet: Likewise.
3775         * include/experimental/io_context: Likewise.
3776         * include/experimental/net: Likewise.
3777         * include/experimental/netfwd: Likewise.
3778         * include/experimental/socket: Likewise.
3779         * include/experimental/timer: Likewise.
3780
3781         * doc/doxygen/doxygroups.cc: Move description of experimental group
3782         here.
3783         * include/experimental/algorithm: Add to libfund-ts doc group.
3784         * include/experimental/any: Likewise. Do not document implementation
3785         details.
3786         * include/experimental/array: Add to libfund-ts doc group.
3787         * include/experimental/bits/lfts_config.h: Define libfund-ts doc group
3788         for Library Fundamentals.
3789         * include/experimental/chrono: Add to libfund-ts doc group.
3790         * include/experimental/deque: Likewise.
3791         * include/experimental/forward_list: Likewise.
3792         * include/experimental/functional: Likewise.
3793         * include/experimental/iterator: Likewise.
3794         * include/experimental/list: Likewise.
3795         * include/experimental/map: Likewise.
3796         * include/experimental/memory: Likewise.
3797         * include/experimental/memory_resource: Likewise. Improve docs.
3798         details.
3799         * include/experimental/numeric: Add to libfund-ts doc group.
3800         * include/experimental/optional: Likewise.
3801         * include/experimental/propagate_const: Likewise.
3802         * include/experimental/random: Likewise.
3803         * include/experimental/ratio: Likewise.
3804         * include/experimental/regex: Likewise.
3805         * include/experimental/set: Likewise.
3806         * include/experimental/source_location: Likewise.
3807         * include/experimental/string: Likewise.
3808         * include/experimental/string_view: Likewise.
3809         * include/experimental/system_error: Likewise.
3810         * include/experimental/tuple: Likewise.
3811         * include/experimental/type_traits: Likewise.
3812         * include/experimental/unordered_map: Likewise.
3813         * include/experimental/unordered_set: Likewise.
3814         * include/experimental/utility: Likewise.
3815         * include/experimental/vector: Likewise.
3816         * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
3817         * testsuite/experimental/array/neg.cc: Adjust dg-error.
3818         * testsuite/experimental/propagate_const/assignment/move_neg.cc:
3819         Likewise.
3820         * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
3821         * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
3822         * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
3823         * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
3824         * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
3825
3826         * include/experimental/bits/fs_dir.h: Fix Doxygen markup.
3827         * include/experimental/bits/fs_fwd.h: Improve docs.
3828         * include/experimental/bits/fs_ops.h: fix Doxygen markup.
3829         * include/experimental/bits/fs_path.h: Likewise.
3830         (path, filesystem_error, u8path): Improve docs.
3831         * include/experimental/filesystem: Link to docs for TS.
3832
3833         * config/allocator/new_allocator_base.h (__allocator_base): Add
3834         workaround for Doxygen bug #6945.
3835         * include/std/memory: Improve docs. Define group for pointer safety.
3836         * include/std/scoped_allocator: Improve docs. Use "undocumented"
3837         conditional to suppress documentation for implementation details.
3838
3839         * include/bits/specfun.h: Improve docs.
3840         * include/tr1/cmath: Likewise. Fix nesting of preprocessor conditions
3841         and namespaces.
3842
3843         * doc/doxygen/doxygroups.cc (std::tr2, std::__gnu_cxx): Improve docs.
3844         (std::experimental): Add docs.
3845         * doc/doxygen/user.cfg.in (PREDEFINED): Expand macros for __cxx11
3846         namespace to nothing when generating docs.
3847         * include/bits/regex_constants.h (std::regex_constants): Improve docs.
3848         * include/std/chrono (std::chrono): Likewise.
3849         * include/std/functional (std::placeholders): Likewise.
3850         * include/std/thread (std::this_thread): Likewise.
3851
3852         * include/parallel/settings.h: Fix Doxygen markup.
3853
3854         * include/ext/pb_ds/detail/bin_search_tree_/*_imps.hpp: Do not define
3855         anything unless PB_DS_CLASS_C_DEC is defined.
3856         * include/ext/pb_ds/detail/binary_heap_/*_imps.hpp: Likewise.
3857         * include/ext/pb_ds/detail/binomial_heap_/*_imps.hpp: Likewise.
3858         * include/ext/pb_ds/detail/binomial_heap_base_/*_imps.hpp: Likewise.
3859         * include/ext/pb_ds/detail/cc_hash_table_map_/*_imps.hpp: Likewise.
3860         * include/ext/pb_ds/detail/gp_hash_table_map_/*_imps.hpp: Likewise.
3861         * include/ext/pb_ds/detail/hash_fn/*_imp.hpp: Likewise.
3862         * include/ext/pb_ds/detail/left_child_next_sibling_heap_/*_imps.hpp:
3863         Likewise.
3864         * include/ext/pb_ds/detail/list_update_map_/*_imps.hpp: Likewise.
3865         * include/ext/pb_ds/detail/ov_tree_map_/*_imps.hpp: Likewise.
3866         * include/ext/pb_ds/detail/pairing_heap_/*_imps.hpp: Likewise.
3867         * include/ext/pb_ds/detail/pat_trie_/*_imps.hpp: Likewise.
3868         * include/ext/pb_ds/detail/rb_tree_map_/*_imps.hpp: Likewise.
3869         * include/ext/pb_ds/detail/rc_binomial_heap_/*_imps.hpp: Likewise.
3870         * include/ext/pb_ds/detail/resize_policy*_imp.hpp: Likewise.
3871         * include/ext/pb_ds/detail/splay_tree_/*_imps.hpp: Likewise.
3872         * include/ext/pb_ds/detail/thin_heap_/*_imps.hpp: Likewise.
3873         * include/ext/pb_ds/detail/trie_policy*_imp.hpp: Likewise.
3874         * include/ext/pb_ds/detail/unordered_iterator/const_iterator.hpp:
3875         Likewise.
3876         * include/ext/pb_ds/detail/unordered_iterator/iterator.hpp: Likewise.
3877         * include/ext/pb_ds/detail/unordered_iterator/point_const_iterator.hpp:
3878         Likewise.
3879         * include/ext/pb_ds/detail/unordered_iterator/point_iterator.hpp:
3880         Likewise.
3881
3882         * doc/doxygen/user.cfg.in: Regenerate with Doxygen 1.8.14 and set
3883         GROUP_NESTED_COMPOUNDS=YES and SORT_BY_SCOPE_NAME=NO. Add various
3884         _GLIBCXX_xxx macros and __attribute__(X) to PREDEFINED macros that
3885         Doxygen expands.
3886
3887 2019-05-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3888
3889         * config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate.
3890         * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: Likewise.
3891         * config/abi/post/i386-solaris2.11/baseline_symbols.txt: Likewise.
3892         * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: Likewise.
3893         * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: Likewise.
3894         * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
3895         Likewise.
3896         * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: Likewise.
3897         * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
3898         Likewise.
3899
3900 2019-05-01  Jonathan Wakely  <jwakely@redhat.com>
3901
3902         PR libstdc++/61761
3903         * include/std/complex (__complex_proj): Return parameter unchanged.
3904         [_GLIBCXX_USE_C99_COMPLEX] (__complex_proj): Change overloads for
3905         floating-point types to take std::complex arguments.
3906         [_GLIBCXX_USE_C99_MATH_TR1] (__complex_proj): Add overloads for
3907         floating-point types.
3908         * testsuite/26_numerics/complex/proj.cc: New test.
3909
3910 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
3911
3912         * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Change _Lock_policyE2 exports
3913         to _Lock_policyE[012].
3914         * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
3915
3916 2019-04-30  Jonathan Wakely  <jwakely@redhat.com>
3917
3918         * testsuite/27_io/filesystem/path/decompose/root_path.cc: Remove
3919         macros accidentally left in.
3920         * testsuite/27_io/filesystem/path/native/string-char8_t.cc: Remove
3921         unnecessary -lstdc++fs option. Fix test for mingw.
3922         * testsuite/experimental/filesystem/path/native/string-char8_t.cc:
3923         Fix test for mingw.
3924
3925 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
3926
3927         * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
3928
3929 2019-04-29  Jonathan Wakely  <jwakely@redhat.com>
3930
3931         * include/bits/stl_algo.h (generate_n): Adjust doxygen comment.
3932
3933         * include/bits/move.h (swap(T&, T&), swap(T (&)[N], T (&)[N])): Use
3934         _GLIBCXX_NOEXCEPT_IF to simplify declarations.
3935
3936         PR libstdc++/71312
3937         * src/c++11/shared_ptr.cc (get_mutex): Align pool mutexes to 64 bytes.
3938
3939         * include/bits/stl_bvector.h (vector<bool>::empty()): Add nodiscard
3940         attribute.
3941
3942         * include/bits/stl_iterator_base_types.h (_Iter_base): Remove unused
3943         class template and partial specialization.
3944
3945         PR libstdc++/87982
3946         * include/bits/stl_algo.h (generate_n): Convert _Size parameter to
3947         an integral type.
3948         * include/bits/stl_algobase.h (__size_to_integer): New overloaded
3949         functions to convert a value to an integral type.
3950         (__fill_n_a, __fill_n_a): Assert that __n is already an integral type.
3951         (fill_n): Convert _Size parameter to an integral type.
3952         * testsuite/25_algorithms/fill_n/87982.cc: New test.
3953         * testsuite/25_algorithms/fill_n/87982_neg.cc: New test.
3954         * testsuite/25_algorithms/fill_n/dr426.cc: New test.
3955         * testsuite/25_algorithms/generate_n/87982.cc: New test.
3956         * testsuite/25_algorithms/generate_n/87982_neg.cc: New test.
3957         * testsuite/25_algorithms/generate_n/dr426.cc: New test.
3958
3959 2019-04-28  Nina Dinka Ranns  <dinka.ranns@gmail.com>
3960
3961         Adding noexcept-specification on tuple constructors (LWG 2899)
3962         * libstdc++-v3/include/std/tuple:
3963         (tuple()): Add noexcept-specification.
3964         (tuple(const _Elements&...)): Likewise
3965         (tuple(_UElements&&...)): Likewise
3966         (tuple(const tuple<_UElements...>&)): Likewise
3967         (tuple(tuple<_UElements...>&&)): Likewise
3968         (tuple(const _T1&, const _T2&)): Likewise
3969         (tuple(_U1&&, _U2&&)): Likewise
3970         (tuple(const tuple<_U1, _U2>&): Likewise
3971         (tuple(tuple<_U1, _U2>&&): Likewise
3972         (tuple(const pair<_U1, _U2>&): Likewise
3973         (tuple(pair<_U1, _U2>&&): Likewise
3974         * libstdc++-v3/testsuite/20_util/tuple/cons/noexcept_specs.cc: New
3975
3976 2019-04-27  Marc Glisse  <marc.glisse@inria.fr>
3977
3978         PR libstdc++/87106
3979         * include/bits/stl_uninitialized.h (__relocate_object_a): Mark the
3980         arguments with __restrict.
3981
3982 2019-04-26  H.J. Lu  <hongjiu.lu@intel.com>
3983
3984         * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
3985
3986 2019-04-26  Jonathan Wakely  <jwakely@redhat.com>
3987
3988         * include/experimental/bits/fs_path.h
3989         (path::_S_convert_loc<_InputIterator>): Create const std::string to
3990         avoid redundant call to _S_convert_loc with non-const pointers.
3991
3992         * testsuite/20_util/variant/run.cc: Use a new Hashable type to test
3993         hashing, because pmr::string depends on _GLIBCXX_USE_CXX11_ABI==1.
3994         * testsuite/21_strings/basic_string/hash/hash.cc
3995         [!_GLIBCXX_USE_CXX11_ABI]: Don't test pmr strings.
3996         * testsuite/21_strings/basic_string/hash/hash_char8_t.cc
3997         [!_GLIBCXX_USE_CXX11_ABI]: Likewise.
3998
3999         * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace wildcard that matches
4000         wstring::_M_replace_dispatch with more specific patterns.
4001         * include/bits/fs_path.h (path::_S_convert_loc<_InputIterator>):
4002         Create const std::string to avoid redundant call to _S_convert_loc
4003         with non-const pointers.
4004         * include/bits/locale_conv.h (__do_str_codecvt): Use if-constexpr to
4005         avoid unnecessary basic_string::assign instantiations.
4006
4007         * include/std/memory (__uses_alloc_args): Add string-literal to
4008         static_assert, to match the one in __uses_alloc.
4009         [__cpp_concepts] (_Std_pair): Use C++2a syntax for concept.
4010         * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: Check
4011         for recursive uses-allocator construction of nested pairs.
4012         * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc:: Add
4013         comment.
4014
4015 2019-04-26  Jakub Jelinek  <jakub@redhat.com>
4016
4017         * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Update.
4018         * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
4019         * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
4020         * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
4021
4022         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
4023         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
4024         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
4025         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
4026         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
4027         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
4028         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
4029
4030 2019-04-25  Jonathan Wakely  <jwakely@redhat.com>
4031
4032         PR libstdc++/90239
4033         * doc/xml/manual/status_cxx2020.xml: Amend P0591R4 status.
4034         * include/std/scoped_allocator [__cplusplus > 201703L]
4035         (scoped_allocator_adaptor::construct): Define in terms of
4036         uses_allocator_construction_args, as per P0591R4.
4037         * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc: New test.
4038         * testsuite/util/testsuite_allocator.h: Remove name of unused
4039         parameter.
4040
4041 2019-04-24  Jonathan Wakely  <jwakely@redhat.com>
4042
4043         * doc/xml/manual/status_cxx2017.xml: Document P0024R2 status.
4044         * doc/html/*: Regenerate.
4045
4046         * include/bits/fs_path.h (operator<, operator<=, operator>)
4047         (operator>=, operator==, operator!=): Make hidden friends, as per
4048         LWG 3065.
4049         * testsuite/27_io/filesystem/path/native/string-char8_t.cc: Fix
4050         string type in test.
4051         * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
4052
4053         * include/std/any (any::any(ValueType&&)): Use __and_v.
4054         * include/std/numeric (midpoint(T, T, T), midpoint(T*, T*, T*)):
4055         Likewise.
4056
4057         * include/std/tuple (apply): Use remove_reference_t instead of decay_t
4058         as per P0777R1.
4059         * include/std/type_traits (__result_of_memfun): Use remove_reference
4060         instead of __remove_cvref_t and remove redundant is_same check.
4061         (__inv_unwrap): Use __remove_cvref_t instead of decay_t.
4062
4063         * include/experimental/string_view (basic_string_view::pointer)
4064         (basic_string_view::reference): Fix to refer to non-const value_type.
4065         * include/bits/basic_string.h (basic_string): Use __sv_check and
4066         __sv_limit instead of basic_string_view::_M_check and
4067         basic_string_view::_M_limit.
4068         * include/std/string_view (__sv_check, __sv_limit): New
4069         helper functions to replace basic_string_view::_M_check and
4070         basic_string_view::_M_limit.
4071         (basic_string_view): Add static assertions to enforce ill-formed
4072         requirement for traits_type::char_type from P1148R0, and to enforce
4073         required properties of char-like types.
4074         (basic_string_view::pointer, basic_string_view::reference): Fix to
4075         refer to non-const value_type.
4076         (basic_string_view::operator[], basic_string_view::at)
4077         (basic_string_view::front, basic_string_view::back)
4078         (basic_string_view::data): Use const_reference and const_pointer
4079         typedefs for return types.
4080         (basic_string_view::_M_check, basic_string_view::_M_limit): Remove.
4081         (hash<wstring_view>): Fix argument_type typedef.
4082         * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
4083         char/1.cc: Fix expected return type of basic_string_view::data().
4084         * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
4085         wchar_t/1.cc: Likewise.
4086         * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
4087         char/1.cc: Likewise.
4088         * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
4089         wchar_t/1.cc: Likewise.
4090         * testsuite/21_strings/basic_string_view/requirements/traits_neg.cc:
4091         New test.
4092         * testsuite/21_strings/basic_string_view/requirements/typedefs.cc:
4093         Check reference and pointer typedefs.
4094         * testsuite/experimental/string_view/requirements/typedefs.cc:
4095         Likewise.
4096         * testsuite/experimental/string_view/modifiers/remove_prefix/char/1.cc:
4097         Fix expected return type of basic_string_view::data().
4098         * testsuite/experimental/string_view/modifiers/remove_prefix/wchar_t/
4099         1.cc: Likewise.
4100         * testsuite/experimental/string_view/modifiers/remove_suffix/char/1.cc:
4101         Likewise.
4102         * testsuite/experimental/string_view/modifiers/remove_suffix/wchar_t/
4103         1.cc: Likewise.
4104
4105         PR libstdc++/90220
4106         * include/std/any (__any_caster): Use remove_cv_t instead of decay_t.
4107         Avoid a runtime check for types that can never be stored in std::any.
4108         * testsuite/20_util/any/misc/any_cast.cc: Test std::any_cast with
4109         array types.
4110
4111         PR libstdc++/90220 (partial)
4112         * include/std/any (any_cast<T>(any*), any_cast<T>(const any*)): Do
4113         not attempt ill-formed static_cast to pointers to non-object types.
4114         * testsuite/20_util/any/misc/any_cast.cc: Test std::any_cast with
4115         function types.
4116
4117         * testsuite/20_util/variant/run.cc: Catch exception by reference to
4118         prevent -Wcatch-value warning.
4119
4120         * include/std/variant (__variant_construct): Use template parameter
4121         type instead of equivalent decltype-specifier.
4122         (_Move_ctor_base<false, Types...>::_Move_ctor_base(_Move_ctor_base&&)):
4123         Replace forward with move.
4124         (_Move_ctor_base<false, Types...>::_M_destructive_move)
4125         (_Move_ctor_base<false, Types...>::_M_destructive_copy)
4126         (_Move_ctor_base<true, Types...>::_M_destructive_move)
4127         (_Move_ctor_base<true, Types...>::_M_destructive_copy): Only set the
4128         index after construction succeeds.
4129         (_Copy_assign_base<false, Types...>::operator=): Remove redundant
4130         if-constexpr checks that are always true. Use __remove_cvref_t instead
4131         of remove_reference so that is_nothrow_move_constructible check
4132         doesn't use a const rvalue parameter. In the potentially-throwing case
4133         construct a temporary and move assign it, as per LWG 2904.
4134         (_Move_assign_base<false, Types...>::operator=): Remove redundant
4135         if-constexpr checks that are always true. Use emplace as per LWG 2904.
4136         (variant::operator=(T&&)): Only use emplace conditionally, otherwise
4137         construct a temporary and move assign from it, as per LWG 2904.
4138         * testsuite/20_util/variant/exception_safety.cc: Check that
4139         assignment operators have strong exception safety guarantee.
4140
4141 2019-04-23  Thomas Rodgers <trodgers@redhat.com>
4142
4143         Document PSTL linker flags
4144
4145         * doc/xml/manual/using.xml: Add PSTL linker flags to table 3.1.
4146         
4147 2019-04-23  Jonathan Wakely  <jwakely@redhat.com>
4148
4149         * include/std/variant (__detail::__variant::_Traits): Make
4150         _S_trivial_copy_assign depend on _S_trivial_copy_ctor and make
4151         _S_trivial_move_assign depend on _S_trivial_move_ctor, as per
4152         P0602R4.
4153         (__detail::__variant::_Copy_assign_alias): Only depend on
4154         _S_trivial_copy_assign, which subsumes _S_trivial_copy_ctor now.
4155         * testsuite/20_util/variant/compile.cc: Correct checks for trivial
4156         move assignment operators.
4157
4158         PR libstdc++/90165
4159         * include/std/variant (variant::__not_self): New helper for the
4160         is_same_v<remove_cvref_t<T>, variant>==false constraints.
4161         (variant::__to_type_impl): Remove.
4162         (variant::__to_type): Add default argument to check pack size, instead
4163         of using __to_type_impl.
4164         (variant::__accepted_type): Add default argument using __not_self.
4165         (variant::__is_in_place_tag, variant::__not_in_place_tag): New helpers
4166         for variant(T&&) constructor constraint.
4167         (variant::variant(T&&)): Use __not_in_place_tag in constraints.
4168         Extract __accepted_type into a named template parameter for reuse in
4169         other constraints and in the exception specification.
4170         (variant::variant(in_place_type_t<T>, Args&&...))
4171         (variant::variant(in_place_type_t<T>, initializer_list<U>, Args&&...))
4172         (variant::variant(in_place_index_t<T>, Args&&...))
4173         (variant::variant(in_place_index_t<T>, initializer_list<U>, Args&&...))
4174         (variant::operator=T&&)): Remove redundant && from trait arguments.
4175         * testsuite/20_util/variant/compile.cc: Check variant(T&&) constructor
4176         isn't used for in_place_type or in_place_index arguments.
4177
4178         * include/std/type_traits (unwrap_reference_t): Define for C++2a.
4179         (unwrap_ref_decay): Remove inheritance from unwrap_reference.
4180         * testsuite/20_util/unwrap_reference/1.cc: Adjust test to use alias.
4181
4182 2019-04-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4183             Bernd Edlinger  <bernd.edlinger@hotmail.de>
4184             Jakub Jelinek  <jakub@redhat.com>
4185
4186         PR target/89093
4187         * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Add
4188         general-regs-only target attribute for ARM.
4189
4190 2019-04-23  Jonathan Wakely  <jwakely@redhat.com>
4191
4192         PR libstdc++/87431
4193         * include/bits/basic_string.h (_Never_valueless_alt): Make partial
4194         specialization also depend on is_nothrow_move_constructible.
4195         * include/std/variant (__detail::__variant::__never_valueless()):
4196         Only true if the variant would have a move assignment operator.
4197         (__detail::__variant::_Variant_storage<false, T...>::_M_valid()):
4198         Check __never_valueless<T...>().
4199         (variant::emplace): Only perform non-throwing move assignments
4200         for never-valueless alternatives if the variant has a move assignment
4201         operator.
4202         * testsuite/20_util/variant/compile.cc: Check that never-valueless
4203         types can be emplaced into non-assignable variants.
4204         * testsuite/20_util/variant/run.cc: Check that never-valueless types
4205         don't get copied when emplaced into non-assignable variants.
4206
4207         * include/std/variant (__detail::__variant::__ref_cast): Remove
4208         unused function.
4209         (__detail::__variant::_Uninitialized::_M_get)
4210         (__detail::__variant::__get)
4211         (__gen_vtable_impl::__element_by_index_or_cookie): Add noexcept.
4212
4213 2019-04-21  Iain Sandoe  <iain@sandoe.co.uk>
4214
4215         * testsuite/17_intro/headers/c++1998/charset.cc: Skip for Darwin8
4216         to Darwin10.
4217         * testsuite/17_intro/headers/c++2011/charset.cc: Likewise.
4218         * testsuite/17_intro/headers/c++2014/charset.cc: Likewise.
4219         * testsuite/17_intro/headers/c++2017/charset.cc: Likewise.
4220         * testsuite/17_intro/headers/c++2020/charset.cc: Likewise.
4221
4222 2019-04-20  Thomas Rodgers <trodgers@redhat.com>
4223
4224         Delegate PSTL configuration to pstl/pstl_config.h
4225
4226         * include/bits/c++config: Remove explicit PSTL configuration
4227         macros and use definitions from <pstl/pstl_config.h>.
4228         
4229 2019-04-20  Thomas Rodgers <trodgers@redhat.com>
4230
4231         Cleanup algorithm implementations
4232         * include/pstl/glue_algorithm_impl.h (stable_sort): Forward
4233         execution policy.
4234         (mismatch): Forward execution policy.
4235         (equal): Qualify call to std::equal().
4236         (partial_sort): Forward execution policy.
4237         (inplace_merge): Forward execution policy.
4238         
4239 2019-04-19  Thomas Rodgers <trodgers@redhat.com>
4240         
4241         Improve implementation of parallel equal()
4242         * include/pstl/algorithm_impl.h
4243         (__internal::__brick_equal): use "4 iterator" version of
4244         std::equal().
4245         (__internal::__brick_equal): use simd for random access
4246         iterators on unsequenced execution policies.
4247         (__internal::__pattern_equal): add "4 iterator" version
4248         (__internal::__pattern_equal): dispatch to simd __brick_equal
4249         for vector-only execution policies.
4250         (__internal::__pattern_equal): dispatch to __parallel_or for
4251         parallel execution policies.
4252         * include/pstl/glue_algorithm_impl.h
4253         (std::equal): dispatch to "4 iterator" version of
4254         __internal::__pattern_equal().
4255         
4256 2019-04-17  Jonathan Wakely  <jwakely@redhat.com>
4257
4258         PR libstdc++/90105
4259         * include/bits/forward_list.h (operator==): Do not use operator!= to
4260         compare elements.
4261         (forward_list<T, A>::sort(Comp)): When elements are equal take the one
4262         earlier in the list, so that sort is stable.
4263         * testsuite/23_containers/forward_list/operations/90105.cc: New test.
4264         * testsuite/23_containers/forward_list/comparable.cc: Test with
4265         types that meet the minimum EqualityComparable and LessThanComparable
4266         requirements. Remove irrelevant comment.
4267
4268         * include/std/variant (__detail::__variant::_Traits::_S_copy_assign):
4269         Do not depend on whether all alternative types are move constructible.
4270         (__detail::__variant::_Copy_assign_base::operator=): Remove cv-quals
4271         from the operand when deciding whether to perform the assignment.
4272         * testsuite/20_util/variant/compile.cc (DeletedMoves): Define type
4273         with deleted move constructor and deleted move assignment operator.
4274         (default_ctor, copy_ctor, move_ctor, copy_assign, move_assign): Check
4275         behaviour of variants with DeletedMoves as an alternative.
4276         * testsuite/20_util/variant/run.cc (DeletedMoves): Define same type.
4277         (move_ctor, move_assign): Check that moving a variant with a
4278         DeletedMoves alternative falls back to copying instead of moving.
4279
4280         * testsuite/20_util/variant/compile.cc: Remove empty string literals
4281         from static_assert declarations.
4282
4283         * testsuite/20_util/variant/compile.cc (MoveCtorOnly): Fix type to
4284         actually match its name.
4285         (MoveCtorAndSwapOnly): Define new type that adds swap to MoveCtorOnly.
4286         (test_swap()): Fix result for MoveCtorOnly and check
4287         MoveCtorAndSwapOnly.
4288
4289         * include/std/optional (optional::value_or(U&&) &&): Add missing
4290         constexpr specifier.
4291         * testsuite/20_util/optional/constexpr/observers/4.cc: Check value_or
4292         for disengaged optionals and rvalue optionals.
4293         * testsuite/20_util/optional/observers/4.cc: Likewise.
4294
4295 2019-04-12  Thomas Rodgers  <trodgers@redhat.com>
4296         
4297         * include/pstl/algorithm_impl.h: Uglify identfiers.
4298         * include/pstl/numeric_impl.h:  Uglify identfiers.
4299         * include/pstl/parallel_backend_tbb.h: Uglify identfiers.
4300
4301 2019-04-11  Thomas Rodgers  <trodgers@redhat.com>
4302
4303         * include/bits/c++config:
4304         Add definition for __PSTL_ASSERT.
4305         Add definition for __PSTL_ASSERT_MSG.
4306         * include/pstl/algorithm_impl.h: Replace use of assert().
4307         * include/pstl/numeric_impl.h: Replace use of assert().
4308         * include/pstl/parallel_backend_tbb.h:
4309         Replace use of assert().
4310         Replace use of __TBB_ASSERT().
4311         * include/pstl/parallel_backend_utils.h: Replace use of assert().
4312
4313 2019-04-11  Jonathan Wakely  <jwakely@redhat.com>
4314
4315         PR libstdc++/90046
4316         * src/c++17/memory_resource.cc
4317         (monotonic_buffer_resource::_Chunk::allocate): Increase alignment if
4318         needed to allow placing a _Chunk at the end of the buffer.
4319         (monotonic_buffer_resource::_M_new_buffer): Remove static_assert.
4320
4321 2019-04-10  Jonathan Wakely  <jwakely@redhat.com>
4322
4323         * doc/xml/faq.xml: Add information about emergency EH pool.
4324         * doc/xml/manual/debug.xml: Update list of memory debugging tools.
4325         Move outdated information on mt_allocator to a separate section.
4326         * doc/xml/manual/evolution.xml: Clarify that GLIBCXX_FORCE_NEW
4327         doesn't affect the default allocator.
4328
4329         * testsuite/lib/libstdc++.exp (check_v3_target_parallel_mode): Fix
4330         typo.
4331
4332         PR libstdc++/89851
4333         * testsuite/20_util/variant/89851.cc: New test.
4334
4335 2019-04-09  Jonathan Wakely  <jwakely@redhat.com>
4336
4337         * include/std/variant: Adjust whitespace. Add comments.
4338         (_Multi_array): Leave primary template undefined.
4339         (_Multi_array<_Tp>): Define partial specialization for base case of
4340         recursion.
4341         (__gen_vtable_impl, __gen_vtable): Remove redundant && from type
4342         which is always a reference.
4343         (__gen_vtable::_S_apply()): Remove function, inline body into
4344         default member initializer.
4345         * testsuite/20_util/variant/visit.cc: Test with noncopyable types.
4346
4347         * include/std/variant (__variant_idx_cookie): Add member type.
4348         (__visitor_result_type): Remove.
4349         (__do_visit): Use invoke_result instead of __visitor_result_type.
4350         * testsuite/20_util/variant/visit.cc: New test.
4351
4352         PR libstdc++/90008
4353         * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Remove
4354         unused capture.
4355         * testsuite/20_util/variant/90008.cc: New test.
4356
4357 2019-04-09  Thomas Rodgers  <trodgers@redhat.com>
4358
4359         * include/pstl/algorithm_impl.h: Add namespace qualification.
4360         * include/pstl/execution_defs.h: Add namespace qualification.
4361         * include/pstl/execution_impl.h: Add namespace qualification.
4362         * include/pstl/numeric_impl.h: Add namespace qualification.
4363         * include/pstl/parallel_backend_tbb.h: Add namespace qualification.
4364         * include/pstl/unseq_backend_simd.h: Add namespace qualification.
4365         * include/pstl/parallel_backend_utils.h: Include <cassert>.
4366
4367 2019-04-08  Ville Voutilainen  <ville.voutilainen@gmail.com>
4368
4369         Fix visit<R> for variant.
4370         * include/std/variant (__do_visit): Add a template parameter
4371         for enforcing same return types for visit.
4372         (__gen_vtable_impl): Likewise.
4373         (_S_apply_single_alt): Adjust.
4374         (__visit_invoke_impl): New. Handle casting to void.
4375         (__do_visit_invoke): New. Enforces same return types.
4376         (__do_visit_invoke_r): New. Converts return types.
4377         (__visit_invoke): Adjust.
4378         (__gen_vtable):  Add a template parameter for enforcing
4379         same return types for visit.
4380         * testsuite/20_util/variant/visit_r.cc: Add a test for a visitor with
4381         different return types.
4382         * testsuite/20_util/variant/visit_neg.cc: New. Ensures that
4383         visitors with different return types don't accidentally
4384         compile with regular visitation.
4385
4386 2019-04-08  Christophe Lyon  <christophe.lyon@linaro.org>
4387
4388         * testsuite/27_io/filesystem/iterators/caching.cc: Add
4389         dg-require-filesystem-ts.
4390
4391 2019-04-05  Jonathan Wakely  <jwakely@redhat.com>
4392
4393         * doc/xml/manual/status_cxx2020.xml: Update status.
4394         * include/std/variant (visit<R>): Define for C++2a (P0655R1).
4395         * testsuite/20_util/variant/visit_r.cc: New test.
4396
4397         * include/bits/fs_dir.h (directory_iterator::operator*)
4398         (directory_iterator::operator->): Add noexcept.
4399         (operator==, operator!=): Replace namespace-scope equality operators
4400         for directory iterators with hidden friends.
4401
4402         PR libstdc++/89986
4403         * config/abi/pre/gnu.ver: Add missing exports.
4404         * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Test
4405         increment member.
4406
4407         * config/abi/pre/gnu.ver: Export new symbols.
4408         * include/bits/fs_dir.h (recursive_directory_iterator::options())
4409         (recursive_directory_iterator::recursion_pending())
4410         (recursive_directory_iterator::disable_recursion_pending()): Remove
4411         inline definitions. Make noexcept.
4412         (recursive_directory_iterator::depth())
4413         (recursive_directory_iterator::operator*())
4414         (recursive_directory_iterator::operator->()): Make noexcept.
4415         (recursive_directory_iterator::_M_options)
4416         (recursive_directory_iterator::_M_pending): Remove data members.
4417         * src/c++17/fs_path.cc (_Dir_stack): Add constructor and data members.
4418         (recursive_directory_iterator::recursive_directory_iterator): Remove
4419         ctor-initializer. Use new constructor for _Dir_stack.
4420         (recursive_directory_iterator::options())
4421         (recursive_directory_iterator::recursion_pending())
4422         (recursive_directory_iterator::disable_recursion_pending()): Add
4423         non-inline definitions.
4424         (recursive_directory_iterator::depth()): Make noexcept.
4425         (recursive_directory_iterator::increment(error_code&))
4426         (recursive_directory_iterator::pop(error_code&)): Adjust to new
4427         location of options and recursion_pending members.
4428         * testsuite/27_io/filesystem/iterators/recursion_pending.cc: New test.
4429         * testsuite/util/testsuite_fs.h (__gnu_test::scoped_file): Add
4430         user-declared move constructor and assignment operator, to make the
4431         type move-only.
4432
4433         * src/c++17/fs_dir.cc (_Dir::advance(bool, error_code&)): Handle
4434         d_type == DT_UNKNOWN immediately.
4435         (_Dir::should_recurse(bool, error_code&)): Remove file_type::unknown
4436         handling here.
4437         * testsuite/27_io/filesystem/iterators/caching.cc: New test.
4438
4439         * include/bits/fs_path.h (path::operator=(path&&)): Check for self
4440         assignment.
4441         * src/c++17/fs_path.cc (path::operator=(const path&)): Likewise.
4442         * testsuite/27_io/filesystem/path/assign/copy.cc: Test self
4443         assignment.
4444
4445         PR libstdc++/87431 (again)
4446         * include/bits/basic_string.h (__variant::_Never_valueless_alt):
4447         Define partial specialization for basic_string.
4448         * include/bits/shared_ptr.h (_Never_valueless_alt): Likewise for
4449         shared_ptr and weak_ptr.
4450         * include/bits/std_function.h (_Never_valueless_alt): Likewise for
4451         function.
4452         * include/bits/stl_vector.h (_Never_valueless_alt): Likewise for
4453         vector.
4454         * include/bits/unique_ptr.h (_Never_valueless_alt): Likewise for
4455         unique_ptr.
4456         * include/debug/vector (_Never_valueless_alt): Likewise for debug
4457         vector.
4458         * include/std/any (_Never_valueless_alt): Define explicit
4459         specialization for any.
4460         * include/std/variant (_Never_valueless_alt): Define primary template.
4461         (__never_valueless): Use _Never_valueless_alt instead of
4462         is_trivially_copyable.
4463         (variant::emplace<N>(Args&&...)): Add special case for non-throwing
4464         initializations to avoid try-catch overhead. Add special case for
4465         scalars produced by potentially-throwing conversions. Use
4466         _Never_valueless_alt instead of is_trivially_copyable for the
4467         remaining strong exception-safety cases.
4468         (variant::emplace<N>(initializer_list<U>, Args&&...)): Likewise.
4469         * testsuite/20_util/variant/87431.cc: Run both test functions.
4470         * testsuite/20_util/variant/exception_safety.cc: New test.
4471         * testsuite/20_util/variant/run.cc: Use pmr::string instead of string,
4472         so the variant becomes valueless.
4473
4474 2019-04-03  Jonathan Wakely  <jwakely@redhat.com>
4475
4476         PR libstdc++/85184
4477         * include/std/variant (_Copy_assign_base, _Move_assign_base, variant):
4478         Remove assertions.
4479         (variant::emplace<_Tp>): Return result of emplace<N> directly.
4480
4481         * include/std/string (__hash_string_base): New class template defining
4482         operator() for hashing strings.
4483         (hash<pmr::string>, hash<pmr::u8string>, hash<pmr::u16string>)
4484         (hash<pmr::u32string>, hash<pmr::wstring>): Define for C++17.
4485         * testsuite/21_strings/basic_string/hash/hash.cc: New test.
4486         * testsuite/21_strings/basic_string/hash/hash_char8_t.cc: New test.
4487
4488 2019-04-01  Ville Voutilainen  <ville.voutilainen@gmail.com>
4489
4490         Use single-visitation in variant assignment and swap and relops.
4491         Also use indices instead of types when checking whether
4492         variants hold the same thing.
4493         * include/std/variant (__do_visit): Add a template parameter
4494         for index visitation, invoke with indices if index visitation
4495         is used.
4496         (__variant_idx_cookie): New.
4497         (__visit_with_index): Likewise.
4498         (_Copy_assign_base::operator=): Do single-visitation with
4499         an index visitor.
4500         (_Move_assign_base::operator=): Likewise.
4501         (_Extra_visit_slot_needed): Adjust.
4502         (__visit_invoke): Call with indices if it's an index visitor.
4503         (relops): Do single-visitation with an index visitor.
4504         (swap): Likewise.
4505         (__visitor_result_type): New.
4506
4507 2019-03-30  Eric Botcazou  <ebotcazou@adacore.com>
4508
4509         * src/c++17/fs_ops.cc (fs::permissions): Use std::errc::not_supported.
4510
4511 2019-03-28  Ville Voutilainen  <ville.voutilainen@gmail.com>
4512
4513         Don't revisit a variant we are already visiting.
4514         * include/std/variant (__variant_construct_single): New.
4515         (__variant_construct): Use it.
4516         (_M_destructive_move): Likewise.
4517         (_M_destructive_copy): Likewise.
4518         (_Copy_assign_base::operator=): Adjust.
4519         (_Move_assign_base::operator=): Likewise.
4520         (swap): Likewise.
4521
4522 2019-03-26  Jonathan Wakely  <jwakely@redhat.com>
4523
4524         PR libstdc++/85965
4525         * include/bits/hashtable.h (_Hashtable): Move static assertions to
4526         destructor so they are not evaluated until the _Key type is complete.
4527         * include/bits/stl_tree.h (_Rb_tree): Likewise.
4528         * testsuite/23_containers/set/85965.cc: New test.
4529         * testsuite/23_containers/unordered_set/85965.cc: New test.
4530         * testsuite/23_containers/map/48101_neg.cc: Replace "here" errors
4531         with regexp matching the corresponding _Rb_tree specialization.
4532         * testsuite/23_containers/multimap/48101_neg.cc: Likewise.
4533         * testsuite/23_containers/multiset/48101_neg.cc: Remove "here" error.
4534         * testsuite/23_containers/set/48101_neg.cc: Likewise.
4535         * testsuite/23_containers/unordered_map/48101_neg.cc: Likewise.
4536         * testsuite/23_containers/unordered_multimap/48101_neg.cc: Likewise.
4537         * testsuite/23_containers/unordered_multiset/48101_neg.cc: Likewise.
4538         * testsuite/23_containers/unordered_set/48101_neg.cc: Likewise.
4539
4540 2019-03-26  Ville Voutilainen  <ville.voutilainen@gmail.com>
4541
4542         PR libstdc++/89825
4543         Fix based on a suggestion by Antony Polukhin.
4544         * include/std/variant (__never_valueless): New.
4545         (_M_valid): Use it.
4546         (_Extra_visit_slot_needed): New.
4547         (_Multi_array): Use it.
4548         (_S_apply_all_alts): Likewise.
4549
4550 2019-03-26  Ville Voutilainen  <ville.voutilainen@gmail.com>
4551
4552         PR libstdc++/89824
4553         Fix based on a suggestion by Antony Polukhin.
4554         * include/std/variant (__gen_vtable): Don't reserve an
4555         additional table slot, _Multi_array already does that.
4556
4557 2019-03-26  Ville Voutilainen  <ville.voutilainen@gmail.com>
4558
4559         PR libstdc++/89816
4560         Fix based on a suggestion by Antony Polukhin.
4561         * include/std/variant (__variant_construct): Capture a pointer
4562         to the storage and visit just one variant.
4563
4564 2019-03-22  Jonathan Wakely  <jwakely@redhat.com>
4565
4566         * doc/xml/manual/backwards_compatibility.xml: Remove link to
4567         Doxygen-generated pages with unstable URL.
4568         * doc/xml/manual/concurrency_extensions.xml: Likewise.
4569         * doc/xml/manual/extensions.xml: Likewise.
4570         * doc/xml/manual/parallel_mode.xml: Likewise.
4571         * doc/xml/manual/support.xml: Likewise.
4572
4573         * include/bits/stl_algobase.h (__lg): Do arithmetic on type int to
4574         avoid -Wconversion warnings.
4575
4576 2019-03-21  Thomas Rodgers  <trodgers@redhat.com>
4577         
4578         * include/Makefile.am (std_header): Add ${std_srcdir}/execution.
4579         (pstl_srcdir, pstl_builddir, pstl_headers): New variables.
4580         (allstamped): Add stamp-pstl.
4581         (install-headers): Add ptsl_builddir.
4582         * include/Makefile.in: Regenerate.
4583         * include/bits/c++config: Add pstl configuration.
4584         * include/pstl/LICENSE.txt: New file.
4585         * include/pstl/algorithm_fwd.h: New file.
4586         * include/pstl/algorithm_impl.h: New file.
4587         * include/pstl/execution_defs.h: New file.
4588         * include/pstl/execution_impl.h: New file.
4589         * include/pstl/glue_algorithm_defs.h: New file.
4590         * include/pstl/glue_algorithm_impl.h: New file.
4591         * include/pstl/glue_execution_defs.h: New file.
4592         * include/pstl/glue_memory_defs.h: New file.
4593         * include/pstl/glue_memory_impl.h: New file.
4594         * include/pstl/glue_numeric_defs.h: New file.
4595         * include/pstl/glue_numeric_impl.h: New file.
4596         * include/pstl/memory_impl.h: New file.
4597         * include/pstl/numeric_fwd.h: New file.
4598         * include/pstl/numeric_impl.h: New file.
4599         * include/pstl/parallel_backend.h: New file.
4600         * include/pstl/parallel_backend_tbb.h: New file.
4601         * include/pstl/parallel_backend_utils.h: New file.
4602         * include/pstl/parallel_impl.h: New file.
4603         * include/pstl/pstl_config.h: New file.
4604         * include/pstl/unseq_backend_simd.h: New file.
4605         * include/pstl/utils.h: New file.
4606         * include/std/algorithm: Include parallel algorithm implementations.
4607         * include/std/execution: New file.
4608         * include/std/memory: Include parallel algorithm implementations.
4609         * include/std/numeric: Include parallel algorithm implementations.
4610         * include/std/version: Add parallel algorithms feature test macro.
4611         * testsuite/util/pstl/pstl_test_config.h: New file.
4612         * testsuite/util/pstl/test_utils.h: New file.
4613         * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file.
4614         * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file.
4615         * testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file.
4616         * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file.
4617         * testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file.
4618         * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file.
4619         * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file.
4620         * testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file.
4621         * testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file.
4622         * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file.
4623         * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file.
4624         * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file.
4625         * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file.
4626         * testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file.
4627         * testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file.
4628         * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file.
4629         * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file.
4630         * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file.
4631         * testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file.
4632         * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file.
4633         * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file.
4634         * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file.
4635         * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file.
4636         * testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file.
4637         * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file.
4638         * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file.
4639         * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file.
4640         * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file.
4641         * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file.
4642         * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file.
4643         * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file.
4644         * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file.
4645         * testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file.
4646         * testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file.
4647         * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file.
4648         * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file.
4649         * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file.
4650         * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file.
4651         * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file.
4652         * testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file.
4653         * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file.
4654         * testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file.
4655         * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file.
4656         * testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file.
4657         * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file.
4658         * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file.
4659         * testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file.
4660         * testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file.
4661         * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file.
4662         * testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file.
4663         * testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file.
4664         * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file.
4665         * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file.
4666         * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file.
4667         * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file.
4668         * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file.
4669         * testsuite/testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file.
4670         * testsuite/testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file.
4671         * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file.
4672         * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file.
4673         * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file.
4674         * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file.
4675         * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file.
4676         * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file.
4677         * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file.
4678         * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file.
4679         * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file.
4680         * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file.
4681         * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file.
4682         * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file.
4683         * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file.
4684         * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file.
4685         * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file.
4686         * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file.
4687         * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file.
4688         * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file.
4689         * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file.
4690         * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file.
4691         * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file.
4692         * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file.
4693         * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file.
4694         * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file.
4695         * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file.
4696         * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file.
4697         * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file.
4698         * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file.
4699         * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file.
4700         * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file.
4701         * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file.
4702         * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file.
4703         * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file.
4704         * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file.
4705         * testsuite/testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file.
4706         * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file.
4707         * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file.
4708         * testsuite/testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file.
4709         * testsuite/testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file.
4710         * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file.
4711         * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file.
4712         * testsuite/testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file.
4713         * testsuite/testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file.
4714         * testsuite/testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file.
4715         * testsuite/testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file.
4716         * testsuite/testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file.
4717         * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file.
4718         * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file.
4719
4720 2019-03-21  Jonathan Wakely  <jwakely@redhat.com>
4721
4722         * include/c_compatibility/math.h [!__STDCPP_WANT_MATH_SPEC_FUNCS__]
4723         (assoc_laguerre, assoc_laguerref, assoc_laguerrel, assoc_legendre)
4724         (assoc_legendref, assoc_legendrel, beta, betaf, betal, comp_ellint_1)
4725         (comp_ellint_1f, comp_ellint_1l, comp_ellint_2, comp_ellint_2f)
4726         (comp_ellint_2l, comp_ellint_3, comp_ellint_3f, comp_ellint_3l)
4727         (cyl_bessel_i, cyl_bessel_if, cyl_bessel_il, cyl_bessel_j)
4728         (cyl_bessel_jf, cyl_bessel_jl, cyl_bessel_k, cyl_bessel_kf)
4729         (cyl_bessel_kl, cyl_neumann, cyl_neumannf, cyl_neumannl, ellint_1)
4730         (ellint_1f, ellint_1l, ellint_2, ellint_2f, ellint_2l, ellint_3)
4731         (ellint_3f, ellint_3l, expint, expintf, expintl, hermite, hermitef)
4732         (hermitel, laguerre, laguerref, laguerrel, legendre, legendref)
4733         (legendrel, riemann_zeta, riemann_zetaf, riemann_zetal, sph_bessel)
4734         (sph_besself, sph_bessell, sph_legendre, sph_legendref, sph_legendrel)
4735         (sph_neumann, sph_neumannf, sph_neumannl): Only add using-declarations
4736         when the special functions IS is enabled, not for C++17.
4737         * testsuite/26_numerics/headers/cmath/functions_global_c++17.cc:
4738         Replace with ...
4739         * testsuite/26_numerics/headers/cmath/functions_global.cc: New test,
4740         without checks for special functions in C++17.
4741         * testsuite/26_numerics/headers/cmath/special_functions_global.cc:
4742         New test.
4743
4744         PR libstdc++/88066
4745         * include/backward/hash_map: Use <> for includes not "".
4746         * include/backward/hash_set: Likewise.
4747         * include/backward/strstream: Likewise.
4748         * include/tr1/bessel_function.tcc: Likewise.
4749         * include/tr1/exp_integral.tcc: Likewise.
4750         * include/tr1/legendre_function.tcc: Likewise.
4751         * include/tr1/modified_bessel_func.tcc: Likewise.
4752         * include/tr1/riemann_zeta.tcc: Likewise.
4753
4754 2019-03-19  Jonathan Wakely  <jwakely@redhat.com>
4755
4756         * doc/xml/manual/allocator.xml: Link to table documenting evolution
4757         of extension allocators.
4758         * doc/xml/manual/evolution.xml: Use angle brackets for header names.
4759         Document new headers in 7.2, 8.1 and 9.1 releases.
4760         * doc/xml/manual/using.xml: Adjust link target for new_allocator.
4761         * doc/html/*: Regenerate.
4762
4763 2019-03-12  John David Anglin  <dave.anglin@bell.net>
4764
4765         PR libstdc++/89461
4766         * testsuite/lib/libstdc++.exp: Locate libatomic.
4767         * testsuite/lib/dg-options.exp (add_options_for_libatomic): New.
4768         * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Add
4769         libatomic options.
4770         * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
4771         * testsuite/experimental/net/timer/waitable/cons.cc: Likewise.
4772         * testsuite/experimental/net/timer/waitable/dest.cc: Likewise.
4773         * testsuite/experimental/net/timer/waitable/ops.cc: Likewise.
4774
4775 2019-03-11  Jonathan Wakely  <jwakely@redhat.com>
4776
4777         PR libstdc++/89460
4778         * configure.ac: Check for sockatmark.
4779         * crossconfig.m4: Check for sockatmark.
4780         * config.h.in: Regenerate.
4781         * configure: Regenerate.
4782         * include/experimental/internet (address_v4::_S_hton): Rename
4783         overloaded functions to _S_hton_16 and _S_ntoh_16.
4784         (address_v4::_S_ntoh): Rename to _S_ntoh_16 and _S_ntoh_32.
4785         (basic_endpoint): Adjust calls to _S_hton and _S_ntoh.
4786         * include/experimental/socket (basic_socket::at_mark): Check
4787         _GLIBCXX_HAVE_SOCKATMARK.
4788
4789         * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc: Use
4790         const variables instead of macros.
4791
4792         PR libstdc++/89629
4793         * libsupc++/hash_bytes.cc [__SIZEOF_SIZE_T__ == 8] (_Hash_bytes):
4794         Use correct type for len_aligned.
4795         * testsuite/20_util/hash/89629.cc: New test.
4796
4797 2019-03-11  Jakub Jelinek  <jakub@redhat.com>
4798
4799         PR libstdc++/89641
4800         * include/std/atomic (atomic<T>::store, atomic<T>::load,
4801         atomic<T>::exchange, atomic<T>::compare_exchange_weak,
4802         atomic<T>::compare_exchange_strong): Cast __m or __s and __f to int.
4803         * include/bits/atomic_base.h (__atomic_base<T>::operator++,
4804         __atomic_base<T>::operator--, __atomic_base<T>::operator+=,
4805         __atomic_base<T>::operator-=, __atomic_base<T>::operator&=,
4806         __atomic_base<T>::operator|=, __atomic_base<T>::operator^=,
4807         __atomic_base<T*>::operator++, __atomic_base<T*>::operator--,
4808         __atomic_base<T*>::operator+=, __atomic_base<T*>::operator-=): Cast
4809         memory_order_seq_cst to int.
4810
4811 2019-03-08  Jonathan Wakely  <jwakely@redhat.com>
4812
4813         * doc/xml/manual/using.xml: Use link element instead of xref.
4814         * doc/html/*: Regenerate.
4815
4816         * include/bits/fs_path.h (path::format): Add fixed underlying type.
4817
4818 2019-03-08  François Dumont  <fdumont@gcc.gnu.org>
4819
4820         PR libstdc++/89477
4821         * include/debug/map.h (map): Use _RequireNotAllocator to constrain
4822         parameters in deduction guides.
4823         * include/debug/multimap.h (multimap): Likewise.
4824         * include/debug/set.h (multimap): Likewise.
4825         * include/debug/multiset.h (multimap): Likewise.
4826         * include/debug/unordered_map (unordered_map): Likewise.
4827         (unordered_multimap): Likewise.
4828         * include/debug/unordered_set (unordered_set): Likewise.
4829         (unordered_multiset): Likewise.
4830
4831         PR libstdc++/89608
4832         * include/debug/unordered_map (unordered_map<>::_M_check_rehashed):
4833         Invalidate all iterators in case of rehash.
4834         (unordered_multimap<>::_M_check_rehashed): Likewise.
4835         * include/debug/unordered_set
4836         (unordered_set<>::_M_check_rehashed): Likewise.
4837         (unordered_multiset<>::_M_check_rehashed): Likewise.
4838         * testsuite/23_containers/unordered_set/debug/89608_neg.cc: New.
4839
4840 2019-03-07  Andreas Schwab  <schwab@suse.de>
4841
4842         * config/abi/post/riscv64-linux-gnu: New directory.
4843         * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: New file.
4844
4845 2019-03-07  Jonathan Wakely  <jwakely@redhat.com>
4846
4847         * testsuite/20_util/function_objects/bind_front/1.cc: Change from
4848         compile test to run. Fix typo.
4849
4850         * doc/xml/manual/status_cxx2020.xml: Update C++20 status.
4851         * doc/html/*: Regenerate.
4852
4853         P0356R5 Simplified partial function application
4854         * include/std/functional [C++20] (_Bind_front, _Bind_front_t): Define
4855         helpers for bind_front.
4856         (bind_front, __cpp_lib_bind_front): Define.
4857         * testsuite/20_util/function_objects/bind_front/1.cc: New test.
4858
4859 2019-03-06  Jonathan Wakely  <jwakely@redhat.com>
4860
4861         * include/std/type_traits (__cpp_lib_bounded_array_traits): Define.
4862         * include/std/version (__cpp_lib_bounded_array_traits): Likewise.
4863         * testsuite/20_util/is_bounded_array/value.cc: Check for macro.
4864         * testsuite/20_util/is_unbounded_array/value.cc: Likewise.
4865
4866 2019-03-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
4867
4868         PR libstdc++/86655 - std::assoc_legendre should not constrain
4869         the value of m (or x).
4870         * include/tr1/legendre_function.tcc (__assoc_legendre_p,
4871         __sph_legendre): If degree > order Don't throw, return 0.
4872         (__legendre_p, __assoc_legendre_p): Don't constrain x either.
4873         * testsuite/special_functions/02_assoc_legendre/pr86655.cc: New test.
4874         * testsuite/special_functions/20_sph_legendre/pr86655.cc: New test.
4875         * testsuite/tr1/5_numerical_facilities/special_functions/
4876         02_assoc_legendre/pr86655.cc: New test.
4877         * testsuite/tr1/5_numerical_facilities/special_functions/
4878         22_sph_legendre/pr86655.cc: New test.
4879
4880 2019-03-06  Ville Voutilainen  <ville.voutilainen@gmail.com>
4881
4882         Rewrite variant.
4883         Also PR libstdc++/85517
4884         * include/std/variant (__do_visit): New.
4885         (__variant_cast): Likewise.
4886         (__variant_cookie): Likewise.
4887         (__erased_*): Remove.
4888         (_Variant_storage::_S_vtable): Likewise.
4889         (_Variant_storage::__M_reset_impl): Adjust to use __do_visit.
4890         (_Variant_storage::__M_reset): Adjust.
4891         (__variant_construct): New.
4892         (_Copy_ctor_base(const _Copy_ctor_base&)): Adjust to use
4893         __variant_construct.
4894         (_Move_ctor_base(_Move_ctor_base&&)): Likewise.
4895         (_Move_ctor_base::__M_destructive_copy): New.
4896         (_Move_ctor_base::__M_destructive_move): Adjust to use
4897         __variant_construct.
4898         (_Copy_assign_base::operator=): Adjust to use __do_visit.
4899         (_Copy_assign_alias): Adjust to check both copy assignment
4900         and copy construction for triviality.
4901         (_Move_assign_base::operator=): Adjust to use __do_visit.
4902         (_Multi_array): Add support for visitors that accept and return
4903         a __variant_cookie.
4904         (__gen_vtable_impl::_S_apply_all_alts): Likewise.
4905         (__gen_vtable_impl::_S_apply_single_alt): Likewise.
4906         (__gen_vtable_impl::__element_by_index_or_cookie): New. Generate
4907         a __variant_cookie temporary for a variant that is valueless and..
4908         (__gen_vtable_impl::__visit_invoke): ..adjust here.
4909         (__gen_vtable::_Array_type): Conditionally make space for
4910         the __variant_cookie visitor case.
4911         (__variant_construct_by_index): New.
4912         (get_if): Adjust to use std::addressof.
4913         (relops): Adjust to use __do_visit.
4914         (variant): Add __variant_cast and __variant_construct_by_index
4915         as friends.
4916         (variant::emplace): Use _M_reset() and __variant_construct_by_index
4917         instead of self-destruction.
4918         (variant::swap): Adjust to use __do_visit.
4919         (visit): Reimplement in terms of __do_visit.
4920         (__variant_hash_call_base_impl::operator()): Adjust to use __do_visit.
4921         * testsuite/20_util/variant/compile.cc: Adjust.
4922         * testsuite/20_util/variant/run.cc: Likewise.
4923
4924 2019-03-06  Jonathan Wakely  <jwakely@redhat.com>
4925
4926         * include/bits/c++config.h (_cpp_lib_char8_t): Add L suffix to
4927         constant.
4928         * testsuite/experimental/feat-char8_t.cc: Likewise.
4929
4930          * include/std/type_traits [C++20] (is_bounded_array)
4931          (is_unbounded_array, is_bounded_array_v, is_unbounded_array_v):
4932          Define.
4933          * testsuite/20_util/is_bounded_array/requirements/
4934          explicit_instantiation.cc: New test.
4935          * testsuite/20_util/is_bounded_array/requirements/typedefs.cc: New
4936          test.
4937          * testsuite/20_util/is_bounded_array/value.cc: New test.
4938          * testsuite/20_util/is_unbounded_array/requirements/
4939          explicit_instantiation.cc: New test.
4940          * testsuite/20_util/is_unbounded_array/requirements/typedefs.cc: New
4941          * test.
4942          * testsuite/20_util/is_unbounded_array/value.cc: New test.
4943
4944         * include/bits/ptr_traits.h [C++20] (pointer_traits<T*>::pointer_to):
4945         Add constexpr.
4946         * testsuite/20_util/pointer_traits/pointer_to_constexpr.cc: New test.
4947
4948 2019-03-05  Jonathan Wakely  <jwakely@redhat.com>
4949
4950         * include/c_compatibility/math.h [C++20] (lerp): Add using
4951         declaration.
4952         * include/c_global/cmath [C++20] (__cpp_lib_interpolate): Define.
4953         (__lerp): Define function template to implement lerp.
4954         (lerp(float, float, float), lerp(double, double, double))
4955         (lerp(long double, long double, long double)): Define for C++20.
4956         * include/std/numeric [C++20] (__cpp_lib_interpolate): Define.
4957         (midpoint(T, T), midpoint(T*, T*)): Define.
4958         * include/std::version [C++20] (__cpp_lib_interpolate): Define.
4959         * testsuite/26_numerics/lerp.cc: New test.
4960         * testsuite/26_numerics/midpoint/floating.cc: New test.
4961         * testsuite/26_numerics/midpoint/integral.cc: New test.
4962         * testsuite/26_numerics/midpoint/pointer.cc: New test.
4963
4964 2019-03-04  Edward Smith-Rowland  <3dw4rd@verizon.net>
4965
4966         PR libstdc++/88996 Implement P0439R0
4967         Make std::memory_order a scoped enumeration.
4968         * include/bits/atomic_base.h: For C++20 make memory_order a scoped enum,
4969         add variables for the old enumerators.  Adjust calls.
4970         * testsuite/29_atomics/headers/atomic/types_std_c++2a.cc: New test.
4971         * testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc: New test.
4972
4973 2019-03-04  Jonathan Wakely  <jwakely@redhat.com>
4974
4975         * testsuite/26_numerics/bit/bitops.rot/rotl.cc: Remove bogus dg-do
4976         directive.
4977
4978         * include/std/memory_resource (polymorphic_allocator): Add default
4979         template argument for C++20.
4980         (polymorphic_allocator::allocate_bytes)
4981         (polymorphic_allocator::deallocate_bytes)
4982         (polymorphic_allocator::allocate_object)
4983         (polymorphic_allocator::deallocate_object)
4984         (polymorphic_allocator::new_object)
4985         (polymorphic_allocator::delete_object): New member functions for
4986         C++20.
4987         * testsuite/20_util/polymorphic_allocator/allocate_object.cc: New
4988         test.
4989
4990 2019-03-03  Jonathan Wakely  <jwakely@redhat.com>
4991
4992         PR libstdc++/89562
4993         * src/filesystem/ops-common.h (do_copy_file): Open files in binary
4994         mode for mingw.
4995
4996 2019-03-01  Jonathan Wakely  <jwakely@redhat.com>
4997
4998         * testsuite/util/testsuite_allocator.h (__gnu_test::memory_resource)
4999         [!__cpp_sized_deallocation]: Do not pass size to operator delete.
5000
5001         * include/std/memory (uses_allocator_construction_args): New set of
5002         overloaded functions.
5003         (make_obj_using_allocator, uninitialized_construct_using_allocator):
5004         New functions.
5005         * include/std/memory_resource (polymorphic_allocator::construct)
5006         [__cplusplus > 201703l]: Replace all overloads with a single function
5007         using uses_allocator_construction_args.
5008         * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: New
5009         test.
5010         * testsuite/20_util/uses_allocator/make_obj.cc: New test.
5011
5012 2019-02-27  Jonathan Wakely  <jwakely@redhat.com>
5013
5014         PR libstdc++/89466
5015         * acinclude.m4 (GLIBCXX_CONFIGURE_DOCBOOK): Reorder check for local
5016         stylesheet directories before check for xsltproc. Try to use
5017         xmlcatalog to find local stylesheet directory before trying hardcoded
5018         paths. Add path used by suse to hardcoded paths. Adjust xsltproc
5019         check to look for the same stylesheet as doc/Makefile.am uses. Don't
5020         use xsltproc if xmlcatalog fails to find a local stylesheet.
5021         * configure.ac: Check for xmlcatalog.
5022         * Makefile.in: Regenerate.
5023         * configure: Likewise.
5024         * doc/Makefile.in: Likewise.
5025         * include/Makefile.in: Likewise.
5026         * libsupc++/Makefile.in: Likewise.
5027         * po/Makefile.in: Likewise.
5028         * python/Makefile.in: Likewise.
5029         * src/Makefile.in: Likewise.
5030         * src/c++11/Makefile.in: Likewise.
5031         * src/c++17/Makefile.in: Likewise.
5032         * src/c++98/Makefile.in: Likewise.
5033         * src/filesystem/Makefile.in: Likewise.
5034         * testsuite/Makefile.in: Likewise.
5035
5036 2019-02-26  Jonathan Wakely  <jwakely@redhat.com>
5037
5038         PR libstdc++/89477
5039         * include/bits/alloc_traits.h (_RequireNotAllocator): New helper for
5040         container deduction guides.
5041         * include/bits/hashtable.h (_RequireNotAllocatorOrIntegral): Likewise.
5042         * include/bits/stl_map.h (map): Use _RequireNotAllocator to constrain
5043         parameters in deduction guides.
5044         * include/bits/stl_multimap.h (multimap): Likewise.
5045         * include/bits/stl_multiset.h (multiset): Likewise.
5046         * include/bits/stl_queue.h (queue, priority_queue): Likewise.
5047         * include/bits/stl_set.h (set): Likewise.
5048         * include/bits/stl_stack.h (stack): Likewise.
5049         * include/bits/unordered_map.h (unordered_map, unordered_multimap):
5050         use _RequireNotAllocator and _RequireNotAllocatorOrIntegral to
5051         constrain parameters in deduction guides.
5052         * include/bits/unordered_set.h (unordered_set, unordered_multiset):
5053         Likewise.
5054         * testsuite/23_containers/map/cons/deduction.cc: Test additional
5055         deduction cases.
5056         * testsuite/23_containers/multiset/cons/deduction.cc: Likewise.
5057         * testsuite/23_containers/set/cons/deduction.cc: Likewise.
5058         * testsuite/23_containers/unordered_map/cons/deduction.cc: Likewise.
5059         * testsuite/23_containers/unordered_multimap/cons/deduction.cc:
5060         Likewise.
5061         * testsuite/23_containers/unordered_multiset/cons/deduction.cc:
5062         Likewise.
5063         * testsuite/23_containers/unordered_set/cons/deduction.cc: Likewise.
5064
5065         PR libstdc++/89416
5066         * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Change
5067         to class template and partial specialization using void_t.
5068         (__is_copy_insertable, __is_move_insertable): Adjust base class.
5069
5070 2019-02-24  Jonathan Wakely  <jwakely@redhat.com>
5071
5072         PR libstdc++/89416
5073         * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Make
5074         copy and move members public.
5075
5076 2019-02-23  Jonathan Wakely  <jwakely@redhat.com>
5077
5078         * include/std/type_traits (__underlying_type_impl): New helper to
5079         make underlying_type SFINAE-friendly.
5080         (underlying_type): Derive from __underlying_type_impl.
5081         * testsuite/20_util/underlying_type/requirements/typedefs-3.cc: New
5082         test.
5083
5084         PR libstdc++/89446
5085         * include/bits/char_traits.h (__constant_char_array): Check index is
5086         in range before dereferencing.
5087         (char_traits<char>::compare, char_traits<char>::find)
5088         (char_traits<char8_t>::compare, char_traits<char8_t>::find): Return
5089         immediately if n is zero.
5090         (char_traits<wchar_t>::compare, char_traits<wchar_t>::find): Likewise.
5091         Remove workarounds for PR 67026.
5092         * testsuite/21_strings/basic_string_view/operators/char/89446.cc:
5093         New test.
5094         * testsuite/21_strings/basic_string_view/operators/wchar_t/89446.cc:
5095         New test.
5096
5097 2019-02-22  Eric Botcazou  <ebotcazou@adacore.com>
5098
5099         * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: Adjust.
5100         * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: Likewise.
5101
5102 2019-02-22  Jakub Jelinek  <jakub@redhat.com>
5103
5104         PR libstdc++/89402
5105         * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Change return
5106         type to std::size_t and argument to type to long double.
5107
5108 2019-02-22  Eric Botcazou  <ebotcazou@adacore.com>
5109
5110         * configure.host (abi_baseline_pair): Adjust for SPARC64/Linux.
5111         * config/abi/post/sparc64-linux-gnu: New directory.
5112         * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: New file.
5113         * config/abi/post/sparc64-linux-gnu/32: New directory.
5114         * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: New file.
5115
5116 2019-02-21  Jonathan Wakely  <jwakely@redhat.com>
5117
5118         * testsuite/29_atomics/headers/atomic/types_std_c++20.cc: New test.
5119         * testsuite/29_atomics/headers/atomic/types_std_c++20_neg.cc: New
5120         test.
5121
5122 2019-02-22  Tom Honermann  <tom@honermann.net>
5123
5124         * python/libstdcxx/v6/printers.py (register_type_printers): Add type
5125         printers for u8string and u8string_view.
5126
5127 2019-02-22  Tom Honermann  <tom@honermann.net>
5128
5129         * testsuite/18_support/byte/ops.cc: Validate
5130         std::to_integer<char8_t>, std::to_integer<char16_t>, and
5131         std::to_integer<char32_t>.
5132         * testsuite/18_support/numeric_limits/dr559.cc: Validate
5133         std::numeric_limits<char8_t>.
5134         * testsuite/18_support/numeric_limits/lowest.cc: Validate
5135         std::numeric_limits<char8_t>::lowest().
5136         * testsuite/18_support/numeric_limits/max_digits10.cc: Validate
5137         std::numeric_limits<char8_t>::max_digits10.
5138         * testsuite/18_support/type_info/fundamental.cc: Validate
5139         typeinfo for char8_t.
5140         * testsuite/20_util/from_chars/1_c++20_neg.cc: New test, validating
5141         std::from_chars with char8_t.
5142         * testsuite/20_util/hash/requirements/explicit_instantiation.cc:
5143         Validate explicit instantiation of std::hash<char8_t>.
5144         * testsuite/20_util/is_integral/value.cc: Validate
5145         std::is_integral<char8_t>.
5146         * testsuite/20_util/make_signed/requirements/typedefs-4.cc:
5147         Validate std::make_signed<char8_t>.
5148         * testsuite/21_strings/basic_string/cons/char/deduction.cc:
5149         Validate u8string construction from char8_t sources.
5150         * testsuite/21_strings/basic_string/types/pmr_typedefs.cc: Validate
5151         std::pmr::u8string.
5152         * testsuite/21_strings/basic_string_view/operations/compare/
5153         char/70483.cc: Validate substr operations on u8string_view.
5154         * testsuite/21_strings/basic_string_view/typedefs.cc: Validate that
5155         the u8string_view typedef is defined.
5156         * testsuite/21_strings/char_traits/requirements/
5157         constexpr_functions.cc: Validate char_traits<char8_t> constexpr
5158         member functions.
5159         * testsuite/21_strings/char_traits/requirements/
5160         constexpr_functions_c++17.cc: Validate char_traits<char8_t> C++17
5161         constexpr member functions.
5162         * testsuite/21_strings/headers/string/types_std_c++0x.cc: Validate
5163         that the u8string typedef is defined.
5164         * testsuite/22_locale/locale/cons/unicode.cc: Validate the presence
5165         of the std::codecvt<char16_t, char8_t, std::mbstate_t> and
5166         std::codecvt<char32_t, char8_t, std::mbstate_t> facets.
5167         * testsuite/29_atomics/atomic/cons/assign_neg.cc: Update line
5168         numbers.
5169         * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise.
5170         * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc:
5171         Likewise.
5172         * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise.
5173         * testsuite/29_atomics/atomic_integral/is_always_lock_free.cc:
5174         Validate std::atomic<char8_t>::is_always_lock_free
5175         * testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc:
5176         Update line numbers.
5177         * testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc:
5178         Likewise.
5179         * testsuite/29_atomics/atomic_integral/operators/increment_neg.cc:
5180         Likewise.
5181         * testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc:
5182         Validate std::experimental::pmr::u8string.
5183         * testsuite/experimental/string_view/typedefs.cc: Validate that the
5184         u8string_view typedef is defined.
5185         * testsuite/util/testsuite_common_types.h: Add char8_t, char16_t and
5186         char32_t to the typelists.
5187
5188 2019-02-22  Tom Honermann  <tom@honermann.net>
5189
5190         * include/ext/typelist.h: Constrain a partial specialization of
5191         typelist::detail::append_ to only match chain<T1,T2>.
5192
5193 2019-02-21  Jonathan Wakely  <jwakely@redhat.com>
5194
5195         PR libstdc++/89416
5196         * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Replace
5197         class template with class. Replace move and copy member types with
5198         member alias templates, so they are only instantiated when needed.
5199         (__is_copy_insertable, __is_move_insertable): Adjust base class.
5200         * testsuite/23_containers/vector/modifiers/push_back/89130.cc: Enable
5201         test for C++11/14/17 as well.
5202         * testsuite/23_containers/vector/modifiers/push_back/89416.cc: New
5203         test.
5204
5205 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
5206
5207         PR libstdc++/89402
5208         * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Add
5209         _GLIBCXX_PURE to the alias declaration.
5210
5211 2019-02-19  Jonathan Wakely  <jwakely@redhat.com>
5212
5213         * testsuite/21_strings/basic_string/literals/types.cc
5214         [_GLIBCXX_USE_CHAR8_T]: Adjust expected string type for u8 literal.
5215         * testsuite/21_strings/basic_string/literals/values.cc
5216         [_GLIBCXX_USE_CHAR8_T]: Likewise.
5217         * testsuite/22_locale/codecvt/char16_t.cc: Adjust for u8 literals
5218         potentially having different type.
5219         * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
5220         * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: Cast u8 literal
5221         to char.
5222         * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: Likewise.
5223         * testsuite/22_locale/codecvt/utf8.cc: Likewise.
5224         * testsuite/22_locale/conversions/string/2.cc: Remove u8 prefix from
5225         string literals only using basic character set.
5226         * testsuite/22_locale/conversions/string/3.cc: Likewise. Cast other
5227         u8 literals to char.
5228         * testsuite/29_atomics/headers/atomic/macros.cc [_GLIBCXX_USE_CHAR8_T]:
5229         Test ATOMIC_CHAR8_T_LOCK_FREE.
5230         Add missing #error to ATOMIC_CHAR16_T_LOCK_FREE test.
5231         * testsuite/29_atomics/headers/atomic/types_std_c++0x.cc
5232         [_GLIBCXX_USE_CHAR8_T]: Check for std::atomic_char8_t.
5233         * testsuite/experimental/string_view/literals/types.cc
5234         [_GLIBCXX_USE_CHAR8_T]: Adjust expected string_view type for u8
5235         literal.
5236         * testsuite/experimental/string_view/literals/values.cc
5237         [_GLIBCXX_USE_CHAR8_T]: Likewise.
5238
5239 2019-02-19  Tom Honermann  <tom@honermann.net>
5240
5241         * testsuite/18_support/numeric_limits/char8_t.cc: New test cloned
5242         from char16_32_t.cc; validates numeric_limits<char8_t>.
5243         * testsuite/21_strings/basic_string/literals/types-char8_t.cc: New
5244         test cloned from types.cc; validates operator""s for char8_t
5245         returns u8string.
5246         * testsuite/21_strings/basic_string/literals/values-char8_t.cc: New
5247         test cloned from values.cc; validates construction and comparison
5248         of u8string values.
5249         * testsuite/21_strings/basic_string/requirements/
5250         /explicit_instantiation/char8_t/1.cc: New test cloned from
5251         char16_t/1.cc; validates explicit instantiation of
5252         basic_string<char8_t>.
5253         * testsuite/21_strings/basic_string_view/literals/types-char8_t.cc:
5254         New test cloned from types.cc; validates operator""sv for char8_t
5255         returns u8string_view.
5256         * testsuite/21_strings/basic_string_view/literals/
5257         values-char8_t.cc: New test cloned from values.cc; validates
5258         construction and comparison of u8string_view values.
5259         * testsuite/21_strings/basic_string_view/requirements/
5260         explicit_instantiation/char8_t/1.cc: New test cloned from
5261         char16_t/1.cc; validates explicit instantiation of
5262         basic_string_view<char8_t>.
5263         * testsuite/21_strings/char_traits/requirements/char8_t/65049.cc:
5264         New test cloned from char16_t/65049.cc; validates that
5265         char_traits<char8_t> is not vulnerable to the concerns in PR65049.
5266         * testsuite/21_strings/char_traits/requirements/char8_t/
5267         typedefs.cc: New test cloned from char16_t/typedefs.cc; validates
5268         that char_traits<char8_t> member typedefs are present and correct.
5269         * testsuite/21_strings/char_traits/requirements/
5270         explicit_instantiation/char8_t/1.cc: New test cloned from
5271         char16_t/1.cc; validates explicit instantiation of
5272         char_traits<char8_t>.
5273         * testsuite/22_locale/codecvt/char16_t-char8_t.cc: New test cloned
5274         from char16_t.cc: validates
5275         codecvt<char16_t, char8_t, mbstate_t>.
5276         * testsuite/22_locale/codecvt/char32_t-char8_t.cc: New test cloned
5277         from char32_t.cc: validates
5278         codecvt<char32_t, char8_t, mbstate_t>.
5279         * testsuite/22_locale/codecvt/utf8-char8_t.cc: New test cloned from
5280         utf8.cc; validates codecvt<char16_t, char8_t, std::mbstate_t> and
5281         codecvt<char32_t, char8_t, std::mbstate_t>.
5282         * testsuite/27_io/filesystem/path/native/string-char8_t.cc: New
5283         test cloned from string.cc; validates filesystem::path construction
5284         from char8_t input.
5285         * testsuite/experimental/feat-char8_t.cc: New test; validates that
5286         the __cpp_lib_char8_t feature test macro is defined with the
5287         correct value.
5288         * testsuite/experimental/filesystem/path/native/string-char8_t.cc:
5289         New test cloned from string.cc; validates filesystem::path
5290         construction from char8_t input.
5291         * testsuite/experimental/string_view/literals/types-char8_t.cc: New
5292         test cloned from types.cc; validates operator""sv for char8_t
5293         returns u8string_view.
5294         * testsuite/experimental/string_view/literals/values-char8_t.cc:
5295         New test cloned from values.cc; validates construction and
5296         comparison of u8string_view values.
5297         * testsuite/experimental/string_view/requirements/
5298         explicit_instantiation/char8_t/1.cc: New test cloned from
5299         char16_t/1.cc; validates explicit instantiation of
5300         basic_string_view<char8_t>.
5301         * testsuite/ext/char8_t/atomic-1.cc: New test; validates that
5302         ATOMIC_CHAR8_T_LOCK_FREE is not defined if char8_t support is not
5303         enabled.
5304
5305 2019-02-19  Tom Honermann  <tom@honermann.net>
5306
5307         P0482R5 char8_t: Standard library support
5308         * config/abi/pre/gnu-versioned-namespace.ver (CXXABI_2.0): Add
5309         typeinfo symbols for char8_t.
5310         * config/abi/pre/gnu.ver: Add CXXABI_1.3.12.
5311         (GLIBCXX_3.4.26): Add symbols for specializations of
5312         numeric_limits and codecvt that involve char8_t.
5313         (CXXABI_1.3.12): Add typeinfo symbols for char8_t.
5314         * include/bits/atomic_base.h: Add atomic_char8_t.
5315         * include/bits/basic_string.h: Add std::hash<u8string> and
5316         operator""s(const char8_t*, size_t).
5317         * include/bits/c++config: Define _GLIBCXX_USE_CHAR8_T and
5318         __cpp_lib_char8_t.
5319         * include/bits/char_traits.h: Add char_traits<char8_t>.
5320         * include/bits/codecvt.h: Add
5321         codecvt<char16_t, char8_t, mbstate_t>,
5322         codecvt<char32_t, char8_t, mbstate_t>,
5323         codecvt_byname<char16_t, char8_t, mbstate_t>, and
5324         codecvt_byname<char32_t, char8_t, mbstate_t>.
5325         * include/bits/cpp_type_traits.h: Add __is_integer<char8_t> to
5326         recognize char8_t as an integral type.
5327         * include/bits/fs_path.h: (path::__is_encoded_char): Recognize
5328         char8_t.
5329         (path::u8string): Return std::u8string when char8_t support is
5330         enabled.
5331         (path::generic_u8string): Likewise.
5332         (path::_S_convert): Handle conversion from char8_t input.
5333         (path::_S_str_convert): Likewise.
5334         * include/bits/functional_hash.h: Add hash<char8_t>.
5335         * include/bits/locale_conv.h (__str_codecvt_out): Add overloads for
5336         char8_t.
5337         * include/bits/locale_facets.h (_GLIBCXX_NUM_UNICODE_FACETS): Bump
5338         for new char8_t specializations.
5339         * include/bits/localefwd.h: Add missing declarations of
5340         codecvt<char16_t, char, mbstate_t> and
5341         codecvt<char32_t, char, mbstate_t>.  Add char8_t declarations
5342         codecvt<char16_t, char8_t, mbstate_t> and
5343         codecvt<char32_t, char8_t, mbstate_t>.
5344         * include/bits/postypes.h: Add u8streampos
5345         * include/bits/stringfwd.h: Add declarations of
5346         char_traits<char8_t> and u8string.
5347         * include/c_global/cstddef: Add __byte_operand<char8_t>.
5348         * include/experimental/bits/fs_path.h (path::__is_encoded_char):
5349         Recognize char8_t.
5350         (path::u8string): Return std::u8string when char8_t support is
5351         enabled.
5352         (path::generic_u8string): Likewise.
5353         (path::_S_convert): Handle conversion from char8_t input.
5354         (path::_S_str_convert): Likewise.
5355         * include/experimental/string: Add u8string.
5356         * include/experimental/string_view: Add u8string_view,
5357         hash<experimental::u8string_view>, and
5358         operator""sv(const char8_t*, size_t).
5359         * include/std/atomic: Add atomic<char8_t> and atomic_char8_t.
5360         * include/std/charconv (__is_int_to_chars_type): Recognize char8_t
5361         as a character type.
5362         * include/std/limits: Add numeric_limits<char8_t>.
5363         * include/std/string_view: Add u8string_view,
5364         hash<experimental::u8string_view>, and
5365         operator""sv(const char8_t*, size_t).
5366         * include/std/type_traits: Add __is_integral_helper<char8_t>,
5367         __make_unsigned<char8_t>, and __make_signed<char8_t>.
5368         * libsupc++/atomic_lockfree_defines.h: Define
5369         ATOMIC_CHAR8_T_LOCK_FREE.
5370         * src/c++11/Makefile.am: Compile with -fchar8_t when compiling
5371         codecvt.cc and limits.cc so that char8_t specializations of
5372         numeric_limits and codecvt and emitted.
5373         * src/c++11/Makefile.in: Likewise.
5374         * src/c++11/codecvt.cc: Define members of
5375         codecvt<char16_t, char8_t, mbstate_t>,
5376         codecvt<char32_t, char8_t, mbstate_t>,
5377         codecvt_byname<char16_t, char8_t, mbstate_t>, and
5378         codecvt_byname<char32_t, char8_t, mbstate_t>.
5379         * src/c++11/limits.cc: Define members of
5380         numeric_limits<char8_t>.
5381         * src/c++98/Makefile.am: Compile with -fchar8_t when compiling
5382         locale_init.cc and localename.cc.
5383         * src/c++98/Makefile.in: Likewise.
5384         * src/c++98/locale_init.cc: Add initialization for the
5385         codecvt<char16_t, char8_t, mbstate_t> and
5386         codecvt<char32_t, char8_t, mbstate_t> facets.
5387         * src/c++98/localename.cc: Likewise.
5388         * testsuite/util/testsuite_abi.cc: Validate ABI bump.
5389
5390 2019-02-18  Wilco Dijkstra  <wdijkstr@arm.com>
5391
5392         * 27_io/filesystem/operations/all.cc: Add dg-require-filesystem-ts.
5393         * 27_io/filesystem/operations/resize_file.cc: Likewise.
5394         * 27_io/filesystem/path/generation/normal2.cc: Likewise.
5395
5396 2019-02-14  Jonathan Wakely  <jwakely@redhat.com>
5397
5398         * doc/xml/manual/status_cxx2020.xml: Update P0887R1 status.
5399         * doc/html/*: Regenerate.
5400
5401         * doc/xml/manual/status_cxx2017.xml: Add P0063R3 to status table.
5402         * doc/html/*: Regenerate.
5403
5404         * doc/xml/manual/intro.xml: Document LWG 2586 status.
5405         * include/bits/uses_allocator.h (__uses_alloc): Use const lvalue
5406         allocator type in is_constructible checks.
5407         * testsuite/20_util/scoped_allocator/69293_neg.cc: Adjust dg-error.
5408         * testsuite/20_util/scoped_allocator/dr2586.cc: New test.
5409         * testsuite/20_util/tuple/cons/allocators.cc: Add test using
5410         problematic type from LWG 2586 discussion.
5411         * testsuite/20_util/uses_allocator/69293_neg.cc: Adjust dg-error.
5412         * testsuite/20_util/uses_allocator/cons_neg.cc: Likewise.
5413
5414         * configure.ac: Check for C11 timespec_get function.
5415         * crossconfig.m4 (freebsd, linux, gnu, cygwin, solaris, netbsd)
5416         (openbsd): Likewise
5417         * config.h.in: Regenerate.
5418         * configure: Regenerate.
5419         * include/c_global/ctime (timespec, timespec_get): Add to namespace
5420         std for C++17 and up.
5421
5422         * doc/xml/manual/intro.xml: Document LWG 2537 status.
5423         * include/bits/stl_queue.h
5424         (priority_queue(const Compare&, const Container&, const Alloc&))
5425         (priority_queue(const Compare&, Container&&, const Alloc&)): Call
5426         make_heap.
5427         * testsuite/23_containers/priority_queue/dr2537.cc: New test.
5428
5429         * doc/xml/manual/intro.xml: Document LWG 2566 status.
5430         * include/bits/stl_queue.h (queue, priority_queue): Add static
5431         assertions to enforce LWG 2566 requirement on value_type.
5432         * include/bits/stl_stack.h (stack): Likewise.
5433
5434         PR middle-end/89303
5435         * testsuite/20_util/enable_shared_from_this/89303.cc: New test.
5436
5437         * doc/xml/manual/intro.xml: Document LWG 2735 status.
5438         * include/bits/std_abs.h: Add comment about LWG 2735.
5439         * testsuite/26_numerics/headers/cstdlib/dr2735.cc: New test.
5440
5441 2019-02-13  Jonathan Wakely  <jwakely@redhat.com>
5442
5443         PR libstdc++/89345
5444         * include/std/version [__cpp_impl_destroying_delete]
5445         (__cpp_lib_destroying_delete): Only define for C++2a and later.
5446         * libsupc++/new [__cpp_impl_destroying_delete]
5447         (__cpp_lib_destroying_delete): Likewise.
5448         (destroying_delete_t, destroying_delete): Likewise, but define even
5449         when __cpp_impl_destroying_delete is not defined.
5450         * testsuite/18_support/destroying_delete.cc: New test.
5451
5452 2019-02-11  Jonathan Wakely  <jwakely@redhat.com>
5453
5454         PR libstdc++/89023
5455         * testsuite/17_intro/headers/c++2011/parallel_mode.cc: New test.
5456         * testsuite/17_intro/headers/c++2014/parallel_mode.cc: New test.
5457         * testsuite/17_intro/headers/c++2017/parallel_mode.cc: New test.
5458         * testsuite/28_regex/headers/regex/parallel_mode.cc: Remove.
5459
5460 2019-02-09  Jonathan Wakely  <jwakely@redhat.com>
5461
5462         PR libstdc++/71044
5463         * include/bits/fs_path.h (path::has_root_name)
5464         (path::has_root_directory, path::has_root_path)
5465         (path::has_relative_path, path::has_parent_path)
5466         (path::has_filename, path::has_stem, path::has_extension)
5467         (path::is_absolute, path::is_relative, path::_M_find_extension): Add
5468         noexcept.
5469         * src/c++17/fs_path.cc (path::has_root_name)
5470         (path::has_root_directory, path::has_root_path)
5471         (path::has_relative_path, path::has_parent_path)
5472         (path::has_filename, path::_M_find_extension): Add noexcept.
5473
5474 2019-02-06  Jonathan Wakely  <jwakely@redhat.com>
5475
5476         PR libstdc++/89102 (partial)
5477         * include/std/type_traits (common_type<>): Define.
5478         (common_type<T>): Derive from common_type<T, T>.
5479         * testsuite/20_util/common_type/requirements/explicit_instantiation.cc:
5480         Test zero-length template argument list.
5481         * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc:
5482         Test additional single argument cases.
5483         * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc:
5484         Adjust expected error.
5485
5486 2019-02-05  Jonathan Wakely  <jwakely@redhat.com>
5487
5488         PR libstdc++/89128
5489         * include/bits/stl_queue.h (queue, priority_queue): Add deduction
5490         guides.
5491         * include/bits/stl_stack.h (stack): Likewise.
5492         * testsuite/23_containers/priority_queue/deduction.cc: New test.
5493         * testsuite/23_containers/queue/deduction.cc: New test.
5494         * testsuite/23_containers/stack/deduction.cc: New test.
5495
5496         PR libstdc++/89194
5497         * include/std/type_traits (__is_convertible_helper)
5498         (__is_convertible_helper<_From, _To, false>): Revert changes to
5499         support is_nothrow_convertible.
5500         (__is_nt_convertible_helper): New helper.
5501         (is_nothrow_convertible): Use __is_nt_convertible_helper.
5502
5503         * testsuite/23_containers/vector/modifiers/push_back/49836.cc: Restore
5504         use of CopyConsOnlyType, but also test DelAnyAssign for completeness.
5505
5506         PR libstdc++/89130
5507         * include/bits/alloc_traits.h (__is_copy_insertable_impl): Rename to
5508         __is_alloc_insertable_impl. Replace single type member with two
5509         members, one for each of copy and move insertable.
5510         (__is_move_insertable): New trait for internal use.
5511         * include/bits/stl_vector.h (vector::_S_nothrow_relocate(true_type))
5512         (vector::_S_nothrow_relocate(true_type)): New functions to
5513         conditionally check if __relocate_a can throw.
5514         (vector::_S_use_relocate()): Dispatch to _S_nothrow_relocate based
5515         on __is_move_insertable.
5516         (vector::_S_do_relocate): New overloaded functions to conditionally
5517         call __relocate_a.
5518         (vector::_S_relocate): New function that dispatches to _S_do_relocate
5519         based on _S_use_relocate.
5520         * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
5521         (vector::_M_default_append): Call _S_relocate instead of __relocate_a.
5522         * testsuite/23_containers/vector/modifiers/push_back/89130.cc: New.
5523
5524         PR libstdc++/89090
5525         * include/bits/stl_uninitialized.h (__relocate_a_1): Make unused
5526         parameter unnamed. Add message to static assertion.
5527         * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
5528         (vector::_M_default_append): Use _GLIBCXX17_CONSTEXPR for if constexpr
5529         in C++11 code.
5530
5531 2019-02-05  Marc Glisse  <marc.glisse@inria.fr>
5532
5533         PR libstdc++/87106
5534         * include/bits/stl_uninitialized.h (__is_trivially_relocatable):
5535         Rename...
5536         (__is_bitwise_relocatable): ... to this.
5537         (__relocate_a_1): Adapt.
5538         * include/bits/stl_deque.h (__is_trivially_relocatable): Rename...
5539         (__is_bitwise_relocatable): ... to this.
5540
5541 2019-01-30  Jonathan Wakely  <jwakely@redhat.com>
5542
5543         PR libstdc++/89117
5544         * src/c++17/fs_path.cc (path::replace_extension): Erase extension from
5545         final component as well as from _M_pathname. Append the dot using
5546         operator+= instead of only to _M_pathname.
5547         (path::_M_find_extension): Reformat slightly.
5548         * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
5549         Add more test cases.
5550
5551 2019-01-30  Ulrich Drepper  <drepper@redhat.com>
5552
5553         * doc/xml/manual/status_cxx2020.xml: Update P0600 entry.
5554
5555 2019-01-29  Jonathan Wakely  <jwakely@redhat.com>
5556
5557         * testsuite/26_numerics/headers/complex/synopsis.cc: Remove incorrect
5558         constexpr specifiers from arg and proj.
5559
5560         * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add missing exports for
5561         __shared_ptr instantiations used by gcc4-compatible ABI.
5562
5563         * include/experimental/forward_list (experimental::erase): Qualify
5564         call to erase_if.
5565         * include/experimental/list (experimental::erase): Likewise.
5566         * include/std/forward_list (std::erase): Likewise.
5567         * include/std/list (std::erase): Likewise.
5568
5569         * testsuite/20_util/reference_wrapper/result_type.cc: Disable for
5570         C++2a.
5571         * testsuite/20_util/reference_wrapper/typedefs-2.cc: Likewise.
5572         * testsuite/20_util/reference_wrapper/typedefs-3.cc: Likewise.
5573         * testsuite/20_util/reference_wrapper/typedefs.cc: Likewise.
5574         * testsuite/30_threads/async/54297.cc: Suppress nodiscard warning.
5575         * testsuite/ext/array_allocator/26875.cc: Likewise.
5576         * testsuite/ext/pool_allocator/allocate_chunk.cc: Likewise.
5577         * testsuite/util/replacement_memory_operators.h: Likewise.
5578         * testsuite/util/testsuite_allocator.h: Likewise.
5579
5580         * include/std/memory_resource (__pool_resource::_M_unpooled): Use
5581         normal mode vector, even for debug mode.
5582         * include/std/vector [_GLIBCXX_DEBUG] (_GLIBCXX_STD_C::pmr::vector):
5583         Define alias template for normal mode vector.
5584
5585 2019-01-28  Jonathan Wakely  <jwakely@redhat.com>
5586
5587         PR libstdc++/68737
5588         * config/locale/generic/c_locale.h (__convert_from_v)
5589         [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
5590         * config/os/hpux/os_defines.h: Define _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
5591         * include/bits/locale_facets.tcc (num_put::_M_insert_float)
5592         [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
5593
5594 2019-01-24  Jonathan Wakely  <jwakely@redhat.com>
5595
5596         PR libstdc++/88840
5597         * include/bits/stl_vector.h (vector::__use_relocate): Replace static
5598         data member with static member function _S_use_relocate().
5599         * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
5600         (vector::_M_default_append): Use _S_use_relocate() instead of
5601         __use_relocate.
5602
5603         * testsuite/27_io/filesystem/path/compare/strings.cc: Only compare
5604         sign of results.
5605
5606 2019-01-22  Jonathan Wakely  <jwakely@redhat.com>
5607
5608         PR libstdc++/88740
5609         * testsuite/util/testsuite_hooks.h [stderr] (VERIFY): Use fprintf to
5610         write to stderr instead of using printf.
5611
5612 2019-01-21  Jakub Jelinek  <jakub@redhat.com>
5613
5614         PR libstdc++/86590
5615         * include/bits/char_traits.h (__constant_string_p,
5616         __constant_char_array_p): Use __builtin_is_constant_evaluated if
5617         available.
5618
5619 2019-01-20  Ulrich Drepper  <drepper@redhat.com>
5620
5621         Implement C++20 P0600r1.
5622         * include/backward/hash_map: Add nodiscard attribute to empty.
5623         * include/backward/hash_set: Likewise.
5624         * backward/hashtable.h: Likewise.
5625         * include/bits/basic_string.h: Likewise.
5626         * include/bits/forward_list.h: Likewise.
5627         * include/bits/hashtable.h: Likewise.
5628         * include/bits/regex.h: Likewise.
5629         * include/bits/stl_deque.h: Likewise.
5630         * include/bits/stl_list.h: Likewise.
5631         * include/bits/stl_map.h: Likewise.
5632         * include/bits/stl_multimap.h: Likewise.
5633         * include/bits/stl_multiset.h: Likewise.
5634         * include/bits/stl_queue.h: Likewise.
5635         * include/bits/stl_set.h: Likewise.
5636         * include/bits/stl_stack.h: Likewise.
5637         * include/bits/stl_tree.h: Likewise.
5638         * include/bits/stl_vector.h: Likewise.
5639         * include/bits/unordered_map.h: Likewise.
5640         * include/bits/unordered_set.h: Likewise.
5641         * include/debug/array: Likewise.
5642         * include/experimental/any: Likewise.
5643         * include/experimental/bits/fs_path.h: Likewise.
5644         * include/experimental/internet: Likewise.
5645         * include/experimental/string_view: Likewise.
5646         * include/ext/pb_ds/detail/bin_search_tree_/info_fn_imps.hpp:
5647         Likewise.
5648         * include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp:
5649         Likewise.
5650         * include/ext/pb_ds/detail/binary_heap_/info_fn_imps.hpp:
5651         Likewise.
5652         * include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp:
5653         Likewise.
5654         * include/ext/pb_ds/detail/cc_hash_table_map_/info_fn_imps.hpp:
5655         Likewise.
5656         * include/ext/pb_ds/detail/cc_hash_table_map_/size_fn_imps.hpp:
5657         Likewise.
5658         * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp:
5659         Likewise.
5660         * include/ext/pb_ds/detail/gp_hash_table_map_/info_fn_imps.hpp:
5661         Likewise.
5662         * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
5663         info_fn_imps.hpp: Likewise.
5664         * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
5665         left_child_next_sibling_heap_.hpp: Likewise.
5666         * include/ext/pb_ds/detail/list_update_map_/info_fn_imps.hpp:
5667         Likewise.
5668         * include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp:
5669         Likewise.
5670         * include/ext/pb_ds/detail/ov_tree_map_/info_fn_imps.hpp:
5671         Likewise.
5672         * include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hp:
5673         Likewise.
5674         * include/ext/pb_ds/detail/pat_trie_/info_fn_imps.hpp:
5675         Likewise.
5676         * include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp:
5677         Likewise.
5678         * include/ext/pb_ds/detail/rc_binomial_heap_/rc.hpp:
5679         Likewise.
5680         * include/ext/pb_ds/detail/tree_trace_base.hpp: Likewise.
5681         * include/ext/pb_ds/trie_policy.hpp: Likewise.
5682         * include/ext/rope: Likewise.
5683         * include/ext/slist: Likewise.
5684         * include/ext/vstring.h: Likewise.
5685         * include/profile/array: Likewise.
5686         * include/std/array: Likewise.
5687         * include/tr1/array: Likewise.
5688         * include/tr1/hashtable.h: Likewise.
5689         * include/tr1/regex: Likewise.
5690         * include/tr2/dynamic_bitset: Likewise.
5691         * include/bits/alloc_traits.h: Add nodiscard attribute to
5692         allocate.
5693         * include/experimental/memory_resource: Likewise.
5694         * include/ext/alloc_traits.h: Likewise.
5695         * include/ext/array_allocator.h: Likewise.
5696         * include/ext/bitmap_allocator.h: Likewise.
5697         * include/ext/debug_allocator.h: Likewise.
5698         * include/ext/extptr_allocator.h: Likewise.
5699         * include/ext/mt_allocator.h: Likewise.
5700         * include/ext/new_allocator.h: Likewise.
5701         * include/ext/pool_allocator.h: Likewise.
5702         * include/ext/throw_allocator.h: Likewise.
5703         * include/std/scoped_allocator: Likewise.
5704         * libsupc++/eh_alloc.cc: Likewise.
5705         * include/std/future: Add nodiscard attribute to async.
5706         * libsupc++/new: Add nodiscard attribute to new.
5707
5708 2019-01-18  Jonathan Wakely  <jwakely@redhat.com>
5709
5710         PR libstdc++/87514
5711         PR libstdc++/87520
5712         PR libstdc++/88782
5713         * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export new symbol.
5714         * include/bits/shared_ptr.h
5715         (shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...))
5716         (allocate_shared): Change to use new tag type.
5717         * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_eq):
5718         Declare new member function.
5719         (_Sp_alloc_shared_tag): Define new type.
5720         (_Sp_counted_ptr_inplace): Declare __shared_count<_Lp> as a friend.
5721         (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Use
5722         _Sp_make_shared_tag::_S_eq to check type_info.
5723         (__shared_count(Ptr, Deleter),__shared_count(Ptr, Deleter, Alloc)):
5724         Constrain to prevent being called with _Sp_alloc_shared_tag.
5725         (__shared_count(_Sp_make_shared_tag, const _Alloc&, Args&&...)):
5726         Replace constructor with ...
5727         (__shared_count(Tp*&, _Sp_alloc_shared_tag<_Alloc>, Args&&...)): Use
5728         reference parameter so address of the new object can be returned to
5729         the caller. Obtain the allocator from the tag type.
5730         (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Replace
5731         constructor with ...
5732         (__shared_ptr(_Sp_alloc_shared_tag<Alloc>, Args&&...)): Pass _M_ptr
5733         to the __shared_count constructor.
5734         (__allocate_shared): Change to use new tag type.
5735         * src/c++11/shared_ptr.cc (_Sp_make_shared_tag::_S_eq): Define.
5736
5737 2019-01-17  Jonathan Wakely  <jwakely@redhat.com>
5738
5739         * src/c++17/fs_ops.cc
5740         (equivalent(const path&, const path&, error_code&))
5741         [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use GetFileInformationByHandle to
5742         compare files instead of relying on incomplete info returned by stat.
5743
5744         PR libstdc++/88884
5745         * src/c++17/fs_ops.cc (absolute(const path&, error_code&)): Do nothing
5746         if the path is already absolute.
5747         [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize root-directory.
5748         [!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Pass error_code to current_path.
5749
5750         PR libstdc++/88881
5751         * src/c++17/fs_ops.cc (canonical(const path&, error_code&))
5752         [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize path, to match behaviour
5753         of filesystem::exists.
5754         (create_directories(const path&, error_code&)): Add assertions.
5755         (status(const path&, error_code&)) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]:
5756         Add workaround for bug in _wstat for paths with trailing slash.
5757         * testsuite/27_io/filesystem/operations/create_directories.cc: Adjust
5758         for expected behaviour on mingw.
5759         * testsuite/experimental/filesystem/operations/create_directories.cc:
5760         Likewise.
5761         * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Use
5762         "TMP" instead of "TMPDIR" and clean environment before each test. Do
5763         not test permissions on mingw targets.
5764
5765 2019-01-16  Jonathan Wakely  <jwakely@redhat.com>
5766
5767         * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add exports for fstream
5768         constructors and open members taking wide strings. Fix patterns for
5769         filesystem::path members to match wstring_view parameters. Add
5770         exports for shared_ptr members used by directory iterators.
5771         * src/c++17/fs_ops.cc (remove(const path&, error_code&)): Clear the
5772         error code parameter if the file doesn't exist.
5773         * src/filesystem/ops.cc (remove(const path&, error_code&)):
5774         Likewise.
5775         * testsuite/27_io/filesystem/operations/canonical.cc: Fix expected
5776         values for mingw targets, where "/" is not an absolute path. Do not
5777         test symlinks on mingw targets.
5778         * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
5779         * testsuite/27_io/filesystem/operations/copy.cc: Do not test symlinks
5780         on mingw targets.
5781         * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
5782         * testsuite/27_io/filesystem/operations/create_directories.cc: Check
5783         that each component of the path is created.
5784         * testsuite/experimental/filesystem/operations/create_directories.cc:
5785         Likewise.
5786         * testsuite/27_io/filesystem/operations/exists.cc: Do not test
5787         permissions on mingw targets.
5788         * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
5789         * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
5790         * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
5791         * testsuite/27_io/filesystem/operations/permissions.cc: XFAIL for
5792         mingw targets.
5793         * testsuite/experimental/filesystem/operations/permissions.cc:
5794         Likewise.
5795         * testsuite/27_io/filesystem/operations/remove.cc: Do not test
5796         symlinks or permissions on mingw targets.
5797         * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
5798         * testsuite/27_io/filesystem/operations/remove_all.cc: Do not test
5799         symlinks on mingw targets.
5800         * testsuite/experimental/filesystem/operations/remove_all.cc:
5801         Likewise.
5802         * testsuite/27_io/filesystem/operations/status.cc: Do not test
5803         permissions on mingw targets.
5804         * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Do not
5805         test symlinks on mingw targets.
5806         * testsuite/experimental/filesystem/operations/space.cc: Fix test
5807         for mingw targets.
5808
5809 2019-02-14  Ulrich Drepper  <drepper@redhat.com>
5810
5811         PR libstdc++/88738
5812         Warn about unused comparisons of shared_ptr/unique_ptr
5813         * include/bits/c++config [_GLIBCXX_NODISCARD]: Define.
5814         * include/bits/shared_ptr.h: Use it for operator ==, !=,
5815         <, <=, >, >= for shared_ptr.
5816         * include/bits/unique_ptr.h: Likewise for unique_ptr.
5817
5818 2019-01-15  Jonathan Wakely  <jwakely@redhat.com>
5819
5820         * include/bits/shared_ptr_base.h (__cpp_lib_shared_ptr_arrays): Define
5821         as 201611L, because P0497R0 changes are supported.
5822         * include/std/version (__cpp_lib_shared_ptr_arrays): Likewise.
5823
5824         * include/bits/erase_if.h [__cplusplus > 201703L]
5825         (__cpp_lib_erase_if): Only define for C++2a.
5826         * include/std/iterator [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
5827         (__cpp_lib_null_iterators): Define.
5828         * include/std/version [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
5829         (__cpp_lib_null_iterators): Define.
5830         [__cpp_impl_destroying_delete] (__cpp_lib_destroying_delete): Define.
5831
5832         * doc/xml/manual/status_cxx2017.xml: Document P0032R3 and P0307R2
5833         status.
5834         * include/bits/stl_uninitialized.h (__cpp_lib_raw_memory_algorithms):
5835         Define.
5836         * include/std/any (__cpp_lib_any): Define as 201606L, because P0032R3
5837         changes are supported.
5838         * include/std/optional (__cpp_lib_optional): Likewise.
5839         * include/std/variant (__cpp_lib_variant): Likewise.
5840         * include/std/version [!__STRICT_ANSI__]
5841         (__cpp_lib_uncaught_exceptions): Define as long integer.
5842         [__cplusplus >= 201703L] (__cpp_lib_any)
5843         (__cpp_lib_raw_memory_algorithms, __cpp_lib_uncaught_exceptions)
5844         (__cpp_lib_variant): Define for C++17.
5845         [__cplusplus >= 201703L] (__cpp_lib_optional): Update value and define
5846         as long integer.
5847         * libsupc++/exception (__cpp_lib_uncaught_exceptions): Define as long
5848         integer.
5849
5850         * doc/xml/manual/status_cxx2020.xml: Update P1123R0 status.
5851
5852 2019-01-12  Jonathan Wakely  <jwakely@redhat.com>
5853
5854         PR libstdc++/88811
5855         PR libstdc++/83306
5856         * src/filesystem/path.cc: Fix typo. If first path is empty, show []
5857         before second path.
5858         * testsuite/experimental/filesystem/filesystem_error/cons.cc: New
5859         test.
5860
5861 2019-01-11  Jonathan Wakely  <jwakely@redhat.com>
5862
5863         * doc/xml/manual/intro.xml: Include new section.
5864         * doc/xml/manual/status_cxx2017.xml: Document more
5865         implementation-defined properties of the library.
5866         * doc/xml/manual/status_cxx2020.xml: Document C++2a status.
5867         * doc/html/*: Regenerate.
5868
5869         * include/bits/refwrap.h [__cplusplus > 201703L]
5870         (_Refwrap_base_arg1, _Refwrap_base_arg2, _Reference_wrapper_base)
5871         (_Reference_wrapper_base_memfun): Do not define for C++2a.
5872         (reference_wrapper): Do not derive from _Reference_wrapper_base_memfun
5873         for C++2a.
5874         (reference_wrapper::operator()): Add static assertion.
5875         * testsuite/20_util/reference_wrapper/incomplete.cc: New test.
5876
5877         * include/std/chrono (duration_values::zero(), duration_values::min())
5878         (duration_values::max()): Add noexcept.
5879         (duration::zero(), duration::min(), duration::max()): Likewise.
5880         (time_point::zero(), time_point::min(), time_point::max()): Likewise.
5881         * testsuite/20_util/duration/requirements/noexcept.cc: New test.
5882         * testsuite/20_util/time_point/requirements/noexcept.cc: New test.
5883
5884         * include/std/version (__cpp_lib_erase_if): Move to C++20 group.
5885
5886 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
5887
5888         * include/std/type_traits (__cpp_lib_is_constant_evaluated): Define.
5889         * include/std/version (__cpp_lib_is_constant_evaluated): Define.
5890
5891 2019-01-11  Jonathan Wakely  <jwakely@redhat.com>
5892
5893         PR libstdc++/88802
5894         * include/bits/functional_hash.h (hash<nullptr_t>): Define
5895         specialization for C++17 (P0513R0, LWG 2817).
5896         * testsuite/20_util/hash/nullptr.cc: New test.
5897
5898         PR libstdc++/88125
5899         * config/abi/pre/gnu.ver (GLIBCXX_3.4.6): Remove unused duplicate
5900         pattern for std::basic_stringbuf::str().
5901
5902         * config/abi/pre/gnu.ver (GLIBCXX_3.4): Correct recent changes to
5903         basic_ostream::operator<< patterns.
5904
5905 2019-01-10  Jonathan Wakely  <jwakely@redhat.com>
5906
5907         * testsuite/27_io/filesystem/operations/last_write_time.cc: Fix
5908         test failures on targets with 32-bit time_t.
5909
5910         * include/bits/erase_if.h: Define __cpp_lib_erase_if.
5911         * include/std/deque: Likewise.
5912         * include/std/forward_list: Likewise.
5913         * include/std/list: Likewise.
5914         * include/std/string: Likewise.
5915         * include/std/vector: Likewise.
5916         * include/std/version: Likewise.
5917         * testsuite/21_strings/basic_string/erasure.cc: Test macro.
5918         * testsuite/23_containers/deque/erasure.cc: Likewise.
5919         * testsuite/23_containers/forward_list/erasure.cc: Likewise.
5920         * testsuite/23_containers/list/erasure.cc: Likewise.
5921         * testsuite/23_containers/map/erasure.cc: Likewise.
5922         * testsuite/23_containers/set/erasure.cc: Likewise.
5923         * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
5924         * testsuite/23_containers/unordered_set/erasure.cc: Likewise.
5925         * testsuite/23_containers/vector/erasure.cc: Likewise.
5926
5927         * include/experimental/internet [AI_NUMERICSERV]
5928         (resolver_base::numeric_service): Define conditionally.
5929         * testsuite/experimental/net/internet/resolver/base.cc: Test it
5930         conditionally.
5931         * testsuite/experimental/net/internet/resolver/ops/lookup.cc:
5932         Likewise.
5933
5934 2019-01-10  Ville Voutilainen  <ville.voutilainen@gmail.com>
5935             Jonathan Wakely  <jwakely@redhat.com>
5936
5937         Implement LWG 2221
5938         * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten patterns.
5939         (GLIBCXX_3.4.26): Add new exports.
5940         * include/Makefile.am: Add ostream-inst.cc. Move string-inst.cc to
5941         correct list of sources.
5942         * include/Makefile.in: Regenerate.
5943         * include/std/ostream (operator<<(nullptr_t)): New member function.
5944         * src/c++17/ostream-inst.cc: New file.
5945         * testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc: New
5946         test.
5947
5948 2019-01-10  Jonathan Wakely  <jwakely@redhat.com>
5949
5950         * testsuite/util/testsuite_fs.h (nonexistent_path): Include name
5951         of the source file containing the caller.
5952         * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Remove
5953         directories created by test.
5954         * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
5955         Likewise.
5956         * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
5957         Likewise.
5958         * testsuite/experimental/filesystem/iterators/
5959         recursive_directory_iterator.cc: Likewise.
5960
5961 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
5962
5963         PR tree-optimization/88775
5964         * include/bits/stl_function.h (greater<_Tp*>::operator(),
5965         less<_Tp*>::operator(), greater_equal<_Tp*>::operator(),
5966         less_equal<_Tp*>::operator()): Use __builtin_is_constant_evaluated
5967         instead of __builtin_constant_p if available.  Don't bother with
5968         the pointer comparison in C++11 and earlier.
5969
5970 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
5971
5972         PR other/16615
5973
5974         * include/ext/bitmap_allocator.h: Mechanically replace "can not"
5975         with "cannot".
5976
5977 2019-01-09  Jonathan Wakely  <jwakely@redhat.com>
5978
5979         * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix expected output
5980         for filesystem::path. Give variables more distinctive names.
5981
5982         * include/std/optional (_Optional_payload_base::_M_copy_assign): New
5983         member function to perform non-trivial assignment.
5984         (_Optional_payload_base::_M_move_assign): Likewise.
5985         (_Optional_payload<T, true, false, true>::operator=)
5986         (_Optional_payload<T, true, true, false>::operator=)
5987         (_Optional_payload<T, true, false, false>::operator=): Call
5988         _M_copy_assign and/or _M_move_assign to do non-trivial assignments.
5989
5990         PR libstdc++/88204
5991         * testsuite/26_numerics/complex/operators/more_constexpr.cc: Do not
5992         test std::complex<long double> if long double format is IBM128.
5993         * testsuite/26_numerics/complex/requirements/more_constexpr.cc:
5994         Likewise.
5995
5996 2019-01-08  Jonathan Wakely  <jwakely@redhat.com>
5997
5998         * testsuite/libstdc++-prettyprinters/compat.cc: Test printer support
5999         for old std::unique_ptr layout.
6000         * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix std::variant test
6001         to become valueless. Add filesystem::path tests.
6002
6003         PR libstdc++/87855
6004         * include/std/optional (_Optional_payload_base): New class template
6005         for common code hoisted from _Optional_payload specializations. Use
6006         a template for the union, to allow a partial specialization for
6007         types with non-trivial destructors. Add constructors for in-place
6008         initialization to the union.
6009         (_Optional_payload(bool, const _Optional_payload&)): Use _M_construct
6010         to perform non-trivial copy construction, instead of relying on
6011         non-standard copy elision in a delegating constructor.
6012         (_Optional_payload(bool, _Optional_payload&&)): Likewise for
6013         non-trivial move construction.
6014         (_Optional_payload): Derive from _Optional_payload_base and use it
6015         for everything except the non-trivial assignment operators, which are
6016         defined as needed.
6017         (_Optional_payload<false, C, M>): Derive from the specialization
6018         _Optional_payload<true, false, false> and add a destructor.
6019         (_Optional_base_impl::_M_destruct, _Optional_base_impl::_M_reset):
6020         Forward to corresponding members of _Optional_payload.
6021         (_Optional_base_impl::_M_is_engaged, _Optional_base_impl::_M_get):
6022         Hoist common members from _Optional_base.
6023         (_Optional_base): Make all members and base class public.
6024         (_Optional_base::_M_get, _Optional_base::_M_is_engaged): Move to
6025         _Optional_base_impl.
6026         * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Add
6027         support for new std::optional layout.
6028         * testsuite/libstdc++-prettyprinters/compat.cc: New test.
6029
6030         PR libstdc++/88066
6031         * include/bits/locale_conv.h: Use <> for includes not "".
6032         * include/ext/random: Likewise.
6033         * include/ext/vstring.h: Likewise.
6034
6035 2019-01-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6036
6037         * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten existing patterns.
6038         (GLIBCXX_3.4.21): Likewise.
6039
6040 2019-01-08  Jonathan Wakely  <jwakely@redhat.com>
6041
6042         PR libstdc++/88749
6043         * src/filesystem/ops.cc (last_write_time): Fix preprocessor condition
6044         to match the one that controls whether utimbuf and utime are declared.
6045
6046 2019-01-07  Jonathan Wakely  <jwakely@redhat.com>
6047
6048         PR libstdc++/87787
6049         * include/bits/char_traits.h (char_traits::move): Do not pass null
6050         pointers to memmove.
6051         * include/bits/locale_facets.h
6052         (ctype<char>::widen(const char*, const char*, char*)): Do not
6053         pass null pointers to memcpy.
6054         (ctype<char>::narrow(const char*, const char*, char, char*)):
6055         Likewise.
6056         (ctype<char>::do_widen(const char*, const char*, char*)):
6057         Likewise.
6058         (ctype<char>::do_narrow(const char*, const char*, char, char*)):
6059         Likewise.
6060
6061         * doc/xml/manual/spine.xml: Update copyright years.
6062         * doc/xml/manual/status_cxx2017.xml: Adjust note about -lstdc++fs.
6063         * doc/xml/manual/using.xml: Remove requirement to link with -lstdc++fs
6064         for C++17 filesystem library.
6065         * doc/html/*: Regenerate.
6066
6067         * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for truncate.
6068         * config.h.in: Regenerate.
6069         * config/abi/pre/gnu.ver: Order patterns for filesystem operations
6070         alphabetically and add missing entries for copy_symlink,
6071         hard_link_count, rename, and resize_file.
6072         * configure: Regenerate.
6073         * src/c++17/fs_ops.cc (resize_file): Remove #if so posix::truncate is
6074         used unconditionally.
6075         * src/filesystem/ops-common.h (__gnu_posix::truncate)
6076         [!_GLIBCXX_HAVE_TRUNCATE]: Provide fallback definition that only
6077         supports truncating to zero length.
6078         * testsuite/27_io/filesystem/operations/all.cc: New test.
6079         * testsuite/27_io/filesystem/operations/resize_file.cc: New test.
6080
6081 2019-01-06  Jonathan Wakely  <jwakely@redhat.com>
6082
6083         PR libstdc++/86756
6084         * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for utime and
6085         lstat and define _GLIBCXX_USE_UTIME and _GLIBCXX_USE_LSTAT.
6086         * config.h.in: Regenerate.
6087         * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export symbols for
6088         remaining std::filesystem types and functions.
6089         * configure: Regenerate.
6090         * src/c++17/Makefile.am: Add C++17 filesystem sources.
6091         * src/c++17/Makefile.in: Regenerate.
6092         * src/c++17/cow-fs_dir.cc: Move src/filesystem/cow-std-dir.cc to
6093         here, and change name of included file.
6094         * src/c++17/cow-fs_ops.cc: Move src/filesystem/cow-std-ops.cc to
6095         here, and change name of included file.
6096         * src/c++17/fs_dir.cc: Move src/filesystem/std-dir.cc to here. Change
6097         path to dir-common.h.
6098         * src/c++17/fs_ops.cc: Move src/filesystem/std-ops.cc to here. Change
6099         path to ops-common.h. Disable -Wunused-parameter warnings.
6100         (internal_file_clock): Define unconditionally.
6101         [!_GLIBCXX_HAVE_SYS_STAT_H] (internal_file_clock::from_stat): Do not
6102         define.
6103         (do_copy_file, do_space): Move definitions to ops.common.h.
6104         (copy, file_size, hard_link_count, last_write_time, space): Only
6105         perform operation when _GLIBCXX_HAVE_SYS_STAT_H is defined, otherwise
6106         report an error.
6107         (last_write_time, read_symlink): Remove unused attributes from
6108         parameters.
6109         * src/filesystem/Makefile.am: Remove C++17 filesystem sources.
6110         * src/filesystem/Makefile.in: Regenerate.
6111         * src/filesystem/cow-std-dir.cc: Move to src/c++17/cow-fs_dir.cc.
6112         * src/filesystem/cow-std-ops.cc: Move to src/c++17/cow-fs_ops.cc.
6113         * src/filesystem/std-dir.cc: Move to src/c++17/fs_dir.cc.
6114         * src/filesystem/std-ops.cc: Move to src/c++17/fs_ops.cc.
6115         * src/filesystem/dir-common.h [!_GLIBCXX_HAVE_DIRENT_H]: Define
6116         dummy types and functions instead of using #error.
6117         * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H]: Use #error.
6118         * src/filesystem/ops-common.h [!_GLIBCXX_USE_LSTAT] (lstat): Define
6119         in terms of stat.
6120         [!_GLIBCXX_HAVE_UNISTD_H]: Define dummy types and functions.
6121         (do_copy_file, do_space): Move definitions here from std-ops.cc.
6122         * src/filesystem/ops.cc: Adjust calls to do_copy_file and do_space
6123         to account for new namespace.
6124         * testsuite/27_io/filesystem/directory_entry/86597.cc: Remove
6125         -lstdc++fs from dg-options.
6126         * testsuite/27_io/filesystem/directory_entry/lwg3171.cc: Likewise.
6127         * testsuite/27_io/filesystem/file_status/1.cc: Likewise.
6128         * testsuite/27_io/filesystem/filesystem_error/cons.cc: Likewise.
6129         * testsuite/27_io/filesystem/filesystem_error/copy.cc: Likewise.
6130         * testsuite/27_io/filesystem/iterators/directory_iterator.cc:
6131         Likewise.
6132         * testsuite/27_io/filesystem/iterators/pop.cc: Likewise.
6133         * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
6134         Likewise.
6135         * testsuite/27_io/filesystem/operations/absolute.cc: Likewise.
6136         * testsuite/27_io/filesystem/operations/canonical.cc: Likewise.
6137         * testsuite/27_io/filesystem/operations/copy.cc: Likewise.
6138         * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
6139         * testsuite/27_io/filesystem/operations/create_directories.cc:
6140         Likewise.
6141         * testsuite/27_io/filesystem/operations/create_directory.cc: Likewise.
6142         * testsuite/27_io/filesystem/operations/create_symlink.cc: Likewise.
6143         * testsuite/27_io/filesystem/operations/current_path.cc: Likewise.
6144         * testsuite/27_io/filesystem/operations/equivalent.cc: Likewise.
6145         * testsuite/27_io/filesystem/operations/exists.cc: Likewise.
6146         * testsuite/27_io/filesystem/operations/file_size.cc: Likewise.
6147         * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
6148         * testsuite/27_io/filesystem/operations/last_write_time.cc: Likewise.
6149         * testsuite/27_io/filesystem/operations/permissions.cc: Likewise.
6150         * testsuite/27_io/filesystem/operations/proximate.cc: Likewise.
6151         * testsuite/27_io/filesystem/operations/read_symlink.cc: Likewise.
6152         * testsuite/27_io/filesystem/operations/relative.cc: Likewise.
6153         * testsuite/27_io/filesystem/operations/remove.cc: Likewise.
6154         * testsuite/27_io/filesystem/operations/remove_all.cc: Likewise.
6155         * testsuite/27_io/filesystem/operations/space.cc: Likewise.
6156         * testsuite/27_io/filesystem/operations/status.cc: Likewise.
6157         * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
6158         * testsuite/27_io/filesystem/operations/temp_directory_path.cc:
6159         Likewise.
6160         * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Likewise.
6161
6162
6163         PR libstdc++/86756
6164         * config/abi/pre/gnu.ver (GLIBCXX_3.4): Make various patterns for
6165         typeinfo and vtables less greedy.
6166         (GLIBCXX_3.4.26): Export symbols for std::filesystem::path.
6167         * src/c++17/Makefile.am: Add fs_path.cc and cow-fs_path.cc.
6168         * src/c++17/Makefile.in: Regenerate.
6169         * src/c++17/cow-fs_path.cc: Move src/filesystem/cow-std-path.cc to
6170         here, and change name of included file.
6171         * src/c++17/fs_path.cc: Move src/filesystem/std-path.cc to here.
6172         * src/filesystem/Makefile.am: Remove std-path.cc and cow-std-path.cc
6173         from sources.
6174         * src/filesystem/Makefile.in: Regenerate.
6175         * src/filesystem/cow-std-path.cc: Move to src/c++17/cow-fs_path.cc.
6176         * src/filesystem/std-path.cc: Move to src/c++17/fs_path.cc.
6177         * testsuite/27_io/filesystem/path/append/path.cc: Remove -lstdc++fs
6178         from dg-options and remove dg-require-filesystem-ts.
6179         * testsuite/27_io/filesystem/path/append/source.cc: Likewise.
6180         * testsuite/27_io/filesystem/path/assign/assign.cc: Likewise.
6181         * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise.
6182         * testsuite/27_io/filesystem/path/compare/compare.cc: Likewise.
6183         * testsuite/27_io/filesystem/path/compare/lwg2936.cc: Likewise.
6184         * testsuite/27_io/filesystem/path/compare/path.cc: Likewise.
6185         * testsuite/27_io/filesystem/path/compare/strings.cc: Likewise.
6186         * testsuite/27_io/filesystem/path/concat/path.cc: Likewise.
6187         * testsuite/27_io/filesystem/path/concat/strings.cc: Likewise.
6188         * testsuite/27_io/filesystem/path/construct/80762.cc: Likewise.
6189         * testsuite/27_io/filesystem/path/construct/copy.cc: Likewise.
6190         * testsuite/27_io/filesystem/path/construct/default.cc: Likewise.
6191         * testsuite/27_io/filesystem/path/construct/format.cc: Likewise.
6192         * testsuite/27_io/filesystem/path/construct/locale.cc: Likewise.
6193         * testsuite/27_io/filesystem/path/construct/range.cc: Likewise.
6194         * testsuite/27_io/filesystem/path/construct/string_view.cc: Likewise.
6195         * testsuite/27_io/filesystem/path/decompose/extension.cc: Likewise.
6196         * testsuite/27_io/filesystem/path/decompose/filename.cc: Likewise.
6197         * testsuite/27_io/filesystem/path/decompose/parent_path.cc: Likewise.
6198         * testsuite/27_io/filesystem/path/decompose/relative_path.cc: Likewise.
6199         * testsuite/27_io/filesystem/path/decompose/root_directory.cc:
6200         Likewise.
6201         * testsuite/27_io/filesystem/path/decompose/root_name.cc: Likewise.
6202         * testsuite/27_io/filesystem/path/decompose/root_path.cc: Likewise.
6203         * testsuite/27_io/filesystem/path/decompose/stem.cc: Likewise.
6204         * testsuite/27_io/filesystem/path/generation/normal.cc: Likewise.
6205         * testsuite/27_io/filesystem/path/generation/normal2.cc: Likewise.
6206         * testsuite/27_io/filesystem/path/generation/proximate.cc: Likewise.
6207         * testsuite/27_io/filesystem/path/generation/relative.cc: Likewise.
6208         * testsuite/27_io/filesystem/path/generic/generic_string.cc: Likewise.
6209         * testsuite/27_io/filesystem/path/itr/components.cc: Likewise.
6210         * testsuite/27_io/filesystem/path/itr/traversal.cc: Likewise.
6211         * testsuite/27_io/filesystem/path/modifiers/clear.cc: Likewise.
6212         * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc:
6213         Likewise.
6214         * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc:
6215         Likewise.
6216         * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
6217         Likewise.
6218         * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc:
6219         Likewise.
6220         * testsuite/27_io/filesystem/path/modifiers/swap.cc: Likewise.
6221         * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
6222         * testsuite/27_io/filesystem/path/nonmember/append.cc: Likewise.
6223         * testsuite/27_io/filesystem/path/nonmember/hash_value.cc: Likewise.
6224         * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
6225         * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
6226         * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
6227         * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
6228         * testsuite/27_io/filesystem/path/query/has_relative_path.cc: Likewise.
6229         * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
6230         Likewise.
6231         * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
6232         * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
6233         * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
6234         * testsuite/27_io/filesystem/path/query/is_absolute.cc: Likewise.
6235         * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
6236
6237         PR libstdc++/87431
6238         * include/std/variant (_Variant_storage<true, _Types...>::_M_valid):
6239         Check is_trivially_copyable instead of is_scalar.
6240         (variant::emplace<N, Args>(Args&&...)): If construction of the new
6241         contained value can throw and its type is trivially copyable then
6242         construct into a temporary variant and move from it, to provide the
6243         strong exception safety guarantee.
6244         (variant::emplace<N, U, Args>(initializer_list<U>, Args&&...)):
6245         Likewise.
6246         * testsuite/20_util/variant/87431.cc: New test.
6247         * testsuite/20_util/variant/run.cc: Adjust test so that throwing
6248         conversion causes valueless state.
6249
6250         PR libstdc++/88607
6251         * testsuite/17_intro/headers/c++1998/charset.cc: New test.
6252         * testsuite/17_intro/headers/c++2011/charset.cc: New test.
6253         * testsuite/17_intro/headers/c++2014/charset.cc: New test.
6254         * testsuite/17_intro/headers/c++2017/charset.cc: New test.
6255         * testsuite/17_intro/headers/c++2020/charset.cc: New test.
6256
6257 2019-01-05  Jonathan Wakely  <jwakely@redhat.com>
6258
6259         * include/bits/fs_fwd.h (__file_clock): Define new clock.
6260         (file_time_type): Redefine in terms of __file_clock.
6261         * src/filesystem/ops-common.h (file_time): Add FIXME comment about
6262         overflow.
6263         * src/filesystem/std-ops.cc (is_set(perm_options, perm_options)): Give
6264         internal linkage.
6265         (internal_file_lock): New helper type for accessing __file_clock.
6266         (do_copy_file): Use internal_file_lock to convert system time to
6267         file_time_type.
6268         (last_write_time(const path&, error_code&)): Likewise.
6269         (last_write_time(const path&, file_time_type, error_code&)): Likewise.
6270
6271 2019-01-04  Jonathan Wakely  <jwakely@redhat.com>
6272
6273         * config/abi/pre/gnu.ver (GLIBCXX_3.4.21): Make patterns less greedy
6274         for const member functions of std::basic_string.
6275         (GLIBCXX_3.4.26): Export member functions of std::basic_string added
6276         in C++17.
6277         * include/bits/basic_string.h (basic_string(__sv_wrapper, const A&)):
6278         Make non-standard constructor private.
6279         [!_GLIBCXX_USE_CXX11_ABI] (basic_string(__sv_wrapper, const A&)):
6280         Likewise.
6281         * include/bits/basic_string.tcc (std::string, std::wstring): Declare
6282         explicit instantiations for C++17 as well as earlier dialects.
6283         * src/c++17/Makefile.am: Add new source files.
6284         * src/c++17/Makefile.in: Regenerate.
6285         * src/c++17/cow-string-inst.cc: New file defining explicit
6286         instantiations for basic_string member functions added in C++17.
6287         * src/c++17/string-inst.cc: Likewise.
6288
6289         * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export allocator-extended
6290         copy/move constructors for old std::basic_string.
6291         * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
6292         (basic_string::reference, basic_string::const_reference): Define
6293         as plain references for C++11 and later.
6294         (basic_string::basic_string()): Put constructor body outside
6295         preprocessor conditional groups.
6296         (basic_string::basic_string(basic_string&&)): Move _Alloc_hider
6297         instead of copying it.
6298         (basic_string::basic_string(const basic_string&, const _Alloc&)):
6299         Define.
6300         (basic_string::basic_string(basic_string&&, const _Alloc&)):
6301         Define.
6302         * include/bits/fs_path.h [!_GLIBCXX_USE_CXX11_ABI]: Remove special
6303         cases for old basic_string.
6304         * testsuite/21_strings/basic_string/cons/char/8.cc: Test
6305         allocator-extended constructors unconditionally. Add extra members to
6306         allocator type when using old string ABI.
6307         * testsuite/21_strings/basic_string/allocator/71964.cc: Enable test
6308         for old string ABI.
6309         * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
6310
6311         * testsuite/23_containers/list/61347.cc: Avoid spurious failure when
6312         -fno-inline added to test flags.
6313
6314         * testsuite/21_strings/basic_string/requirements/
6315         explicit_instantiation/debug.cc: Remove XFAIL for old ABI.
6316
6317         * testsuite/27_io/filesystem/filesystem_error/copy.cc: Fix static
6318         assertion failures with old std::string ABI.
6319
6320         * include/bits/fs_path.h (path::_List::erase): Replace both overloads
6321         with ...
6322         (path::pop_back(), path::_M_erase_from(const_iterator)): New member
6323         functions that will only erase elements at the end.
6324         * src/filesystem/std-path.cc (path::_List::_Impl::pop_back()): Define.
6325         (path::_List::_Impl::_M_erase_from(const_iterator)): Define.
6326         (path::_List::operator=(const _List&)): Use _M_erase_from(p) instead
6327         of erase(p, end()).
6328         (path::_List::pop_back()): Define.
6329         (path::_List::_M_erase_from(const_iterator)): Define.
6330         (path::operator/=(const path&)): Use pop_back to remove last component
6331         and _M_erase_from to remove multiple components.
6332         (path::_M_append(basic_string_view<value_type>)): Likewise.
6333         (path::operator+=(const path&)): Likewise.
6334         (path::_M_concat(basic_string_view<value_type>)): Likewise.
6335         (path::remove_filename()): Likewise.
6336         (path::lexically_normal()): Use _List::_Impl iterators instead of
6337         path::iterator. Use pop_back to remove components from the end. Clear
6338         trailing filename, instead of using erase(const_iterator) to remove
6339         a non-final component.
6340         * testsuite/27_io/filesystem/path/generation/normal.cc: Test
6341         additional cases.
6342         * testsuite/27_io/filesystem/path/generation/normal2.cc: New test.
6343
6344         * src/filesystem/std-path.cc (path::operator+=(const path&)): Fix
6345         incorrect treatment of empty filename after trailing slash.
6346         * testsuite/27_io/filesystem/path/concat/path.cc: Test problem case.
6347
6348         * testsuite/21_strings/basic_string/modifiers/assign/char/
6349         move_assign_optim.cc: Avoid spurious failure when -fno-inline added
6350         to test flags.
6351         * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/
6352         move_assign_optim.cc: Likewise.
6353
6354 2019-01-03  Jonathan Wakely  <jwakely@redhat.com>
6355             Jakub Jelinek  <jakub@redhat.com>
6356
6357         PR libstdc++/88607
6358         * include/experimental/memory: Replace UTF-8 quote characters.
6359         * include/std/future: Replace UTF-8 "em dash" characters.
6360
6361 2019-01-03  Jonathan Wakely  <jwakely@redhat.com>
6362
6363         PR libstdc++/88607
6364         * include/bits/forward_list.h: Replace UTF-8 "ligature fi" character.
6365         * include/debug/forward_list: Likewise.
6366         * include/experimental/bits/shared_ptr.h: Remove UTF-8 "section sign"
6367         character.
6368         * include/experimental/chrono: Likewise.
6369         * include/experimental/functional: Likewise.
6370         * include/experimental/ratio: Likewise.
6371         * include/experimental/system_error: Likewise.
6372         * include/experimental/tuple: Likewise.
6373         * include/experimental/type_traits: Likewise.
6374         * include/parallel/workstealing.h: Replace UTF-8 "en dash" character.
6375         * include/parallel/multiseq_selection.h: Likewise.
6376
6377         PR libstdc++/88681
6378         * config/abi/pre/gnu.ver: Add missing exports.
6379         * testsuite/22_locale/collate_byname/88681.cc: New test.
6380         * testsuite/22_locale/time_get/get/char/88681.cc: New test.
6381         * testsuite/22_locale/time_get/get/wchar_t/88681.cc: New test.
6382
6383 2019-01-02  Jonathan Wakely  <jwakely@redhat.com>
6384
6385         * testsuite/23_containers/map/cons/deduction.cc: Test deduction from
6386         initializer_list<value_type> and from input iterator ranges.
6387         * testsuite/23_containers/multimap/cons/deduction.cc: Likewise.
6388
6389         * testsuite/experimental/string_view/element_access/char/empty.cc:
6390         Fix year range in copyright header.
6391
6392 2019-01-02  Joel Brobecker  <brobecker@adacore.com>
6393
6394         * testsuite/21_strings/basic_string_view/element_access/char/empty.cc:
6395         Fix year range in copyright header.
6396
6397 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
6398
6399         Update copyright years.
6400 \f
6401 Copyright (C) 2019 Free Software Foundation, Inc.
6402
6403 Copying and distribution of this file, with or without modification,
6404 are permitted in any medium without royalty provided the copyright
6405 notice and this notice are preserved.