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