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