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