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