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