1 2023-12-21 Arsen Arsenović <arsen@aarsen.me>
3 * include/Makefile.am: Install std/generator, bits/elements_of.h
5 * include/Makefile.in: Regenerate.
6 * include/bits/version.def: Add __cpp_lib_generator.
7 * include/bits/version.h: Regenerate.
8 * include/precompiled/stdc++.h: Include <generator>.
9 * include/std/ranges: Include bits/elements_of.h
10 * include/bits/elements_of.h: New file.
11 * include/std/generator: New file.
12 * testsuite/24_iterators/range_generators/01.cc: New test.
13 * testsuite/24_iterators/range_generators/02.cc: New test.
14 * testsuite/24_iterators/range_generators/copy.cc: New test.
15 * testsuite/24_iterators/range_generators/except.cc: New test.
16 * testsuite/24_iterators/range_generators/synopsis.cc: New test.
17 * testsuite/24_iterators/range_generators/subrange.cc: New test.
19 2023-12-21 Arsen Arsenović <arsen@aarsen.me>
21 * include/bits/ranges_util.h: Add missing <bits/invoke.h>
24 2023-12-18 Patrick Palka <ppalka@redhat.com>
28 * include/std/ranges (__detail::_To::operator()): Add constraints.
29 (__detail::_To2::operator()): Likewise.
30 * testsuite/std/ranges/conv/1.cc (test_sfinae): New test.
31 (test_composition): New test.
33 2023-12-16 Jonathan Wakely <jwakely@redhat.com>
35 * src/c++23/print.cc (__open_terminal(FILE*)): Avoid fileno
38 2023-12-16 H.J. Lu <hjl.tools@gmail.com>
40 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt:
43 2023-12-16 Ken Matsui <kmatsui@gcc.gnu.org>
45 * include/std/type_traits (remove_pointer): Use __remove_pointer
48 2023-12-16 Ken Matsui <kmatsui@gcc.gnu.org>
50 * include/std/type_traits (is_object): Use __is_object built-in
52 (is_object_v): Likewise.
54 2023-12-16 Ken Matsui <kmatsui@gcc.gnu.org>
56 * include/std/type_traits (is_function): Use __is_function
58 (is_function_v): Likewise. Optimize its implementation. Move
59 this under is_const_v as this depends on is_const_v.
61 2023-12-16 Ken Matsui <kmatsui@gcc.gnu.org>
63 * include/std/type_traits (is_reference): Use __is_reference
65 (is_reference_v): Likewise.
67 2023-12-16 Ken Matsui <kmatsui@gcc.gnu.org>
69 * include/std/type_traits (is_member_object_pointer): Use
70 __is_member_object_pointer built-in trait.
71 (is_member_object_pointer_v): Likewise.
73 2023-12-16 Ken Matsui <kmatsui@gcc.gnu.org>
75 * include/std/type_traits (is_member_function_pointer): Use
76 __is_member_function_pointer built-in trait.
77 (is_member_function_pointer_v): Likewise.
79 2023-12-16 Ken Matsui <kmatsui@gcc.gnu.org>
81 * include/std/type_traits (is_member_pointer): Use
82 __is_member_pointer built-in trait.
83 (is_member_pointer_v): Likewise.
85 2023-12-16 Ken Matsui <kmatsui@gcc.gnu.org>
87 * include/std/type_traits (is_scoped_enum): Use
88 __is_scoped_enum built-in trait.
89 (is_scoped_enum_v): Likewise.
91 2023-12-16 Ken Matsui <kmatsui@gcc.gnu.org>
93 * include/std/type_traits (is_bounded_array_v): Use
94 __is_bounded_array built-in trait.
96 2023-12-16 Ken Matsui <kmatsui@gcc.gnu.org>
98 * include/std/type_traits (is_array): Use __is_array built-in
100 (is_array_v): Likewise.
102 2023-12-15 Jonathan Wakely <jwakely@redhat.com>
104 * src/c++23/print.cc (__write_to_terminal) [_WIN32]: If handle
105 does not refer to the console then just write to it using normal
107 * testsuite/27_io/print/2.cc (as_printed_to_terminal): Print
108 error message on failure.
109 (test_utf16_transcoding): Adjust for as_printed_to_terminal
110 modifying its argument.
112 2023-12-15 Jonathan Wakely <jwakely@redhat.com>
114 * include/std/ostream (vprint_unicode) [_WIN32]: Use RAII guard.
115 (vprint_unicode) [!_WIN32]: Just call vprint_nonunicode.
116 * include/std/print (vprint_unicode) [!_WIN32]: Likewise.
118 2023-12-15 Jonathan Wakely <jwakely@redhat.com>
120 * include/std/ostream (vprint_nonunicode, vprint_unicode): Do
122 * testsuite/27_io/basic_ostream/print/1.cc: Adjust expected
125 2023-12-14 Jonathan Wakely <jwakely@redhat.com>
128 * include/Makefile.am: Add new header.
129 * include/Makefile.in: Regenerate.
130 * include/bits/version.def (__cpp_lib_print): Define.
131 * include/bits/version.h: Regenerate.
132 * include/std/format (__literal_encoding_is_utf8): New function.
133 (_Seq_sink::view()): New member function.
134 * include/std/ostream (vprintf_nonunicode, vprintf_unicode)
135 (print, println): New functions.
136 * include/std/print: New file.
137 * src/c++23/Makefile.am: Add new source file.
138 * src/c++23/Makefile.in: Regenerate.
139 * src/c++23/print.cc: New file.
140 * testsuite/27_io/basic_ostream/print/1.cc: New test.
141 * testsuite/27_io/print/1.cc: New test.
142 * testsuite/27_io/print/2.cc: New test.
144 2023-12-14 Jonathan Wakely <jwakely@redhat.com>
146 * acinclude.m4 (GLIBCXX_CHECK_FILEBUF_NATIVE_HANDLES): Add
147 missing header to configure test. Check correct variable.
148 * config/io/basic_file_stdio.cc (__basic_file<char>::native_handle):
150 * configure: Regenerate.
151 * testsuite/27_io/basic_filebuf/native_handle/char/1.cc: Do not
152 call CloseHandle on the native handle.
153 * testsuite/27_io/basic_filebuf/native_handle/wchar_t/1.cc:
156 2023-12-14 Jonathan Wakely <jwakely@redhat.com>
158 * include/std/format (_Seq_sink): Fix missing argument in
159 discarded statement. Add comments, likely/unlikely attributes
160 and debug assertions as sanity checks.
162 2023-12-14 Jonathan Wakely <jwakely@redhat.com>
164 * testsuite/27_io/objects/char/2.cc: Use dg-output.
165 * testsuite/27_io/objects/wchar_t/2.cc: Use dg-output.
167 2023-12-14 Jonathan Wakely <jwakely@redhat.com>
169 * include/bits/chrono_io.h (__formatter_chrono::_M_S): Fix order
170 of arguments to std::format_to.
171 * testsuite/20_util/duration/io.cc: Test subsecond duration with
174 2023-12-14 Jonathan Wakely <jwakely@redhat.com>
177 * include/bits/c++config (__glibcxx_constexpr_assert): Remove
179 * include/bits/stl_algobase.h (__niter_base, __copy_move_a)
180 (__copy_move_backward_a, __fill_a, __fill_n_a, __equal_aux)
181 (__lexicographical_compare_aux): Add constexpr to overloads for
182 debug mode iterators.
183 * include/debug/helper_functions.h (__unsafe): Add constexpr.
184 * include/debug/macros.h (_GLIBCXX_DEBUG_VERIFY_COND_AT): Remove
185 macro, folding it into ...
186 (_GLIBCXX_DEBUG_VERIFY_AT_F): ... here. Do not use
187 __glibcxx_constexpr_assert.
188 * include/debug/safe_base.h (_Safe_iterator_base): Add constexpr
189 to some member functions. Omit attaching, detaching and checking
190 operations during constant evaluation.
191 * include/debug/safe_container.h (_Safe_container): Likewise.
192 * include/debug/safe_iterator.h (_Safe_iterator): Likewise.
193 * include/debug/safe_iterator.tcc (__niter_base, __copy_move_a)
194 (__copy_move_backward_a, __fill_a, __fill_n_a, __equal_aux)
195 (__lexicographical_compare_aux): Add constexpr.
196 * include/debug/vector (_Safe_vector, vector): Add constexpr.
197 Omit safe iterator operations during constant evaluation.
198 * testsuite/23_containers/vector/bool/capacity/constexpr.cc:
199 Remove dg-xfail-if for debug mode.
200 * testsuite/23_containers/vector/bool/cmp_c++20.cc: Likewise.
201 * testsuite/23_containers/vector/bool/cons/constexpr.cc:
203 * testsuite/23_containers/vector/bool/element_access/1.cc:
205 * testsuite/23_containers/vector/bool/element_access/constexpr.cc:
207 * testsuite/23_containers/vector/bool/modifiers/assign/constexpr.cc:
209 * testsuite/23_containers/vector/bool/modifiers/constexpr.cc:
211 * testsuite/23_containers/vector/bool/modifiers/swap/constexpr.cc:
213 * testsuite/23_containers/vector/capacity/constexpr.cc:
215 * testsuite/23_containers/vector/cmp_c++20.cc: Likewise.
216 * testsuite/23_containers/vector/cons/constexpr.cc: Likewise.
217 * testsuite/23_containers/vector/data_access/constexpr.cc:
219 * testsuite/23_containers/vector/element_access/constexpr.cc:
221 * testsuite/23_containers/vector/modifiers/assign/constexpr.cc:
223 * testsuite/23_containers/vector/modifiers/constexpr.cc:
225 * testsuite/23_containers/vector/modifiers/swap/constexpr.cc:
227 * testsuite/23_containers/vector/cons/destructible_debug_neg.cc:
228 Adjust dg-error line number.
230 2023-12-13 Jonathan Wakely <jwakely@redhat.com>
232 * include/bits/chrono_io.h (__formatter_chrono::_M_C_y_Y): Do
233 not round century down for %Y formats.
235 2023-12-12 Jonathan Wakely <jwakely@redhat.com>
237 * include/std/format (__do_vformat_to): Handle char separately
238 from other integral types.
239 * testsuite/std/format/functions/format.cc: Check for expected
240 output for char and bool arguments.
241 * testsuite/std/format/string.cc: Check that 0 filling is
242 rejected for character and string formats.
244 2023-12-12 Jonathan Wakely <jwakely@redhat.com>
246 * include/bits/chrono_io.h (__formatter_chrono::_M_C_y_Y): Fix
247 rounding for negative centuries.
248 * testsuite/std/time/year/io.cc: Check %C for negative years.
250 2023-12-12 Jonathan Wakely <jwakely@redhat.com>
252 * src/c++11/Makefile.am: Remove redundant -std=gnu++11 flags.
253 * src/c++11/Makefile.in: Regenerate.
255 2023-12-09 Jonathan Wakely <jwakely@redhat.com>
258 * include/bits/version.def (format): Update value.
259 * include/bits/version.h: Regenerate.
260 * testsuite/std/format/functions/format.cc:
262 2023-12-09 Jonathan Wakely <jwakely@redhat.com>
265 * include/std/ranges (ranges::to): Do not try to use an iterator
266 returned by the container's emplace or insert member functions.
267 * testsuite/std/ranges/conv/1.cc (Cont4::emplace, Cont4::insert):
268 Use the iterator parameter. Do not return an iterator.
270 2023-12-07 Patrick Palka <ppalka@redhat.com>
272 * include/std/ranges (__detail::_ToClosure): Replace with ...
273 (__detail::_To): ... this.
274 (__detail::_ToClosure2): Replace with ...
275 (__detail::To2): ... this.
276 (to): Simplify using the existing _Partial range adaptor
279 2023-12-07 Jonathan Wakely <jwakely@redhat.com>
281 * include/std/format (_Iter_sink<charT, contiguous_iterator>):
282 Remove uint64_t local type.
284 2023-12-07 Jonathan Wakely <jwakely@redhat.com>
286 * include/bits/atomic_wait.h: Include <cstdint> instead of
289 2023-12-07 Jonathan Wakely <jwakely@redhat.com>
292 * include/bits/c++config (__is_constant_evaluated): Add
293 always_inline attribute.
294 (_GLIBCXX_DO_ASSERT): Remove macro.
295 (__glibcxx_assert): Define separately for assertions-enabled and
296 constexpr-only cases.
298 2023-12-07 Alexandre Oliva <oliva@adacore.com>
301 * config/os/gnu-linux/os_defines.h
302 (_GLIBCXX_MAY_HAVE___CXA_THREAD_ATEXIT_IMPL): Define.
303 * libsupc++/atexit_thread.cc [__GXX_WEAK__ &&
304 _GLIBCXX_MAY_HAVE___CXA_THREAD_ATEXIT_IMPL]
305 (__cxa_thread_atexit): Add dynamic detection of
306 __cxa_thread_atexit_impl.
308 2023-12-06 Jason Merrill <jason@redhat.com>
312 * testsuite/23_containers/vector/ext_pointer/types/1.cc
313 * testsuite/23_containers/vector/ext_pointer/types/2.cc
314 (N::operator-): Make less specialized.
316 2023-12-06 Alexandre Oliva <oliva@gnu.org>
319 2023-12-02 Alexandre Oliva <oliva@adacore.com>
321 * libsupc++/atexit_thread.cc [__GXX_WEAK__]: Add dynamic
322 detection of __cxa_thread_atexit_impl.
324 2023-12-05 Jonathan Wakely <jwakely@redhat.com>
327 * include/bits/ranges_util.h (subrange): Add constructor to
328 _Size to aoid setting member in constructor.
329 * testsuite/std/ranges/subrange/111948.cc: New test.
331 2023-12-05 Jonathan Wakely <jwakely@redhat.com>
333 * include/std/ranges (__detail::__container_insertable): Remove.
334 (__detail::__container_inserter): Remove.
335 (ranges::to): Use emplace_back or emplace, as per LWG 4016.
336 * testsuite/std/ranges/conv/1.cc (Cont4, test_2_1_4): Check for
337 use of emplace_back and emplace.
339 2023-12-05 Jonathan Wakely <jwakely@redhat.com>
341 * include/bits/c++config (__glibcxx_assert_fail): Declare even
342 when assertions are not enabled.
343 (__glibcxx_constexpr_assert): Remove macro.
344 (__glibcxx_assert_impl): Remove macro.
345 (_GLIBCXX_ASSERT_FAIL): New macro.
346 (_GLIBCXX_DO_ASSERT): New macro.
347 (__glibcxx_assert): Simplify to a single definition that works
348 at runtime and during constant evaluation.
349 * testsuite/21_strings/basic_string_view/element_access/char/back_constexpr_neg.cc:
350 Adjust expected errors.
351 * testsuite/21_strings/basic_string_view/element_access/char/constexpr_neg.cc:
353 * testsuite/21_strings/basic_string_view/element_access/char/front_constexpr_neg.cc:
355 * testsuite/21_strings/basic_string_view/element_access/wchar_t/back_constexpr_neg.cc:
357 * testsuite/21_strings/basic_string_view/element_access/wchar_t/constexpr_neg.cc:
359 * testsuite/21_strings/basic_string_view/element_access/wchar_t/front_constexpr_neg.cc:
361 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/debug.cc:
363 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/debug.cc:
365 * testsuite/23_containers/span/back_neg.cc: Likewise.
366 * testsuite/23_containers/span/front_neg.cc: Likewise.
367 * testsuite/23_containers/span/index_op_neg.cc: Likewise.
368 * testsuite/26_numerics/lcm/105844.cc: Likewise.
370 2023-12-05 Jonathan Wakely <jwakely@redhat.com>
373 * include/std/format (formatter::set_debug_format): Ensure this
374 member is defined conditionally for all specializations.
375 * testsuite/std/format/formatter/112832.cc: New test.
377 2023-12-05 Will Hawkins <hawkinsw@obs.cr>
378 Jonathan Wakely <jwakely@redhat.com>
380 * testsuite/20_util/smartptr.adapt/inout_ptr/2.cc: Add check
383 2023-12-05 Marek Polacek <polacek@redhat.com>
387 * testsuite/18_support/comparisons/categories/zero_neg.cc: Add
389 * testsuite/std/format/string_neg.cc: Add dg-error.
391 2023-12-02 Alexandre Oliva <oliva@adacore.com>
393 * libsupc++/atexit_thread.cc [__GXX_WEAK__]: Add dynamic
394 detection of __cxa_thread_atexit_impl.
396 2023-12-01 Jason Merrill <jason@redhat.com>
398 * include/std/bit: Avoid builtins in requires-clauses.
399 * include/std/variant: Likewise.
401 2023-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
403 * configure: Regenerate.
405 2023-11-30 Jonathan Wakely <jwakely@redhat.com>
407 * include/std/ranges (__detail::__toable): Fix incorrect use of
408 _Range instead of _Cont.
409 (__detail::_ToClosure, __detail::_ToClosure2): Add missing
410 constexpr specifier on constructors.
411 * testsuite/std/ranges/conv/1.cc (_Cont, _Cont2, _Cont3): Remove
412 unnecessary begin() and end() members.
413 (test_constexpr): New function to check range adaptors are
414 usable in constant expressions.
416 2023-11-29 Thomas Schwinge <thomas@codesourcery.com>
418 * testsuite/23_containers/span/at.cc: Fix for '-fno-exceptions'
421 2023-11-28 Jonathan Wakely <jwakely@redhat.com>
423 * include/bits/atomic_wait.h: Include <stdint.h>.
425 2023-11-28 Jonathan Wakely <jwakely@redhat.com>
427 * include/bits/stl_uninitialized.h: Fix typo in comment.
429 2023-11-24 Jan Hubicka <jh@suse.cz>
432 * include/bits/stl_uninitialized.h (__relocate_a_1): Use memcpy instead
435 2023-11-23 Jonathan Wakely <jwakely@redhat.com>
438 * include/bits/ranges_base.h (from_range_t): Define new tag
440 (from_range): Define new tag object.
441 * include/bits/version.def (ranges_to_container): Define.
442 * include/bits/version.h: Regenerate.
443 * include/std/ranges (ranges::to): Define.
444 * testsuite/std/ranges/conv/1.cc: New test.
445 * testsuite/std/ranges/conv/2_neg.cc: New test.
446 * testsuite/std/ranges/conv/version.cc: New test.
448 2023-11-23 Jonathan Wakely <jwakely@redhat.com>
450 * testsuite/util/testsuite_allocator.h (uneq_allocator): Fix
451 equality operator for heterogeneous comparisons.
453 2023-11-21 Jonathan Wakely <jwakely@redhat.com>
455 * include/bits/version.def (freestanding_cstring): Add.
456 * include/bits/version.h: Regenerate.
457 * include/c_compatibility/string.h (strtok): Do not declare for
459 * include/c_global/cstring (strtok): Likewise.
460 * testsuite/21_strings/headers/cstring/version.cc: New test.
462 2023-11-21 Jonathan Wakely <jwakely@redhat.com>
464 * include/bits/version.def (freestanding_algorithm)
465 (freestanding_array, freestanding_optional)
466 (freestanding_string_view, freestanding_variant): Add.
467 * include/bits/version.h: Regenerate.
468 * include/std/algorithm (__glibcxx_want_freestanding_algorithm):
470 * include/std/array (__glibcxx_want_freestanding_array):
472 * include/std/optional (__glibcxx_want_freestanding_optional):
474 * include/std/string_view
475 (__glibcxx_want_freestanding_string_view): Define.
476 * include/std/variant (__glibcxx_want_freestanding_variant):
478 * testsuite/20_util/optional/version.cc: Add checks for
479 __cpp_lib_freestanding_optional.
480 * testsuite/20_util/variant/version.cc: Add checks for
481 __cpp_lib_freestanding_variant.
482 * testsuite/23_containers/array/tuple_interface/get_neg.cc:
483 Adjust dg-error line numbers.
484 * testsuite/21_strings/basic_string_view/requirements/version.cc:
486 * testsuite/23_containers/array/requirements/version.cc: New
488 * testsuite/25_algorithms/fill_n/requirements/version.cc: New
490 * testsuite/25_algorithms/swap_ranges/requirements/version.cc:
493 2023-11-21 Jonathan Wakely <jwakely@redhat.com>
495 * include/bits/version.def (freestanding_expected): New macro.
496 (span): Add C++26 value.
497 * include/bits/version.h: Regenerate.
498 * include/std/expected (__glibcxx_want_freestanding_expected):
500 * include/std/span (span::at): New member function.
501 * testsuite/20_util/expected/version.cc: Add checks for
502 __cpp_lib_freestanding_expected.
503 * testsuite/23_containers/span/2.cc: Moved to...
504 * testsuite/23_containers/span/version.cc: ...here. Add checks
505 for __cpp_lib_span in <span> as well as in <version>.
506 * testsuite/23_containers/span/1.cc: Removed.
507 * testsuite/23_containers/span/at.cc: New test.
509 2023-11-21 Jonathan Wakely <jwakely@redhat.com>
511 * include/tr2/dynamic_bitset (dynamic_bitset): Pass zero and one
512 characters to _M_copy_from_string.
513 * testsuite/tr2/dynamic_bitset/string.cc: New test.
515 2023-11-21 Jonathan Wakely <jwakely@redhat.com>
517 * doc/html/*: Regenerate.
518 * doc/xml/faq.xml: Remove reference to buildstat.html pages.
519 * doc/xml/manual/test.xml: Likewise
521 2023-11-21 Jan Hubicka <jh@suse.cz>
526 * include/bits/stl_vector.h (_M_realloc_append): New member function.
528 * include/bits/vector.tcc: (emplace_back): Use it.
529 (_M_realloc_insert): Let compiler know that new vector size is non-zero.
530 (_M_realloc_append): New member function.
532 2023-11-18 Jonathan Wakely <jwakely@redhat.com>
535 * include/std/format (basic_format_arg::_S_to_arg_type): Check
536 value_type for basic_string_view and basic_string
538 * testsuite/std/format/arguments/112607.cc: New test.
540 2023-11-18 Jonathan Wakely <jwakely@redhat.com>
543 * include/std/format (_Sink_iter::_M_reserve): New member
545 (_Sink::_Reservation): New nested class.
546 (_Sink::_M_reserve, _Sink::_M_bump): New virtual functions.
547 (_Seq_sink::_M_reserve, _Seq_sink::_M_bump): New virtual
549 (_Iter_sink<O, ContigIter>::_M_reserve): Likewise.
550 (__do_vformat_to): Use new functions to optimize "{}" case.
552 2023-11-17 Jonathan Wakely <jwakely@redhat.com>
554 * config.h.in: Regenerate.
556 2023-11-17 Jonathan Wakely <jwakely@redhat.com>
558 * include/Makefile.am: Add new header.
559 * include/Makefile.in: Regenerate.
560 * include/bits/version.def (saturation_arithmetic): Define.
561 * include/bits/version.h: Regenerate.
562 * include/std/numeric: Include new header.
563 * include/bits/sat_arith.h: New file.
564 * testsuite/26_numerics/saturation/add.cc: New test.
565 * testsuite/26_numerics/saturation/cast.cc: New test.
566 * testsuite/26_numerics/saturation/div.cc: New test.
567 * testsuite/26_numerics/saturation/mul.cc: New test.
568 * testsuite/26_numerics/saturation/sub.cc: New test.
569 * testsuite/26_numerics/saturation/version.cc: New test.
571 2023-11-17 Jonathan Wakely <jwakely@redhat.com>
573 * include/std/utility (in_range): Rename _Up parameter to _Res.
575 2023-11-17 Jonathan Wakely <jwakely@redhat.com>
577 * include/bits/out_ptr.h: Add Doxygen comments. Remove a
578 redundant preprocessor condition.
579 * testsuite/20_util/smartptr.adapt/version.cc: New test.
581 2023-11-17 Jonathan Wakely <jwakely@redhat.com>
583 * include/bits/chrono_io.h: Fix Doxygen markup.
585 2023-11-16 Jonathan Wakely <jwakely@redhat.com>
588 * include/std/stacktrace (formatter::format): Format according
590 * include/std/thread (formatter::format): Use _Align_right as
592 * testsuite/19_diagnostics/stacktrace/output.cc: Check
593 fill-and-align handling. Change compile test to run.
594 * testsuite/30_threads/thread/id/output.cc: Check fill-and-align
597 2023-11-16 Jonathan Wakely <jwakely@redhat.com>
600 * include/Makefile.am: Add new header.
601 * include/Makefile.in: Regenerate.
602 * include/bits/out_ptr.h: New file.
603 * include/bits/shared_ptr.h (__is_shared_ptr): Move definition
605 * include/bits/shared_ptr_atomic.h (__is_shared_ptr): ... from
607 * include/bits/shared_ptr_base.h (__shared_count): Declare
608 out_ptr_t as a friend.
609 (_Sp_counted_deleter, __shared_ptr): Likewise.
610 * include/bits/unique_ptr.h (unique_ptr, unique_ptr<T[], D>):
611 Declare out_ptr_t and inout_ptr_t as friends.
612 (__is_unique_ptr): Define new variable template.
613 * include/bits/version.def (out_ptr): Define.
614 * include/bits/version.h: Regenerate.
615 * include/std/memory: Include new header.
616 * testsuite/20_util/smartptr.adapt/inout_ptr/1.cc: New test.
617 * testsuite/20_util/smartptr.adapt/inout_ptr/2.cc: New test.
618 * testsuite/20_util/smartptr.adapt/inout_ptr/shared_ptr_neg.cc:
620 * testsuite/20_util/smartptr.adapt/inout_ptr/void_ptr.cc: New
622 * testsuite/20_util/smartptr.adapt/out_ptr/1.cc: New test.
623 * testsuite/20_util/smartptr.adapt/out_ptr/2.cc: New test.
624 * testsuite/20_util/smartptr.adapt/out_ptr/shared_ptr_neg.cc:
626 * testsuite/20_util/smartptr.adapt/out_ptr/void_ptr.cc: New
629 2023-11-16 Jonathan Wakely <jwakely@redhat.com>
631 * include/bits/algorithmfwd.h: Do not define standard feature
633 * include/bits/align.h: Likewise. Test internal macros instead
635 * include/bits/alloc_traits.h: Likewise.
636 * include/bits/allocator.h: Likewise.
637 * include/bits/atomic_base.h: Likewise.
638 * include/bits/atomic_timed_wait.h: Likewise.
639 * include/bits/atomic_wait.h: Likewise.
640 * include/bits/basic_string.h: Likewise.
641 * include/bits/basic_string.tcc: Likewise.
642 * include/bits/char_traits.h: Likewise.
643 * include/bits/chrono.h: Likewise.
644 * include/bits/cow_string.h: Likewise.
645 * include/bits/forward_list.h: Likewise.
646 * include/bits/hashtable.h: Likewise.
647 * include/bits/ios_base.h: Likewise.
648 * include/bits/memory_resource.h: Likewise.
649 * include/bits/move.h: Likewise.
650 * include/bits/move_only_function.h: Likewise.
651 * include/bits/node_handle.h: Likewise.
652 * include/bits/ptr_traits.h: Likewise.
653 * include/bits/range_access.h: Likewise.
654 * include/bits/ranges_algo.h: Likewise.
655 * include/bits/ranges_cmp.h: Likewise.
656 * include/bits/ranges_util.h: Likewise.
657 * include/bits/semaphore_base.h: Likewise.
658 * include/bits/shared_ptr.h: Likewise.
659 * include/bits/shared_ptr_atomic.h: Likewise.
660 * include/bits/shared_ptr_base.h: Likewise.
661 * include/bits/stl_algo.h: Likewise.
662 * include/bits/stl_algobase.h: Likewise.
663 * include/bits/stl_function.h: Likewise.
664 * include/bits/stl_iterator.h: Likewise.
665 * include/bits/stl_list.h: Likewise.
666 * include/bits/stl_map.h: Likewise.
667 * include/bits/stl_pair.h: Likewise.
668 * include/bits/stl_queue.h: Likewise.
669 * include/bits/stl_stack.h: Likewise.
670 * include/bits/stl_tree.h: Likewise.
671 * include/bits/stl_uninitialized.h: Likewise.
672 * include/bits/stl_vector.h: Likewise.
673 * include/bits/unique_ptr.h: Likewise.
674 * include/bits/unordered_map.h: Likewise.
675 * include/bits/uses_allocator_args.h: Likewise.
676 * include/bits/utility.h: Likewise.
677 * include/bits/erase_if.h: Add comment.
678 * include/std/algorithm: Define standard feature test macros
680 * include/std/atomic: Likewise.
681 * include/std/array: Likewise.
682 * include/std/chrono: Likewise.
683 * include/std/condition_variable: Likewise.
684 * include/std/deque: Likewise.
685 * include/std/format: Likewise.
686 * include/std/functional: Likewise.
687 * include/std/forward_list: Likewise.
688 * include/std/ios: Likewise.
689 * include/std/iterator: Likewise.
690 * include/std/list: Likewise.
691 * include/std/map: Likewise.
692 * include/std/memory: Likewise.
693 * include/std/numeric: Likewise.
694 * include/std/queue: Likewise.
695 * include/std/ranges: Likewise.
696 * include/std/regex: Likewise.
697 * include/std/set: Likewise.
698 * include/std/stack: Likewise.
699 * include/std/stop_token: Likewise.
700 * include/std/string: Likewise.
701 * include/std/string_view:
702 * include/std/tuple: Likewise.
703 * include/std/unordered_map:
704 * include/std/unordered_set:
705 * include/std/utility: Likewise.
706 * include/std/vector: Likewise.
707 * include/std/scoped_allocator: Query internal macros instead of
710 2023-11-16 Jonathan Wakely <jwakely@redhat.com>
712 * testsuite/18_support/byte/requirements.cc: Disable PCH.
713 * testsuite/18_support/destroying_delete.cc: Likewise.
714 * testsuite/18_support/source_location/1.cc: Likewise.
715 * testsuite/18_support/source_location/version.cc: Likewise.
716 * testsuite/18_support/type_info/constexpr.cc: Likewise.
717 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
719 * testsuite/19_diagnostics/stacktrace/output.cc: Likewise.
720 * testsuite/19_diagnostics/stacktrace/synopsis.cc: Likewise.
721 * testsuite/19_diagnostics/stacktrace/version.cc: Likewise.
722 * testsuite/20_util/addressof/requirements/constexpr.cc:
724 * testsuite/20_util/allocator_traits/header-2.cc: Likewise.
725 * testsuite/20_util/allocator_traits/header.cc: Likewise.
726 * testsuite/20_util/as_const/1.cc: Likewise. Likewise.
727 * testsuite/20_util/bitset/cons/constexpr_c++23.cc: Likewise.
728 * testsuite/20_util/bitset/version.cc: Likewise.
729 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc:
731 * testsuite/20_util/duration_cast/rounding.cc: Likewise.
732 * testsuite/20_util/enable_shared_from_this/members/weak_from_this.cc:
734 * testsuite/20_util/exchange/constexpr.cc: Likewise.
735 * testsuite/20_util/expected/synopsis.cc: Likewise.
736 * testsuite/20_util/expected/version.cc: Likewise.
737 * testsuite/20_util/function_objects/bind_front/1.cc: Likewise.
738 * testsuite/20_util/function_objects/bind_front/2.cc: Likewise.
739 * testsuite/20_util/function_objects/invoke/3.cc: Likewise.
740 * testsuite/20_util/function_objects/invoke/4.cc: Likewise.
741 * testsuite/20_util/function_objects/invoke/constexpr.cc:
743 * testsuite/20_util/function_objects/invoke/version.cc:
745 * testsuite/20_util/function_objects/searchers.cc: Likewise.
746 * testsuite/20_util/integer_comparisons/1.cc: Likewise.
747 * testsuite/20_util/integer_comparisons/2.cc: Likewise.
748 * testsuite/20_util/is_bounded_array/value.cc: Likewise.
749 * testsuite/20_util/is_layout_compatible/value.cc: Likewise.
750 * testsuite/20_util/is_layout_compatible/version.cc: Likewise.
751 * testsuite/20_util/is_nothrow_swappable/requirements/explicit_instantiation.cc:
753 * testsuite/20_util/is_nothrow_swappable/requirements/typedefs.cc:
755 * testsuite/20_util/is_nothrow_swappable/value.cc: Likewise.
756 * testsuite/20_util/is_nothrow_swappable/value.h: Likewise.
757 * testsuite/20_util/is_nothrow_swappable_with/requirements/explicit_instantiation.cc:
758 Remove redundant checks already tested elsewhere.
759 * testsuite/20_util/is_nothrow_swappable_with/requirements/typedefs.cc:
761 * testsuite/20_util/is_nothrow_swappable_with/value.cc: Disable
763 * testsuite/20_util/is_pointer_interconvertible/value.cc:
765 * testsuite/20_util/is_pointer_interconvertible/version.cc:
767 * testsuite/20_util/is_scoped_enum/value.cc: Likewise.
768 * testsuite/20_util/is_scoped_enum/version.cc: Likewise.
769 * testsuite/20_util/is_swappable/requirements/explicit_instantiation.cc:
770 Remove redundant checks already tested elsewhere.
771 * testsuite/20_util/is_swappable/requirements/typedefs.cc:
772 Remove redundant checks already tested elsewhere.
773 * testsuite/20_util/is_swappable/value.cc: Disable PCH.
774 * testsuite/20_util/is_swappable/value.h: Reorder headers.
775 * testsuite/20_util/is_swappable_with/requirements/explicit_instantiation.cc:
776 Remove redundant checks already tested elsewhere.
777 * testsuite/20_util/is_swappable_with/requirements/typedefs.cc:
778 Remove redundant checks already tested elsewhere.
779 * testsuite/20_util/is_swappable_with/value.cc: Disable PCH.
780 * testsuite/20_util/is_unbounded_array/value.cc: Likewise.
781 * testsuite/20_util/move_only_function/cons.cc: Likewise.
782 * testsuite/20_util/move_only_function/version.cc: Likewise.
783 * testsuite/20_util/optional/monadic/and_then.cc: Likewise.
784 * testsuite/20_util/optional/requirements.cc: Likewise.
785 * testsuite/20_util/optional/version.cc: Likewise.
786 * testsuite/20_util/owner_less/void.cc: Likewise.
787 * testsuite/20_util/reference_from_temporary/value.cc: Likewise.
788 * testsuite/20_util/reference_from_temporary/version.cc:
790 * testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc:
792 * testsuite/20_util/shared_ptr/creation/array.cc: Likewise.
793 * testsuite/20_util/shared_ptr/creation/overwrite.cc: Likewise.
794 * testsuite/20_util/shared_ptr/creation/version.cc: Likewise.
795 * testsuite/20_util/time_point_cast/rounding.cc: Likewise.
796 * testsuite/20_util/to_chars/constexpr.cc: Likewise.
797 * testsuite/20_util/to_chars/result.cc: Likewise.
798 * testsuite/20_util/to_chars/version.cc: Likewise.
799 * testsuite/20_util/to_underlying/1.cc: Likewise.
800 * testsuite/20_util/to_underlying/version.cc: Likewise.
801 * testsuite/20_util/tuple/apply/1.cc: Likewise.
802 * testsuite/20_util/tuple/cons/constexpr_allocator_arg_t.cc:
804 * testsuite/20_util/tuple/make_from_tuple/1.cc: Likewise.
805 * testsuite/20_util/tuple/p2321r2.cc: Likewise.
806 * testsuite/20_util/tuple/tuple_element_t.cc: Likewise.
807 * testsuite/20_util/unique_ptr/cons/constexpr_c++20.cc:
809 * testsuite/20_util/unique_ptr/creation/for_overwrite.cc:
811 * testsuite/20_util/unreachable/1.cc: Likewise.
812 * testsuite/20_util/unreachable/version.cc: Likewise.
813 * testsuite/20_util/unwrap_reference/1.cc: Likewise.
814 * testsuite/20_util/unwrap_reference/3.cc: Likewise.
815 * testsuite/20_util/variant/constexpr.cc: Likewise.
816 * testsuite/20_util/variant/version.cc: Likewise.
817 * testsuite/20_util/variant/visit_inherited.cc: Likewise.
818 * testsuite/20_util/void_t/1.cc: Likewise.
819 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
821 * testsuite/21_strings/basic_string/cons/char/constexpr.cc:
823 * testsuite/21_strings/basic_string/cons/wchar_t/constexpr.cc:
825 * testsuite/21_strings/basic_string/erasure.cc: Likewise.
826 * testsuite/21_strings/basic_string/numeric_conversions/char/to_string_float.cc:
828 * testsuite/21_strings/basic_string/numeric_conversions/version.cc:
830 * testsuite/21_strings/basic_string/version.cc: Likewise.
831 * testsuite/21_strings/basic_string_view/operations/contains/char.cc:
833 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
835 * testsuite/21_strings/basic_string_view/operations/copy/char/constexpr.cc:
837 * testsuite/21_strings/char_traits/requirements/constexpr_functions_c++17.cc:
839 * testsuite/21_strings/char_traits/requirements/constexpr_functions_c++20.cc:
841 * testsuite/21_strings/char_traits/requirements/version.cc:
843 * testsuite/23_containers/array/comparison_operators/constexpr.cc:
845 * testsuite/23_containers/array/creation/1.cc: Likewise.
846 * testsuite/23_containers/array/creation/2.cc: Likewise.
847 * testsuite/23_containers/array/element_access/constexpr_c++17.cc:
849 * testsuite/23_containers/array/requirements/constexpr_fill.cc:
851 * testsuite/23_containers/array/requirements/constexpr_iter.cc:
853 * testsuite/23_containers/deque/erasure.cc: Likewise.
854 * testsuite/23_containers/forward_list/erasure.cc: Likewise.
855 * testsuite/23_containers/list/erasure.cc: Likewise.
856 * testsuite/23_containers/map/erasure.cc: Likewise.
857 * testsuite/23_containers/queue/cons_from_iters.cc: Likewise.
858 * testsuite/23_containers/set/erasure.cc: Likewise.
859 * testsuite/23_containers/span/1.cc: Likewise.
860 * testsuite/23_containers/span/2.cc: Likewise.
861 * testsuite/23_containers/stack/cons_from_iters.cc: Likewise.
862 * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
863 * testsuite/23_containers/unordered_map/operations/1.cc:
865 * testsuite/23_containers/unordered_set/erasure.cc: Likewise.
866 * testsuite/23_containers/unordered_set/operations/1.cc:
868 * testsuite/23_containers/vector/cons/constexpr.cc: Likewise.
869 * testsuite/23_containers/vector/erasure.cc: Likewise.
870 * testsuite/23_containers/vector/requirements/version.cc:
872 * testsuite/24_iterators/insert_iterator/constexpr.cc: Likewise.
873 * testsuite/25_algorithms/clamp/constexpr.cc: Likewise.
874 * testsuite/25_algorithms/clamp/requirements/explicit_instantiation/1.cc:
875 Remove redundant checks already tested elsewhere.
876 * testsuite/25_algorithms/constexpr_macro.cc: Likewise.
877 * testsuite/25_algorithms/cpp_lib_constexpr.cc: Likewise.
878 * testsuite/25_algorithms/fold_left/1.cc: Likewise.
879 * testsuite/25_algorithms/pstl/feature_test-2.cc: Likewise.
880 * testsuite/25_algorithms/pstl/feature_test-3.cc: Likewise.
881 * testsuite/25_algorithms/pstl/feature_test-4.cc: Likewise.
882 * testsuite/25_algorithms/pstl/feature_test-5.cc: Likewise.
883 * testsuite/25_algorithms/pstl/feature_test.cc: Likewise.
884 * testsuite/26_numerics/bit/bit.byteswap/byteswap.cc: Likewise.
885 * testsuite/26_numerics/bit/bit.byteswap/version.cc: Likewise.
886 * testsuite/26_numerics/bit/bit.cast/bit_cast.cc: Likewise.
887 * testsuite/26_numerics/bit/bit.cast/version.cc: Likewise.
888 * testsuite/26_numerics/bit/header-2.cc: Likewise.
889 * testsuite/26_numerics/bit/header.cc: Likewise.
890 * testsuite/26_numerics/complex/1.cc: Likewise.
891 * testsuite/26_numerics/complex/2.cc: Likewise.
892 * testsuite/26_numerics/endian/2.cc: Likewise.
893 * testsuite/26_numerics/endian/3.cc: Likewise.
894 * testsuite/26_numerics/gcd/1.cc: Likewise.
895 * testsuite/26_numerics/lcm/1.cc: Likewise.
896 * testsuite/26_numerics/lerp/1.cc: Likewise.
897 * testsuite/26_numerics/lerp/version.cc: Likewise.
898 * testsuite/26_numerics/midpoint/integral.cc: Likewise.
899 * testsuite/26_numerics/midpoint/version.cc: Likewise.
900 * testsuite/26_numerics/numbers/1.cc: Likewise.
901 * testsuite/26_numerics/numbers/2.cc: Likewise.
902 * testsuite/27_io/basic_filebuf/native_handle/char/1.cc:
904 * testsuite/27_io/basic_filebuf/native_handle/version.cc:
906 * testsuite/27_io/basic_ofstream/open/char/noreplace.cc:
908 * testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc:
910 * testsuite/27_io/basic_syncbuf/1.cc: Likewise.
911 * testsuite/27_io/basic_syncbuf/2.cc: Likewise.
912 * testsuite/27_io/basic_syncstream/1.cc: Likewise.
913 * testsuite/27_io/basic_syncstream/2.cc: Likewise.
914 * testsuite/27_io/spanstream/1.cc: Likewise.
915 * testsuite/27_io/spanstream/version.cc: Likewise.
916 * testsuite/29_atomics/atomic/cons/value_init.cc: Likewise.
917 * testsuite/29_atomics/atomic/lock_free_aliases.cc: Likewise.
918 * testsuite/29_atomics/atomic/wait_notify/1.cc: Likewise.
919 * testsuite/29_atomics/atomic/wait_notify/2.cc: Likewise.
920 * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc:
922 * testsuite/29_atomics/headers/stdatomic.h/version.cc: Likewise.
923 * testsuite/30_threads/barrier/1.cc: Likewise.
924 * testsuite/30_threads/barrier/2.cc: Likewise.
925 * testsuite/30_threads/condition_variable_any/stop_token/1.cc:
927 * testsuite/30_threads/condition_variable_any/stop_token/2.cc:
929 * testsuite/30_threads/jthread/1.cc: Likewise.
930 * testsuite/30_threads/jthread/version.cc: Likewise.
931 * testsuite/30_threads/latch/1.cc: Likewise.
932 * testsuite/30_threads/latch/2.cc: Likewise.
933 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc:
935 * testsuite/30_threads/semaphore/1.cc: Likewise.
936 * testsuite/30_threads/semaphore/2.cc: Likewise.
937 * testsuite/30_threads/stop_token/1.cc: Likewise.
938 * testsuite/30_threads/stop_token/2.cc: Likewise.
939 * testsuite/experimental/feat-char8_t.cc: Likewise.
940 * testsuite/experimental/iterator/ostream_joiner.cc: Likewise.
941 * testsuite/experimental/numeric/gcd.cc: Likewise.
942 * testsuite/experimental/scopeguard/uniqueres.cc: Likewise.
943 * testsuite/std/concepts/1.cc: Likewise.
944 * testsuite/std/concepts/2.cc: Likewise.
945 * testsuite/std/ranges/adaptors/as_const/1.cc: Likewise.
946 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Likewise.
947 * testsuite/std/ranges/adaptors/chunk/1.cc: Likewise.
948 * testsuite/std/ranges/adaptors/chunk_by/1.cc: Likewise.
949 * testsuite/std/ranges/adaptors/enumerate/1.cc: Likewise.
950 * testsuite/std/ranges/adaptors/join_with/1.cc: Likewise.
951 * testsuite/std/ranges/adaptors/slide/1.cc: Likewise.
952 * testsuite/std/ranges/adaptors/stride/1.cc: Likewise.
953 * testsuite/std/ranges/cartesian_product/1.cc: Likewise.
954 * testsuite/std/ranges/headers/ranges/synopsis.cc: Likewise.
955 * testsuite/std/ranges/repeat/1.cc: Likewise.
956 * testsuite/std/ranges/version_c++23.cc: Likewise.
957 * testsuite/std/ranges/zip/1.cc: Likewise.
958 * testsuite/std/time/syn_c++20.cc: Likewise.
959 * testsuite/experimental/feat-cxx14.cc: Likewise. Include
960 <algorithm> and <iterator>.
961 * testsuite/23_containers/array/tuple_interface/get_neg.cc:
962 Adjust dg-error line numbers.
964 2023-11-16 Jonathan Wakely <jwakely@redhat.com>
966 * include/bits/version.def (stds): Use >= 202100 for C++23
968 * include/bits/version.h: Regenerate.
969 * include/std/thread: Use > C++20 instead of >= C++23 for
970 __cplusplus condition.
972 2023-11-16 Jonathan Wakely <jwakely@redhat.com>
974 * include/std/istream (__rvalue_stream_extraction_t): Test
975 __cpp_concepts instead of __cpp_lib_concepts.
976 * include/std/ostream (__derived_from_ios_base): Likewise.
977 (__rvalue_stream_insertion_t): Likewise.
979 2023-11-15 Jonathan Wakely <jwakely@redhat.com>
982 * python/libstdcxx/v6/xmethods.py (DequeWorkerBase.index):
983 Correctly handle unused capacity at the start of the first node.
984 * testsuite/libstdc++-xmethods/deque.cc: Check index operator
985 when elements have been removed from the front.
987 2023-11-15 Jonathan Wakely <jwakely@redhat.com>
989 * include/std/stacktrace (basic_stacktrace::at): Fix class name
990 in exception message.
991 * testsuite/19_diagnostics/stacktrace/hash.cc: Do not fail if
992 current() returns a non-empty stacktrace.
994 2023-11-15 Alexandre Oliva <oliva@gnu.org>
997 2023-11-15 Alexandre Oliva <oliva@adacore.com>
999 * include/bits/stl_bvector.h (_GLIBCXX_ALWAYS_INLINE): Undef.
1001 2023-11-15 Alexandre Oliva <oliva@adacore.com>
1003 * include/bits/stl_bvector.h (_GLIBCXX_ALWAYS_INLINE): Undef.
1005 2023-11-14 Cassio Neri <cassio.neri@gmail.com>
1007 * include/std/chrono (operator-(const weekday&, const weekday&)):
1010 2023-11-14 Cassio Neri <cassio.neri@gmail.com>
1012 * include/std/chrono (weekday::_S_from_days): Fix UB.
1013 * testsuite/std/time/weekday/1.cc: Add test for overflow.
1015 2023-11-14 Cassio Neri <cassio.neri@gmail.com>
1017 * include/std/chrono (year::is_leap): Clear code.
1019 2023-11-14 Cassio Neri <cassio.neri@gmail.com>
1021 * include/std/chrono (year_month_day_last::day): Remove &1.
1023 2023-11-14 Jonathan Wakely <jwakely@redhat.com>
1025 * include/std/charconv (__from_chars_pow2_base): Convert base to
1026 unsigned for call to __countr_zero.
1027 (__from_chars_alnum): Likewise for call to __bit_width.
1029 2023-11-14 Jonathan Wakely <jwakely@redhat.com>
1032 * include/std/stacktrace (hash<basic_stacktrace<Alloc>>): Fix
1033 type of hash functio nfor entries.
1034 * testsuite/19_diagnostics/stacktrace/hash.cc: New test.
1036 2023-11-14 Jonathan Wakely <jwakely@redhat.com>
1039 * python/libstdcxx/v6/xmethods.py (DequeWorkerBase.size): Fix
1040 calculation to use _M_start._M_cur.
1041 * testsuite/libstdc++-xmethods/deque.cc: Check failing cases.
1043 2023-11-13 Arsen Arsenović <arsen@aarsen.me>
1045 * configure: Regenerate.
1047 2023-11-13 Jonathan Wakely <jwakely@redhat.com>
1049 * testsuite/std/time/clock/file/io.cc: Double timeout using
1051 * testsuite/std/time/clock/gps/io.cc: Likewise.
1052 * testsuite/std/time/clock/local/io.cc: Likewise.
1053 * testsuite/std/time/clock/system/io.cc: Likewise.
1054 * testsuite/std/time/clock/tai/io.cc: Likewise.
1055 * testsuite/std/time/clock/utc/io.cc: Likewise.
1057 2023-11-13 Jonathan Wakely <jwakely@redhat.com>
1060 * include/std/optional (_Optional_payload_base::_M_reset): Set
1061 _M_engaged to false unconditionally.
1063 2023-11-11 Jonathan Wakely <jwakely@redhat.com>
1066 * include/bits/stl_bvector.h (_M_assume_normalized): Do not use
1067 statement form of assume attribute for Clang.
1069 2023-11-11 Jonathan Wakely <jwakely@redhat.com>
1071 * include/std/string_view (operator==, operator<=>): Remove
1072 redundant overloads (LWG 3950).
1074 2023-11-11 Jonathan Wakely <jwakely@redhat.com>
1076 * testsuite/26_numerics/headers/complex.h/std_c++11.h: Moved to...
1077 * testsuite/26_numerics/headers/complex.h/std_c++11.cc: ...here.
1078 * testsuite/26_numerics/headers/complex.h/std_c++98.h: Moved to...
1079 * testsuite/26_numerics/headers/complex.h/std_c++98.cc: ...here.
1080 Check macro first and then #undef.
1081 * testsuite/26_numerics/headers/complex.h/std_gnu++11.h: Moved to...
1082 * testsuite/26_numerics/headers/complex.h/std_gnu++11.cc: ...here.
1084 2023-11-11 Jonathan Wakely <jwakely@redhat.com>
1087 * include/bits/utility.h (integer_sequence): Add static_assert.
1088 * testsuite/20_util/integer_sequence/112473.cc: New test.
1090 2023-11-11 Jonathan Wakely <jwakely@redhat.com>
1092 * testsuite/20_util/pair/dangling_ref.cc: Add hosted effective
1093 target for specifiers using c++17_down.
1095 2023-11-11 Jonathan Wakely <jwakely@redhat.com>
1097 * include/bits/shared_ptr_atomic.h (atomic_is_lock_free)
1098 (atomic_load_explicit, atomic_load, atomic_store_explicit)
1099 (atomic_store, atomic_exchange_explicit, atomic_exchange)
1100 (atomic_compare_exchange_strong, atomic_compare_exchange_weak)
1101 (atomic_compare_exchange_strong_explicit)
1102 (atomic_compare_exchange_weak_explicit): Add deprecated
1103 attribute for C++20 and later.
1104 * testsuite/20_util/shared_ptr/atomic/1.cc: Suppress deprecated
1106 * testsuite/20_util/shared_ptr/atomic/2.cc: Likewise.
1107 * testsuite/20_util/shared_ptr/atomic/3.cc: Likewise.
1108 * testsuite/29_atomics/atomic/lwg3220.cc: Likewise.
1110 2023-11-11 Jonathan Wakely <jwakely@redhat.com>
1112 * include/bits/std_mutex.h (lock_guard): Add [[nodiscard]]
1113 attribute to constructors.
1114 * include/bits/unique_lock.h (unique_lock): Likewise.
1115 * include/std/mutex (scoped_lock, scoped_lock<Mutex>): Likewise.
1116 * testsuite/30_threads/lock_guard/cons/nodiscard.cc: New test.
1117 * testsuite/30_threads/scoped_lock/cons/nodiscard.cc: New test.
1118 * testsuite/30_threads/unique_lock/cons/nodiscard.cc: New test.
1120 2023-11-11 Jonathan Wakely <jwakely@redhat.com>
1122 * include/std/span (span, as_bytes, as_writable_bytes): Add
1123 [[nodiscard]] attribute on all non-void functions.
1124 * testsuite/23_containers/span/back_assert_neg.cc: Suppress
1126 * testsuite/23_containers/span/back_neg.cc: Likewise.
1127 * testsuite/23_containers/span/first_2_assert_neg.cc: Likewise.
1128 * testsuite/23_containers/span/first_assert_neg.cc: Likewise.
1129 * testsuite/23_containers/span/first_neg.cc: Likewise.
1130 * testsuite/23_containers/span/front_assert_neg.cc: Likewise.
1131 * testsuite/23_containers/span/front_neg.cc: Likewise.
1132 * testsuite/23_containers/span/index_op_assert_neg.cc: Likewise.
1133 * testsuite/23_containers/span/index_op_neg.cc: Likewise.
1134 * testsuite/23_containers/span/last_2_assert_neg.cc: Likewise.
1135 * testsuite/23_containers/span/last_assert_neg.cc: Likewise.
1136 * testsuite/23_containers/span/last_neg.cc: Likewise.
1137 * testsuite/23_containers/span/subspan_2_assert_neg.cc:
1139 * testsuite/23_containers/span/subspan_3_assert_neg.cc:
1141 * testsuite/23_containers/span/subspan_4_assert_neg.cc:
1143 * testsuite/23_containers/span/subspan_5_assert_neg.cc:
1145 * testsuite/23_containers/span/subspan_6_assert_neg.cc:
1147 * testsuite/23_containers/span/subspan_assert_neg.cc: Likewise.
1148 * testsuite/23_containers/span/subspan_neg.cc: Likewise.
1149 * testsuite/23_containers/span/nodiscard.cc: New test.
1151 2023-11-11 Jonathan Wakely <jwakely@redhat.com>
1154 * config.h.in: Regenerate.
1155 * configure: Regenerate.
1156 * linkage.m4 (GLIBCXX_MAYBE_UNDERSCORED_FUNCS): Remove.
1157 (GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_1): Do not check for _foo.
1158 (GLIBCXX_CHECK_MATH_DECLS_AND_LINKAGES_1): Likewise.
1159 (GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_2): Likewise.
1160 (GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_3): Likewise.
1161 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_2): Do not use
1162 GLIBCXX_MAYBE_UNDERSCORED_FUNCS.
1164 2023-11-11 Nathaniel Shead <nathanieloshead@gmail.com>
1167 * include/c_global/cmath (acosf, acosl, asinf, asinl, atanf)
1168 (atanl, atan2f, atan2l, ceilf, ceill, cosf, cosl, coshf, coshl)
1169 (expf, expl, fabsf, fabsl, floorf, floorl, fmodf, fmodl, frexpf)
1170 (frexpl, ldexpf, ldexpl, logf, logl, log10f, log10l, modff)
1171 (modfl, powf, powl, sinf, sinl, sinhf, sinhl, sqrtf, sqrtl, tanf)
1172 (tanl, tanhf, tanhl): Add using-declarations in namespace std.
1173 * testsuite/26_numerics/headers/cmath/equivalent_functions.cc:
1175 * testsuite/26_numerics/headers/cmath/functions_std_c++17.cc:
1176 Add checks for existence of above names.
1178 2023-11-09 Arsen Arsenović <arsen@aarsen.me>
1180 * testsuite/20_util/scoped_allocator/noexcept.cc: Mark as
1183 2023-11-09 Arsen Arsenović <arsen@aarsen.me>
1185 * include/bits/memoryfwd.h: Remove HOSTED check around allocator
1186 and its specializations.
1188 2023-11-09 Patrick Palka <ppalka@redhat.com>
1191 * include/std/ranges (__detail::__box<_Tp>::operator*): Define
1192 && overloads as well.
1193 (__detail::__take_of_repeat_view): Forward __r when accessing
1194 its _M_value member.
1195 (__detail::__drop_of_repeat_view): Likewise.
1196 * testsuite/std/ranges/repeat/1.cc (test07): New test.
1198 2023-11-09 François Dumont <fdumont@gcc.gnu.org>
1200 * include/bits/hashtable_policy.h (_RehashStateGuard): New.
1201 (_Insert_base<>::_M_insert_range(_IIt, _IIt, const _NodeGet&, false_type)):
1203 * include/bits/hashtable.h (__rehash_guard_t): New.
1204 (__rehash_state): Remove.
1205 (_M_rehash): Remove.
1206 (_M_rehash_aux): Rename into _M_rehash.
1207 (_M_assign_elements, _M_insert_unique_node, _M_insert_multi_node): Adapt.
1210 2023-11-09 François Dumont <fdumont@gcc.gnu.org>
1212 * include/bits/hashtable_policy.h
1213 (struct _NodePtrGuard<_HashtableAlloc, _NodePtr>): New.
1214 (_ReuseAllocNode::operator()(_Args&&...)): Use latter to guard allocated node
1215 pointer while constructing in place the value_type instance.
1217 2023-11-09 Alexandre Oliva <oliva@adacore.com>
1220 * include/bits/stl_bvector.h (_Bit_iterator_base): Add
1221 _M_assume_normalized member function. Call it in _M_bump_up,
1222 _M_bump_down, _M_incr, operator==, operator<=>, operator<, and
1224 (_Bit_iterator): Also call it in operator*.
1225 (_Bit_const_iterator): Likewise.
1227 2023-11-07 François Dumont <fdumont@gcc.gnu.org>
1229 * include/bits/hashtable_policy.h
1230 (_Hashtable_alloc<>::_M_allocate_node): Add missing call to node destructor
1231 on construct exception.
1233 2023-11-07 Richard Biener <rguenther@suse.de>
1236 * src/c++98/locale.cc (locale::facet::_S_initialize_once):
1237 Check whether _S_c_locale is already initialized.
1238 (locale::facet::_S_get_c_locale): Always perform non-threadsafe
1239 init when threadsafe init failed.
1241 2023-11-06 Ian Lance Taylor <iant@golang.org>
1243 PR libbacktrace/111315
1244 PR libbacktrace/112263
1245 * acinclude.m4: Set -D_GNU_SOURCE in BACKTRACE_CPPFLAGS and when
1246 grepping link.h for dl_iterate_phdr.
1247 * configure: Regenerate.
1249 2023-11-06 Jonathan Wakely <jwakely@redhat.com>
1251 * include/std/expected (expected::and_then, expected::or_else):
1252 Add string literals to static assertions.
1253 * include/std/optional (optional::and_then, optional::or_else):
1256 2023-11-04 Feng Jisen <J1senn@outlook.com>
1258 * include/bits/utility.h (_Nth_type): Remove redundant partial
1261 2023-11-04 Jonathan Wakely <jwakely@redhat.com>
1264 * include/std/system_error (system_error::system_error): Group
1265 arguments so that concatenation can reuse rvalue's capacity.
1266 * src/c++11/system_error.cc (strerror_string): New function.
1267 [_GLIBCXX_HAVE_STRERROR_R] (use_strerror_result): New functions.
1268 (generic_error_category::message): Use strerror_string.
1269 (system_error_category::message): Likewise.
1271 2023-11-04 Jonathan Wakely <jwakely@redhat.com>
1273 * doc/xml/manual/appendix_contributing.xml: Replace example that
1275 * doc/html/manual/source_code_style.html: Regenerate.
1277 2023-11-02 Jonathan Wakely <jwakely@redhat.com>
1280 * include/std/string_view (string_view::remove_suffix): Add
1282 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/debug.cc:
1284 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/debug.cc:
1287 2023-11-02 Jonathan Wakely <jwakely@redhat.com>
1289 * acinclude.m4 (GLIBCXX_ENABLE_C99): Fix snprintf checks.
1290 * configure: Regenerate.
1292 2023-10-30 François Dumont <fdumont@gcc.gnu.org>
1294 * config/abi/pre/gnu-versioned-namespace.ver: Add comment on recently
1295 added emul TLS symbols.
1297 2023-10-30 François Dumont <fdumont@gcc.gnu.org>
1299 * src/experimental/contract.cc
1300 [_GLIBCXX_INLINE_VERSION](handle_contract_violation): Rework comment.
1301 Remove weak attribute.
1303 2023-10-29 François Dumont <fdumont@gcc.gnu.org>
1305 * config/abi/pre/gnu-versioned-namespace.ver: Add missing emul TLS
1308 2023-10-29 François Dumont <fdumont@gcc.gnu.org>
1310 * src/experimental/contract.cc
1311 [_GLIBCXX_INLINE_VERSION](handle_contract_violation): Provide symbol
1312 without version namespace decoration for gcc.
1314 2023-10-26 Jonathan Wakely <jwakely@redhat.com>
1317 * include/std/shared_mutex (shared_lock::unlock): Change errc
1318 constant to operation_not_permitted.
1319 * testsuite/30_threads/shared_lock/locking/112089.cc: New test.
1321 2023-10-26 Jonathan Wakely <jwakely@redhat.com>
1323 * testsuite/20_util/duration/io.cc: Double timeout using
1325 * testsuite/std/time/day/io.cc: Likewise.
1326 * testsuite/std/time/format.cc: Likewise.
1327 * testsuite/std/time/hh_mm_ss/io.cc: Likewise.
1328 * testsuite/std/time/month/io.cc: Likewise.
1329 * testsuite/std/time/month_day/io.cc: Likewise.
1330 * testsuite/std/time/month_day_last/io.cc: Likewise.
1331 * testsuite/std/time/month_weekday/io.cc: Likewise.
1332 * testsuite/std/time/month_weekday_last/io.cc: Likewise.
1333 * testsuite/std/time/weekday/io.cc: Likewise.
1334 * testsuite/std/time/weekday_indexed/io.cc: Likewise.
1335 * testsuite/std/time/weekday_last/io.cc: Likewise.
1336 * testsuite/std/time/year/io.cc: Likewise.
1337 * testsuite/std/time/year_month/io.cc: Likewise.
1338 * testsuite/std/time/year_month_day/io.cc: Likewise.
1339 * testsuite/std/time/year_month_day_last/io.cc: Likewise.
1340 * testsuite/std/time/year_month_weekday/io.cc: Likewise.
1341 * testsuite/std/time/year_month_weekday_last/io.cc: Likewise.
1342 * testsuite/std/time/zoned_time/io.cc: Likewise.
1344 2023-10-25 Jonathan Wakely <jwakely@redhat.com>
1347 * src/libbacktrace/Makefile.am: Add -prefer-pic to libtool
1349 * src/libbacktrace/Makefile.in: Regenerate.
1351 2023-10-24 Paul M. Bendixen <paulbendixen@gmail.com>
1353 * include/Makefile.am: Move cstdarg, cstdalign and cstdbool to
1355 * include/Makefile.in: Regenerate.
1357 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
1359 * configure: Regenerate.
1360 * configure.ac: Handle Darwin rpaths.
1361 * src/Makefile.am: Handle Darwin rpaths.
1362 * src/Makefile.in: Regenerate.
1364 2023-10-21 Jonathan Wakely <jwakely@redhat.com>
1366 * include/bits/basic_string.h (_M_init_local_buf()): New
1368 (_M_use_local_data()): Use _M_init_local_buf.
1369 (basic_string(), basic_string(const Alloc&))
1370 (basic_string(basic_string&&))
1371 (basic_string(basic_string&&, const Alloc&)): Use
1372 _M_init_local_buf instead of _M_use_local_data().
1373 * include/bits/basic_string.tcc (swap(basic_string&))
1374 (_M_construct(InIter, InIter, input_iterator_tag))
1375 (_M_construct(InIter, InIter, forward_iterator_tag))
1376 (_M_construct(size_type, CharT), reserve()): Likewise.
1378 2023-10-21 Benjamin Brock <brock@cs.berkeley.edu>
1380 * include/std/ranges (zip_view, adjacent_view): Implement
1381 workaround for LLVM-61763.
1383 2023-10-21 Dimitrij Mijoski <dmjpp@hotmail.com>
1385 * testsuite/22_locale/codecvt/codecvt_unicode.h: Test length()
1387 2023-10-21 Jonathan Wakely <jwakely@redhat.com>
1389 * include/bits/fs_dir.h (operator==(default_sentinel_t)): Fix
1392 2023-10-20 Marek Polacek <polacek@redhat.com>
1395 * include/std/charconv (from_chars): Add explicit casts.
1397 2023-10-19 François Dumont <fdumont@gcc.gnu.org>
1399 * include/bits/hashtable_policy.h
1400 (_Hash_code_base::_M_hash_code(const _Hash&, const _Hash_node_value<>&)): Remove.
1401 (_Hash_code_base::_M_hash_code<_H2>(const _H2&, const _Hash_node_value<>&)): Remove.
1402 * include/bits/hashtable.h
1403 (_M_src_hash_code<_H2>(const _H2&, const key_type&, const __node_value_type&)): New.
1404 (_M_merge_unique<>, _M_merge_multi<>): Use latter.
1405 * testsuite/23_containers/unordered_map/modifiers/merge.cc
1406 (test04, test05, test06): New test cases.
1408 2023-10-13 Jakub Jelinek <jakub@redhat.com>
1410 * testsuite/tr1/8_c_compatibility/cstdio/functions.cc (test01):
1411 Initialize stream to va_arg(ap, FILE*) rather than 0.
1412 * testsuite/tr1/8_c_compatibility/cwchar/functions.cc (test01):
1415 2023-10-13 Hans-Peter Nilsson <hp@axis.com>
1417 * testsuite/29_atomics/atomic/compare_exchange_padding.cc,
1418 testsuite/29_atomics/atomic_flag/clear/1.cc,
1419 testsuite/29_atomics/atomic_flag/cons/value_init.cc,
1420 testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc,
1421 testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc,
1422 testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc,
1423 testsuite/29_atomics/atomic_ref/generic.cc,
1424 testsuite/29_atomics/atomic_ref/integral.cc,
1425 testsuite/29_atomics/atomic_ref/pointer.cc: Replace
1426 dg-require-thread-fence with dg-require-atomic-cmpxchg-word.
1428 2023-10-13 Hans-Peter Nilsson <hp@axis.com>
1430 * testsuite/lib/dg-options.exp (dg-require-atomic-cmpxchg-word):
1432 * testsuite/lib/libstdc++.exp (check_v3_target_atomic_cmpxchg_word):
1435 2023-10-05 François Dumont <fdumont@gcc.gnu.org>
1437 * config/abi/pre/gnu-versioned-namespace.ver: Add missing symbols
1438 for _Float{16,32,64,128,32x,64x,128x}.
1440 2023-10-04 Tom Tromey <tromey@adacore.com>
1442 * python/libstdcxx/v6/printers.py
1443 (StdExpAnyPrinter.__init__): Qualify call to
1446 2023-10-04 Tom Tromey <tromey@adacore.com>
1448 * python/libstdcxx/v6/printers.py: Assume that
1449 _versioned_namespace is non-None.
1450 * python/libstdcxx/v6/xmethods.py (is_specialization_of):
1451 Assume that _versioned_namespace is non-None.
1453 2023-10-04 Tom Tromey <tromey@adacore.com>
1455 * python/libstdcxx/v6/xmethods.py (_versioned_namespace):
1458 2023-09-29 Dimitrij Mijoski <dmjpp@hotmail.com>
1461 * src/c++11/codecvt.cc (read_utf8_code_point): Fix handing of
1462 surrogates in UTF-8.
1463 (ucs4_out): Fix handling of surrogates in UCS-4 -> UTF-8.
1464 (ucs4_in): Fix handling of range with odd number of bytes.
1465 (ucs4_out): Fix handling of surrogates in UCS-4 -> UTF-16.
1466 (ucs2_out): Fix handling of surrogates in UCS-2 -> UTF-16.
1467 (ucs2_in): Fix handling of range with odd number of bytes.
1468 (__codecvt_utf16_base<char16_t>::do_in): Likewise.
1469 (__codecvt_utf16_base<char32_t>::do_in): Likewise.
1470 (__codecvt_utf16_base<wchar_t>::do_in): Likewise.
1471 * testsuite/22_locale/codecvt/codecvt_unicode.cc: Renames, add
1472 tests for codecvt_utf16<char16_t> and codecvt_utf16<char32_t>.
1473 * testsuite/22_locale/codecvt/codecvt_unicode.h: Refactor UTF-8
1474 testing functions for char8_t, add more test cases for errors,
1475 add testing functions for codecvt_utf16.
1476 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc:
1477 Renames, add tests for codecvt_utf16<whchar_t>.
1478 * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc (test06):
1480 * testsuite/22_locale/codecvt/codecvt_unicode_char8_t.cc: New
1483 2023-09-29 Nathaniel Shead <nathanieloshead@gmail.com>
1485 * include/bits/basic_string.h: (basic_string(basic_string&&)):
1486 Activate _M_local_buf when needed.
1487 (basic_string(basic_string&&, const _Alloc&)): Likewise.
1488 * include/bits/basic_string.tcc: (basic_string::swap): Likewise.
1489 * include/std/variant: (__detail::__variant::__construct_n): New.
1490 (__detail::__variant::__emplace): Use __construct_n.
1492 2023-09-28 Tom Tromey <tromey@adacore.com>
1494 * python/libstdcxx/v6/printers.py (Printer.add_version)
1495 (add_one_template_type_printer)
1496 (FilteringTypePrinter.add_one_type_printer): Use Python
1499 2023-09-28 Tom Tromey <tromey@adacore.com>
1501 * python/libstdcxx/v6/printers.py (std_ratio_t_tuple):
1504 2023-09-28 Tom Tromey <tromey@adacore.com>
1506 * python/libstdcxx/v6/printers.py
1507 (StdExpOptionalPrinter.__init__, lookup_node_type):
1508 Remove unused variables.
1510 2023-09-28 Tom Tromey <tromey@adacore.com>
1512 * python/libstdcxx/v6/printers.py: Don't import 'os'.
1513 * python/libstdcxx/v6/__init__.py: Don't import 'gdb'.
1515 2023-09-28 Tom Tromey <tromey@adacore.com>
1517 * python/libstdcxx/v6/printers.py: Use gdb.ValuePrinter
1518 everywhere. Rename members to start with "_".
1520 2023-09-28 Tom Tromey <tromey@adacore.com>
1522 * testsuite/lib/gdb-test.exp (gdb-test): Enable Python
1523 stack traces from gdb.
1525 2023-09-28 Jonathan Wakely <jwakely@redhat.com>
1527 * python/libstdcxx/v6/xmethods.py (is_specialization_of): Define
1529 (ArrayMethodsMatcher, DequeMethodsMatcher)
1530 (ForwardListMethodsMatcher, ListMethodsMatcher)
1531 (VectorMethodsMatcher, AssociativeContainerMethodsMatcher)
1532 (UniquePtrGetWorker, UniquePtrMethodsMatcher)
1533 (SharedPtrSubscriptWorker, SharedPtrMethodsMatcher): Use
1534 is_specialization_of instead of re.match.
1536 2023-09-28 Jonathan Wakely <jwakely@redhat.com>
1538 * python/libstdcxx/v6/printers.py: Break long lines. Use raw
1539 strings for regular expressions. Add whitespace around
1541 (is_member_of_namespace): Use isinstance to check type.
1542 (is_specialization_of): Likewise. Adjust template_name
1543 for versioned namespace instead of duplicating the re.match
1545 (StdExpAnyPrinter._string_types): New static method.
1546 (StdExpAnyPrinter.to_string): Use _string_types.
1548 2023-09-28 Jonathan Wakely <jwakely@redhat.com>
1550 * python/libstdcxx/v6/printers.py: Format docstrings according
1552 * python/libstdcxx/v6/xmethods.py: Likewise.
1554 2023-09-28 Tim Song <t.canens.cpp@gmail.com>
1557 * include/bits/hashtable_policy.h
1558 (_Hash_node_value_base<>::_M_valptr(), _Hash_node_value_base<>::_M_v())
1559 Add [[__gnu__::__always_inline__]].
1561 2023-09-27 Jonathan Wakely <jwakely@redhat.com>
1563 * python/libstdcxx/v6/printers.py (StdChronoTimeZoneRulePrinter):
1564 Fix incorrect number of replacement fields.
1566 2023-09-26 Hans-Peter Nilsson <hp@axis.com>
1568 * testsuite/29_atomics/atomic_flag/cons/value_init.cc: Add
1569 dg-require-thread-fence.
1571 2023-09-25 Patrick Palka <ppalka@redhat.com>
1573 * include/std/charconv (__detail::__integer_to_chars_result_type):
1575 (__detail::__to_chars_16): Use to_chars_result as return type.
1576 (__detail::__to_chars_10): Likewise.
1577 (__detail::__to_chars_8): Likewise.
1578 (__detail::__to_chars_2): Likewise.
1579 (__detail::__to_chars_i): Likewise.
1580 (__detail::__integer_from_chars_result_type): Inline the
1582 (from_chars): ... here. Use __is_standard_integer in the
1583 constraint. Encode constraint as a defaulted non-type template
1584 parameter instead of within the return type.
1586 2023-09-25 John David Anglin <danglin@gcc.gnu.org>
1588 * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.
1590 2023-09-25 Jonathan Wakely <jwakely@redhat.com>
1594 * include/std/array (to_array): Cast memcpy arguments to void*.
1595 * testsuite/23_containers/array/creation/111512.cc: New test.
1597 2023-09-25 Jonathan Wakely <jwakely@redhat.com>
1599 * include/bits/move.h (forward_list): Define for C++23.
1600 * include/bits/version.def (forward_like): Define.
1601 * include/bits/version.h: Regenerate.
1602 * include/std/utility (__glibcxx_want_forward_like): Define.
1603 * testsuite/20_util/forward_like/1.cc: New test.
1604 * testsuite/20_util/forward_like/2_neg.cc: New test.
1605 * testsuite/20_util/forward_like/version.cc: New test.
1607 2023-09-19 Marek Polacek <polacek@redhat.com>
1609 * testsuite/20_util/allocator/105975.cc: Add dg-error.
1611 2023-09-18 Patrick Palka <ppalka@redhat.com>
1615 * testsuite/26_numerics/random/discard_block_engine/cons/seed_seq2.cc:
1616 Make data member seed_seq::called mutable.
1617 * testsuite/26_numerics/random/independent_bits_engine/cons/seed_seq2.cc:
1619 * testsuite/26_numerics/random/linear_congruential_engine/cons/seed_seq2.cc:
1621 * testsuite/26_numerics/random/mersenne_twister_engine/cons/seed_seq2.cc:
1623 * testsuite/26_numerics/random/shuffle_order_engine/cons/seed_seq2.cc:
1625 * testsuite/26_numerics/random/subtract_with_carry_engine/cons/seed_seq2.cc:
1627 * testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/seed_seq2.cc:
1630 2023-09-18 Jonathan Wakely <jwakely@redhat.com>
1632 * doc/xml/manual/status_cxx2020.xml: Tweak P1466R3 status.
1633 * doc/html/manual/status.html: Regenerate.
1635 2023-09-18 Jonathan Wakely <jwakely@redhat.com>
1637 * doc/xml/manual/configure.xml: Use conventional option name.
1638 * doc/xml/manual/status_cxx2020.xml: Update.
1639 * doc/xml/manual/status_cxx2023.xml: Update.
1640 * doc/html/*: Regenerate.
1642 2023-09-18 Jonathan Wakely <jwakely@redhat.com>
1644 * doc/xml/manual/intro.xml: Clarify that building libstdc++
1645 separately from GCC is not supported.
1646 * doc/xml/manual/prerequisites.xml: Note msgfmt prerequisite for
1648 * doc/html/manual/setup.html: Regenerate.
1650 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
1652 * testsuite/29_atomics/atomic_ref/wait_notify.cc: Do not
1653 restrict to pthreads targets.
1654 * testsuite/30_threads/jthread/3.cc: Likewise.
1655 * testsuite/30_threads/semaphore/100806.cc: Likewise.
1656 * testsuite/30_threads/semaphore/try_acquire.cc: Likewise.
1657 * testsuite/30_threads/semaphore/try_acquire_for.cc: Likewise.
1658 * testsuite/30_threads/semaphore/try_acquire_posix.cc: Likewise.
1660 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
1662 * testsuite/18_support/coroutines/95917.cc: Remove dg-options
1664 * testsuite/18_support/coroutines/hash.cc: Likewise.
1665 * testsuite/18_support/coroutines/lwg3460.cc: Likewise.
1666 * testsuite/18_support/destroying_delete.cc: Likewise.
1667 * testsuite/18_support/source_location/1.cc: Likewise.
1668 * testsuite/18_support/source_location/consteval.cc: Likewise.
1669 * testsuite/18_support/source_location/version.cc: Likewise.
1670 * testsuite/19_diagnostics/error_category/operators/three_way.cc:
1672 * testsuite/19_diagnostics/error_code/operators/three_way.cc:
1674 * testsuite/19_diagnostics/error_condition/operators/three_way.cc:
1676 * testsuite/19_diagnostics/stacktrace/output.cc: Likewise.
1677 * testsuite/26_numerics/adjacent_difference/lwg2055.cc:
1679 * testsuite/26_numerics/bit/bit.count/countl_zero.cc: Likewise.
1680 * testsuite/26_numerics/bit/bit.count/countr_one.cc: Likewise.
1681 * testsuite/26_numerics/bit/bit.count/countr_zero.cc: Likewise.
1682 * testsuite/26_numerics/bit/bit.count/popcount.cc: Likewise.
1683 * testsuite/26_numerics/bit/bit.pow.two/bit_ceil.cc: Likewise.
1684 * testsuite/26_numerics/bit/bit.pow.two/has_single_bit.cc:
1686 * testsuite/28_regex/iterators/regex_iterator/lwg3719.cc:
1688 * testsuite/28_regex/iterators/regex_token_iterator/lwg3719.cc:
1690 * testsuite/28_regex/sub_match/compare_c++20.cc: Likewise.
1691 * testsuite/experimental/filesystem/iterators/106201.cc:
1693 * testsuite/experimental/scopeguard/exit.cc: Likewise.
1694 * testsuite/experimental/scopeguard/uniqueres.cc: Likewise.
1696 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
1698 * testsuite/30_threads/barrier/1.cc: Remove dg-options
1700 * testsuite/30_threads/barrier/2.cc: Likewise.
1701 * testsuite/30_threads/barrier/arrive.cc: Likewise.
1702 * testsuite/30_threads/barrier/arrive_and_drop.cc: Likewise.
1703 * testsuite/30_threads/barrier/arrive_and_wait.cc: Likewise.
1704 * testsuite/30_threads/barrier/completion.cc: Likewise.
1705 * testsuite/30_threads/condition_variable/members/clock_neg.cc:
1707 * testsuite/30_threads/condition_variable_any/members/clock_neg.cc:
1709 * testsuite/30_threads/condition_variable_any/stop_token/1.cc:
1711 * testsuite/30_threads/condition_variable_any/stop_token/2.cc:
1713 * testsuite/30_threads/future/members/clock_neg.cc: Likewise.
1714 * testsuite/30_threads/headers/stop_token/synopsis.cc: Likewise.
1715 * testsuite/30_threads/headers/thread/types_std_c++20.cc:
1717 * testsuite/30_threads/jthread/1.cc: Likewise.
1718 * testsuite/30_threads/jthread/100612.cc: Likewise.
1719 * testsuite/30_threads/jthread/95989.cc: Likewise.
1720 * testsuite/30_threads/jthread/jthread.cc: Likewise.
1721 * testsuite/30_threads/jthread/version.cc: Likewise.
1722 * testsuite/30_threads/latch/1.cc: Likewise.
1723 * testsuite/30_threads/latch/2.cc: Likewise.
1724 * testsuite/30_threads/latch/3.cc: Likewise.
1725 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/clock_neg.cc:
1727 * testsuite/30_threads/semaphore/1.cc: Likewise.
1728 * testsuite/30_threads/semaphore/2.cc: Likewise.
1729 * testsuite/30_threads/semaphore/least_max_value_neg.cc:
1731 * testsuite/30_threads/semaphore/try_acquire_until.cc: Likewise.
1732 * testsuite/30_threads/shared_future/members/clock_neg.cc:
1734 * testsuite/30_threads/shared_lock/locking/clock_neg.cc:
1736 * testsuite/30_threads/shared_timed_mutex/try_lock_until/clock_neg.cc:
1738 * testsuite/30_threads/stop_token/1.cc: Likewise.
1739 * testsuite/30_threads/stop_token/2.cc: Likewise.
1740 * testsuite/30_threads/stop_token/stop_callback.cc: Likewise.
1741 * testsuite/30_threads/stop_token/stop_callback/deadlock.cc:
1743 * testsuite/30_threads/stop_token/stop_callback/destructible_neg.cc:
1745 * testsuite/30_threads/stop_token/stop_callback/invocable_neg.cc:
1747 * testsuite/30_threads/stop_token/stop_callback/invoke.cc:
1749 * testsuite/30_threads/stop_token/stop_source.cc: Likewise.
1750 * testsuite/30_threads/stop_token/stop_source/assign.cc:
1752 * testsuite/30_threads/stop_token/stop_token.cc: Likewise.
1753 * testsuite/30_threads/stop_token/stop_token/stop_possible.cc:
1755 * testsuite/30_threads/thread/id/operators_c++20.cc: Likewise.
1756 * testsuite/30_threads/timed_mutex/try_lock_until/clock_neg.cc:
1758 * testsuite/30_threads/unique_lock/locking/clock_neg.cc:
1761 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
1763 * testsuite/27_io/basic_istream/extractors_character/char/lwg2499.cc:
1764 Remove dg-options -std=gnu++2a.
1765 * testsuite/27_io/basic_istream/extractors_character/char/lwg2499_neg.cc:
1767 * testsuite/27_io/basic_istream/extractors_character/wchar_t/lwg2499.cc:
1769 * testsuite/27_io/basic_istream/extractors_character/wchar_t/lwg2499_neg.cc:
1771 * testsuite/27_io/basic_istringstream/cons/char/1.cc: Likewise.
1772 * testsuite/27_io/basic_istringstream/cons/wchar_t/1.cc:
1774 * testsuite/27_io/basic_istringstream/str/char/2.cc: Likewise.
1775 * testsuite/27_io/basic_istringstream/str/wchar_t/2.cc:
1777 * testsuite/27_io/basic_istringstream/view/char/1.cc: Likewise.
1778 * testsuite/27_io/basic_istringstream/view/wchar_t/1.cc:
1780 * testsuite/27_io/basic_ostream/emit/1.cc: Likewise.
1781 * testsuite/27_io/basic_ostream/inserters_character/char/deleted.cc:
1783 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/deleted.cc:
1785 * testsuite/27_io/basic_ostringstream/cons/char/1.cc: Likewise.
1786 * testsuite/27_io/basic_ostringstream/cons/wchar_t/1.cc:
1788 * testsuite/27_io/basic_ostringstream/str/char/3.cc: Likewise.
1789 * testsuite/27_io/basic_ostringstream/str/wchar_t/3.cc:
1791 * testsuite/27_io/basic_ostringstream/view/char/1.cc: Likewise.
1792 * testsuite/27_io/basic_ostringstream/view/wchar_t/1.cc:
1794 * testsuite/27_io/basic_stringbuf/cons/char/2.cc: Likewise.
1795 * testsuite/27_io/basic_stringbuf/cons/wchar_t/2.cc: Likewise.
1796 * testsuite/27_io/basic_stringbuf/str/char/4.cc: Likewise.
1797 * testsuite/27_io/basic_stringbuf/str/wchar_t/4.cc: Likewise.
1798 * testsuite/27_io/basic_stringbuf/view/char/1.cc: Likewise.
1799 * testsuite/27_io/basic_stringbuf/view/wchar_t/1.cc: Likewise.
1800 * testsuite/27_io/basic_stringstream/cons/char/1.cc: Likewise.
1801 * testsuite/27_io/basic_stringstream/cons/char/97719.cc:
1803 * testsuite/27_io/basic_stringstream/cons/wchar_t/1.cc:
1805 * testsuite/27_io/basic_stringstream/str/char/5.cc: Likewise.
1806 * testsuite/27_io/basic_stringstream/str/wchar_t/5.cc.cc:
1808 * testsuite/27_io/basic_stringstream/view/char/1.cc: Likewise.
1809 * testsuite/27_io/basic_stringstream/view/wchar_t/1.cc:
1811 * testsuite/27_io/basic_syncbuf/1.cc: Likewise.
1812 * testsuite/27_io/basic_syncbuf/2.cc: Likewise.
1813 * testsuite/27_io/basic_syncbuf/basic_ops/1.cc: Likewise.
1814 * testsuite/27_io/basic_syncbuf/requirements/types.cc: Likewise.
1815 * testsuite/27_io/basic_syncbuf/sync_ops/1.cc: Likewise.
1816 * testsuite/27_io/basic_syncstream/1.cc: Likewise.
1817 * testsuite/27_io/basic_syncstream/2.cc: Likewise.
1818 * testsuite/27_io/basic_syncstream/basic_ops/1.cc: Likewise.
1819 * testsuite/27_io/basic_syncstream/requirements/types.cc:
1821 * testsuite/27_io/filesystem/iterators/106201.cc: Likewise.
1822 * testsuite/27_io/filesystem/iterators/lwg3719.cc: Likewise.
1823 * testsuite/27_io/filesystem/path/factory/u8path-depr.cc:
1825 * testsuite/27_io/filesystem/path/nonmember/cmp_c++20.cc:
1828 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
1830 * testsuite/26_numerics/accumulate/constexpr.cc: Remove
1831 dg-options -std=gnu++2a.
1832 * testsuite/26_numerics/accumulate/lwg2055.cc: Likewise.
1833 * testsuite/26_numerics/adjacent_difference/constexpr.cc:
1835 * testsuite/26_numerics/bit/bit.cast/105027.cc: Likewise.
1836 * testsuite/26_numerics/bit/bit.cast/bit_cast.cc: Likewise.
1837 * testsuite/26_numerics/bit/bit.cast/version.cc: Likewise.
1838 * testsuite/26_numerics/bit/bit.count/countl_one.cc: Likewise.
1839 * testsuite/26_numerics/bit/bit.pow.two/bit_ceil_neg.cc:
1841 * testsuite/26_numerics/bit/bit.pow.two/bit_floor.cc: Likewise.
1842 * testsuite/26_numerics/bit/bit.pow.two/bit_width.cc: Likewise.
1843 * testsuite/26_numerics/bit/bit.pow.two/lwg3656.cc: Likewise.
1844 * testsuite/26_numerics/bit/bit.rotate/rotl.cc: Likewise.
1845 * testsuite/26_numerics/bit/bit.rotate/rotr.cc: Likewise.
1846 * testsuite/26_numerics/bit/header-2.cc: Likewise.
1847 * testsuite/26_numerics/bit/header.cc: Likewise.
1848 * testsuite/26_numerics/complex/1.cc: Likewise.
1849 * testsuite/26_numerics/complex/2.cc: Likewise.
1850 * testsuite/26_numerics/complex/comparison_operators/more_constexpr.cc:
1852 * testsuite/26_numerics/complex/operators/more_constexpr.cc:
1854 * testsuite/26_numerics/complex/requirements/more_constexpr.cc:
1856 * testsuite/26_numerics/complex/value_operations/more_constexpr.cc:
1858 * testsuite/26_numerics/endian/1.cc: Likewise.
1859 * testsuite/26_numerics/endian/2.cc: Likewise.
1860 * testsuite/26_numerics/endian/3.cc: Likewise.
1861 * testsuite/26_numerics/exclusive_scan/constexpr.cc: Likewise.
1862 * testsuite/26_numerics/inclusive_scan/constexpr.cc: Likewise.
1863 * testsuite/26_numerics/inner_product/constexpr.cc: Likewise.
1864 * testsuite/26_numerics/inner_product/lwg2055.cc: Likewise.
1865 * testsuite/26_numerics/iota/constexpr.cc: Likewise.
1866 * testsuite/26_numerics/lerp/1.cc: Likewise.
1867 * testsuite/26_numerics/lerp/constexpr.cc: Likewise.
1868 * testsuite/26_numerics/lerp/version.cc: Likewise.
1869 * testsuite/26_numerics/midpoint/floating.cc: Likewise.
1870 * testsuite/26_numerics/midpoint/integral.cc: Likewise.
1871 * testsuite/26_numerics/midpoint/pointer.cc: Likewise.
1872 * testsuite/26_numerics/midpoint/pointer_neg.cc: Likewise.
1873 * testsuite/26_numerics/midpoint/version.cc: Likewise.
1874 * testsuite/26_numerics/numbers/1.cc: Likewise.
1875 * testsuite/26_numerics/numbers/2.cc: Likewise.
1876 * testsuite/26_numerics/numbers/3.cc: Likewise.
1877 * testsuite/26_numerics/numbers/float128.cc: Likewise.
1878 * testsuite/26_numerics/numbers/nonfloat_neg.cc: Likewise.
1879 * testsuite/26_numerics/partial_sum/constexpr.cc: Likewise.
1880 * testsuite/26_numerics/partial_sum/lwg2055.cc: Likewise.
1881 * testsuite/26_numerics/random/concept.cc: Likewise.
1882 * testsuite/26_numerics/reduce/constexpr.cc: Likewise.
1883 * testsuite/26_numerics/slice/compare.cc: Likewise.
1884 * testsuite/26_numerics/transform_exclusive_scan/constexpr.cc:
1886 * testsuite/26_numerics/transform_inclusive_scan/constexpr.cc:
1888 * testsuite/26_numerics/transform_reduce/constexpr.cc: Likewise.
1890 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
1892 * testsuite/24_iterators/aliases.cc: Remove dg-options
1894 * testsuite/24_iterators/associated_types/incrementable.traits.cc:
1896 * testsuite/24_iterators/associated_types/iterator.traits.cc:
1898 * testsuite/24_iterators/associated_types/readable.traits.cc:
1900 * testsuite/24_iterators/back_insert_iterator/constexpr.cc:
1902 * testsuite/24_iterators/back_insert_iterator/pr93884.cc:
1904 * testsuite/24_iterators/bidirectional/concept.cc: Likewise.
1905 * testsuite/24_iterators/common_iterator/1.cc: Likewise.
1906 * testsuite/24_iterators/common_iterator/100823.cc: Likewise.
1907 * testsuite/24_iterators/common_iterator/2.cc: Likewise.
1908 * testsuite/24_iterators/contiguous/concept.cc: Likewise.
1909 * testsuite/24_iterators/contiguous/tag.cc: Likewise.
1910 * testsuite/24_iterators/counted_iterator/1.cc: Likewise.
1911 * testsuite/24_iterators/counted_iterator/lwg3389.cc: Likewise.
1912 * testsuite/24_iterators/counted_iterator/lwg3643.cc: Likewise.
1913 * testsuite/24_iterators/customization_points/92894.cc:
1915 * testsuite/24_iterators/customization_points/iter_move.cc:
1917 * testsuite/24_iterators/customization_points/iter_swap.cc:
1919 * testsuite/24_iterators/customization_points/lwg3420.cc:
1921 * testsuite/24_iterators/forward/concept.cc: Likewise.
1922 * testsuite/24_iterators/front_insert_iterator/constexpr.cc:
1924 * testsuite/24_iterators/front_insert_iterator/pr93884.cc:
1926 * testsuite/24_iterators/headers/iterator/synopsis_c++20.cc:
1928 * testsuite/24_iterators/indirect_callable/92894.cc: Likewise.
1929 * testsuite/24_iterators/indirect_callable/projected-adl.cc:
1931 * testsuite/24_iterators/indirect_callable/projected.cc:
1933 * testsuite/24_iterators/input/concept.cc: Likewise.
1934 * testsuite/24_iterators/insert_iterator/constexpr.cc: Likewise.
1935 * testsuite/24_iterators/istream_iterator/cons/sentinel.cc:
1937 * testsuite/24_iterators/istream_iterator/sentinel.cc: Likewise.
1938 * testsuite/24_iterators/istreambuf_iterator/cons/sentinel.cc:
1940 * testsuite/24_iterators/istreambuf_iterator/sentinel.cc:
1942 * testsuite/24_iterators/move_iterator/cust.cc: Likewise.
1943 * testsuite/24_iterators/move_iterator/dr3435.cc: Likewise.
1944 * testsuite/24_iterators/move_iterator/input_iterator.cc:
1946 * testsuite/24_iterators/move_iterator/lwg3390.cc: Likewise.
1947 * testsuite/24_iterators/move_iterator/lwg3391.cc: Likewise.
1948 * testsuite/24_iterators/move_iterator/move_only.cc: Likewise.
1949 * testsuite/24_iterators/move_iterator/p2520r0.cc: Likewise.
1950 * testsuite/24_iterators/move_iterator/rel_ops_c++20.cc:
1952 * testsuite/24_iterators/move_iterator/sentinel.cc: Likewise.
1953 * testsuite/24_iterators/normal_iterator/cmp_c++20.cc: Likewise.
1954 * testsuite/24_iterators/output/concept.cc: Likewise.
1955 * testsuite/24_iterators/random_access/concept.cc: Likewise.
1956 * testsuite/24_iterators/range_access/range_access_cpp20.cc:
1958 * testsuite/24_iterators/range_access/range_access_cpp20_neg.cc:
1960 * testsuite/24_iterators/range_operations/100768.cc: Likewise.
1961 * testsuite/24_iterators/range_operations/advance.cc: Likewise.
1962 * testsuite/24_iterators/range_operations/advance_overflow.cc:
1964 * testsuite/24_iterators/range_operations/distance.cc: Likewise.
1965 * testsuite/24_iterators/range_operations/lwg3392.cc: Likewise.
1966 * testsuite/24_iterators/range_operations/next.cc: Likewise.
1967 * testsuite/24_iterators/range_operations/prev.cc: Likewise.
1968 * testsuite/24_iterators/reverse_iterator/cust.cc: Likewise.
1969 * testsuite/24_iterators/reverse_iterator/dr3435.cc: Likewise.
1970 * testsuite/24_iterators/reverse_iterator/rel_ops_c++20.cc:
1973 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
1975 * testsuite/23_containers/array/comparison_operators/96851.cc:
1976 Remove dg-options -std=gnu++2a.
1977 * testsuite/23_containers/array/comparison_operators/constexpr.cc:
1979 * testsuite/23_containers/array/creation/1.cc: Likewise.
1980 * testsuite/23_containers/array/creation/110167.cc: Likewise.
1981 * testsuite/23_containers/array/creation/2.cc: Likewise.
1982 * testsuite/23_containers/array/creation/3_neg.cc: Likewise.
1983 * testsuite/23_containers/array/requirements/constexpr_fill.cc:
1985 * testsuite/23_containers/array/requirements/constexpr_swap.cc:
1987 * testsuite/23_containers/deque/48101-3_neg.cc: Likewise.
1988 * testsuite/23_containers/deque/erasure.cc: Likewise.
1989 * testsuite/23_containers/deque/modifiers/emplace/92878_92947.cc:
1991 * testsuite/23_containers/deque/operators/cmp_c++20.cc:
1993 * testsuite/23_containers/forward_list/48101-3_neg.cc: Likewise.
1994 * testsuite/23_containers/forward_list/cmp_c++20.cc: Likewise.
1995 * testsuite/23_containers/forward_list/erasure.cc: Likewise.
1996 * testsuite/23_containers/forward_list/modifiers/92878_92947.cc:
1998 * testsuite/23_containers/forward_list/operations/remove_cxx20_return.cc:
2000 * testsuite/23_containers/forward_list/operations/unique_cxx20_return.cc:
2002 * testsuite/23_containers/list/48101-3_neg.cc: Likewise.
2003 * testsuite/23_containers/list/cmp_c++20.cc: Likewise.
2004 * testsuite/23_containers/list/erasure.cc: Likewise.
2005 * testsuite/23_containers/list/modifiers/emplace/92878_92947.cc:
2007 * testsuite/23_containers/list/operations/remove_cxx20_return.cc:
2009 * testsuite/23_containers/list/operations/unique_cxx20_return.cc:
2011 * testsuite/23_containers/map/48101-3_neg.cc: Likewise.
2012 * testsuite/23_containers/map/erasure.cc: Likewise.
2013 * testsuite/23_containers/map/modifiers/emplace/92878_92947.cc:
2015 * testsuite/23_containers/map/operations/contains.cc: Likewise.
2016 * testsuite/23_containers/map/operators/cmp_c++20.cc: Likewise.
2017 * testsuite/23_containers/multimap/48101-3_neg.cc: Likewise.
2018 * testsuite/23_containers/multimap/modifiers/emplace/92878_92947.cc:
2020 * testsuite/23_containers/multimap/operations/contains.cc:
2022 * testsuite/23_containers/multimap/operators/cmp_c++20.cc:
2024 * testsuite/23_containers/multiset/48101-3_neg.cc: Likewise.
2025 * testsuite/23_containers/multiset/modifiers/emplace/92878_92947.cc:
2027 * testsuite/23_containers/multiset/operations/contains.cc:
2029 * testsuite/23_containers/multiset/operators/cmp_c++20.cc:
2031 * testsuite/23_containers/priority_queue/92878_92947.cc:
2033 * testsuite/23_containers/queue/92878_92947.cc: Likewise.
2034 * testsuite/23_containers/queue/cmp_c++20.cc: Likewise.
2035 * testsuite/23_containers/set/48101-3_neg.cc: Likewise.
2036 * testsuite/23_containers/set/erasure.cc: Likewise.
2037 * testsuite/23_containers/set/modifiers/emplace/92878_92947.cc:
2039 * testsuite/23_containers/set/operations/contains.cc: Likewise.
2040 * testsuite/23_containers/set/operators/cmp_c++20.cc: Likewise.
2041 * testsuite/23_containers/span/1.cc: Likewise.
2042 * testsuite/23_containers/span/101411.cc: Likewise.
2043 * testsuite/23_containers/span/2.cc: Likewise.
2044 * testsuite/23_containers/span/deduction.cc: Likewise.
2045 * testsuite/23_containers/span/explicit.cc: Likewise.
2046 * testsuite/23_containers/span/layout_compat.cc: Likewise.
2047 * testsuite/23_containers/span/lwg3255.cc: Likewise.
2048 * testsuite/23_containers/span/nothrow_cons.cc: Likewise.
2049 * testsuite/23_containers/span/trivially_copyable.cc: Likewise.
2050 * testsuite/23_containers/stack/92878_92947.cc: Likewise.
2051 * testsuite/23_containers/stack/cmp_c++20.cc: Likewise.
2052 * testsuite/23_containers/unordered_map/48101-3_neg.cc:
2054 * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
2055 * testsuite/23_containers/unordered_map/modifiers/92878_92947.cc:
2057 * testsuite/23_containers/unordered_map/operations/1.cc:
2059 * testsuite/23_containers/unordered_map/operations/contains.cc:
2061 * testsuite/23_containers/unordered_multimap/48101-3_neg.cc:
2063 * testsuite/23_containers/unordered_multimap/modifiers/92878_92947.cc:
2065 * testsuite/23_containers/unordered_multimap/operations/1.cc:
2067 * testsuite/23_containers/unordered_multimap/operations/contains.cc:
2069 * testsuite/23_containers/unordered_multiset/48101-3_neg.cc:
2071 * testsuite/23_containers/unordered_multiset/modifiers/92878_92947.cc:
2073 * testsuite/23_containers/unordered_multiset/operations/1.cc:
2075 * testsuite/23_containers/unordered_multiset/operations/contains.cc:
2077 * testsuite/23_containers/unordered_set/48101-3_neg.cc:
2079 * testsuite/23_containers/unordered_set/erasure.cc: Likewise.
2080 * testsuite/23_containers/unordered_set/modifiers/92878_92947.cc:
2082 * testsuite/23_containers/unordered_set/operations/1.cc:
2084 * testsuite/23_containers/unordered_set/operations/contains.cc:
2086 * testsuite/23_containers/vector/48101-3_neg.cc: Likewise.
2087 * testsuite/23_containers/vector/bool/capacity/constexpr.cc:
2089 * testsuite/23_containers/vector/bool/cmp_c++20.cc: Likewise.
2090 * testsuite/23_containers/vector/bool/cons/constexpr.cc:
2092 * testsuite/23_containers/vector/bool/element_access/constexpr.cc:
2094 * testsuite/23_containers/vector/bool/iterator_c++20.cc:
2096 * testsuite/23_containers/vector/bool/modifiers/assign/constexpr.cc:
2098 * testsuite/23_containers/vector/bool/modifiers/constexpr.cc:
2100 * testsuite/23_containers/vector/bool/modifiers/swap/constexpr.cc:
2102 * testsuite/23_containers/vector/capacity/constexpr.cc:
2104 * testsuite/23_containers/vector/cmp_c++20.cc: Likewise.
2105 * testsuite/23_containers/vector/cons/constexpr.cc: Likewise.
2106 * testsuite/23_containers/vector/data_access/constexpr.cc:
2108 * testsuite/23_containers/vector/element_access/constexpr.cc:
2110 * testsuite/23_containers/vector/erasure.cc: Likewise.
2111 * testsuite/23_containers/vector/modifiers/assign/constexpr.cc:
2113 * testsuite/23_containers/vector/modifiers/constexpr.cc:
2115 * testsuite/23_containers/vector/modifiers/emplace/92878_92947.cc:
2117 * testsuite/23_containers/vector/modifiers/swap/constexpr.cc:
2119 * testsuite/23_containers/vector/requirements/version.cc:
2122 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2124 * testsuite/21_strings/basic_string/cons/char/105995.cc: Remove
2125 dg-options -std=gnu++20.
2126 * testsuite/21_strings/basic_string/cons/char/constexpr.cc:
2128 * testsuite/21_strings/basic_string/cons/wchar_t/constexpr.cc:
2130 * testsuite/21_strings/basic_string/erasure.cc: Likewise.
2131 * testsuite/21_strings/basic_string/hash/hash_char8_t.cc:
2133 * testsuite/21_strings/basic_string/literals/constexpr.cc:
2135 * testsuite/21_strings/basic_string/modifiers/constexpr.cc:
2137 * testsuite/21_strings/basic_string/modifiers/swap/constexpr-wchar_t.cc:
2139 * testsuite/21_strings/basic_string/modifiers/swap/constexpr.cc:
2141 * testsuite/21_strings/basic_string/operations/ends_with/char.cc:
2143 * testsuite/21_strings/basic_string/operations/ends_with/nonnull.cc:
2145 * testsuite/21_strings/basic_string/operations/ends_with/wchar_t.cc:
2147 * testsuite/21_strings/basic_string/operations/starts_with/char.cc:
2149 * testsuite/21_strings/basic_string/operations/starts_with/nonnull.cc:
2151 * testsuite/21_strings/basic_string/operations/starts_with/wchar_t.cc:
2153 * testsuite/21_strings/basic_string/operators/char/cmp_c++20.cc:
2155 * testsuite/21_strings/basic_string/operators/wchar_t/cmp_c++20.cc:
2157 * testsuite/21_strings/basic_string_view/cons/char/range.cc:
2159 * testsuite/21_strings/basic_string_view/operations/copy/char/constexpr.cc:
2161 * testsuite/21_strings/basic_string_view/operations/copy/wchar_t/constexpr.cc:
2163 * testsuite/21_strings/basic_string_view/operations/ends_with/char.cc:
2165 * testsuite/21_strings/basic_string_view/operations/ends_with/nonnull.cc:
2167 * testsuite/21_strings/basic_string_view/operations/ends_with/wchar_t.cc:
2169 * testsuite/21_strings/basic_string_view/operations/starts_with/char.cc:
2171 * testsuite/21_strings/basic_string_view/operations/starts_with/nonnull.cc:
2173 * testsuite/21_strings/basic_string_view/operations/starts_with/wchar_t.cc:
2175 * testsuite/21_strings/basic_string_view/operators/char/cmp_c++20.cc:
2177 * testsuite/21_strings/basic_string_view/operators/wchar_t/cmp_c++20.cc:
2179 * testsuite/21_strings/basic_string_view/requirements/constexpr_iter.cc:
2181 * testsuite/21_strings/char_traits/requirements/constexpr_functions_c++20.cc:
2184 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2186 * testsuite/20_util/allocator/105975.cc: Remove dg-options
2188 * testsuite/20_util/allocator/rebind_c++20.cc: Likewise.
2189 * testsuite/20_util/allocator/requirements/constexpr.cc:
2191 * testsuite/20_util/allocator/requirements/typedefs_c++20.cc:
2193 * testsuite/20_util/allocator_traits/header-2.cc: Likewise.
2194 * testsuite/20_util/allocator_traits/header.cc: Likewise.
2195 * testsuite/20_util/allocator_traits/members/92878_92947.cc:
2197 * testsuite/20_util/any/assign/92878_92947.cc: Likewise.
2198 * testsuite/20_util/any/cons/92878_92947.cc: Likewise.
2199 * testsuite/20_util/assume_aligned/1.cc: Likewise.
2200 * testsuite/20_util/assume_aligned/2_neg.cc: Likewise.
2201 * testsuite/20_util/assume_aligned/3.cc: Likewise.
2202 * testsuite/20_util/assume_aligned/97132.cc: Likewise.
2203 * testsuite/20_util/bind/constexpr.cc: Likewise.
2204 * testsuite/20_util/bitset/operations/96303.cc: Likewise.
2205 * testsuite/20_util/common_reference/100894.cc: Likewise.
2206 * testsuite/20_util/common_reference/requirements/alias_decl.cc:
2208 * testsuite/20_util/common_reference/requirements/explicit_instantiation.cc:
2210 * testsuite/20_util/common_reference/requirements/typedefs.cc:
2212 * testsuite/20_util/duration/comparison_operators/three_way.cc:
2214 * testsuite/20_util/exchange/constexpr.cc: Likewise.
2215 * testsuite/20_util/exchange/noexcept.cc: Likewise.
2216 * testsuite/20_util/from_chars/1_c++20_neg.cc: Likewise.
2217 * testsuite/20_util/from_chars/compare.cc: Likewise.
2218 * testsuite/20_util/function_objects/bind_front/1.cc: Likewise.
2219 * testsuite/20_util/function_objects/bind_front/107784.cc:
2221 * testsuite/20_util/function_objects/bind_front/111327.cc:
2223 * testsuite/20_util/function_objects/bind_front/2.cc: Likewise.
2224 * testsuite/20_util/function_objects/bind_front/97101.cc:
2226 * testsuite/20_util/function_objects/bind_front/constexpr.cc:
2228 * testsuite/20_util/function_objects/constexpr_searcher.cc:
2230 * testsuite/20_util/function_objects/identity/1.cc: Likewise.
2231 * testsuite/20_util/function_objects/invoke/constexpr.cc:
2233 * testsuite/20_util/function_objects/mem_fn/constexpr.cc:
2235 * testsuite/20_util/function_objects/not_fn/constexpr.cc:
2237 * testsuite/20_util/integer_comparisons/1.cc: Likewise.
2238 * testsuite/20_util/integer_comparisons/2.cc: Likewise.
2239 * testsuite/20_util/integer_comparisons/equal.cc: Likewise.
2240 * testsuite/20_util/integer_comparisons/equal_neg.cc: Likewise.
2241 * testsuite/20_util/integer_comparisons/greater.cc: Likewise.
2242 * testsuite/20_util/integer_comparisons/greater_equal.cc:
2244 * testsuite/20_util/integer_comparisons/greater_equal_neg.cc:
2246 * testsuite/20_util/integer_comparisons/greater_neg.cc:
2248 * testsuite/20_util/integer_comparisons/in_range.cc: Likewise.
2249 * testsuite/20_util/integer_comparisons/in_range_neg.cc:
2251 * testsuite/20_util/integer_comparisons/less.cc: Likewise.
2252 * testsuite/20_util/integer_comparisons/less_equal.cc: Likewise.
2253 * testsuite/20_util/integer_comparisons/less_equal_neg.cc:
2255 * testsuite/20_util/integer_comparisons/less_neg.cc: Likewise.
2256 * testsuite/20_util/integer_comparisons/not_equal.cc: Likewise.
2257 * testsuite/20_util/integer_comparisons/not_equal_neg.cc:
2259 * testsuite/20_util/is_bounded_array/requirements/explicit_instantiation.cc:
2261 * testsuite/20_util/is_bounded_array/requirements/typedefs.cc:
2263 * testsuite/20_util/is_bounded_array/value.cc: Likewise.
2264 * testsuite/20_util/is_constant_evaluated/1.cc: Likewise.
2265 * testsuite/20_util/is_constant_evaluated/noexcept.cc: Likewise.
2266 * testsuite/20_util/is_constructible/92878_92947.cc: Likewise.
2267 * testsuite/20_util/is_layout_compatible/is_corresponding_member.cc:
2269 * testsuite/20_util/is_layout_compatible/value.cc: Likewise.
2270 * testsuite/20_util/is_layout_compatible/version.cc: Likewise.
2271 * testsuite/20_util/is_nothrow_constructible/value_c++20.cc:
2273 * testsuite/20_util/is_nothrow_convertible/requirements/explicit_instantiation.cc:
2275 * testsuite/20_util/is_nothrow_convertible/requirements/typedefs.cc:
2277 * testsuite/20_util/is_nothrow_convertible/value.cc: Likewise.
2278 * testsuite/20_util/is_pod/deprecated-2a.cc: Likewise.
2279 * testsuite/20_util/is_pointer_interconvertible/value.cc:
2281 * testsuite/20_util/is_pointer_interconvertible/version.cc:
2283 * testsuite/20_util/is_pointer_interconvertible/with_class.cc:
2285 * testsuite/20_util/is_unbounded_array/requirements/explicit_instantiation.cc:
2287 * testsuite/20_util/is_unbounded_array/requirements/typedefs.cc:
2289 * testsuite/20_util/is_unbounded_array/value.cc: Likewise.
2290 * testsuite/20_util/optional/assignment/92878_92947.cc:
2292 * testsuite/20_util/optional/cons/92878_92947.cc: Likewise.
2293 * testsuite/20_util/optional/constexpr/assign.cc: Likewise.
2294 * testsuite/20_util/optional/constexpr/cons/conv.cc: Likewise.
2295 * testsuite/20_util/optional/constexpr/modifiers.cc: Likewise.
2296 * testsuite/20_util/optional/constexpr/swap.cc: Likewise.
2297 * testsuite/20_util/optional/relops/96269.cc: Likewise.
2298 * testsuite/20_util/optional/relops/three_way.cc: Likewise.
2299 * testsuite/20_util/pair/comparison_operators/constexpr_c++20.cc:
2301 * testsuite/20_util/pair/cons/92878_92947.cc: Likewise.
2302 * testsuite/20_util/pair/constexpr_assign.cc: Likewise.
2303 * testsuite/20_util/pair/constexpr_swap.cc: Likewise.
2304 * testsuite/20_util/pair/requirements/structural.cc: Likewise.
2305 * testsuite/20_util/pointer_traits/pointer_to_constexpr.cc:
2307 * testsuite/20_util/polymorphic_allocator/allocate_object.cc:
2309 * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc:
2311 * testsuite/20_util/polymorphic_allocator/lwg3237.cc: Likewise.
2312 * testsuite/20_util/reference_wrapper/constexpr.cc: Likewise.
2313 * testsuite/20_util/reference_wrapper/incomplete.cc: Likewise.
2314 * testsuite/20_util/remove_cvref/requirements/alias_decl.cc:
2316 * testsuite/20_util/remove_cvref/requirements/explicit_instantiation.cc:
2318 * testsuite/20_util/remove_cvref/value.cc: Likewise.
2319 * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc:
2321 * testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc:
2323 * testsuite/20_util/shared_ptr/casts/rval.cc: Likewise.
2324 * testsuite/20_util/shared_ptr/comparison/cmp_c++20.cc:
2326 * testsuite/20_util/shared_ptr/cons/alias-rval.cc: Likewise.
2327 * testsuite/20_util/shared_ptr/creation/92878_92947.cc:
2329 * testsuite/20_util/shared_ptr/creation/array.cc: Likewise.
2330 * testsuite/20_util/shared_ptr/creation/overwrite.cc: Likewise.
2331 * testsuite/20_util/shared_ptr/creation/version.cc: Likewise.
2332 * testsuite/20_util/time_point/4.cc: Likewise.
2333 * testsuite/20_util/time_point/comparison_operators/three_way.cc:
2335 * testsuite/20_util/to_address/1.cc: Likewise.
2336 * testsuite/20_util/to_address/1_neg.cc: Likewise.
2337 * testsuite/20_util/to_address/debug.cc: Likewise.
2338 * testsuite/20_util/to_address/lwg3545.cc: Likewise.
2339 * testsuite/20_util/to_chars/compare.cc: Likewise.
2340 * testsuite/20_util/tuple/comparison_operators/three_way.cc:
2342 * testsuite/20_util/tuple/cons/102270.cc: Likewise.
2343 * testsuite/20_util/tuple/cons/constexpr_allocator_arg_t.cc:
2345 * testsuite/20_util/tuple/constexpr_swap.cc: Likewise.
2346 * testsuite/20_util/type_identity/requirements/alias_decl.cc:
2348 * testsuite/20_util/type_identity/requirements/explicit_instantiation.cc:
2350 * testsuite/20_util/type_identity/requirements/typedefs.cc:
2352 * testsuite/20_util/typeindex/comparison_operators_c++20.cc:
2354 * testsuite/20_util/unique_ptr/comparison/compare_c++20.cc:
2356 * testsuite/20_util/unique_ptr/creation/92878_92947.cc:
2358 * testsuite/20_util/unique_ptr/creation/for_overwrite.cc:
2360 * testsuite/20_util/unique_ptr/creation/for_overwrite__neg.cc:
2362 * testsuite/20_util/unique_ptr/io/lwg2948.cc: Likewise.
2363 * testsuite/20_util/unwrap_reference/1.cc: Likewise.
2364 * testsuite/20_util/unwrap_reference/2.cc: Likewise.
2365 * testsuite/20_util/unwrap_reference/3.cc: Likewise.
2366 * testsuite/20_util/uses_allocator/92878_92947.cc: Likewise.
2367 * testsuite/20_util/uses_allocator/lwg3527.cc: Likewise.
2368 * testsuite/20_util/uses_allocator/make_obj.cc: Likewise.
2369 * testsuite/20_util/uses_allocator/uninitialized_construct.cc:
2371 * testsuite/20_util/variant/92878_92947.cc: Likewise.
2372 * testsuite/20_util/variant/95915.cc: Likewise.
2373 * testsuite/20_util/variant/constexpr.cc: Likewise.
2374 * testsuite/20_util/variant/relops/three_way.cc: Likewise.
2375 * testsuite/20_util/variant/visit_neg.cc: Likewise.
2376 * testsuite/20_util/variant/visit_r.cc: Likewise.
2377 * testsuite/20_util/weak_ptr/atomic_weak_ptr.cc: Likewise.
2379 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2381 * testsuite/18_support/comparisons/algorithms/fallback.cc:
2382 Remove dg-options -std=gnu++2a.
2383 * testsuite/18_support/comparisons/algorithms/partial_order.cc:
2385 * testsuite/18_support/comparisons/algorithms/strong_order.cc:
2387 * testsuite/18_support/comparisons/algorithms/strong_order_floats.cc:
2389 * testsuite/18_support/comparisons/algorithms/weak_order.cc:
2391 * testsuite/18_support/comparisons/categories/94565.cc:
2393 * testsuite/18_support/comparisons/categories/partialord.cc:
2395 * testsuite/18_support/comparisons/categories/strongord.cc:
2397 * testsuite/18_support/comparisons/categories/weakord.cc:
2399 * testsuite/18_support/comparisons/categories/zero_neg.cc:
2401 * testsuite/18_support/comparisons/common/1.cc: Likewise.
2402 * testsuite/18_support/comparisons/object/93479.cc: Likewise.
2403 * testsuite/18_support/comparisons/object/lwg3530.cc: Likewise.
2405 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2407 * testsuite/29_atomics/atomic/compare_exchange_padding.cc:
2408 Remove dg-options -std=gnu++2a.
2409 * testsuite/29_atomics/atomic/cons/value_init.cc: Likewise.
2410 * testsuite/29_atomics/atomic/lock_free_aliases.cc: Likewise.
2411 * testsuite/29_atomics/atomic/requirements/types_neg.cc:
2413 * testsuite/29_atomics/atomic/wait_notify/1.cc: Likewise.
2414 * testsuite/29_atomics/atomic/wait_notify/100334.cc: Likewise.
2415 * testsuite/29_atomics/atomic/wait_notify/102994.cc: Likewise.
2416 * testsuite/29_atomics/atomic/wait_notify/2.cc: Likewise.
2417 * testsuite/29_atomics/atomic/wait_notify/bool.cc: Likewise.
2418 * testsuite/29_atomics/atomic/wait_notify/generic.cc: Likewise.
2419 * testsuite/29_atomics/atomic/wait_notify/pointers.cc: Likewise.
2420 * testsuite/29_atomics/atomic_flag/cons/value_init.cc: Likewise.
2421 * testsuite/29_atomics/atomic_flag/test/explicit.cc: Likewise.
2422 * testsuite/29_atomics/atomic_flag/test/implicit.cc: Likewise.
2423 * testsuite/29_atomics/atomic_flag/wait_notify/1.cc: Likewise.
2424 * testsuite/29_atomics/atomic_float/1.cc: Likewise.
2425 * testsuite/29_atomics/atomic_float/95282.cc: Likewise.
2426 * testsuite/29_atomics/atomic_float/requirements.cc: Likewise.
2427 * testsuite/29_atomics/atomic_float/value_init.cc: Likewise.
2428 * testsuite/29_atomics/atomic_float/wait_notify.cc: Likewise.
2429 * testsuite/29_atomics/atomic_integral/cons/value_init.cc:
2431 * testsuite/29_atomics/atomic_integral/wait_notify.cc: Likewise.
2432 * testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc:
2434 * testsuite/29_atomics/atomic_ref/deduction.cc: Likewise.
2435 * testsuite/29_atomics/atomic_ref/float.cc: Likewise.
2436 * testsuite/29_atomics/atomic_ref/generic.cc: Likewise.
2437 * testsuite/29_atomics/atomic_ref/integral.cc: Likewise.
2438 * testsuite/29_atomics/atomic_ref/pointer.cc: Likewise.
2439 * testsuite/29_atomics/atomic_ref/requirements.cc: Likewise.
2440 * testsuite/29_atomics/headers/atomic/types_std_c++20.cc:
2442 * testsuite/29_atomics/headers/atomic/types_std_c++20_neg.cc:
2444 * testsuite/29_atomics/headers/atomic/types_std_c++2a.cc:
2446 * testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc:
2449 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2451 * testsuite/27_io/basic_filebuf/native_handle/char/1.cc: New test.
2452 * testsuite/27_io/basic_filebuf/native_handle/wchar_t/1.cc: New test.
2454 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2456 * acinclude.m4 (GLIBCXX_CHECK_FILEBUF_NATIVE_HANDLES): New
2458 * config.h.in: Regenerate.
2459 * config/abi/pre/gnu.ver (GLIBCXX_3.4.32): Export new
2460 basic_filebuf members.
2461 * config/io/basic_file_stdio.cc (__basic_file::native_handle):
2462 Define new function.
2463 * config/io/basic_file_stdio.h (__basic_file::native_handle):
2464 Declare new function.
2465 * configure: Regenerate.
2466 * configure.ac: Use GLIBCXX_CHECK_FILEBUF_NATIVE_HANDLES.
2467 * include/bits/version.def (fstream_native_handles): New macro.
2468 * include/bits/version.h: Regenerate.
2469 * include/std/fstream (basic_filebuf::native_handle)
2470 (basic_fstream::native_handle, basic_ifstream::native_handle)
2471 (basic_ofstream::native_handle): New functions.
2472 * src/c++11/Makefile.am: Move compilation of basic_file.cc,
2473 locale_init.cc and localename.cc to here.
2474 * src/c++11/Makefile.in: Regenerate.
2475 * src/c++98/locale_init.cc: Moved to...
2476 * src/c++11/locale_init.cc: ...here.
2477 * src/c++98/localename.cc: Moved to...
2478 * src/c++11/localename.cc: ...here.
2479 * src/c++98/Makefile.am: Remove basic_file.cc, locale_init.cc
2480 and localename.cc from here.
2481 * src/c++98/Makefile.in: Regenerate.
2482 * testsuite/27_io/basic_filebuf/native_handle/version.cc: New test.
2483 * testsuite/27_io/basic_fstream/native_handle/char/1.cc: New test.
2484 * testsuite/27_io/basic_fstream/native_handle/wchar_t/1.cc: New test.
2485 * testsuite/27_io/basic_ifstream/native_handle/char/1.cc: New test.
2486 * testsuite/27_io/basic_ifstream/native_handle/wchar_t/1.cc: New test.
2487 * testsuite/27_io/basic_ofstream/native_handle/char/1.cc: New test.
2488 * testsuite/27_io/basic_ofstream/native_handle/wchar_t/1.cc: New test.
2490 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2492 * testsuite/libstdc++-dg/conformance.exp: Add log line when
2493 using testsuite_files.
2495 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2497 * testsuite/20_util/shared_ptr/atomic/3.cc: Simplify dg
2499 * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc:
2501 * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc:
2503 * testsuite/20_util/synchronized_pool_resource/allocate.cc:
2505 * testsuite/20_util/synchronized_pool_resource/allocate_single.cc:
2507 * testsuite/20_util/synchronized_pool_resource/cons.cc:
2509 * testsuite/20_util/synchronized_pool_resource/cons_single.cc:
2511 * testsuite/20_util/synchronized_pool_resource/is_equal.cc:
2513 * testsuite/20_util/synchronized_pool_resource/multithreaded.cc:
2515 * testsuite/20_util/synchronized_pool_resource/options.cc:
2517 * testsuite/20_util/synchronized_pool_resource/release.cc:
2519 * testsuite/20_util/synchronized_pool_resource/release_single.cc:
2521 * testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc:
2523 * testsuite/30_threads/stop_token/stop_callback/deadlock-mt.cc:
2525 * testsuite/30_threads/stop_token/stop_callback/destroy.cc:
2528 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2530 * testsuite/23_containers/span/back_assert_neg.cc: Remove
2531 dg-options and add effective target selector to dg-do. Add
2533 * testsuite/23_containers/span/back_neg.cc: Likewise.
2534 * testsuite/23_containers/span/cons_1_assert_neg.cc: Likewise.
2535 * testsuite/23_containers/span/cons_2_assert_neg.cc: Likewise.
2536 * testsuite/23_containers/span/first_2_assert_neg.cc: Likewise.
2537 * testsuite/23_containers/span/first_assert_neg.cc: Likewise.
2538 * testsuite/23_containers/span/first_neg.cc: Likewise.
2539 * testsuite/23_containers/span/front_assert_neg.cc: Likewise.
2540 * testsuite/23_containers/span/front_neg.cc: Likewise.
2541 * testsuite/23_containers/span/index_op_assert_neg.cc: Likewise.
2542 * testsuite/23_containers/span/index_op_neg.cc: Likewise.
2543 * testsuite/23_containers/span/last_2_assert_neg.cc: Likewise.
2544 * testsuite/23_containers/span/last_assert_neg.cc: Likewise.
2545 * testsuite/23_containers/span/last_neg.cc: Likewise.
2546 * testsuite/23_containers/span/subspan_2_assert_neg.cc:
2548 * testsuite/23_containers/span/subspan_3_assert_neg.cc:
2550 * testsuite/23_containers/span/subspan_4_assert_neg.cc:
2552 * testsuite/23_containers/span/subspan_5_assert_neg.cc:
2554 * testsuite/23_containers/span/subspan_6_assert_neg.cc:
2556 * testsuite/23_containers/span/subspan_assert_neg.cc: Likewise.
2557 * testsuite/23_containers/span/subspan_neg.cc: Likewise.
2558 * testsuite/24_iterators/range_operations/advance_debug_neg.cc:
2561 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2563 * testsuite/18_support/headers/limits/synopsis_cxx23.cc: Remove
2565 * testsuite/18_support/headers/stdfloat/types_std.cc: Likewise.
2566 * testsuite/18_support/type_info/constexpr.cc: Likewise.
2567 * testsuite/19_diagnostics/stacktrace/current.cc: Likewise.
2568 * testsuite/19_diagnostics/stacktrace/entry.cc: Likewise.
2569 * testsuite/19_diagnostics/stacktrace/stacktrace.cc: Likewise.
2570 * testsuite/19_diagnostics/stacktrace/synopsis.cc: Likewise.
2571 * testsuite/19_diagnostics/stacktrace/version.cc: Likewise.
2572 * testsuite/20_util/aligned_storage/deprecated-2b.cc: Likewise.
2573 * testsuite/20_util/aligned_union/deprecated-2b.cc: Likewise.
2574 * testsuite/20_util/bitset/access/constexpr.cc: Likewise.
2575 * testsuite/20_util/bitset/cons/constexpr_c++23.cc: Likewise.
2576 * testsuite/20_util/bitset/count/constexpr.cc: Likewise.
2577 * testsuite/20_util/bitset/ext/constexpr.cc: Likewise.
2578 * testsuite/20_util/bitset/operations/constexpr_c++23.cc:
2580 * testsuite/20_util/bitset/version.cc: Likewise.
2581 * testsuite/20_util/from_chars/8.cc: Likewise.
2582 * testsuite/20_util/from_chars/constexpr.cc: Likewise.
2583 * testsuite/20_util/function/cons/deduction_c++23.cc: Likewise.
2584 * testsuite/20_util/function_objects/invoke/4.cc: Likewise.
2585 * testsuite/20_util/function_objects/invoke/dangling_ref.cc:
2587 * testsuite/20_util/is_scoped_enum/value.cc: Likewise.
2588 * testsuite/20_util/is_scoped_enum/version.cc: Likewise.
2589 * testsuite/20_util/move_only_function/call.cc: Likewise.
2590 * testsuite/20_util/move_only_function/cons.cc: Likewise.
2591 * testsuite/20_util/move_only_function/move.cc: Likewise.
2592 * testsuite/20_util/move_only_function/version.cc: Likewise.
2593 * testsuite/20_util/optional/monadic/and_then.cc: Likewise.
2594 * testsuite/20_util/optional/monadic/or_else.cc: Likewise.
2595 * testsuite/20_util/optional/monadic/or_else_neg.cc: Likewise.
2596 * testsuite/20_util/optional/monadic/pr109242.cc: Likewise.
2597 * testsuite/20_util/optional/monadic/transform.cc: Likewise.
2598 * testsuite/20_util/pair/p2321r2.cc: Likewise.
2599 * testsuite/20_util/reference_from_temporary/value.cc: Likewise.
2600 * testsuite/20_util/reference_from_temporary/value2.cc:
2602 * testsuite/20_util/reference_from_temporary/version.cc:
2604 * testsuite/20_util/to_chars/constexpr.cc: Likewise.
2605 * testsuite/20_util/to_chars/float128_c++23.cc: Likewise.
2606 * testsuite/20_util/to_chars/float16_c++23.cc: Likewise.
2607 * testsuite/20_util/to_chars/version.cc: Likewise.
2608 * testsuite/20_util/to_underlying/1.cc: Likewise.
2609 * testsuite/20_util/to_underlying/version.cc: Likewise.
2610 * testsuite/20_util/tuple/p2321r2.cc: Likewise.
2611 * testsuite/20_util/unique_ptr/assign/constexpr.cc: Likewise.
2612 * testsuite/20_util/unique_ptr/comparison/constexpr.cc:
2614 * testsuite/20_util/unique_ptr/cons/constexpr_c++20.cc:
2616 * testsuite/20_util/unique_ptr/creation/constexpr.cc: Likewise.
2617 * testsuite/20_util/unique_ptr/modifiers/constexpr.cc: Likewise.
2618 * testsuite/20_util/unique_ptr/specialized_algorithms/constexpr.cc: Likewise.
2619 * testsuite/20_util/unreachable/1.cc: Likewise.
2620 * testsuite/20_util/unreachable/version.cc: Likewise.
2621 * testsuite/20_util/uses_allocator/lwg3677.cc: Likewise.
2622 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc: Likewise.
2623 * testsuite/21_strings/basic_string/operations/contains/char.cc:
2625 * testsuite/21_strings/basic_string/operations/contains/nonnull.cc: Likewise.
2626 * testsuite/21_strings/basic_string/operations/contains/wchar_t.cc: Likewise.
2627 * testsuite/21_strings/basic_string_view/cons/char/range_c++20.cc: Likewise.
2628 * testsuite/21_strings/basic_string_view/cons/wchar_t/range_c++20.cc: Likewise.
2629 * testsuite/21_strings/basic_string_view/operations/contains/char.cc: Likewise.
2630 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc: Likewise.
2631 * testsuite/21_strings/basic_string_view/operations/contains/nonnull.cc: Likewise.
2632 * testsuite/21_strings/basic_string_view/operations/contains/wchar_t.cc: Likewise.
2633 * testsuite/23_containers/queue/cons_from_iters.cc: Likewise.
2634 * testsuite/23_containers/stack/cons_from_iters.cc: Likewise.
2635 * testsuite/23_containers/vector/bool/element_access/1.cc:
2637 * testsuite/24_iterators/const_iterator/1.cc: Likewise.
2638 * testsuite/25_algorithms/contains/1.cc: Likewise.
2639 * testsuite/25_algorithms/contains_subrange/1.cc: Likewise.
2640 * testsuite/25_algorithms/find_last/1.cc: Likewise.
2641 * testsuite/25_algorithms/find_last_if/1.cc: Likewise.
2642 * testsuite/25_algorithms/find_last_if_not/1.cc: Likewise.
2643 * testsuite/25_algorithms/fold_left/1.cc: Likewise.
2644 * testsuite/25_algorithms/fold_right/1.cc: Likewise.
2645 * testsuite/25_algorithms/iota/1.cc: Likewise.
2646 * testsuite/26_numerics/bit/bit.byteswap/byteswap.cc: Likewise.
2647 * testsuite/26_numerics/bit/bit.byteswap/version.cc: Likewise.
2648 * testsuite/26_numerics/complex/ext_c++23.cc: Likewise.
2649 * testsuite/26_numerics/headers/cmath/c99_classification_macros_c++23.cc: Likewise.
2650 * testsuite/26_numerics/headers/cmath/constexpr_std_c++23.cc:
2652 * testsuite/26_numerics/headers/cmath/functions_std_c++23.cc:
2654 * testsuite/26_numerics/headers/cmath/nextafter_c++23.cc:
2656 * testsuite/26_numerics/numbers/4.cc: Likewise.
2657 * testsuite/27_io/basic_ostream/inserters_other/char/volatile_ptr.cc: Likewise.
2658 * testsuite/27_io/filesystem/path/native/conv_c++23.cc:
2660 * testsuite/27_io/spanstream/1.cc: Likewise.
2661 * testsuite/27_io/spanstream/2.cc: Likewise.
2662 * testsuite/27_io/spanstream/version.cc: Likewise.
2663 * testsuite/29_atomics/atomic_float/requirements_cxx23.cc:
2665 * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc:
2667 * testsuite/29_atomics/headers/stdatomic.h/version.cc: Likewise.
2668 * testsuite/30_threads/packaged_task/cons/deduction_c++23.cc:
2670 * testsuite/experimental/filesystem/path/native/conv_c++23.cc:
2672 * testsuite/std/ranges/adaptors/adjacent/1.cc: Likewise.
2673 * testsuite/std/ranges/adaptors/adjacent_transform/1.cc:
2675 * testsuite/std/ranges/adaptors/as_const/1.cc: Likewise.
2676 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Likewise.
2677 * testsuite/std/ranges/adaptors/chunk/1.cc: Likewise.
2678 * testsuite/std/ranges/adaptors/chunk_by/1.cc: Likewise.
2679 * testsuite/std/ranges/adaptors/enumerate/1.cc: Likewise.
2680 * testsuite/std/ranges/adaptors/join_with/1.cc: Likewise.
2681 * testsuite/std/ranges/adaptors/lwg3715.cc: Likewise.
2682 * testsuite/std/ranges/adaptors/slide/1.cc: Likewise.
2683 * testsuite/std/ranges/adaptors/stride/1.cc: Likewise.
2684 * testsuite/std/ranges/cartesian_product/1.cc: Likewise.
2685 * testsuite/std/ranges/range_adaptor_closure.cc: Likewise.
2686 * testsuite/std/ranges/repeat/1.cc: Likewise.
2687 * testsuite/std/ranges/version_c++23.cc: Likewise.
2688 * testsuite/std/ranges/zip/1.cc: Likewise.
2689 * testsuite/std/ranges/zip_transform/1.cc: Likewise.
2691 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2693 * testsuite/20_util/expected/assign.cc: Remove dg-options.
2694 * testsuite/20_util/expected/bad.cc: Likewise.
2695 * testsuite/20_util/expected/cons.cc: Likewise.
2696 * testsuite/20_util/expected/equality.cc: Likewise.
2697 * testsuite/20_util/expected/illformed_neg.cc: Likewise.
2698 * testsuite/20_util/expected/lwg3877.cc: Likewise.
2699 * testsuite/20_util/expected/lwg3938.cc: Likewise.
2700 * testsuite/20_util/expected/monadic.cc: Likewise.
2701 * testsuite/20_util/expected/observers.cc: Likewise.
2702 * testsuite/20_util/expected/requirements.cc: Likewise.
2703 * testsuite/20_util/expected/swap.cc: Likewise.
2704 * testsuite/20_util/expected/synopsis.cc: Likewise.
2705 * testsuite/20_util/expected/unexpected.cc: Likewise.
2706 * testsuite/20_util/expected/version.cc: Likewise.
2708 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2710 * testsuite/20_util/duration/arithmetic/overflow_c++20.cc:
2712 * testsuite/20_util/duration/io.cc: Likewise.
2713 * testsuite/std/time/clock/file/io.cc: Likewise.
2714 * testsuite/std/time/clock/file/members.cc: Likewise.
2715 * testsuite/std/time/clock/file/overview.cc: Likewise.
2716 * testsuite/std/time/clock/gps/1.cc: Likewise.
2717 * testsuite/std/time/clock/gps/io.cc: Likewise.
2718 * testsuite/std/time/clock/local/io.cc: Likewise.
2719 * testsuite/std/time/clock/system/io.cc: Likewise.
2720 * testsuite/std/time/clock/tai/1.cc: Likewise.
2721 * testsuite/std/time/clock/tai/io.cc: Likewise.
2722 * testsuite/std/time/clock/utc/1.cc: Likewise.
2723 * testsuite/std/time/clock/utc/io.cc: Likewise.
2724 * testsuite/std/time/clock/utc/leap_second_info.cc: Likewise.
2725 * testsuite/std/time/day/1.cc: Likewise.
2726 * testsuite/std/time/day/io.cc: Likewise.
2727 * testsuite/std/time/exceptions.cc: Likewise.
2728 * testsuite/std/time/format.cc: Likewise.
2729 * testsuite/std/time/hh_mm_ss/1.cc: Likewise.
2730 * testsuite/std/time/hh_mm_ss/109772.cc: Likewise.
2731 * testsuite/std/time/hh_mm_ss/io.cc: Likewise.
2732 * testsuite/std/time/is_am/1.cc: Likewise.
2733 * testsuite/std/time/is_pm/1.cc: Likewise.
2734 * testsuite/std/time/make12/1.cc: Likewise.
2735 * testsuite/std/time/make24/1.cc: Likewise.
2736 * testsuite/std/time/month/1.cc: Likewise.
2737 * testsuite/std/time/month/io.cc: Likewise.
2738 * testsuite/std/time/month_day/1.cc: Likewise.
2739 * testsuite/std/time/month_day/io.cc: Likewise.
2740 * testsuite/std/time/month_day_last/1.cc: Likewise.
2741 * testsuite/std/time/month_day_last/io.cc: Likewise.
2742 * testsuite/std/time/month_weekday/1.cc: Likewise.
2743 * testsuite/std/time/month_weekday/io.cc: Likewise.
2744 * testsuite/std/time/month_weekday_last/1.cc: Likewise.
2745 * testsuite/std/time/month_weekday_last/io.cc: Likewise.
2746 * testsuite/std/time/parse.cc: Likewise.
2747 * testsuite/std/time/syn_c++20.cc: Likewise.
2748 * testsuite/std/time/time_zone/get_info_local.cc: Likewise.
2749 * testsuite/std/time/time_zone/get_info_sys.cc: Likewise.
2750 * testsuite/std/time/time_zone/requirements.cc: Likewise.
2751 * testsuite/std/time/traits/is_clock.cc: Likewise.
2752 * testsuite/std/time/tzdb/1.cc: Likewise.
2753 * testsuite/std/time/tzdb/leap_seconds.cc: Likewise.
2754 * testsuite/std/time/tzdb_list/1.cc: Likewise.
2755 * testsuite/std/time/tzdb_list/requirements.cc: Likewise.
2756 * testsuite/std/time/weekday/1.cc: Likewise.
2757 * testsuite/std/time/weekday/io.cc: Likewise.
2758 * testsuite/std/time/weekday_indexed/io.cc: Likewise.
2759 * testsuite/std/time/weekday_last/1.cc: Likewise.
2760 * testsuite/std/time/weekday_last/io.cc: Likewise.
2761 * testsuite/std/time/year/1.cc: Likewise.
2762 * testsuite/std/time/year/2.cc: Likewise.
2763 * testsuite/std/time/year/io.cc: Likewise.
2764 * testsuite/std/time/weekday_indexed/1.cc: Likewise.
2765 * testsuite/std/time/year_month/1.cc: Likewise.
2766 * testsuite/std/time/year_month/2.cc: Likewise.
2767 * testsuite/std/time/year_month/io.cc: Likewise.
2768 * testsuite/std/time/year_month_day/1.cc: Likewise.
2769 * testsuite/std/time/year_month_day/2.cc: Likewise.
2770 * testsuite/std/time/year_month_day/3.cc: Likewise.
2771 * testsuite/std/time/year_month_day/4.cc: Likewise.
2772 * testsuite/std/time/year_month_day/io.cc: Likewise.
2773 * testsuite/std/time/year_month_day_last/1.cc: Likewise.
2774 * testsuite/std/time/year_month_day_last/2.cc: Likewise.
2775 * testsuite/std/time/year_month_day_last/io.cc: Likewise.
2776 * testsuite/std/time/year_month_weekday/1.cc: Likewise.
2777 * testsuite/std/time/year_month_weekday/2.cc: Likewise.
2778 * testsuite/std/time/year_month_weekday/3.cc: Likewise.
2779 * testsuite/std/time/year_month_weekday/io.cc: Likewise.
2780 * testsuite/std/time/year_month_weekday_last/1.cc: Likewise.
2781 * testsuite/std/time/year_month_weekday_last/2.cc: Likewise.
2782 * testsuite/std/time/year_month_weekday_last/io.cc: Likewise.
2783 * testsuite/std/time/zoned_time/1.cc: Likewise.
2784 * testsuite/std/time/zoned_time/custom.cc: Likewise.
2785 * testsuite/std/time/zoned_time/deduction.cc: Likewise.
2786 * testsuite/std/time/zoned_time/io.cc: Likewise.
2787 * testsuite/std/time/zoned_time/req_neg.cc: Likewise.
2788 * testsuite/std/time/zoned_time/requirements.cc: Likewise.
2789 * testsuite/std/time/zoned_traits.cc: Likewise.
2791 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2793 * testsuite/std/format/arguments/args.cc: Remove dg-options.
2794 * testsuite/std/format/arguments/lwg3810.cc: Likewise.
2795 * testsuite/std/format/error.cc: Likewise.
2796 * testsuite/std/format/format_string.cc: Likewise.
2797 * testsuite/std/format/formatter/concept.cc: Likewise.
2798 * testsuite/std/format/formatter/ext_float.cc: Likewise.
2799 * testsuite/std/format/formatter/requirements.cc: Likewise.
2800 * testsuite/std/format/functions/107871.cc: Likewise.
2801 * testsuite/std/format/functions/format.cc: Likewise.
2802 * testsuite/std/format/functions/format_to.cc: Likewise.
2803 * testsuite/std/format/functions/format_to_n.cc: Likewise.
2804 * testsuite/std/format/functions/size.cc: Likewise.
2805 * testsuite/std/format/functions/vformat_to.cc: Likewise.
2806 * testsuite/std/format/parse_ctx.cc: Likewise.
2807 * testsuite/std/format/string.cc: Likewise.
2808 * testsuite/std/format/string_neg.cc: Likewise.
2809 * testsuite/std/format/functions/format_c++23.cc: Removed.
2811 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2813 * testsuite/20_util/function_objects/range.cmp/equal_to.cc:
2815 * testsuite/20_util/function_objects/range.cmp/greater.cc:
2817 * testsuite/20_util/function_objects/range.cmp/greater_equal.cc:
2819 * testsuite/20_util/function_objects/range.cmp/less.cc:
2821 * testsuite/20_util/function_objects/range.cmp/less_equal.cc:
2823 * testsuite/20_util/function_objects/range.cmp/lwg3530.cc:
2825 * testsuite/20_util/function_objects/range.cmp/not_equal_to.cc:
2827 * testsuite/20_util/specialized_algorithms/construct_at/1.cc:
2829 * testsuite/20_util/specialized_algorithms/construct_at/92878_92947.cc:
2831 * testsuite/20_util/specialized_algorithms/construct_at/95788.cc:
2833 * testsuite/20_util/specialized_algorithms/destroy/constrained.cc:
2835 * testsuite/20_util/specialized_algorithms/uninitialized_copy/constrained.cc:
2837 * testsuite/20_util/specialized_algorithms/uninitialized_default_construct/constrained.cc:
2839 * testsuite/20_util/specialized_algorithms/uninitialized_fill/94017.cc:
2841 * testsuite/20_util/specialized_algorithms/uninitialized_fill/constrained.cc:
2843 * testsuite/20_util/specialized_algorithms/uninitialized_fill_n/94017.cc:
2845 * testsuite/20_util/specialized_algorithms/uninitialized_move/constrained.cc:
2847 * testsuite/20_util/specialized_algorithms/uninitialized_value_construct/constrained.cc:
2849 * testsuite/25_algorithms/adjacent_find/constexpr.cc: Likewise.
2850 * testsuite/25_algorithms/adjacent_find/constrained.cc:
2852 * testsuite/25_algorithms/all_of/constexpr.cc: Likewise.
2853 * testsuite/25_algorithms/all_of/constrained.cc: Likewise.
2854 * testsuite/25_algorithms/any_of/constexpr.cc: Likewise.
2855 * testsuite/25_algorithms/any_of/constrained.cc: Likewise.
2856 * testsuite/25_algorithms/binary_search/constexpr.cc: Likewise.
2857 * testsuite/25_algorithms/binary_search/constrained.cc:
2859 * testsuite/25_algorithms/clamp/constrained.cc: Likewise.
2860 * testsuite/25_algorithms/constexpr_macro.cc: Likewise.
2861 * testsuite/25_algorithms/copy/95578.cc: Likewise.
2862 * testsuite/25_algorithms/copy/constexpr.cc: Likewise.
2863 * testsuite/25_algorithms/copy/constrained.cc: Likewise.
2864 * testsuite/25_algorithms/copy/debug/constexpr_neg.cc: Likewise.
2865 * testsuite/25_algorithms/copy_backward/95578.cc: Likewise.
2866 * testsuite/25_algorithms/copy_backward/constexpr.cc: Likewise.
2867 * testsuite/25_algorithms/copy_backward/constrained.cc:
2869 * testsuite/25_algorithms/copy_backward/debug/constexpr_neg.cc:
2871 * testsuite/25_algorithms/copy_if/constexpr.cc: Likewise.
2872 * testsuite/25_algorithms/copy_if/constrained.cc: Likewise.
2873 * testsuite/25_algorithms/copy_n/constexpr.cc: Likewise.
2874 * testsuite/25_algorithms/copy_n/constrained.cc: Likewise.
2875 * testsuite/25_algorithms/count/constexpr.cc: Likewise.
2876 * testsuite/25_algorithms/count/constrained.cc: Likewise.
2877 * testsuite/25_algorithms/count_if/constexpr.cc: Likewise.
2878 * testsuite/25_algorithms/count_if/constrained.cc: Likewise.
2879 * testsuite/25_algorithms/cpp_lib_constexpr.cc: Likewise.
2880 * testsuite/25_algorithms/equal/95578.cc: Likewise.
2881 * testsuite/25_algorithms/equal/constexpr.cc: Likewise.
2882 * testsuite/25_algorithms/equal/constexpr_neg.cc: Likewise.
2883 * testsuite/25_algorithms/equal/constrained.cc: Likewise.
2884 * testsuite/25_algorithms/equal/debug/constexpr_neg.cc:
2886 * testsuite/25_algorithms/equal_range/constexpr.cc: Likewise.
2887 * testsuite/25_algorithms/equal_range/constrained.cc: Likewise.
2888 * testsuite/25_algorithms/fill/94017.cc: Likewise.
2889 * testsuite/25_algorithms/fill/constexpr.cc: Likewise.
2890 * testsuite/25_algorithms/fill/constrained.cc: Likewise.
2891 * testsuite/25_algorithms/fill_n/94017.cc: Likewise.
2892 * testsuite/25_algorithms/fill_n/constexpr.cc: Likewise.
2893 * testsuite/25_algorithms/fill_n/constrained.cc: Likewise.
2894 * testsuite/25_algorithms/find/constexpr.cc: Likewise.
2895 * testsuite/25_algorithms/find/constrained.cc: Likewise.
2896 * testsuite/25_algorithms/find_end/constexpr.cc: Likewise.
2897 * testsuite/25_algorithms/find_end/constrained.cc: Likewise.
2898 * testsuite/25_algorithms/find_first_of/constexpr.cc: Likewise.
2899 * testsuite/25_algorithms/find_first_of/constrained.cc:
2901 * testsuite/25_algorithms/find_if/constexpr.cc: Likewise.
2902 * testsuite/25_algorithms/find_if/constrained.cc: Likewise.
2903 * testsuite/25_algorithms/find_if_not/constexpr.cc: Likewise.
2904 * testsuite/25_algorithms/find_if_not/constrained.cc: Likewise.
2905 * testsuite/25_algorithms/for_each/constexpr.cc: Likewise.
2906 * testsuite/25_algorithms/for_each/constrained.cc: Likewise.
2907 * testsuite/25_algorithms/generate/constexpr.cc: Likewise.
2908 * testsuite/25_algorithms/generate/constrained.cc: Likewise.
2909 * testsuite/25_algorithms/generate_n/constexpr.cc: Likewise.
2910 * testsuite/25_algorithms/generate_n/constrained.cc: Likewise.
2911 * testsuite/25_algorithms/heap/constrained.cc: Likewise.
2912 * testsuite/25_algorithms/includes/constrained.cc: Likewise.
2913 * testsuite/25_algorithms/inplace_merge/constrained.cc:
2915 * testsuite/25_algorithms/is_heap/constexpr.cc: Likewise.
2916 * testsuite/25_algorithms/is_heap_until/constexpr.cc: Likewise.
2917 * testsuite/25_algorithms/is_partitioned/constexpr.cc: Likewise.
2918 * testsuite/25_algorithms/is_partitioned/constrained.cc:
2920 * testsuite/25_algorithms/is_permutation/constexpr.cc: Likewise.
2921 * testsuite/25_algorithms/is_permutation/constrained.cc:
2923 * testsuite/25_algorithms/is_sorted/constexpr.cc: Likewise.
2924 * testsuite/25_algorithms/is_sorted/constrained.cc: Likewise.
2925 * testsuite/25_algorithms/is_sorted_until/constexpr.cc:
2927 * testsuite/25_algorithms/is_sorted_until/constrained.cc:
2929 * testsuite/25_algorithms/iter_swap/constexpr.cc: Likewise.
2930 * testsuite/25_algorithms/lexicographical_compare/93972.cc:
2932 * testsuite/25_algorithms/lexicographical_compare/95578.cc:
2934 * testsuite/25_algorithms/lexicographical_compare/constexpr.cc:
2936 * testsuite/25_algorithms/lexicographical_compare/constrained.cc:
2938 * testsuite/25_algorithms/lexicographical_compare_three_way/1.cc:
2940 * testsuite/25_algorithms/lexicographical_compare_three_way/constexpr.cc:
2942 * testsuite/25_algorithms/lower_bound/constexpr.cc: Likewise.
2943 * testsuite/25_algorithms/lower_bound/constrained.cc: Likewise.
2944 * testsuite/25_algorithms/lower_bound/debug/constexpr_partitioned_neg.cc:
2946 * testsuite/25_algorithms/lower_bound/debug/constexpr_partitioned_pred_neg.cc:
2948 * testsuite/25_algorithms/lower_bound/debug/constexpr_valid_range_neg.cc:
2950 * testsuite/25_algorithms/make_heap/constexpr.cc: Likewise.
2951 * testsuite/25_algorithms/max/constrained.cc: Likewise.
2952 * testsuite/25_algorithms/max_element/constrained.cc: Likewise.
2953 * testsuite/25_algorithms/merge/constexpr.cc: Likewise.
2954 * testsuite/25_algorithms/merge/constrained.cc: Likewise.
2955 * testsuite/25_algorithms/min/constrained.cc: Likewise.
2956 * testsuite/25_algorithms/min_element/constrained.cc: Likewise.
2957 * testsuite/25_algorithms/minmax/constrained.cc: Likewise.
2958 * testsuite/25_algorithms/minmax_element/constrained.cc:
2960 * testsuite/25_algorithms/mismatch/constexpr.cc: Likewise.
2961 * testsuite/25_algorithms/mismatch/constrained.cc: Likewise.
2962 * testsuite/25_algorithms/move/93872.cc: Likewise.
2963 * testsuite/25_algorithms/move/95578.cc: Likewise.
2964 * testsuite/25_algorithms/move/constexpr.cc: Likewise.
2965 * testsuite/25_algorithms/move/constrained.cc: Likewise.
2966 * testsuite/25_algorithms/move_backward/93872.cc: Likewise.
2967 * testsuite/25_algorithms/move_backward/95578.cc: Likewise.
2968 * testsuite/25_algorithms/move_backward/constrained.cc:
2970 * testsuite/25_algorithms/next_permutation/constexpr.cc:
2972 * testsuite/25_algorithms/next_permutation/constrained.cc:
2974 * testsuite/25_algorithms/none_of/constexpr.cc: Likewise.
2975 * testsuite/25_algorithms/none_of/constrained.cc: Likewise.
2976 * testsuite/25_algorithms/nth_element/constexpr.cc: Likewise.
2977 * testsuite/25_algorithms/nth_element/constrained.cc: Likewise.
2978 * testsuite/25_algorithms/partial_sort/constexpr.cc: Likewise.
2979 * testsuite/25_algorithms/partial_sort/constrained.cc: Likewise.
2980 * testsuite/25_algorithms/partial_sort_copy/constexpr.cc:
2982 * testsuite/25_algorithms/partial_sort_copy/constrained.cc:
2984 * testsuite/25_algorithms/partition/constexpr.cc: Likewise.
2985 * testsuite/25_algorithms/partition/constrained.cc: Likewise.
2986 * testsuite/25_algorithms/partition_copy/constexpr.cc: Likewise.
2987 * testsuite/25_algorithms/partition_copy/constrained.cc:
2989 * testsuite/25_algorithms/partition_point/constexpr.cc:
2991 * testsuite/25_algorithms/partition_point/constrained.cc:
2993 * testsuite/25_algorithms/pop_heap/constexpr.cc: Likewise.
2994 * testsuite/25_algorithms/prev_permutation/constexpr.cc:
2996 * testsuite/25_algorithms/prev_permutation/constrained.cc:
2998 * testsuite/25_algorithms/push_heap/constexpr.cc: Likewise.
2999 * testsuite/25_algorithms/remove/constexpr.cc: Likewise.
3000 * testsuite/25_algorithms/remove/constrained.cc: Likewise.
3001 * testsuite/25_algorithms/remove_copy/constexpr.cc: Likewise.
3002 * testsuite/25_algorithms/remove_copy/constrained.cc: Likewise.
3003 * testsuite/25_algorithms/remove_copy_if/constexpr.cc: Likewise.
3004 * testsuite/25_algorithms/remove_copy_if/constrained.cc:
3006 * testsuite/25_algorithms/remove_if/constexpr.cc: Likewise.
3007 * testsuite/25_algorithms/remove_if/constrained.cc: Likewise.
3008 * testsuite/25_algorithms/replace/constrained.cc: Likewise.
3009 * testsuite/25_algorithms/replace_copy/constexpr.cc: Likewise.
3010 * testsuite/25_algorithms/replace_copy/constrained.cc: Likewise.
3011 * testsuite/25_algorithms/replace_copy_if/constexpr.cc:
3013 * testsuite/25_algorithms/replace_copy_if/constrained.cc:
3015 * testsuite/25_algorithms/replace_if/constexpr.cc: Likewise.
3016 * testsuite/25_algorithms/replace_if/constrained.cc: Likewise.
3017 * testsuite/25_algorithms/reverse/constexpr.cc: Likewise.
3018 * testsuite/25_algorithms/reverse/constrained.cc: Likewise.
3019 * testsuite/25_algorithms/reverse_copy/constexpr.cc: Likewise.
3020 * testsuite/25_algorithms/reverse_copy/constrained.cc: Likewise.
3021 * testsuite/25_algorithms/rotate/constexpr.cc: Likewise.
3022 * testsuite/25_algorithms/rotate/constrained.cc: Likewise.
3023 * testsuite/25_algorithms/rotate_copy/constexpr.cc: Likewise.
3024 * testsuite/25_algorithms/rotate_copy/constrained.cc: Likewise.
3025 * testsuite/25_algorithms/sample/constrained.cc: Likewise.
3026 * testsuite/25_algorithms/search/constexpr.cc: Likewise.
3027 * testsuite/25_algorithms/search/constrained.cc: Likewise.
3028 * testsuite/25_algorithms/search_n/97828.cc: Likewise.
3029 * testsuite/25_algorithms/search_n/constexpr.cc: Likewise.
3030 * testsuite/25_algorithms/search_n/constrained.cc: Likewise.
3031 * testsuite/25_algorithms/set_difference/constexpr.cc: Likewise.
3032 * testsuite/25_algorithms/set_difference/constrained.cc:
3034 * testsuite/25_algorithms/set_intersection/constexpr.cc:
3036 * testsuite/25_algorithms/set_intersection/constrained.cc:
3038 * testsuite/25_algorithms/set_symmetric_difference/constexpr.cc:
3040 * testsuite/25_algorithms/set_symmetric_difference/constrained.cc:
3042 * testsuite/25_algorithms/set_union/constexpr.cc: Likewise.
3043 * testsuite/25_algorithms/set_union/constrained.cc: Likewise.
3044 * testsuite/25_algorithms/shift_left/1.cc: Likewise.
3045 * testsuite/25_algorithms/shift_right/1.cc: Likewise.
3046 * testsuite/25_algorithms/shuffle/constrained.cc: Likewise.
3047 * testsuite/25_algorithms/sort/constexpr.cc: Likewise.
3048 * testsuite/25_algorithms/sort/constrained.cc: Likewise.
3049 * testsuite/25_algorithms/sort_heap/constexpr.cc: Likewise.
3050 * testsuite/25_algorithms/stable_partition/constrained.cc:
3052 * testsuite/25_algorithms/stable_sort/constrained.cc: Likewise.
3053 * testsuite/25_algorithms/swap/constexpr.cc: Likewise.
3054 * testsuite/25_algorithms/swap_ranges/constexpr.cc: Likewise.
3055 * testsuite/25_algorithms/swap_ranges/constrained.cc: Likewise.
3056 * testsuite/25_algorithms/transform/constexpr.cc: Likewise.
3057 * testsuite/25_algorithms/transform/constrained.cc: Likewise.
3058 * testsuite/25_algorithms/unique/constexpr.cc: Likewise.
3059 * testsuite/25_algorithms/unique/constrained.cc: Likewise.
3060 * testsuite/25_algorithms/unique_copy/constexpr.cc: Likewise.
3061 * testsuite/25_algorithms/unique_copy/constrained.cc: Likewise.
3062 * testsuite/25_algorithms/upper_bound/constexpr.cc: Likewise.
3063 * testsuite/25_algorithms/upper_bound/constrained.cc: Likewise.
3064 * testsuite/25_algorithms/upper_bound/debug/constexpr_partitioned_neg.cc:
3066 * testsuite/25_algorithms/upper_bound/debug/constexpr_partitioned_pred_neg.cc:
3068 * testsuite/25_algorithms/upper_bound/debug/constexpr_valid_range_neg.cc:
3071 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
3073 * testsuite/std/concepts/1.cc: Remove dg-options.
3074 * testsuite/std/concepts/2.cc: Likewise.
3075 * testsuite/std/concepts/concepts.callable/invocable.cc:
3077 * testsuite/std/concepts/concepts.callable/regular_invocable.cc:
3079 * testsuite/std/concepts/concepts.callable/relation.cc:
3081 * testsuite/std/concepts/concepts.callable/strictweakorder.cc:
3083 * testsuite/std/concepts/concepts.lang/concept.arithmetic/floating_point.cc: Likewise.
3084 * testsuite/std/concepts/concepts.lang/concept.arithmetic/integral.cc: Likewise.
3085 * testsuite/std/concepts/concepts.lang/concept.arithmetic/signed_integral.cc: Likewise.
3086 * testsuite/std/concepts/concepts.lang/concept.arithmetic/unsigned_integral.cc: Likewise.
3087 * testsuite/std/concepts/concepts.lang/concept.assignable/1.cc:
3089 * testsuite/std/concepts/concepts.lang/concept.common/1.cc:
3091 * testsuite/std/concepts/concepts.lang/concept.commonref/1.cc:
3093 * testsuite/std/concepts/concepts.lang/concept.constructible/1.cc: Likewise.
3094 * testsuite/std/concepts/concepts.lang/concept.convertible/1.cc:
3096 * testsuite/std/concepts/concepts.lang/concept.copyconstructible/1.cc: Likewise.
3097 * testsuite/std/concepts/concepts.lang/concept.defaultinitializable/1.cc: Likewise.
3098 * testsuite/std/concepts/concepts.lang/concept.defaultinitializable/lwg3149.cc: Likewise.
3099 * testsuite/std/concepts/concepts.lang/concept.derived/1.cc:
3101 * testsuite/std/concepts/concepts.lang/concept.destructible/1.cc: Likewise.
3102 * testsuite/std/concepts/concepts.lang/concept.moveconstructible/1.cc: Likewise.
3103 * testsuite/std/concepts/concepts.lang/concept.same/1.cc:
3105 * testsuite/std/concepts/concepts.lang/concept.swappable/swap.cc: Likewise.
3106 * testsuite/std/concepts/concepts.lang/concept.swappable/swappable.cc: Likewise.
3107 * testsuite/std/concepts/concepts.lang/concept.swappable/swappable_with.cc: Likewise.
3108 * testsuite/std/concepts/concepts.object/copyable.cc: Likewise.
3109 * testsuite/std/concepts/concepts.object/movable.cc: Likewise.
3110 * testsuite/std/concepts/concepts.object/regular.cc: Likewise.
3111 * testsuite/std/concepts/concepts.object/semiregular.cc:
3113 * testsuite/std/ranges/97600.cc: Likewise.
3114 * testsuite/std/ranges/access/101782.cc: Likewise.
3115 * testsuite/std/ranges/access/begin.cc: Likewise.
3116 * testsuite/std/ranges/access/begin_neg.cc: Likewise.
3117 * testsuite/std/ranges/access/cbegin.cc: Likewise.
3118 * testsuite/std/ranges/access/cdata.cc: Likewise.
3119 * testsuite/std/ranges/access/cend.cc: Likewise.
3120 * testsuite/std/ranges/access/crbegin.cc: Likewise.
3121 * testsuite/std/ranges/access/crend.cc: Likewise.
3122 * testsuite/std/ranges/access/data.cc: Likewise.
3123 * testsuite/std/ranges/access/empty.cc: Likewise.
3124 * testsuite/std/ranges/access/end.cc: Likewise.
3125 * testsuite/std/ranges/access/end_neg.cc: Likewise.
3126 * testsuite/std/ranges/access/lwg3467.cc: Likewise.
3127 * testsuite/std/ranges/access/p2602.cc: Likewise.
3128 * testsuite/std/ranges/access/rbegin.cc: Likewise.
3129 * testsuite/std/ranges/access/rend.cc: Likewise.
3130 * testsuite/std/ranges/access/size.cc: Likewise.
3131 * testsuite/std/ranges/access/size_neg.cc: Likewise.
3132 * testsuite/std/ranges/access/ssize.cc: Likewise.
3133 * testsuite/std/ranges/adaptors/100479.cc: Likewise.
3134 * testsuite/std/ranges/adaptors/100577.cc: Likewise.
3135 * testsuite/std/ranges/adaptors/93978.cc: Likewise.
3136 * testsuite/std/ranges/adaptors/95322.cc: Likewise.
3137 * testsuite/std/ranges/adaptors/99433.cc: Likewise.
3138 * testsuite/std/ranges/adaptors/all.cc: Likewise.
3139 * testsuite/std/ranges/adaptors/common.cc: Likewise.
3140 * testsuite/std/ranges/adaptors/conditionally_borrowed.cc:
3142 * testsuite/std/ranges/adaptors/counted.cc: Likewise.
3143 * testsuite/std/ranges/adaptors/detail/copyable_box.cc:
3145 * testsuite/std/ranges/adaptors/drop.cc: Likewise.
3146 * testsuite/std/ranges/adaptors/drop_while.cc: Likewise.
3147 * testsuite/std/ranges/adaptors/elements.cc: Likewise.
3148 * testsuite/std/ranges/adaptors/filter.cc: Likewise.
3149 * testsuite/std/ranges/adaptors/join.cc: Likewise.
3150 * testsuite/std/ranges/adaptors/lazy_split.cc: Likewise.
3151 * testsuite/std/ranges/adaptors/lazy_split_neg.cc: Likewise.
3152 * testsuite/std/ranges/adaptors/lwg3286.cc: Likewise.
3153 * testsuite/std/ranges/adaptors/lwg3313_neg.cc: Likewise.
3154 * testsuite/std/ranges/adaptors/lwg3325_neg.cc: Likewise.
3155 * testsuite/std/ranges/adaptors/lwg3406.cc: Likewise.
3156 * testsuite/std/ranges/adaptors/p1739.cc: Likewise.
3157 * testsuite/std/ranges/adaptors/p2281.cc: Likewise.
3158 * testsuite/std/ranges/adaptors/p2770r0.cc: Likewise.
3159 * testsuite/std/ranges/adaptors/reverse.cc: Likewise.
3160 * testsuite/std/ranges/adaptors/sizeof.cc: Likewise.
3161 * testsuite/std/ranges/adaptors/split.cc: Likewise.
3162 * testsuite/std/ranges/adaptors/take.cc: Likewise.
3163 * testsuite/std/ranges/adaptors/take_while.cc: Likewise.
3164 * testsuite/std/ranges/adaptors/transform.cc: Likewise.
3165 * testsuite/std/ranges/empty_view.cc: Likewise.
3166 * testsuite/std/ranges/headers/ranges/synopsis.cc: Likewise.
3167 * testsuite/std/ranges/iota/difference_type.cc: Likewise.
3168 * testsuite/std/ranges/iota/iota_view.cc: Likewise.
3169 * testsuite/std/ranges/iota/iterator.cc: Likewise.
3170 * testsuite/std/ranges/iota/lwg3292_neg.cc: Likewise.
3171 * testsuite/std/ranges/iota/max_size_type.cc: Likewise.
3172 * testsuite/std/ranges/istream_view.cc: Likewise.
3173 * testsuite/std/ranges/p2259.cc: Likewise.
3174 * testsuite/std/ranges/p2325.cc: Likewise.
3175 * testsuite/std/ranges/p2367.cc: Likewise.
3176 * testsuite/std/ranges/range.cc: Likewise.
3177 * testsuite/std/ranges/refinements.cc: Likewise.
3178 * testsuite/std/ranges/safe_range.cc: Likewise.
3179 * testsuite/std/ranges/safe_range_types.cc: Likewise.
3180 * testsuite/std/ranges/single_view.cc: Likewise.
3181 * testsuite/std/ranges/sized.cc: Likewise.
3182 * testsuite/std/ranges/subrange/1.cc: Likewise.
3183 * testsuite/std/ranges/subrange/97512.cc: Likewise.
3184 * testsuite/std/ranges/subrange/constexpr.cc: Likewise.
3185 * testsuite/std/ranges/subrange/lwg3282_neg.cc: Likewise.
3186 * testsuite/std/ranges/subrange/lwg3286.cc: Likewise.
3187 * testsuite/std/ranges/subrange/lwg3433.cc: Likewise.
3188 * testsuite/std/ranges/subrange/sizeof.cc: Likewise.
3189 * testsuite/std/ranges/subrange/tuple_like.cc: Likewise.
3190 * testsuite/std/ranges/view.cc: Likewise.
3192 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
3194 * testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc:
3196 * testsuite/23_containers/span/contiguous_range_neg.cc:
3198 * testsuite/23_containers/span/everything.cc: Likewise.
3200 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
3202 * testsuite/24_iterators/reverse_iterator/100639.cc: Remove
3203 dg-options and add dg-add-options strict_std.
3204 * testsuite/std/ranges/iota/93267.cc: Likewise.
3205 * testsuite/std/ranges/iota/96042.cc: Likewise.
3206 * testsuite/std/ranges/iota/size.cc: Likewise.
3207 * testsuite/std/ranges/subrange/96042.cc: Likewise.
3209 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
3211 * testsuite/tr1/5_numerical_facilities/special_functions/07_conf_hyperg/compile_cxx17.cc:
3212 Replace dg-options -std=c++17 with dg-add-options strict_std.
3213 * testsuite/tr1/5_numerical_facilities/special_functions/17_hyperg/compile_cxx17.cc:
3216 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
3218 * testsuite/23_containers/deque/48101-2_neg.cc: Replace
3219 dg-options with target selector.
3220 * testsuite/23_containers/forward_list/48101-2_neg.cc: Likewise.
3221 * testsuite/23_containers/list/48101-2_neg.cc: Likewise.
3222 * testsuite/23_containers/map/48101-2_neg.cc: Likewise.
3223 * testsuite/23_containers/map/48101_neg.cc: Likewise.
3224 * testsuite/23_containers/multimap/48101-2_neg.cc: Likewise.
3225 * testsuite/23_containers/multimap/48101_neg.cc: Likewise.
3226 * testsuite/23_containers/multiset/48101-2_neg.cc: Likewise.
3227 * testsuite/23_containers/set/48101-2_neg.cc: Likewise.
3228 * testsuite/23_containers/unordered_map/48101-2_neg.cc:
3230 * testsuite/23_containers/unordered_multimap/48101-2_neg.cc:
3232 * testsuite/23_containers/unordered_multiset/48101-2_neg.cc:
3234 * testsuite/23_containers/unordered_set/48101-2_neg.cc:
3236 * testsuite/23_containers/vector/48101-2_neg.cc: Likewise.
3238 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
3240 * doc/xml/manual/test.xml: Update documentation on running and
3242 * doc/html/manual/test.html: Regenerate.
3243 * testsuite/Makefile.am: Add v3-use-std-list to site.tmp
3244 * testsuite/Makefile.in: Regenerate.
3245 * testsuite/lib/dg-options.exp (add_options_for_strict_std): New
3247 * testsuite/lib/libstdc++.exp (search_for): New utility proc.
3248 (v3-dg-runtest): New proc to replace dg-runtest.
3249 * testsuite/libstdc++-dg/conformance.exp: Use v3-dg-runtest.
3251 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
3253 * testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc:
3254 Fix test to work for C++23 and C++26 too.
3256 2023-09-15 Patrick Palka <ppalka@redhat.com>
3258 * include/std/bit: Include <concepts>.
3259 (byteswap): Use a type-constraint instead of enable_if_t
3260 inside the return type, and use std::integral.
3261 (_If_is_unsigned_integer): Replace with ...
3262 (__unsigned_integer): ... this.
3263 (rotl): Use a type-constraint instead of enable_if_t inside
3265 (countl_zero): Likewise.
3266 (countl_one): Likewise.
3267 (countr_zero): Likewise.
3268 (countr_one): Likewise.
3269 (popcount): Likewise.
3270 (has_single_bit): Likewise.
3271 (bit_ceil): Likewise.
3272 (bit_floor): Likewise.
3273 (bit_width): Likewise.
3275 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
3277 * include/std/variant (variant): Remove derivation from
3278 _Enable_default_constructor base class.
3279 (variant::variant()): Constrain.
3280 * testsuite/20_util/variant/default_ctor.cc: New test.
3282 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
3285 * include/std/variant (get<T>): Remove !is_void static
3288 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
3290 * include/bits/version.def (to_chars): Define new value for
3292 * include/bits/version.h: Regenerate.
3293 * include/std/charconv (to_chars_result::operator bool): New
3295 (from_chars_result::operator bool): New function.
3296 * testsuite/20_util/to_chars/version.cc: Update expected value.
3297 * testsuite/20_util/from_chars/result.cc: New test.
3298 * testsuite/20_util/to_chars/result.cc: New test.
3300 2023-09-14 Jonathan Wakely <jwakely@redhat.com>
3303 * testsuite/20_util/integer_sequence/pr111357.cc: New test.
3305 2023-09-14 Jonathan Wakely <jwakely@redhat.com>
3307 * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Use
3308 dg-additional-files. Remove @require@ and @diff@ comments.
3309 * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Likewise.
3310 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Likewise.
3311 * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Likewise.
3312 * testsuite/lib/dg-options.exp (v3_additional_files): New
3314 (dg-additional-files): New proc.
3315 * testsuite/lib/libstdc++.exp (v3_target_compile): Copy
3316 additional files to test directory.
3318 2023-09-14 Jonathan Wakely <jwakely@redhat.com>
3320 * include/experimental/io_context (io_context) [!_GLIBCXX_HAS_GTHREADS]:
3321 Use a plain integer for _M_work_count for single-threaded
3323 * include/experimental/memory_resource (__get_default_resource)
3324 [!_GLIBCXX_HAS_GTHREADS]: Use unsynchronized type for
3325 single-threaded targets.
3326 * src/c++17/default_resource.h: Adjust preprocessor conditions
3327 to match memory_resource.cc.
3328 * src/c++17/memory_resource.cc [!_GLIBCXX_HAS_GTHREADS]
3329 (atomic_mem_res): Use unsynchronized type for single-threaded
3332 2023-09-14 Christophe Lyon <christophe.lyon@linaro.org>
3334 * testsuite/29_atomics/atomic/compare_exchange_padding.cc: Likewise.
3335 * testsuite/29_atomics/atomic/cons/value_init.cc: Likewise.
3336 * testsuite/29_atomics/atomic_float/value_init.cc: Likewise.
3337 * testsuite/29_atomics/atomic_integral/cons/value_init.cc: Likewise.
3338 * testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc: Likewise.
3339 * testsuite/29_atomics/atomic_ref/generic.cc: Likewise.
3340 * testsuite/29_atomics/atomic_ref/integral.cc: Likewise.
3341 * testsuite/29_atomics/atomic_ref/pointer.cc: Likewise.
3343 2023-09-14 François Dumont <fdumont@gcc.gnu.org>
3345 * testsuite/19_diagnostics/stacktrace/synopsis.cc: Add
3346 { dg-require-normal-namespace "" }.
3348 2023-09-13 François Dumont <fdumont@gcc.gnu.org>
3350 * include/std/format (std::__format::_Arg_store): Explicit version
3351 namespace on make_format_args friend declaration.
3353 2023-09-12 Patrick Palka <ppalka@redhat.com>
3356 * include/std/functional (_GLIBCXX_NOT_FN_CALL_OP): Also define
3357 a deleted fallback operator() overload. Constrain both the
3358 enabled and deleted overloads accordingly.
3359 * testsuite/20_util/function_objects/not_fn/111327.cc: New test.
3361 2023-09-12 Patrick Palka <ppalka@redhat.com>
3364 * include/std/functional (_Bind_front::operator()): Add deleted
3365 fallback overloads for each const/ref qualifier pair. Give the
3366 enabled overloads dummy constraints to make each one more
3367 specialized than the corresponding deleted overload.
3368 * testsuite/20_util/function_objects/bind_front/111327.cc: New test.
3370 2023-09-12 Patrick Palka <ppalka@redhat.com>
3372 * include/std/functional (_Bind_front0): Remove.
3373 (_Bind_front_t): Adjust.
3375 2023-09-12 Jonathan Wakely <jwakely@redhat.com>
3377 * python/libstdcxx/v6/printers.py: Reformat.
3378 * python/libstdcxx/v6/xmethods.py: Likewise.
3380 2023-09-11 Jonathan Wakely <jwakely@redhat.com>
3382 * src/c++11/debug.cc (acquire_sequence_ptr_for_lock): New
3384 (reset_sequence_ptr): New function.
3385 (_Safe_iterator_base::_M_detach)
3386 (_Safe_local_iterator_base::_M_detach): Replace bare atomic_load
3387 with acquire_sequence_ptr_for_lock.
3388 (_Safe_iterator_base::_M_reset): Replace bare atomic_store with
3391 2023-09-11 Jonathan Wakely <jwakely@redhat.com>
3393 * src/c++11/Makefile.am: Add new file.
3394 * src/c++11/Makefile.in: Regenerate.
3395 * src/c++11/debug.cc (__glibcxx_assert_fail): Move to ...
3396 * src/c++11/assert_fail.cc: New file.
3398 2023-09-11 Ken Matsui <kmatsui@gcc.gnu.org>
3400 * include/bits/c++config (_GLIBCXX_HAS_BUILTIN): Do not undef.
3401 (_GLIBCXX_USE_BUILTIN_TRAIT): Define.
3403 2023-09-11 Jonathan Wakely <jwakely@redhat.com>
3405 * include/bits/version.def (__cpp_lib_formatters): Define.
3406 * include/bits/version.h: Regenerate.
3407 * include/std/stacktrace (formatter<stacktrace_entry>)
3408 (formatter<basic_stacktrace<Alloc>>): Define.
3409 * include/std/thread (formatter<thread::id, charT>): Define.
3410 * testsuite/19_diagnostics/stacktrace/output.cc: New test.
3411 * testsuite/19_diagnostics/stacktrace/synopsis.cc: Add
3412 std::formatter specializations.
3413 * testsuite/19_diagnostics/stacktrace/version.cc: Check
3414 __cpp_lib_formatters macro.
3415 * testsuite/30_threads/thread/id/hash.cc: Remove gthreads
3417 * testsuite/30_threads/thread/id/operators.cc: Likewise.
3418 * testsuite/30_threads/thread/id/operators_c++20.cc: Likewise.
3419 * testsuite/30_threads/thread/id/output.cc: New test.
3421 2023-09-11 Pekka Seppänen <pexu@gcc.mail.kapsi.fi>
3423 * src/c++11/cow-locale_init.cc: Add [[maybe_unused]] attribute.
3424 * src/c++17/fs_path.cc (path::_S_convert_loc): Likewise.
3425 * src/filesystem/path.cc (path::_S_convert_loc): Likewise.
3427 2023-09-08 Jonathan Wakely <jwakely@redhat.com>
3429 * acinclude.m4 (GLIBCXX_CONFIGURE): Add c++23 directory.
3430 * configure: Regenerate.
3431 * doc/html/manual/*: Regenerate.
3432 * doc/xml/manual/using.xml: Update documentation on linking.
3433 * include/std/stacktrace: Remove declarations of libbacktrace
3435 (stacktrace_entry::_S_err_handler, stacktrace_entry::_S_init):
3437 (stacktrace_entry::_Info): New class.
3438 (stacktrace_entry::_M_get_info): Use _Info.
3439 (__stacktrace_impl): New class.
3440 (basic_stacktrace): Derive from __stacktrace_impl.
3441 (basic_stacktrace::current): Use __stacktrace_impl::_S_current.
3442 * scripts/testsuite_flags.in: Adjust LDFLAGS to find
3443 libstdc++exp instead of libstdc++_libbacktrace.
3444 * src/Makefile.am (SUBDIRS): Add c++23 directory.
3445 * src/Makefile.in: Regenerate.
3446 * src/c++20/Makefile.am: Fix comment.
3447 * src/c++20/Makefile.in: Regenerate.
3448 * src/c++23/Makefile.am: New file.
3449 * src/c++23/Makefile.in: New file.
3450 * src/c++23/stacktrace.cc: New file with definitions of
3451 stacktrace_entry::_Info and __stacktrace_impl members.
3452 * src/experimental/Makefile.am: Use LIBADD to include other
3454 * src/experimental/Makefile.in: Regenerate.
3455 * src/libbacktrace/Makefile.am: Use noinst_LTLIBRARIES.
3456 * src/libbacktrace/Makefile.in: Regenerate.
3457 * testsuite/19_diagnostics/stacktrace/current.cc: Adjust
3458 dg-options to use -lstdc++exp.
3459 * testsuite/19_diagnostics/stacktrace/entry.cc: Likewise.
3460 * testsuite/19_diagnostics/stacktrace/stacktrace.cc: Likewise.
3461 * testsuite/23_containers/vector/debug/assign4_backtrace_neg.cc:
3464 2023-09-08 Alexey Lapshin <alexey.lapshin@espressif.com>
3466 * src/libbacktrace/Makefile.am: Remove -Werror.
3467 * src/libbacktrace/Makefile.in: Regenerate.
3469 2023-09-08 Jonathan Wakely <jwakely@redhat.com>
3471 * testsuite/Makefile.am (check-DEJAGNU): Use @ in recipe.
3472 * testsuite/Makefile.in: Regenerate.
3474 2023-09-08 Yang Yujie <yangyujie@loongson.cn>
3476 * configure.host: Register t-loongarch in tmake_file.
3477 * config/cpu/loongarch/t-loongarch: New file. Manually refresh
3478 MULTISUBDIR with $(shell $(CXX) --print-multi-directory).
3480 2023-09-07 Bruno Victal <mirai@makinata.eu>
3482 * acinclude.m4: Update docbook xsl URI.
3483 * configure: Regenerate.
3485 2023-09-07 Bruno Victal <mirai@makinata.eu>
3487 * doc/Makefile.am: Fix 'doc-install-info' rule.
3488 Fix typo in commment.
3489 * doc/Makefile.in: Regenerate.
3491 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
3493 * testsuite/27_io/filesystem/path/concat/94063.cc: Simplify
3494 dg-do target selector.
3496 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
3498 * testsuite/config/default.exp: Remove trailing whitespace.
3499 * testsuite/lib/dg-options.exp: Likewise.
3500 * testsuite/lib/prune.exp: Likewise.
3501 * testsuite/libstdc++-abi/abi.exp: Likewise.
3502 * testsuite/libstdc++-dg/conformance.exp: Likewise.
3503 * testsuite/libstdc++-prettyprinters/prettyprinters.exp:
3505 * testsuite/libstdc++-xmethods/xmethods.exp: Likewise.
3506 * testsuite/lib/libstdc++.exp: Likewise.
3507 (check_v3_target_c_std): Fix filename for temporary source file.
3509 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
3511 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for mkdir,
3512 chmod, chdir, and getcwd.
3513 * config.h.in: Regenerate.
3514 * configure: Regenerate.
3515 * src/c++17/fs_ops.cc (create_dir): Use USE_MKDIR macro.
3516 (fs::current_path): Use USE_GETCWD and USE_CHDIR macros.
3517 (fs::permissions): Use USE_CHMOD macro.
3518 * src/filesystem/ops-common.h [FILESYSTEM_IS_WINDOWS]
3519 (chmod, mkdir, getcwd, chdir): Define new macros.
3520 [FILESYSTEM_IS_WINDOWS] (chmod, mkdir, getcwd, chdir): Use
3522 * src/filesystem/ops.cc (create_dir): Use USE_MKDIR macro.
3523 (fs::current_path): Use USE_GETCWD and USE_CHDIR macros.
3524 (fs::permissions): Use USE_CHMOD macro.
3526 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
3528 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Disable by default
3530 * configure: Regenerate.
3532 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
3534 * testsuite/23_containers/unordered_map/operations/1.cc: Add
3535 dg-options for C++20 mode.
3536 * testsuite/23_containers/unordered_multimap/operations/1.cc:
3538 * testsuite/23_containers/unordered_multiset/operations/1.cc:
3540 * testsuite/23_containers/unordered_set/operations/1.cc:
3542 * testsuite/std/time/parse.cc: Move dg-options before dg-do.
3544 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
3546 * testsuite/std/ranges/access/cbegin.cc: Adjust for C++23
3548 * testsuite/std/ranges/access/cdata.cc: Likewise.
3549 * testsuite/std/ranges/access/cend.cc: Likewise.
3550 * testsuite/std/ranges/access/crbegin.cc: Likewise.
3551 * testsuite/std/ranges/access/crend.cc: Likewise.
3552 * testsuite/std/ranges/adaptors/take.cc: Likewise.
3553 * testsuite/std/ranges/adaptors/take_while.cc: Likewise.
3554 * testsuite/std/ranges/adaptors/transform.cc: Likewise.
3556 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
3558 * include/bits/iterator_concepts.h (__imove::iter_move): Define
3559 poison pill as deleted for consistency.
3560 (__access::begin): Replace with a single declaration.
3561 * include/bits/ranges_base.h (__access::end, __access::rbegin)
3562 (__access::rend, __access::size): Likewise.
3563 * include/bits/version.def (ranges): Update value for C++23.
3564 * include/bits/version.h: Regenerate.
3565 * libsupc++/compare (__compare): Add missing poison pill
3567 * testsuite/std/ranges/version_c++23.cc: Adjust expected value
3568 of __cpp_lib_ranges.
3569 * testsuite/std/ranges/access/p2602.cc: New test.
3571 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
3573 * include/bits/iterator_concepts.h (ranges::__cust_imove):
3574 Rename to ranges::__imove.
3575 (_IMove): Rename to _IterMove.
3576 (ranges::__cust_iswap): Rename to ranges::__iswap.
3577 (ranges::__cust): Rename to ranges::_Cpo.
3578 (ranges::__cust_access): Rename to ranges::__access.
3579 * include/bits/ranges_base.h (ranges::__cust_access): Rename to
3581 (ranges::__cust): Rename to ranges::_Cpo.
3582 * include/std/concepts (ranges::__cust_swap): Rename to
3584 (ranges::__cust): Rename to ranges::_Cpo.
3585 * libsupc++/compare (__cmp_cust): Rename to __compare.
3586 (__cmp_algo): Rename to _Cpo.
3588 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
3590 * include/bits/version.def (ranges): Update value.
3591 * include/bits/version.h: Regenerate.
3592 * include/std/ranges (__detail::__boxable): Use
3593 move_constructible instead of copy_constructible for C++23.
3594 (__detail::__box<T>): Adjust constraints for partial
3596 (single_view, transform_view): Use __box_constructible instead
3597 of copy_constructible in constraints.
3598 (zip_transform_view, adjacent_transform_view, repeat_view): Use
3599 move_constructible instead of copy_constructible in constraints.
3600 * testsuite/std/ranges/adaptors/adjacent_transform/1.cc: Check
3601 construction from move-only argument.
3602 * testsuite/std/ranges/adaptors/transform.cc: Likewise.
3603 * testsuite/std/ranges/repeat/1.cc: Likewise.
3604 * testsuite/std/ranges/single_view.cc: Likewise.
3605 * testsuite/std/ranges/zip_transform/1.cc: Likewise.
3606 * testsuite/std/ranges/version_c++23.cc: Adjust expected value
3607 of __cpp_lib_ranges.
3609 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
3611 * testsuite/util/testsuite_iterators.h (is_customization_point_object):
3612 Remove parameter name.
3614 2023-09-06 Jonathan Wakely <jwakely@redhat.com>
3616 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Disable by default
3618 * configure: Regenerate.
3620 2023-09-04 Christophe Lyon <christophe.lyon@linaro.org>
3623 2023-09-04 Christophe Lyon <christophe.lyon@linaro.org>
3626 * configure: Regenerate.
3627 * configure.ac: Call GLIBCXX_CHECK_LINKER_FEATURES in cross,
3628 non-Canadian builds.
3630 2023-09-04 Christophe Lyon <christophe.lyon@linaro.org>
3633 * configure: Regenerate.
3634 * configure.ac: Call GLIBCXX_CHECK_LINKER_FEATURES in cross,
3635 non-Canadian builds.
3637 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
3639 * testsuite/26_numerics/complex/literals/types.cc: Remove
3640 dg-options and add target selector instead.
3642 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
3644 * testsuite/tr1/6_containers/utility/pair.cc: Remove dg-options
3645 and qualify ambiguous calls to get.
3646 * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Adjust
3647 expected result for std::pow(float, int) as per DR 550.
3649 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
3651 * testsuite/20_util/auto_ptr/1.cc: Remove dg-options -std=c++03
3652 and add dg-warning for deprecation warnings.
3653 * testsuite/20_util/auto_ptr/2.cc: Likewise.
3654 * testsuite/20_util/auto_ptr/3.cc: Likewise.
3655 * testsuite/20_util/auto_ptr/3946.cc: Likewise.
3656 * testsuite/20_util/auto_ptr/4.cc: Likewise.
3657 * testsuite/20_util/auto_ptr/5.cc: Likewise.
3658 * testsuite/20_util/auto_ptr/6.cc: Likewise.
3659 * testsuite/20_util/auto_ptr/7.cc: Likewise.
3660 * testsuite/20_util/auto_ptr/assign_neg.cc: Likewise.
3661 * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc:
3663 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc:
3665 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc:
3667 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc:
3669 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
3671 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc:
3673 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc:
3676 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
3679 * testsuite/23_containers/vector/26412-1.cc: Moved to...
3680 * testsuite/23_containers/vector/26142-1.cc: ...here.
3681 * testsuite/23_containers/vector/26412-2.cc: Moved to...
3682 * testsuite/23_containers/vector/26142-2.cc: ...here.
3684 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
3686 * testsuite/20_util/bitset/107037.cc: Add c++98_only selector.
3687 * testsuite/26_numerics/complex/56111.cc: Likewise.
3689 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
3691 * testsuite/23_containers/deque/requirements/explicit_instantiation/2.cc:
3692 Add dg-options to restrict the test to C++98 mode.
3693 * testsuite/23_containers/list/requirements/explicit_instantiation/2.cc:
3696 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
3698 * testsuite/20_util/expected/bad.cc: Add missing target
3701 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
3703 * testsuite/25_algorithms/copy/debug/constexpr_neg.cc: Adjust
3705 * testsuite/25_algorithms/equal/debug/constexpr_neg.cc:
3708 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
3710 * testsuite/27_io/filesystem/iterators/91067.cc: Add
3711 -Wno-self-move to options.
3712 * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise.
3714 2023-09-01 Vladimir Palevich <palevichva@gmail.com>
3717 * include/bits/vector.tcc (_M_realloc_insert): End guard
3718 lifetime just before assignment to class members.
3719 (_M_default_append): Likewise.
3721 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
3723 * src/c++17/fs_ops.cc (fs::absolute) [FILESYSTEM_IS_WINDOWS]:
3724 Use __resize_and_overwrite to fill buffer.
3725 (fs::read_symlink) [HAVE_READLINK]: Likewise.
3726 * src/filesystem/ops-common.h (get_temp_directory_from_env)
3727 [FILESYSTEM_IS_WINDOWS]: Likewise.
3729 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
3732 * include/bits/atomic_base.h (__atomic_impl::__compare_exchange):
3733 Add _AtomicRef non-type template parameter and use a loop if it
3735 (__atomic_impl::compare_exchange_weak): Add _AtomicRef NTTP.
3736 (__atomic_impl::compare_exchange_strong): Likewise.
3737 (atomic_ref::compare_exchange_weak): Use true for NTTP.
3738 (atomic_ref::compare_exchange_strong): Use true for NTTP.
3739 * testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc:
3740 Fix test to not rely on atomic_ref::load() to return an object
3741 with padding preserved.
3743 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
3745 * testsuite/27_io/filesystem/path/108636.cc: Add dg-require for
3748 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
3750 * src/c++20/tzdb.cc (tzdb::current_zone): Check configure macros
3751 for POSIX readlink before using filesystem::read_symlink.
3753 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
3755 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Default to yes.
3756 * configure: Regenerate.
3758 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
3760 * include/bits/chrono_io.h (_Parser::operator()): Set failbit
3761 early if invalid values are read when _M_need & _TimeOfDay is
3763 * testsuite/std/time/parse.cc: Check that "25:59" cannot be
3766 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
3769 * include/bits/chrono_io.h (_Parser::Operator()): Check %C
3770 values are in range of year::min() to year::max().
3771 * testsuite/std/time/parse.cc: Check out of range centuries.
3773 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
3775 * include/std/format (__format::_Sink::_M_reset): Change second
3776 argument from iterator to offset.
3778 2023-08-24 Paul Dreik <gccpatches@pauldreik.se>
3781 * testsuite/std/format/string.cc: Check wide character format
3782 strings with out-of-range widths.
3784 2023-08-24 Paul Dreik <gccpatches@pauldreik.se>
3787 * include/std/format (__format::__parse_integer): Check for
3790 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
3792 * testsuite/std/format/functions/format_to.cc: Avoid warning for
3795 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
3797 * include/std/atomic: Add comment to #ifdef and fix indentation.
3798 * include/std/ostream: Check __glibcxx_syncbuf instead of
3799 __cplusplus and _GLIBCXX_HOSTED.
3800 * include/std/thread: Add comment to #ifdef.
3802 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
3804 * include/bits/version.def (__cpp_lib_ratio): Define.
3805 * include/bits/version.h: Regenerate.
3806 * include/std/ratio (quecto, ronto, yocto, zepto)
3807 (zetta, yotta, ronna, quetta): Define.
3808 * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Adjust
3809 dg-error line numbers.
3811 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
3813 * python/libstdcxx/v6/printers.py (StdLocalePrinter): New
3815 * testsuite/libstdc++-prettyprinters/locale.cc: New test.
3817 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
3820 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Do
3821 not show template arguments.
3822 (StdVariantPrinter): Likewise.
3823 * testsuite/libstdc++-prettyprinters/compat.cc: Adjust expected
3825 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
3826 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
3828 2023-08-23 François Dumont <fdumont@gcc.gnu.org>
3830 * testsuite/util/replacement_memory_operators.h
3831 (counter::scope): New, capture and reset counter count at construction and
3832 restore it at destruction.
3833 (counter::check_new): Add scope instantiation.
3834 * testsuite/23_containers/unordered_map/96088.cc (main):
3835 Add counter::scope instantiation.
3836 * testsuite/23_containers/unordered_multimap/96088.cc (main): Likewise.
3837 * testsuite/23_containers/unordered_multiset/96088.cc (main): Likewise.
3838 * testsuite/23_containers/unordered_set/96088.cc (main): Likewise.
3839 * testsuite/ext/malloc_allocator/deallocate_local.cc (main): Likewise.
3840 * testsuite/ext/new_allocator/deallocate_local.cc (main): Likewise.
3841 * testsuite/ext/throw_allocator/deallocate_local.cc (main): Likewise.
3842 * testsuite/ext/pool_allocator/allocate_chunk.cc (started): New global.
3843 (operator new(size_t)): Check started.
3844 (main): Set/Unset started.
3845 * testsuite/17_intro/no_library_allocation.cc: New test case.
3847 2023-08-21 Jonathan Wakely <jwakely@redhat.com>
3849 * testsuite/18_support/nested_exception/rethrow_if_nested-term.cc:
3850 Call std::set_terminate before throwing the nested exception.
3852 2023-08-18 Jonathan Wakely <jwakely@redhat.com>
3855 * include/std/format (formatter): Only define specializations
3856 for 16-bit floating-point types for C++23.
3857 * include/std/limits (numeric_limits): Likewise.
3859 2023-08-18 Jonathan Wakely <jwakely@redhat.com>
3861 * include/bits/chrono_io.h (operator<<): Make uses of wide
3862 strings with streams and std::format type-dependent on _CharT.
3863 * include/std/format [!_GLIBCXX_USE_WCHAR_T] Do not use
3864 __to_wstring_numeric.
3866 2023-08-18 Jonathan Wakely <jwakely@redhat.com>
3868 * include/bits/chrono_io.h (operator<<): Use __format_context.
3869 * include/std/format (__format::__format_context): New alias
3871 [!_GLIBCXX_USE_WCHAR_T] (wformat_args, make_wformat_arg):
3874 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3877 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3879 * config/locale/generic/c_locale.cc (__convert_to_v): Reuse
3880 double overload for long double if possible.
3882 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3884 * src/c++20/tzdb.cc (tzdata_file, leaps_file): Change type to
3887 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3889 * config/locale/generic/c_locale.cc (__convert_to_v): Reuse
3890 double overload for long double if possible.
3892 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3894 * src/c++98/localename.cc (is_C_locale): New function.
3895 (locale::locale(const char*)): Use is_C_locale.
3897 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3900 * include/bits/basic_string.h (basic_string::assign(Iter, Iter)):
3901 Dispatch to _M_replace or move assignment from a temporary,
3902 based on the iterator type.
3904 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3906 * include/std/format (formatter): Add partial specializations
3907 for extended floating-point types.
3908 * testsuite/std/format/functions/format.cc: Move test_float128()
3910 * testsuite/std/format/formatter/ext_float.cc: New test.
3912 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3914 * include/bits/c++config (__gnu_cxx::__bfloat16_t): Define
3915 whenever __BFLT16_DIG__ is defined, not only for C++23.
3916 * include/std/limits (numeric_limits<bfloat16_t>): Likewise.
3917 (numeric_limits<_Float16>, numeric_limits<_Float32>)
3918 (numeric_limits<_Float64>): Likewise for other extended
3919 floating-point types.
3921 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3923 * include/experimental/internet (address_v4::to_string): Remove
3924 unused parameter name.
3926 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3928 * libsupc++/compare (__cmp_cat::__unseq): Make ctor consteval.
3929 * testsuite/18_support/comparisons/categories/zero_neg.cc: Prune
3930 excess errors caused by invalid consteval calls.
3932 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3934 * include/bits/chrono_io.h (__units_suffix_misc): Remove.
3935 (__units_suffix): Return a known suffix as string view, do not
3936 write unknown suffixes to a buffer.
3937 (__fmt_units_suffix): New function that formats the suffix using
3939 (operator<<, __chrono_formatter::_M_q): Use __fmt_units_suffix.
3940 (__chrono_formatter::_M_Z): Correct lifetime of wstring.
3942 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3944 * include/std/format [_GLIBCXX_USE_WCHAR_T]: Guard all wide
3945 string formatters with this macro.
3946 (__formatter_int::_M_format_int, __formatter_fp::format)
3947 (formatter<const void*, C>::format): Use __to_wstring_numeric
3948 instead of std::ctype::widen.
3949 (__formatter_fp::_M_localize): Use hardcoded wchar_t values
3950 instead of std::ctype::widen.
3951 * testsuite/std/format/functions/format.cc: Add more checks for
3952 wstring formatting of arithmetic types.
3954 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3956 * include/bits/basic_string.h (to_string(floating-point-type)):
3957 Implement using std::to_chars for C++26.
3958 * include/bits/version.def (__cpp_lib_to_string): Define.
3959 * include/bits/version.h: Regenerate.
3960 * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
3961 Adjust expected result in C++26 mode.
3962 * testsuite/21_strings/basic_string/numeric_conversions/char/to_string.cc:
3964 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/dr1261.cc:
3966 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/to_wstring.cc:
3968 * testsuite/21_strings/basic_string/numeric_conversions/char/to_string_float.cc:
3970 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/to_wstring_float.cc:
3972 * testsuite/21_strings/basic_string/numeric_conversions/version.cc:
3975 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3977 * include/bits/basic_string.h (to_string(integral-type)): Use
3978 resize_and_overwrite when available.
3979 (__to_wstring_numeric): New helper functions.
3980 (to_wstring): Use std::to_string then __to_wstring_numeric.
3981 * testsuite/21_strings/basic_string/numeric_conversions/char/to_string_int.cc:
3982 Remove check for no excess capacity.
3984 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3986 * include/bits/basic_string.h (__resize_and_overwrite): New
3988 * include/bits/basic_string.tcc (__resize_and_overwrite): New
3990 (resize_and_overwrite): Simplify by using reserve instead of
3991 growing the string manually. Adjust for C++11 compatibility.
3992 * include/bits/cow_string.h (resize_and_overwrite): New
3994 (__resize_and_overwrite): New function.
3995 * include/bits/version.def (__cpp_lib_string_resize_and_overwrite):
3996 Do not depend on cxx11abi.
3997 * include/bits/version.h: Regenerate.
3998 * include/std/format (__formatter_fp::_S_resize_and_overwrite):
4000 (__formatter_fp::format, __formatter_fp::_M_localize): Use
4001 __resize_and_overwrite instead of _S_resize_and_overwrite.
4002 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
4003 Adjust for C++11 compatibility when included by ...
4004 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite_ext.cc:
4007 2023-08-17 Patrick Palka <ppalka@redhat.com>
4009 * include/bits/regex.h (regex_iterator::iterator_concept):
4010 Define for C++20 as per P2770R0.
4011 (regex_token_iterator::iterator_concept): Likewise.
4012 * include/std/ranges (__detail::__as_lvalue): Define.
4013 (join_view::_Iterator): Befriend join_view.
4014 (join_view::_Iterator::_M_satisfy): Use _M_get_outer
4015 instead of _M_outer.
4016 (join_view::_Iterator::_M_get_outer): Define.
4017 (join_view::_Iterator::_Iterator): Split constructor taking
4018 _Parent argument into two as per P2770R0. Remove constraint on
4019 default constructor.
4020 (join_view::_Iterator::_M_outer): Make this data member present
4021 only when the underlying range is forward.
4022 (join_view::_Iterator::operator++): Use _M_get_outer instead of
4024 (join_view::_Iterator::operator--): Use __as_lvalue helper.
4025 (join_view::_Iterator::operator==): Adjust constraints as per
4027 (join_view::_Sentinel::__equal): Use _M_get_outer instead of
4029 (join_view::_M_outer): New data member when the underlying range
4031 (join_view::begin): Adjust definition as per P2770R0.
4032 (join_view::end): Likewise.
4033 (join_with_view::_M_outer_it): New data member when the
4034 underlying range is non-forward.
4035 (join_with_view::begin): Adjust definition as per P2770R0.
4036 (join_with_view::end): Likewise.
4037 (join_with_view::_Iterator::_M_outer_it): Make this data member
4038 present only when the underlying range is forward.
4039 (join_with_view::_Iterator::_M_get_outer): Define.
4040 (join_with_view::_Iterator::_Iterator): Split constructor
4041 taking _Parent argument into two as per P2770R0. Remove
4042 constraint on default constructor.
4043 (join_with_view::_Iterator::_M_update_inner): Adjust definition
4045 (join_with_view::_Iterator::_M_get_inner): Likewise.
4046 (join_with_view::_Iterator::_M_satisfy): Adjust calls to
4047 _M_get_inner. Use _M_get_outer instead of _M_outer_it.
4048 (join_with_view::_Iterator::operator==): Adjust constraints
4050 (join_with_view::_Sentinel::operator==): Use _M_get_outer
4051 instead of _M_outer_it.
4052 * testsuite/std/ranges/adaptors/p2770r0.cc: New test.
4054 2023-08-17 Patrick Palka <ppalka@redhat.com>
4057 * include/std/ranges (__adaptor::_RangeAdaptorClosure):
4058 Convert into a CRTP class template. Move hidden operator|
4059 friends into namespace scope and adjust their constraints.
4060 (__closure::__is_range_adaptor_closure_fn): Define.
4061 (__closure::__is_range_adaptor_closure): Define.
4062 (__adaptor::_Partial): Adjust use of _RangeAdaptorClosure.
4063 (__adaptor::_Pipe): Likewise.
4064 (views::_All): Likewise.
4065 (views::_Join): Likewise.
4066 (views::_Common): Likewise.
4067 (views::_Reverse): Likewise.
4068 (views::_Elements): Likewise.
4069 (views::_Adjacent): Likewise.
4070 (views::_AsRvalue): Likewise.
4071 (views::_Enumerate): Likewise.
4072 (views::_AsConst): Likewise.
4073 * testsuite/std/ranges/adaptors/all.cc: Reinstate assertion
4074 expecting that adding empty range adaptor closure objects to a
4075 pipeline doesn't increase the size of a pipeline.
4077 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
4079 * include/std/format (__format::_Pres_type): Add _Pres_F.
4080 (__formatter_fp::parse): Use _Pres_F for 'F'.
4081 (__formatter_fp::format): Set __upper for _Pres_F.
4082 * testsuite/std/format/functions/format.cc: Check formatting of
4083 infinity and NaN for each presentation type.
4085 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
4087 * include/Makefile.in: Regenerate.
4089 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
4091 * testsuite/24_iterators/move_iterator/p2520r0.cc: Add no_pch.
4092 * testsuite/std/format/functions/format.cc: Likewise.
4093 * testsuite/std/format/functions/format_c++23.cc: Likewise.
4095 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
4097 * testsuite/lib/dg-options.exp (add_options_for_no_pch): Remove
4098 any "-include bits/stdc++.h" from options and add the macro to
4099 the existing options instead of replacing them.
4101 2023-08-16 Jonathan Wakely <jwakely@redhat.com>
4103 * include/bits/basic_string.tcc (resize_and_overwrite): Invoke
4104 the callable with the same size as resize_and_overwrite was
4106 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
4107 Check with small values for the new size.
4108 * testsuite/std/format/functions/format.cc: Check wide
4109 formatting of double values that produce small strings.
4110 * testsuite/std/format/functions/format_c++23.cc: New test.
4112 2023-08-16 Jonathan Wakely <jwakely@redhat.com>
4114 * include/bits/version.def (stds): Update value for C++23.
4115 * include/bits/version.h: Regenerate.
4117 2023-08-16 Jonathan Wakely <jwakely@redhat.com>
4119 * testsuite/25_algorithms/pstl/alg_sorting/set_difference.cc:
4120 Fix name of upstream file this was derived from.
4121 * testsuite/25_algorithms/pstl/alg_sorting/set_intersection.cc:
4123 * testsuite/25_algorithms/pstl/alg_sorting/set_symmetric_difference.cc:
4125 * testsuite/25_algorithms/pstl/alg_sorting/set_union.cc:
4127 * testsuite/25_algorithms/pstl/alg_sorting/set_util.h: Likewise.
4129 2023-08-16 Arsen Arsenović <arsen@aarsen.me>
4131 * libsupc++/typeinfo: Switch to bits/version.h for
4132 __cpp_lib_constexpr_typeinfo.
4133 * libsupc++/new: Switch to bits/version.h for
4134 __cpp_lib_{launder,hardware_interference_size,destroying_delete}.
4135 (launder): Guard behind __cpp_lib_launder.
4136 (hardware_destructive_interference_size)
4137 (hardware_constructive_interference_size): Guard behind
4138 __cpp_lib_hardware_interference_size.
4139 * libsupc++/exception: Switch to bits/version.h for
4140 __cpp_lib_uncaught_exceptions.
4141 (uncaught_exceptions): Guard behind __cpp_lib_uncaught_exceptions.
4142 * libsupc++/compare: Switch to bits/version.h for
4143 __cpp_lib_three_way_comparison.
4144 (three_way_comparable, three_way_comparable_with)
4145 (compare_three_way, weak_order, strong_order, partial_order):
4146 Guard behind __cpp_lib_three_way_comparison >= 201907L.
4147 * include/std/chrono: Drop __cpp_lib_chrono definition.
4148 * include/std/vector: Switch to bits/version.h for
4150 (erase, erase_if): Guard behind __cpp_lib_erase_if.
4151 * include/std/variant: Switch to bits/version.h for
4152 __cpp_lib_variant. Guard whole header behind that FTM.
4153 * include/std/utility: Switch to bits/version.h for
4154 __cpp_lib_{exchange_function,constexpr_algorithms,as_const},
4155 __cpp_lib_{integer_comparison_functions,to_underlying}, and
4156 __cpp_lib_unreachable.
4157 (exchange): Guard behind __cpp_lib_exchange_function.
4158 (cmp_equal, cmp_not_equal, cmp_less, cmp_greater, cmp_less_equal)
4159 (cmp_greater_equal, in_range): Guard behind
4160 __cpp_lib_integer_comparison_functions.
4161 (to_underlying): Guard behind __cpp_lib_to_underlying.
4162 (unreachable): Guard behind __cpp_lib_unreachable.
4163 * include/std/type_traits: Switch to bits/version.h for
4164 __cpp_lib_is_{null_pointer,final,nothrow_convertible,aggregate},
4165 __cpp_lib_is_{constant_evaluated,invocable,layout_compatible},
4166 __cpp_lib_is_{pointer_interconvertible,scoped_enum,swappable},
4167 __cpp_lib_{logical_traits,reference_from_temporary,remove_cvref},
4168 __cpp_lib_{result_of_sfinae,transformation_trait_aliases},
4169 __cpp_lib_{type_identity,type_trait_variable_templates},
4170 __cpp_lib_{unwrap_ref,void_t,integral_constant_callable},
4171 __cpp_lib_{bool_constant,bounded_array_traits}, and
4172 __cpp_lib_has_unique_object_representations.
4173 (integral_constant::operator()): Guard behind
4174 __cpp_lib_integral_constant_callable.
4175 (bool_constant): Guard behind __cpp_lib_bool_constant.
4176 (conjunction, disjunction, negation, conjunction_v, disjunction_v)
4177 (negation_v): Guard behind __cpp_lib_logical_traits.
4178 (is_null_pointer): Guard behind __cpp_lib_is_null_pointer.
4179 (is_final): Guard behind __cpp_lib_is_final.
4180 (is_nothrow_convertible, is_nothrow_convertible_v): Guard behind
4181 __cpp_lib_is_nothrow_convertible.
4182 (remove_const_t, remove_volatile_t, remove_cv_t)
4183 (add_const_t, add_volatile_t, add_cv_t): Guard behind
4184 __cpp_lib_transformation_trait_aliases.
4185 (void_t): Guard behind __cpp_lib_void_t.
4186 (is_swappable_with_v, is_nothrow_swappable_with_v)
4187 (is_swappable_with, is_nothrow_swappable_with): Guard behind
4188 __cpp_lib_is_swappable.
4189 (is_nothrow_invocable_r, is_invocable_r, invoke_result)
4190 (is_invocable, invoke_result_t): Guard behind
4191 __cpp_lib_is_invocable.
4192 (alignment_of_v, extent_v, has_virtual_destructor_v)
4193 (is_abstract_v, is_arithmetic_v, is_array_v)
4194 (is_assignable_v, is_base_of_v, is_class_v, is_compound_v)
4195 (is_constructible_v, is_const_v, is_convertible_v)
4196 (is_copy_assignable_v, is_copy_constructible_v)
4197 (is_default_constructible_v, is_destructible_v)
4198 (is_empty_v, is_enum_v, is_final_v, is_floating_point_v)
4199 (is_function_v, is_fundamental_v, is_integral_v)
4200 (is_invocable_r_v, is_invocable_v, is_literal_type_v)
4201 (is_lvalue_reference_v, is_member_function_pointer_v)
4202 (is_member_object_pointer_v, is_member_pointer_v)
4203 (is_move_assignable_v, is_move_constructible_v)
4204 (is_nothrow_assignable_v, is_nothrow_constructible_v)
4205 (is_nothrow_copy_assignable_v, is_nothrow_copy_constructible_v)
4206 (is_nothrow_default_constructible_v, is_nothrow_destructible_v)
4207 (is_nothrow_invocable_r_v, is_nothrow_invocable_v)
4208 (is_nothrow_move_assignable_v, is_nothrow_move_constructible_v)
4209 (is_null_pointer_v, is_object_v, is_pod_v, is_pointer_v)
4210 (is_polymorphic_v, is_reference_v, is_rvalue_reference_v)
4211 (is_same_v, is_scalar_v, is_signed_v, is_standard_layout_v)
4212 (is_trivially_assignable_v, is_trivially_constructible_v)
4213 (is_trivially_copyable_v, is_trivially_copy_assignable_v)
4214 (is_trivially_copy_constructible_v)
4215 (is_trivially_default_constructible_v)
4216 (is_trivially_destructible_v, is_trivially_move_assignable_v)
4217 (is_trivially_move_constructible_v, is_trivial_v, is_union_v)
4218 (is_unsigned_v, is_void_v, is_volatile_v, rank_v, as variadic):
4219 Guard behind __cpp_lib_type_trait_variable_templates.
4220 (has_unique_object_representations)
4221 (has_unique_object_representations_v): Guard behind
4222 __cpp_lib_has_unique_object_representation.
4223 (is_aggregate): Guard behind __cpp_lib_is_aggregate.
4224 (remove_cvref, remove_cvref_t): Guard behind
4225 __cpp_lib_remove_cvref.
4226 (type_identity, type_identity_t): Guard behind
4227 __cpp_lib_type_identity.
4228 (unwrap_reference, unwrap_reference_t, unwrap_ref_decay)
4229 (unwrap_ref_decay_t): Guard behind __cpp_lib_unwrap_ref.
4230 (is_bounded_array_v, is_unbounded_array_v, is_bounded_array)
4231 (is_unbounded_array): Guard behind __cpp_lib_bounded_array_traits.
4232 (is_scoped_enum, is_scoped_enum_v): Guard behind
4233 __cpp_lib_is_scoped_enum.
4234 (reference_constructs_from_temporary)
4235 (reference_constructs_from_temporary_v): Guard behind
4236 __cpp_lib_reference_from_temporary.
4237 * include/std/tuple: Switch to bits/version.h for
4238 __cpp_lib_{constexpr_tuple,tuple_by_type,apply_make_from_tuple}.
4239 (get<T>): Guard behind __cpp_lib_tuple_by_type.
4240 (apply): Guard behind __cpp_lib_apply.
4241 (make_from_tuple): Guard behind __cpp_lib_make_from_tuple.
4242 * include/std/syncstream: Switch to bits/version.h for
4243 __cpp_lib_syncbuf. Guard header behind that FTM.
4244 * include/std/string_view: Switch to bits/version.h for
4245 __cpp_lib_{string_{view,contains},constexpr_string_view} and
4246 __cpp_lib_starts_ends_with.
4247 (basic_string_view::starts_with, basic_string_view::ends_with):
4248 Guard behind __cpp_lib_starts_ends_with.
4249 [C++23 && _GLIBCXX_HOSTED && !defined(__cpp_lib_string_contains)]:
4250 Assert as impossible ithout a bug in C++23.
4251 * include/std/string: Switch to bits/version.h for
4253 (erase, erase_if): Guard behind __cpp_lib_erase_if.
4254 * include/std/thread: Switch to bits/version.h for
4256 * include/std/stop_token: Switch to bits/version.h for
4258 * include/std/spanstream: Switch to bits/version.h for
4259 __cpp_lib_spanstream. Guard header behind that FTM.
4260 * include/std/span: Switch to bits/version.h for __cpp_lib_span.
4261 Guard header behind that FTM.
4262 * include/std/source_location: Switch to bits/version.h for
4263 __cpp_lib_source_location. Guard header with that FTM.
4264 * include/std/shared_mutex: Switch to bits/version.h for
4265 __cpp_lib_shared{,_timed}_mutex.
4266 (shared_mutex): Guard behind __cpp_lib_shared_mutex.
4267 * include/std/semaphore: Switch to bits/version.h for
4268 __cpp_lib_semaphore. Guard header behind that FTM.
4269 * include/std/ranges: Switch to bits/version.h for
4270 __cpp_lib_ranges_{zip,chunk{,_by},slide,join_with},
4271 __cpp_lib_ranges_{repeat_stride,cartesian_product,as_rvalue},
4272 and __cpp_lib_ranges_{as_const,enumerate,iota}.
4273 (ranges::zip et al, ranges::chunk et al, ranges::slide et al)
4274 (ranges::chunk_by et al, ranges::join_with et al)
4275 (ranges::stride et al, ranges::cartesian_product et al)
4276 (ranges::as_rvalue et al, ranges::as_const et al)
4277 (ranges::enumerate et al): Guard behind appropriate FTM.
4278 * include/std/optional: Switch to bits/version.h for
4279 __cpp_lib_optional. Guard header behind that FTM.
4280 * include/std/numeric: Switch to bits/version.h for
4281 __cpp_lib_{gcd{,_lcm},lcm,constexpr_numeric,interpolate}
4282 and __cpp_lib_parallel_algorithm.
4283 (gcd, lcm): Guard behind __cpp_lib_gcd_lcm.
4284 (midpoint): Guard behind __cpp_lib_interpolate.
4285 * include/std/numbers: Switch to bits/version.h for
4286 __cpp_lib_math_constants. Guard header behind that FTM.
4287 * include/std/mutex: Switch to bits/version.h for
4288 __cpp_lib_scoped_lock.
4289 (scoped_Lock): Guard behind __cpp_lib_scoped_lock.
4290 * include/std/memory_resource: Switch to bits/version.h for
4291 __cpp_lib_{polymorphic_allocator,memory_resource}.
4292 (synchronized_pool_resource): Guard behind
4293 __cpp_lib_memory_resource >= 201603L.
4294 (polymorphic_allocator): Guard behind
4295 __cpp_lib_polymorphic_allocator.
4296 * include/std/memory: Switch to bits/version.h for
4297 __cpp_lib_{parallel_algorithm,atomic_value_initialization}.
4298 * include/std/list: Switch to bits/version.h for
4300 (erase, erase_if): Guard behind __cpp_lib_erase_if.
4301 * include/std/latch: Switch to bits/version.h for __cpp_lib_latch.
4302 Guard header behind that FTM.
4303 * include/std/iterator: Switch to bits/version.h for
4304 __cpp_lib_null_iterators.
4305 * include/std/iomanip: Switch to bits/version.h for
4306 __cpp_lib_quoted_string_io.
4307 (quoted): Guard behind __cpp_lib_quoted_string_io.
4308 * include/std/functional: Switch to bits/version.h for
4309 __cpp_lib_{invoke{,_r},constexpr_functional,bind_front} and
4310 __cpp_lib_{not_fn,booyer_moore_searcher}.
4311 (invoke): Guard behind __cpp_lib_invoke.
4312 (invoke_r): Guard behind __cpp_lib_invoke_r.
4313 (bind_front): Guard behind __cpp_lib_bind_front.
4314 (not_fn): Guard behind __cpp_lib_not_fn.
4315 (boyer_moore_searcher, boyer_moore_horspool_searcher): Guard
4316 definition behind __cpp_lib_boyer_moore_searcher.
4317 * include/std/forward_list: Switch to bits/version.h for
4319 (erase, erase_if): Guard behind __cpp_lib_erase_if.
4320 * include/std/format: Switch to bits/version.h for
4321 __cpp_lib_format. Guard header behind that FTM.
4322 * include/std/filesystem: Switch to bits/version.h for
4323 __cpp_lib_filesystem. Guard header behind that FTM.
4324 * include/std/expected: Switch to bits/version.h for
4325 __cpp_lib_expected. Guard header behind it.
4326 * include/std/execution: Switch to bits/version.h for
4327 __cpp_lib_{execution,parallel_algorithm}. Guard header behind
4329 * include/std/deque: Switch to bits/version.h for
4331 (erase, erase_if): Guard behind __cpp_lib_erase_if.
4332 * include/std/coroutine: Switch to bits/version.h for
4333 __cpp_lib_coroutine. Guard header behind that FTM.
4334 * include/std/concepts: Switch to bits/version.h for
4335 __cpp_lib_concepts. Guard header behind that FTM.
4336 * include/std/complex: Switch to bits/version.h for
4337 __cpp_lib_{complex_udls,constexpr_complex}.
4338 (operator""if, operator""i, operator""il): Guard behind
4339 __cpp_lib_complex_udls.
4340 * include/std/charconv: Swtich to bits/version.h for
4341 __cpp_lib_{to_chars,constexpr_charconv}.
4342 * include/std/bitset: Switch to bits/version.h for
4343 __cpp_lib_constexpr_bitset.
4344 * include/std/bit: Switch to bits/version.h for
4345 __cpp_lib_{bit_cast,byteswap,bitops,int_pow2,endian}.
4346 (bit_cast): Guard behind __cpp_lib_bit_cast.
4347 (byteswap): Guard behind __cpp_lib_byteswap.
4348 (rotl, rotr, countl_zero, countl_one, countr_zero, countr_one)
4349 (popcount): Guard behind __cpp_lib_bitops.
4350 (has_single_bit, bit_ceil, bit_floor, bit_width): Guard behind
4352 (endian): Guard behind __cpp_lib_endian.
4353 * include/std/barrier: Switch to bits/version.h for
4354 __cpp_lib_barrier. Guard header behind that FTM.
4355 * include/std/atomic: Switch to bits/version.h for
4356 __cpp_lib_atomic_{is_always_lock_free,float,ref}
4357 and __cpp_lib_lock_free_type_aliases.
4358 (*::is_always_lock_free): Guard behind
4359 __cpp_lib_atomic_is_always_lock_free.
4360 (atomic<float>): Guard behind __cpp_lib_atomic_float.
4361 (atomic_ref): Guard behind __cpp_lib_atomic_ref.
4362 (atomic_signed_lock_free, atomic_unsigned_lock_free): Guard behind
4363 __cpp_lib_atomic_lock_free_type_aliases.
4364 * include/std/array: Switch to bits/version.h for
4366 (to_array): Guard behind __cpp_lib_to_array.
4367 * include/std/any: Switch to bits/version.h for __cpp_lib_any.
4368 Guard header behind that FTM.
4369 * include/std/algorithm: Switch to bits/version.h for
4370 __cpp_lib_parallel_algorithm.
4371 * include/c_global/cstddef: Switch to bits/version.h for
4373 (byte): Guard behind __cpp_lib_byte.
4374 * include/c_global/cmath: Switch to bits/version.h for
4375 __cpp_lib_{hypot,interpolate}.
4376 (hypot3): Guard behind __cpp_lib_hypot.
4377 (lerp): Guard behind __cpp_lib_interpolate.
4378 * include/c_compatibility/stdatomic.h: Switch to
4379 bits/stl_version.h for __cpp_lib_atomic. Guard header behind that
4381 * include/bits/utility.h: Switch to bits/version.h for
4382 __cpp_lib_{tuple_element_t,integer_sequence,ranges_zip}.
4383 (tuple_element_t): Guard behind __cpp_lib_tuple_element_t.
4384 (integer_sequence et al): Guard behind __cpp_lib_integer_sequence.
4385 * include/bits/uses_allocator_args.h: Switch to bits/version.h for
4386 __cpp_lib_make_obj_using_allocator. Guard header behind that FTM.
4387 * include/bits/unordered_map.h: Switch to bits/version.h for
4388 __cpp_lib_unordered_map_try_emplace.
4389 (try_emplace): Guard behind __cpp_lib_unordered_map_try_emplace.
4390 * include/bits/unique_ptr.h: Switch to bits/version.h for
4391 __cpp_lib_{constexpr_memory,make_unique}.
4392 (make_unique): Guard behind __cpp_lib_make_unique.
4393 * include/bits/stl_vector.h: Switch to bits/version.h for
4394 __cpp_lib_constexpr_vector.
4395 * include/bits/stl_uninitialized.h: Switch to bits/version.h for
4396 __cpp_lib_raw_memory_algorithms.
4397 (uninitialized_default_construct)
4398 (uninitialized_default_construct_n, uninitialized_move)
4399 (uninitialized_move_n, uninitialized_value_construct)
4400 (uninitialized_value_construct_n): Guard behind
4401 __cpp_lib_raw_memory_algorithms.
4402 * include/bits/stl_tree.h: Switch to bits/version.h for
4403 __cpp_lib_generic_associative_lookup.
4404 * include/bits/stl_stack.h: Switch to bits/version.h for
4405 __cpp_lib_adaptor_iterator_pair_constructor.
4406 (stack): Guard iterator-pair constructor behind
4407 __cpp_lib_adaptor_iterator_pair_constructor.
4408 * include/bits/stl_queue.h: Switch to bits/version.h for
4409 __cpp_lib_adaptor_iterator_pair_constructor.
4410 (queue): Guard iterator-pair constructor behind
4411 __cpp_lib_adaptor_iterator_pair_constructor.
4412 * include/bits/stl_pair.h: Switch to bits/version.h for
4413 __cpp_lib_{concepts,tuples_by_type}.
4414 (get): Guard type-getting overloads behind
4415 __cpp_lib_tuples_by_type.
4416 * include/bits/stl_map.h: Switch to bits/version.h for
4417 __cpp_lib_map_try_emplace.
4418 (map<>::try_emplace): Guard behind __cpp_lib_map_try_emplace.
4419 * include/bits/stl_list.h: Switch to bits/version.h for
4420 __cpp_lib_list_remove_return_type.
4421 (__remove_return_type, _GLIBCXX_LIST_REMOVE_RETURN_TYPE_TAG)
4422 [C++20]: guard behind __cpp_lib_list_remove_return_type instead.
4423 * include/bits/stl_iterator.h: Switch to bits/version.h for
4424 __cpp_lib_{constexpr_iterator,array_constexpr} and
4425 __cpp_lib_{make_reverse_iterator,move_iterator_concept}.
4426 (make_reverse_iterator): Guard behind
4427 __cpp_lib_make_reverse_iterator.
4428 (iterator_concept et al): Guard __cpp_lib_move_iterator_concept
4429 changes behind that FTM.
4430 * include/bits/stl_function.h: Switch to bits/version.h for
4431 __cpp_lib_transparent_operators.
4432 (equal_to, not_equal_to, greater, less, greater_equal)
4433 (less_equal, bit_and, bit_or, bit_xor, bit_not, logical_and)
4434 (logical_or, logical_not, plus, minus, multiplies, divides)
4435 (modulus, negate): Guard '= void' fwdecls behind
4436 __cpp_lib_transparent_operators.
4437 (plus<void>, minus<void>, multiplies<void>, divides<void>)
4438 (modulus<void>, negate<void>, logical_and<void>, logical_or<void>)
4439 (logical_not<void>, bit_and<void>, bit_or<void>, bit_xor<void>)
4440 (equal_to<void>, not_equal_to<void>, greater<void>, less<void>)
4441 (greater_equal<void>, less_equal<void>, bit_not<void>)
4442 (__has_is_transparent): Guard behind
4443 __cpp_lib_transparent_operators.
4444 * include/bits/stl_algobase.h: Switch to bits/version.h for
4445 __cpp_lib_robust_nonmodifying_seq_ops.
4446 (robust equal, mismatch): Guard behind
4447 __cpp_lib_nonmember_container_access.
4448 * include/bits/stl_algo.h: Swtich to bits/version.h for
4449 __cpp_lib_{clamp,sample}.
4450 (clamp): Guard behind __cpp_lib_clamp.
4451 (sample): Guard behind __cpp_lib_sample.
4452 * include/bits/specfun.h: Switch to bits/version.h for
4453 __cpp_lib_math_special_functions and __STDCPP_MATH_SPEC_FUNCS__.
4454 * include/bits/shared_ptr_base.h: Switch to bits/version.h for
4455 __cpp_lib_{smart_ptr_for_overwrite,shared_ptr_arrays}.
4456 (_Sp_overwrite_tag): Guard behind
4457 __cpp_lib_smart_ptr_for_overwrite.
4458 * include/bits/shared_ptr_atomic.h: Switch to bits/version.h for
4459 __cpp_lib_atomic_shared_ptr.
4460 * include/bits/shared_ptr.h: Switch to bits/version.h for
4461 __cpp_lib_{enable_shared_from_this,shared_ptr_weak_type}.
4462 (shared_ptr<T>::weak_type): Guard behind
4463 __cpp_lib_shared_ptr_weak_type.
4464 (enable_shared_from_this<T>::weak_from_this): Guard behind
4465 __cpp_lib_enable_shared_from_this.
4466 * include/bits/ranges_cmp.h: Switch to bits/version.h for
4468 * include/bits/ranges_algo.h: Switch to bits/version.h for
4469 __cpp_lib_{shift,ranges_{contains,find_last,fold,iota}}.
4470 * include/bits/range_access.h: Switch to bits/version.h for
4471 __cpp_lib_nonmember_container_access
4472 (size, empty, data): Guard behind
4473 __cpp_lib_nonmember_container_access.
4474 (ssize): Guard behind __cpp_lib_ssize.
4475 * include/bits/ptr_traits.h: Switch to bits/version.h. for
4476 __cpp_lib_{constexpr_memory,to_address}.
4477 (to_address): Guard behind __cpp_lib_to_address.
4478 * include/bits/node_handle.h: Switch to bits/version.h for
4479 __cpp_lib_node_extract. Guard header behind that FTM.
4480 * include/bits/move_only_function.h: Switch to bits/version.h for
4481 __cpp_lib_move_only_function. Guard header behind that FTM.
4482 * include/bits/move.h: Switch to bits/version.h for
4483 __cpp_lib_addressof_constexpr.
4484 * include/bits/ios_base.h: Switch to bits/version.h for
4485 __cpp_lib_ios_noreplace.
4486 (noreplace): Guard with __cpp_lib_ios_noreplace.
4487 * include/bits/hashtable.h: Switch to bits/version.h for
4488 __cpp_lib_generic_unordered_lookup.
4489 (_M_equal_range_tr, _M_count_tr, _M_find_tr): Guard behind
4490 __cpp_lib_generic_unordered_lookup.
4491 * include/bits/forward_list.h: Switch to bits/version.h for
4492 __cpp_lib_list_remove_return_type.
4493 (__remove_return_type): Guard behind
4494 __cpp_lib_list_remove_return_type.
4495 * include/bits/erase_if.h: Switch to bits/version.h for
4497 * include/bits/cow_string.h: Switch to bits/version.h for
4498 __cpp_lib_constexpr_string.
4499 * include/bits/chrono.h: Swtich to bits/version.h for
4500 __cpp_lib_chrono{,_udls}.
4501 (ceil): Guard behind __cpp_lib_chrono.
4502 (operator""ns et al): Guard behind __cpp_lib_chrono_udls.
4503 * include/bits/char_traits.h: Switch to bits/version.h for
4504 __cpp_lib_constexpr_char_traits.
4505 * include/bits/basic_string.h: Switch to bits/version.h for
4506 __cpp_lib_{constexpr_string,string_{resize_and_overwrite,udls}}.
4507 (resize_and_overwrite): Guard behind
4508 __cpp_lib_string_resize_and_overwrite.
4509 (operator""s): Guard behind __cpp_lib_string_udls.
4510 * include/bits/atomic_wait.h: Switch to bits/version.h for
4511 __cpp_lib_atomic_wait. Guard header behind that FTM.
4512 * include/bits/atomic_base.h: Switch to bits/version.h for
4513 __cpp_lib_atomic_value_initialization and
4514 __cpp_lib_atomic_flag_test.
4515 (atomic_flag::test): Guard behind __cpp_lib_atomic_flag_test,
4517 * include/bits/allocator.h: Switch to bits/version.h for
4518 __cpp_lib_incomplete_container_elements.
4519 * include/bits/alloc_traits.h: Switch to using bits/version.h for
4520 __cpp_lib_constexpr_dynamic_alloc and
4521 __cpp_lib_allocator_traits_is_always_equal.
4522 * include/bits/align.h: Switch to bits/version.h for defining
4523 __cpp_lib_assume_aligned.
4524 (assume_aligned): Guard with __cpp_lib_assume_aligned.
4525 * include/bits/algorithmfwd.h: Switch to bits/version.h for
4526 defining __cpp_lib_constexpr_algorithms.
4527 * include/std/stacktrace: Switch to bits/version.h for
4528 __cpp_lib_stacktrace. Guard header behind that FTM.
4529 * testsuite/23_containers/array/tuple_interface/get_neg.cc:
4530 Update line numbers.
4532 2023-08-16 Arsen Arsenović <arsen@aarsen.me>
4534 * include/Makefile.am (bits_freestanding): Add version.h.
4535 (allcreated): Add version.h.
4536 (${bits_srcdir}/version.h): New rule. Regenerates
4537 version.h out of version.{def,tpl}.
4538 * include/Makefile.in: Regenerate.
4539 * include/bits/version.def: New file. Declares a list of
4540 all feature test macros, their values and their preconditions.
4541 * include/bits/version.tpl: New file. Turns version.def
4542 into a sequence of #if blocks.
4543 * include/bits/version.h: New file. Generated from
4545 * include/std/version: Replace with a __glibcxx_want_all define
4546 and bits/version.h include.
4548 2023-08-14 Paul Dreik <gccpatches@pauldreik.se>
4551 * include/std/format (__formatter_fp::format): Use frexp instead
4554 2023-08-12 Ken Matsui <kmatsui@gcc.gnu.org>
4556 * include/std/type_traits (true_type): Use __bool_constant
4558 (false_type): Likewise.
4559 (bool_constant): Likewise.
4561 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
4564 * include/std/format (_Seq_sink::get): Only call _M_overflow if
4565 its precondition is met.
4566 (_Iter_sink::_M_finish): Likewise.
4567 (_Iter_sink<C, ContigIter>::_M_overflow): Only switch to the
4568 internal buffer after running out of space.
4569 (_Iter_sink<C, ContigIter>::_M_finish): Do not use _M_overflow.
4570 (_Counting_sink::count): Likewise.
4571 * testsuite/std/format/functions/format_to_n.cc: Check cases
4572 where the output fits into the buffer.
4574 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
4577 * include/bits/chrono_io.h (operator|=, operator|): Add noexcept
4578 to _ChronoParts operators.
4579 (from_stream, parse): Define new functions.
4580 (__detail::_Parse, __detail::_Parser): New class templates.
4581 * include/std/chrono (__cpp_lib_chrono): Define to 201907L for
4583 * include/std/version (__cpp_lib_chrono): Likewise.
4584 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc:
4585 Adjust expected value of feature test macro.
4586 * testsuite/20_util/duration/io.cc: Test parsing.
4587 * testsuite/std/time/clock/file/io.cc: Likewise.
4588 * testsuite/std/time/clock/gps/io.cc: Likewise.
4589 * testsuite/std/time/clock/system/io.cc: Likewise.
4590 * testsuite/std/time/clock/tai/io.cc: Likewise.
4591 * testsuite/std/time/clock/utc/io.cc: Likewise.
4592 * testsuite/std/time/day/io.cc: Likewise.
4593 * testsuite/std/time/month/io.cc: Likewise.
4594 * testsuite/std/time/month_day/io.cc: Likewise.
4595 * testsuite/std/time/weekday/io.cc: Likewise.
4596 * testsuite/std/time/year/io.cc: Likewise.
4597 * testsuite/std/time/year_month/io.cc: Likewise.
4598 * testsuite/std/time/year_month_day/io.cc: Likewise.
4599 * testsuite/std/time/syn_c++20.cc: Check value of macro and for
4600 the existence of parse and from_stream in namespace chrono.
4601 * testsuite/std/time/clock/local/io.cc: New test.
4602 * testsuite/std/time/parse.cc: New test.
4604 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
4607 * include/std/format (__formatter_fp::format): Do not call log10
4610 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
4612 * python/libstdcxx/v6/printers.py (StdChronoCalendarPrinter):
4613 Check for out-of-range month an weekday indices.
4614 * testsuite/libstdc++-prettyprinters/chrono.cc: Check invalid
4615 month and weekday values.
4617 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
4619 * include/bits/stl_iterator.h (__clamped_iter_cat_t): Remove.
4621 2023-08-10 Jonathan Wakely <jwakely@redhat.com>
4624 * include/std/format (_Spec::_S_parse_width_or_precision): Check
4625 for empty range before dereferencing iterator.
4626 * testsuite/std/format/string.cc: Check for expected exception.
4627 Fix expected exception message in test_pr110862() and actually
4630 2023-08-10 Jonathan Wakely <jwakely@redhat.com>
4633 * include/std/format (__formatter_fp::format): Check return
4634 value of _M_localize.
4635 * testsuite/std/format/functions/format.cc: Check classic
4638 2023-08-10 Jonathan Wakely <jwakely@redhat.com>
4641 * include/bits/stl_iterator.h (__detail::__move_iter_cat): Use
4643 (iterator_traits<common_iterator<I, S>>::_S_iter_cat): Likewise.
4644 (__detail::__basic_const_iterator_iter_cat): Likewise.
4645 * include/bits/stl_iterator_base_types.h (__iterator_category_t):
4646 Rename to __iter_category_t.
4648 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
4650 * include/bits/chrono.h (duration_cast): Do not use braces
4651 around statements for C++11 constexpr rules.
4652 * include/bits/stl_algobase.h (__lg): Rewrite as a single
4653 statement for C++11 constexpr rules.
4654 * include/experimental/bits/fs_path.h (path::string): Use
4655 _GLIBCXX17_CONSTEXPR not _GLIBCXX_CONSTEXPR for 'if constexpr'.
4656 * include/std/charconv (__to_chars_8): Initialize variable for
4657 C++17 constexpr rules.
4659 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
4661 * include/bits/list.tcc (list::sort(Cmp)): Fix -Wsign-compare
4662 warning for loop condition.
4664 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
4666 * include/std/complex: Add diagnostic pragma for clang.
4668 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
4670 * include/bits/shared_ptr_atomic.h (atomic): Change class-head
4672 * include/bits/stl_tree.h (_Rb_tree_merge_helper): Change
4673 class-head to struct in friend declaration.
4674 * include/std/chrono (tzdb_list::_Node): Likewise.
4675 * include/std/future (_Task_state_base, _Task_state): Likewise.
4676 * include/std/scoped_allocator (__inner_type_impl): Likewise.
4677 * include/std/valarray (_BinClos, _SClos, _GClos, _IClos)
4678 (_ValFunClos, _RefFunClos): Change class-head to struct.
4680 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
4682 * include/bits/alloc_traits.h (allocate): Add [[maybe_unused]]
4684 * include/bits/regex_executor.tcc: Remove name of unused
4686 * include/bits/shared_ptr_atomic.h (atomic_is_lock_free):
4688 * include/bits/stl_uninitialized.h: Likewise.
4689 * include/bits/streambuf_iterator.h (operator==): Likewise.
4690 * include/bits/uses_allocator.h: Likewise.
4691 * include/c_global/cmath (isfinite, isinf, isnan): Likewise.
4692 * include/std/chrono (zoned_time): Likewise.
4693 * include/std/future (__future_base::_S_allocate_result):
4695 (packaged_task): Likewise.
4696 * include/std/optional (_Optional_payload_base): Likewise.
4697 * include/std/scoped_allocator (__inner_type_impl): Likewise.
4698 * include/std/tuple (_Tuple_impl): Likewise.
4700 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
4702 * include/bits/new_allocator.h (__new_allocator): Define copy
4703 assignment operator as defaulted.
4704 * include/std/complex (complex<float>, complex<double>)
4705 (complex<long double>): Define copy constructor as defaulted.
4707 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
4709 * include/std/format: Fix some warnings.
4710 (__format::__write(Ctx&, basic_string_view<CharT>)): Remove
4711 unused function template.
4713 2023-08-07 Jonathan Wakely <jwakely@redhat.com>
4716 * include/std/format (__formatter_fp::format): Do not use
4717 __builtin_abs and __builtin_log10 with arbitrary floating-point
4720 2023-08-07 Jonathan Wakely <jwakely@redhat.com>
4723 * include/std/format (__format::_Iter_sink<CharT, OutIter>):
4724 Constrain partial specialization for contiguous iterators to
4725 require the value type to be CharT.
4726 * testsuite/std/format/functions/format_to.cc: New test.
4728 2023-08-07 Jonathan Wakely <jwakely@redhat.com>
4731 * include/std/format (_Scanner::_M_on_replacement_field):
4732 Check for expected '}' before incrementing iterator.
4733 * testsuite/std/format/string.cc: Check "{0:{0}" format string.
4735 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
4737 * configure: Regenerate.
4739 2023-08-07 Alan Modra <amodra@gmail.com>
4741 * configure: Regenerate.
4743 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
4745 * configure: Regenerate.
4747 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
4749 * configure: Regenerate.
4751 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
4753 * configure: Regenerate.
4755 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
4757 * configure: Regenerate.
4759 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
4761 * configure: Regenerate.
4763 2023-08-06 François Dumont <fdumont@gcc.gnu.org>
4765 * config/abi/pre/gnu-versioned-namespace.ver: Add __cxa_call_terminate
4768 2023-07-30 François Dumont <fdumont@gcc.gnu.org>
4770 * src/c++11/compatibility-ldbl-facets-aliases.h: Replace #define with
4772 * src/c++11/locale-inst-monetary.h: Likewise.
4773 * src/c++11/locale-inst-numeric.h: Likewise.
4775 2023-07-27 Jonathan Wakely <jwakely@redhat.com>
4778 * include/std/format (__formatter_fp::format): Ensure __expc is
4779 always set for all presentation types. Set __z correctly for
4781 * testsuite/std/format/functions/format.cc: Check problem cases.
4783 2023-07-26 Jonathan Wakely <jwakely@redhat.com>
4786 * testsuite/23_containers/vector/bool/110807.cc: Require c++11.
4788 2023-07-26 Jonathan Wakely <jwakely@redhat.com>
4791 * include/bits/stl_bvector.h (vector(const vector&)): Access
4792 iterators before allocating.
4793 * include/bits/vector.tcc (vector<bool>::_M_insert_range):
4795 * testsuite/23_containers/vector/bool/110807.cc: New test.
4797 2023-07-26 Jonathan Wakely <jwakely@redhat.com>
4799 * include/bits/algorithmfwd.h (random_shuffle): Add deprecated
4801 * include/bits/stl_algo.h (random_shuffle): Correct comments.
4802 * testsuite/25_algorithms/random_shuffle/1.cc: Disable
4803 deprecated warnings.
4804 * testsuite/25_algorithms/random_shuffle/59603.cc: Likewise.
4805 * testsuite/25_algorithms/random_shuffle/moveable.cc: Likewise.
4806 * testsuite/25_algorithms/random_shuffle/deprecated.cc: New
4809 2023-07-26 Nathaniel Shead <nathanieloshead@gmail.com>
4811 * testsuite/25_algorithms/equal/constexpr_neg.cc: Update diagnostic
4813 * testsuite/26_numerics/gcd/105844.cc: Likewise.
4814 * testsuite/26_numerics/lcm/105844.cc: Likewise.
4816 2023-07-24 Deev Patel <pateldeev@nevada.unr.edu>
4818 * include/std/format (_Formatting_scanner::_M_on_chars): Add
4819 missing constexpr specifier.
4820 (_Formatting_scanner::_M_format_arg): Likewise.
4822 2023-07-24 Jonathan Wakely <jwakely@redhat.com>
4825 * include/bits/basic_string.h [!HAVE_STOF] (stof): Do not
4826 throw an exception for zero result.
4827 [HAVE_BROKEN_STRTOLD] (stold): Do not use strtold.
4829 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
4832 * src/c++17/floating_from_chars.cc (from_chars): Only define
4833 _Float128 overload when using __strfromf128.
4835 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
4838 * include/bits/chrono.h (duration): Improve static assert
4840 (__is_ratio): Move to ...
4841 * include/std/ratio (__is_ratio): ... here.
4842 (__is_ratio_v): New variable template and partial
4844 (__are_both_ratios): New function template.
4845 (__ratio_multiply, ratio_equal, ratio_less, __ratio_add):
4846 Add static assertion.
4847 * testsuite/20_util/ratio/requirements/type_constraints.cc:
4849 * testsuite/20_util/duration/requirements/typedefs_neg1.cc:
4850 Adjust expected error.
4851 * testsuite/20_util/duration/requirements/typedefs_neg2.cc:
4854 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
4856 * include/bits/chrono_io.h (__formatter_chrono::_M_format):
4857 Do not set __is_neg for hh_mm_ss before calling
4858 _M_format_to_ostream. Change __print_sign lambda to only check
4859 __is_neg for durations and hh_mm_ss types.
4860 (__formatter_chrono::_M_format_to_ostream): Only check __is_neg
4862 * testsuite/std/time/hh_mm_ss/io.cc: Check negative values.
4864 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
4867 * include/bits/chrono_io.h (__formatter_chrono::_S_floor_seconds):
4868 Handle duration and hh_mm_ss.
4869 * testsuite/20_util/duration/io.cc: Check locale-specific
4871 * testsuite/std/time/hh_mm_ss/io.cc: Likewise.
4873 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
4875 * include/std/format (__write_padded): Initialize first element
4876 of array to avoid a -Wmaybe-uninitialized warning.
4878 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
4881 * include/bits/chrono_io.h (__formatter_chrono::_M_parse): Fix
4882 allowed modifiers for %z and %Z. Fix -Wparentheses and
4883 -Wnarrowing warnings.
4884 (__formatter_chrono::_M_format): Call new functions for %d, %e,
4886 (__formatter_chrono::_M_c): Use _S_floor_seconds to remove
4887 subsecond precision.
4888 (__formatter_chrono::_M_C_y_Y): Use _M_locale_fmt to handle
4890 (__formatter_chrono::_M_e): Replace with _M_d_e and use
4892 (__formatter_chrono::_M_I): Replace with _M_H_I and use
4894 (__formatter_chrono::_M_m): New function.
4895 (__formatter_chrono::_M_M): New function.
4896 (__formatter_chrono::_M_r): Use _M_locale_fmt.
4897 (__formatter_chrono::_M_S): Likewise.
4898 (__formatter_chrono::_M_u_w): Likewise.
4899 (__formatter_chrono::_M_U_V_W): Likewise.
4900 (__formatter_chrono::_M_X): Use _S_floor_seconds.
4901 (__formatter_chrono::_M_Z): Fix untested branch for wchar_t.
4902 (__formatter_chrono::_S_altnum): Remove function.
4903 (__formatter_chrono::_S_dd_zero_fill): Remove function.
4904 (__formatter_chrono::_S_floor_seconds): New function.
4905 (__formatter_chrono::_M_locale_fmt): New function.
4906 * testsuite/std/time/clock/system/io.cc: Adjust expected output
4907 for locale-specific formats and check modified formats.
4908 * testsuite/std/time/clock/utc/io.cc: Likewise.
4909 * testsuite/std/time/zoned_time/io.cc: New test.
4911 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
4914 * include/bits/chrono_io.h (__formatter_chrono::_M_parse): Only
4915 allow a single modifier.
4916 * testsuite/std/time/format.cc: Check multiple modifiers.
4918 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
4921 * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
4922 Remove dg-require-string-conversions.
4923 * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
4925 * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
4927 * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
4929 * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
4932 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
4935 * include/bits/basic_string.h [!_GLIBCXX_HAVE_STRTOF] (stof):
4936 Define in terms of std::stod.
4938 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
4941 * include/bits/basic_string.h [_GLIBCXX_HAVE_STRTOF] (stof):
4943 [_GLIBCXX_HAVE_STRTOLD] (stold): Define.
4944 * include/c_global/cstdlib [_GLIBCXX_HAVE_STRTOF] (strtof):
4945 Declare in namespace std.
4946 [_GLIBCXX_HAVE_STRTOLD] (strtold): Likewise.
4948 2023-07-13 Jonathan Wakely <jwakely@redhat.com>
4951 * include/bits/basic_string.h (stoi, stol, stoul, stod): Do not
4952 depend on _GLIBCXX_USE_C99_STDLIB.
4953 [__LONG_WIDTH__ == __LONG_LONG_WIDTH__] (stoll, stoull): Define
4954 in terms of stol and stoul respectively.
4955 [__DBL_MANT_DIG__ == __LDBL_MANT_DIG__] (stold): Define in terms
4958 2023-07-12 Jonathan Wakely <jwakely@redhat.com>
4961 * testsuite/27_io/filesystem/path/construct/95048.cc: Check
4962 conversions to wide strings.
4963 * testsuite/experimental/filesystem/path/construct/95048.cc:
4966 2023-07-12 Jonathan Wakely <jwakely@redhat.com>
4968 * config/io/basic_file_stdio.cc: Define LFS macros.
4969 (__basic_file<char>::open): Use fopen unconditionally.
4970 (get_file_offset): Use lseek unconditionally.
4971 (__basic_file<char>::seekoff): Likewise.
4972 (__basic_file<char>::showmanyc): Use fstat unconditionally.
4974 2023-07-12 Jonathan Wakely <jwakely@redhat.com>
4977 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fseeko and ftello
4978 and define _GLIBCXX_USE_FSEEKO_FTELLO.
4979 * config.h.in: Regenerate.
4980 * configure: Regenerate.
4981 * config/io/basic_file_stdio.cc (xwrite) [_GLIBCXX_USE_STDIO_PURE]:
4982 Check for fwrite error correctly.
4983 (__basic_file<char>::xsgetn) [_GLIBCXX_USE_STDIO_PURE]: Check for
4984 fread error correctly.
4985 (get_file_offset): New function.
4986 (__basic_file<char>::seekoff) [_GLIBCXX_USE_STDIO_PURE]: Use
4987 fseeko if available. Use get_file_offset instead of return value
4989 (__basic_file<char>::showmanyc): Use get_file_offset.
4991 2023-07-12 Ken Matsui <kmatsui@gcc.gnu.org>
4993 * include/std/type_traits (__make_unsigned_selector): Use
4994 __is_enum built-in trait.
4995 (__make_signed_selector): Likewise.
4996 (__underlying_type_impl): Likewise.
4998 2023-07-06 Tianqiang Shuai <1101282468@qq.com>
5000 * config/io/basic_file_stdio.cc (xwrite) [USE_STDIO_PURE]: Fix
5003 2023-07-06 Jonathan Wakely <jwakely@redhat.com>
5006 * doc/xml/manual/configure.xml: Describe stdio_pure argument to
5008 * doc/html/manual/configure.html: Regenerate.
5010 2023-07-05 Thomas Rodgers <trodgers@redhat.com>
5012 * testsuite/25_algorithms/pstl/alg_sorting/set.cc: Delete
5014 * testsuite/25_algorithms/pstl/alg_sorting/set_difference.cc:
5016 * testsuite/25_algorithms/pstl/alg_sorting/set_intersection.cc:
5018 * testsuite/25_algorithms/pstl/alg_sorting/set_symmetric_difference.cc:
5020 * testsuite/25_algorithms/pstl/alg_sorting/set_union.cc:
5022 * testsuite/25_algorithms/pstl/alg_sorting/set_util.h:
5025 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
5027 * testsuite/23_containers/forward_list/debug/iterator1_neg.cc:
5028 Skip as UNSUPPORTED for C++98 mode.
5029 * testsuite/23_containers/forward_list/debug/iterator3_neg.cc:
5032 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
5035 * include/bits/stl_uninitialized.h (__uninitialized_default_n):
5036 Do not use std::fill_n during constant evaluation.
5038 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
5040 * include/bits/vector.tcc (_M_default_append): Replace try-block
5043 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
5045 * include/bits/iterator_concepts.h (projected): Add typename.
5047 2023-07-03 Jonathan Wakely <jwakely@redhat.com>
5049 * testsuite/27_io/headers/iosfwd/synopsis.cc: Make wsyncbuf and
5050 wosyncstream depend on _GLIBCXX_USE_CXX11_ABI.
5052 2023-07-03 Jonathan Wakely <jwakely@redhat.com>
5054 * include/pstl/pstl_config.h (_PSTL_PRAGMA_SIMD_SCAN,
5055 _PSTL_PRAGMA_SIMD_INCLUSIVE_SCAN, _PSTL_PRAGMA_SIMD_EXCLUSIVE_SCAN):
5056 Define to OpenMP 5.0 pragmas even for GCC 10.0+.
5057 (_PSTL_UDS_PRESENT): Define to 1 for GCC 10.0+.
5059 2023-07-03 Jonathan Wakely <jwakely@redhat.com>
5061 * include/bits/alloc_traits.h (_Destroy): Qualify call.
5062 * include/bits/stl_construct.h (_Destroy, _Destroy_n): Likewise.
5063 * testsuite/23_containers/vector/cons/destroy-adl.cc: New test.
5065 2023-07-03 Iain Sandoe <iain@sandoe.co.uk>
5067 * testsuite/lib/libstdc++.exp: Remove additional flag handled
5070 2023-06-30 Jonathan Wakely <jwakely@redhat.com>
5073 * acinclude.m4 (GLIBCXX_CHECK_INIT_PRIORITY): New.
5074 * config.h.in: Regenerate.
5075 * configure: Regenerate.
5076 * configure.ac: Use GLIBCXX_CHECK_INIT_PRIORITY.
5077 * include/std/iostream: Use new autoconf macro as well as
5079 * src/c++98/ios_base_init.h: Use new autoconf macro instead of
5082 2023-06-30 Jonathan Wakely <jwakely@redhat.com>
5084 * src/c++11/random.cc (random_device::_M_init): Add maybe_unused
5087 2023-06-30 Jonathan Wakely <jwakely@redhat.com>
5090 * src/c++11/random.cc (random_device::_M_init): Throw
5091 std::system_error when the requested device is a valid token but
5092 not available at runtime.
5094 2023-06-30 Hans-Peter Nilsson <hp@axis.com>
5097 * include/pstl/unseq_backend_simd.h (__simd_or): Re-apply using
5098 __INT32_TYPE__ instead of int32_t.
5100 2023-06-29 Jonathan Wakely <jwakely@redhat.com>
5102 * src/c++20/tzdb.cc (USE_ATOMIC_SHARED_PTR): Define consistently
5103 with USE_ATOMIC_LIST_HEAD.
5104 (list_mutex): Replace global object with function. Use local
5105 static object when std::mutex constructor isn't constexpr.
5107 2023-06-29 Jonathan Wakely <jwakely@redhat.com>
5110 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check that
5111 copy_file_range can be called with loff_t* arguments.
5112 * configure: Regenerate.
5113 * src/filesystem/ops-common.h (copy_file_copy_file_range):
5114 Use loff_t for offsets.
5116 2023-06-29 Tom Tromey <tromey@adacore.com>
5118 * testsuite/lib/gdb-test.exp (gdb-test): Relax type-printer
5121 2023-06-28 Jan Hubicka <jh@suse.cz>
5123 PR middle-end/109849
5124 * include/bits/c++config (std::__terminate): Mark cold.
5125 * include/bits/functexcept.h: Mark everything as cold.
5126 * libsupc++/exception: Mark terminate and unexpected as cold.
5128 2023-06-26 Thomas Rodgers <trodgers@redhat.com>
5130 * include/pstl/algorithm_fwd.h: Synchronize with upstream.
5131 * include/pstl/algorithm_impl.h: Likewise.
5132 * include/pstl/execution_defs.h: Likewise.
5133 * include/pstl/execution_impl.h: Likewise.
5134 * include/pstl/glue_algorithm_impl.h: Likewise.
5135 * include/pstl/glue_execution_defs.h: Likewise.
5136 * include/pstl/glue_memory_impl.h: Likewise.
5137 * include/pstl/glue_numeric_impl.h: Likewise.
5138 * include/pstl/memory_impl.h: Likewise.
5139 * include/pstl/numeric_fwd.h: Likewise.
5140 * include/pstl/numeric_impl.h: Likewise.
5141 * include/pstl/parallel_backend.h: Likewise.
5142 * include/pstl/parallel_backend_serial.h: Likewise.
5143 * include/pstl/parallel_backend_tbb.h: Likewise.
5144 * include/pstl/parallel_impl.h: Likewise.
5145 * include/pstl/pstl_config.h: Likewise.
5146 * include/pstl/unseq_backend_simd.h: Likewise.
5147 * include/pstl/utils.h: Likewise.
5148 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc:
5150 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc:
5152 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc:
5154 * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc:
5156 * testsuite/25_algorithms/pstl/alg_merge/merge.cc: Likewise.
5157 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc:
5159 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc:
5161 * testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc:
5163 * testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc:
5165 * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc:
5167 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc:
5169 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc:
5171 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc:
5173 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc:
5175 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc:
5177 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc:
5179 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc:
5181 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc:
5183 * testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc:
5185 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc:
5187 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc:
5189 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc:
5191 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc:
5193 * testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc:
5195 * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc:
5197 * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc:
5199 * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc:
5201 * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc:
5203 * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc:
5205 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc:
5207 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc:
5209 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc:
5211 * testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc:
5213 * testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc:
5215 * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc:
5217 * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc:
5219 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc:
5221 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc:
5223 * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc:
5225 * testsuite/25_algorithms/pstl/alg_sorting/includes.cc:
5227 * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc:
5229 * testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc:
5231 * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc:
5233 * testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc:
5235 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc:
5237 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc:
5239 * testsuite/25_algorithms/pstl/alg_sorting/set.cc:
5241 * testsuite/25_algorithms/pstl/alg_sorting/sort.cc:
5243 * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc:
5245 * testsuite/26_numerics/pstl/numeric_ops/reduce.cc:
5247 * testsuite/26_numerics/pstl/numeric_ops/scan.cc:
5249 * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc:
5251 * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc:
5253 * testsuite/util/pstl/test_utils.h:
5256 2023-06-26 Jonathan Wakely <jwakely@redhat.com>
5259 * include/std/format (__format::__parse_integer): Fix buffer
5260 overflow for wide chars.
5261 (formatter<const void*, C>::format): Cast to uintptr_t instead
5263 * testsuite/std/format/string.cc: Test too-large widths.
5265 2023-06-26 Jonathan Wakely <jwakely@redhat.com>
5267 * include/bits/iterator_concepts.h (projected): Replace class
5268 template with alias template denoting an ADL-proofed helper.
5269 (incremental_traits<projected<Iter, Proj>>): Remove.
5270 * testsuite/24_iterators/indirect_callable/projected-adl.cc:
5273 2023-06-26 Jonathan Wakely <jwakely@redhat.com>
5275 * include/debug/helper_functions.h (__get_distance)
5276 (__check_singular, __valid_range_aux, __valid_range): Qualify
5277 calls to disable ADL.
5278 (__check_singular_aux(const _Safe_iterator_base*)): Declare
5279 overload that was previously found via ADL.
5281 2023-06-23 Jonathan Wakely <jwakely@redhat.com>
5283 * include/bits/vector.tcc (_M_realloc_insert): Replace try-block
5286 2023-06-20 Jonathan Wakely <jwakely@redhat.com>
5288 * include/std/array (to_array(T(&)[N])): Remove redundant
5290 (to_array(T(&&)[N])): Remove redundant std::move.
5292 2023-06-16 Alexandre Oliva <oliva@adacore.com>
5294 * testsuite/20_util/from_chars/4.cc: Skip long double on
5297 2023-06-16 Joel Brobecker <brobecker@adacore.com>
5299 * configure.ac ["x${with_newlib}" = "xyes"]: Define
5300 HAVE_HYPOTF. Add compile-checks for various long double
5301 math functions as well.
5302 * configure: Regenerate.
5304 2023-06-14 Jonny Grant <jg@jguk.org>
5306 * doc/xml/manual/extensions.xml: Remove demangle exception
5307 description and include.
5308 * doc/html/manual/ext_demangling.html: Regenerate.
5310 2023-06-10 Hans-Peter Nilsson <hp@axis.com>
5312 * testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc (main)
5313 [! SIMULATOR_TEST]: Also exclude running test05.
5314 * testsuite/27_io/basic_istream/ignore/char/94749.cc: Ditto.
5316 2023-06-09 Ken Matsui <kmatsui@cs.washington.edu>
5318 * include/std/type_traits: Use using instead of typedef
5320 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
5323 * src/c++17/floating_from_chars.cc (from_chars) <_Float128>:
5324 Only define if _Float128 and long double have different
5327 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
5330 * include/experimental/internet [IPPROTO_TCP || IPPROTO_UDP]
5331 (basic_endpoint, basic_resolver_entry, resolver_base)
5332 (basic_resolver_results, basic_resolver): Only define if the tcp
5333 or udp protocols will be defined.
5335 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
5337 * acinclude.m4 (libtool_VERSION): Update to 6.0.33.
5338 * configure: Regenerate.
5339 * doc/xml/manual/abi.xml: Add libstdc++.so.6.0.33.
5340 * doc/html/manual/abi.html: Regenerate.
5342 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
5345 * include/std/format (formatter<const void*, charT>::parse):
5346 Only alow 0 and P for C++26 and non-strict modes.
5347 (formatter<const void*, charT>::format): Use toupper for P
5348 type, and insert zero-fill characters for 0 option.
5349 * testsuite/std/format/functions/format.cc: Check pointer
5350 formatting. Only check P2510R3 extensions conditionally.
5351 * testsuite/std/format/parse_ctx.cc: Only check P2510R3
5352 extensions conditionally.
5354 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
5357 * include/std/array (to_array): Initialize arrays of trivial
5358 types using memcpy. For non-trivial types, use lambda
5359 expressions instead of a separate helper function.
5360 (__to_array): Remove.
5361 * testsuite/23_containers/array/creation/110167.cc: New test.
5363 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
5365 * testsuite/23_containers/deque/modifiers/emplace/52799.cc:
5367 * testsuite/23_containers/deque/modifiers/emplace/const_iterator.cc:
5369 * testsuite/23_containers/list/modifiers/emplace/52799.cc:
5371 * testsuite/23_containers/list/modifiers/emplace/const_iterator.cc:
5373 * testsuite/23_containers/vector/modifiers/emplace/52799.cc:
5375 * testsuite/23_containers/vector/modifiers/emplace/const_iterator.cc:
5377 * testsuite/23_containers/deque/modifiers/emplace/1.cc: New
5379 * testsuite/23_containers/list/modifiers/emplace/1.cc: New
5381 * testsuite/23_containers/vector/modifiers/emplace/1.cc: New
5384 2023-06-07 Jakub Jelinek <jakub@redhat.com>
5387 * testsuite/20_util/to_chars/double.cc: Include <cfloat>.
5388 (double_to_chars_test_cases,
5389 double_scientific_precision_to_chars_test_cases_2,
5390 double_fixed_precision_to_chars_test_cases_2): #if out 1e126, 4.91e-6
5391 and 5.547e-6 tests if FLT_EVAL_METHOD is negative or larger than 1.
5392 Add unconditional tests with corresponding double constants
5393 0x1.7a2ecc414a03fp+418, 0x1.4981285e98e79p-18 and
5394 0x1.7440bbff418b9p-18.
5396 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
5398 * testsuite/util/testsuite_abi.cc (check_version): Re-add
5401 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
5403 * testsuite/18_support/nested_exception/rethrow_if_nested-term.cc:
5404 Require effective target exceptions_enabled instead of using
5406 * testsuite/23_containers/vector/capacity/constexpr.cc: Expect
5407 shrink_to_fit() to be a no-op without exceptions enabled.
5408 * testsuite/23_containers/vector/capacity/shrink_to_fit.cc:
5410 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc:
5411 Require effective target exceptions_enabled.
5412 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc:
5414 * testsuite/ext/mt_allocator/check_allocate_max_size.cc:
5416 * testsuite/ext/new_allocator/check_allocate_max_size.cc:
5418 * testsuite/ext/pool_allocator/check_allocate_max_size.cc:
5420 * testsuite/ext/throw_allocator/check_allocate_max_size.cc:
5423 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
5425 * testsuite/20_util/duration/cons/2.cc: Use values that aren't
5426 affected by rounding.
5427 * testsuite/20_util/from_chars/5.cc: Cast arithmetic result to
5428 double before comparing for equality.
5429 * testsuite/20_util/from_chars/6.cc: Likewise.
5430 * testsuite/20_util/variant/86874.cc: Use values that aren't
5431 affected by rounding.
5432 * testsuite/25_algorithms/lower_bound/partitioned.cc: Compare to
5433 original value instead of to floating-point-literal.
5434 * testsuite/26_numerics/random/discrete_distribution/cons/range.cc:
5435 Cast arithmetic result to double before comparing for equality.
5436 * testsuite/26_numerics/random/piecewise_constant_distribution/cons/range.cc:
5438 * testsuite/26_numerics/random/piecewise_linear_distribution/cons/range.cc:
5440 * testsuite/26_numerics/valarray/transcend.cc (eq): Check that
5441 the absolute difference is less than 0.01 instead of comparing
5442 to two decimal places.
5443 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
5444 Cast arithmetic result to double before comparing for equality.
5445 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
5447 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
5449 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/01.cc:
5451 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/09.cc:
5453 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/10.cc:
5455 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
5457 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
5460 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
5462 * configure.ac: Use AS_IF.
5463 * configure: Regenerate.
5465 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
5467 * testsuite/lib/prune.exp (libstdc++-dg-prune): Support
5468 'UNSUPPORTED: [...]: exception handling disabled'.
5470 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
5472 * testsuite/util/testsuite_abi.cc (check_version): Add
5473 CXXABI_1.3.15 symver and make it the latestp. Remove
5474 GLIBCXX_IEEE128_3.4.31 and GLIBCXX_LDBL_3.4.31 from latestp.
5476 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
5477 Jakub Jelinek <jakub@redhat.com>
5480 * include/std/limits: (numeric_limits<__float128>): Define
5481 for __STRICT_ANSI__ as well.
5482 * testsuite/18_support/numeric_limits/128bit.cc: Remove
5483 check for __STRICT_ANSI__.
5485 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
5487 * configure.ac: Use AS_IF.
5488 * configure: Regenerate.
5490 2023-06-06 Matthias Kretz <m.kretz@gsi.de>
5493 * include/experimental/bits/simd_builtin.h (_S_store): Rewrite
5494 to avoid casts to other vector types. Implement store as
5495 succession of power-of-2 sized memcpy to avoid PR90424.
5497 2023-06-06 Matthias Kretz <m.kretz@gsi.de>
5500 * include/experimental/bits/simd_builtin.h (_S_masked_store):
5501 Call into deduced ABI's SimdImpl after conversion.
5502 * include/experimental/bits/simd_x86.h (_S_masked_store_nocvt):
5503 Don't use _mm_maskmoveu_si128. Use the generic fall-back
5504 implementation. Also fix masked stores without SSE2, which
5505 were not doing anything before.
5507 2023-06-06 Matthias Kretz <m.kretz@gsi.de>
5509 * include/experimental/bits/simd.h (__bit_cast): Use
5510 __gnu__::__vector_size__ instead of gnu::vector_size.
5512 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
5515 * include/std/array (__array_traits<T, 0>::operator T*()): Make
5516 conversion operator explicit.
5517 (array::front): Use size_type as subscript operand.
5518 (array::data): Use static_cast to make conversion explicit.
5519 * testsuite/23_containers/array/element_access/110139.cc: New
5522 2023-06-06 Joseph Faulls <Joseph.Faulls@imgtec.com>
5524 * include/bits/locale_classes.tcc: Remove check for
5525 codecvt<char8_t, char, mbstate_t> facet.
5527 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
5529 * src/filesystem/ops-common.h (do_copy_file) [O_CLOEXEC]: Set
5530 close-on-exec flag on file descriptors.
5532 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
5535 * src/filesystem/ops-common.h (do_copy_file): Check for empty
5536 files by trying to read a character.
5537 * testsuite/27_io/filesystem/operations/copy_file_108178.cc:
5540 2023-06-06 Jannik Glückert <jannik.glueckert@gmail.com>
5542 * acinclude.m4 (_GLIBCXX_USE_COPY_FILE_RANGE): Define.
5543 * config.h.in: Regenerate.
5544 * configure: Regenerate.
5545 * src/filesystem/ops-common.h (copy_file_copy_file_range):
5546 Define new function.
5547 (do_copy_file): Use it.
5549 2023-06-06 Jannik Glückert <jannik.glueckert@gmail.com>
5551 * acinclude.m4 (_GLIBCXX_HAVE_LSEEK): Define.
5552 * config.h.in: Regenerate.
5553 * configure: Regenerate.
5554 * src/filesystem/ops-common.h (copy_file_sendfile): Define new
5555 function for sendfile logic. Loop to support large files. Skip
5557 (do_copy_file): Use it.
5559 2023-06-04 Jason Merrill <jason@redhat.com>
5562 * libsupc++/eh_call.cc (__cxa_call_terminate): Take void*.
5563 * config/abi/pre/gnu.ver: Add it.
5565 2023-06-02 François Dumont <fdumont@gcc.gnu.org>
5567 * include/parallel/algobase.h: Include <parallel/search.h>.
5569 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
5571 * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc:
5572 Add const to equality operator.
5574 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
5576 * include/std/expected (expected::and_then, expected::or_else)
5577 (expected::transform_error): Use _M_val and _M_unex instead of
5578 calling value() and error(), as per LWG 3938.
5579 (expected::transform): Likewise. Remove incorrect std::move
5580 calls from lvalue overloads.
5581 (expected<void, E>::and_then, expected<void, E>::or_else)
5582 (expected<void, E>::transform): Use _M_unex instead of calling
5584 * testsuite/20_util/expected/lwg3877.cc: Add checks for and_then
5585 and transform, and for std::expected<void, E>.
5586 * testsuite/20_util/expected/lwg3938.cc: New test.
5588 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
5591 * include/bits/stl_vector.h (_Vector_base::_M_invariant):
5593 (vector::size, vector::capacity): Remove calls to _M_invariant.
5594 * include/bits/vector.tcc (vector::_M_fill_assign): Add
5595 optimization hint to reallocating path.
5596 (vector::_M_assign_aux(FwdIter, FwdIter, forward_iterator_tag)):
5598 * testsuite/23_containers/vector/capacity/invariant.cc: Moved
5600 * testsuite/23_containers/vector/modifiers/assign/no_realloc.cc:
5601 ...here. Check assign(FwdIter, FwdIter) too.
5602 * testsuite/23_containers/vector/types/1.cc: Revert addition
5603 of -Wno-stringop-overread option.
5605 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
5607 * doc/xml/manual/evolution.xml: Document removal of implicit
5608 allocator rebinding extensions in strict mode and for C++20.
5609 * doc/html/*: Regenerate.
5611 2023-06-01 Jason Merrill <jason@redhat.com>
5613 * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Don't check
5614 handlers in the cleanup phase.
5616 2023-06-01 Matthias Kretz <m.kretz@gsi.de>
5619 * include/experimental/bits/simd.h (__vectorized_sizeof): With
5620 __have_neon_a32 only single-precision float works (in addition
5623 2023-06-01 François Dumont <fdumont@gcc.gnu.org>
5625 * include/bits/stl_algo.h
5626 (std::__search, std::search(_FwdIt1, _FwdIt1, _FwdIt2, _FwdIt2, _BinPred)): Move...
5627 * include/bits/stl_algobase.h: ...here.
5628 * include/std/functional: Replace <stl_algo.h> include by <stl_algobase.h>.
5629 * include/parallel/algo.h (std::__parallel::search<_FIt1, _FIt2, _BinaryPred>)
5630 (std::__parallel::__search_switch<_FIt1, _FIt2, _BinaryPred, _ItTag1, _ItTag2>):
5632 * include/parallel/algobase.h: ...here.
5633 * include/experimental/functional: Remove <bits/stl_algo.h> and <parallel/algorithm>
5634 includes. Include <bits/stl_algobase.h>.
5636 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5639 * acinclude.m4 (GLIBCXX_ENABLE_C99): Add separate check for
5640 float_t and double_t and define HAVE_C99_FLT_EVAL_TYPES.
5641 * config.h.in: Regenerate.
5642 * configure: Regenerate.
5643 * include/c_global/cmath (float_t, double_t): Guard using new
5644 _GLIBCXX_HAVE_C99_FLT_EVAL_TYPES macro.
5646 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5648 * acinclude.m4 (GLIBCXX_ENABLE_C99): Add checks for C99 math
5649 functions and define _GLIBCXX_USE_C99_MATH_FUNCS. Move checks
5650 for C99 rounding functions to here.
5651 (GLIBCXX_CHECK_C99_TR1): Remove checks for C99 rounding
5652 functions from here.
5653 * config.h.in: Regenerate.
5654 * configure: Regenerate.
5655 * include/bits/random.h: Use _GLIBCXX_USE_C99_MATH_FUNCS instead
5656 of _GLIBCXX_USE_C99_MATH_TR1.
5657 * include/bits/random.tcc: Likewise.
5658 * include/c_compatibility/math.h: Likewise.
5659 * include/c_global/cmath: Likewise.
5660 * include/ext/random: Likewise.
5661 * include/ext/random.tcc: Likewise.
5662 * include/std/complex: Likewise.
5663 * testsuite/20_util/from_chars/4.cc: Likewise.
5664 * testsuite/20_util/from_chars/8.cc: Likewise.
5665 * testsuite/26_numerics/complex/proj.cc: Likewise.
5666 * testsuite/26_numerics/headers/cmath/60401.cc: Likewise.
5667 * testsuite/26_numerics/headers/cmath/types_std_c++0x.cc:
5669 * testsuite/lib/libstdc++.exp (check_v3_target_cstdint):
5671 * testsuite/util/testsuite_random.h: Likewise.
5673 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5675 * include/bits/stl_vector.h (_Vector_base::_M_invariant()): New
5677 (vector::size(), vector::capacity()): Call _M_invariant().
5678 * testsuite/23_containers/vector/capacity/invariant.cc: New test.
5679 * testsuite/23_containers/vector/types/1.cc: Add suppression for
5680 false positive warning (PR110060).
5682 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5685 * src/c++17/floating_from_chars.cc: Check __FLT128_MANT_DIG__ is
5686 defined before trying to use _Float128.
5688 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5690 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Fix for 32-bit pointers
5691 to check __INT_PTR_WIDTH__ instead of sizeof(void*).
5692 * configure: Regenerate.
5694 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5696 * include/bits/unique_lock.h: Include <bits/error_constants.h>
5697 here for std::errc constants.
5698 * include/std/mutex: Do not include <bits/error_constants.h> and
5701 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5703 * configure.ac: Replace use of -o operator for test.
5704 * configure: Regenerate.
5706 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5708 * include/std/scoped_allocator (scoped_allocator_adaptor): Add
5709 noexcept to all constructors except the default constructor.
5710 (scoped_allocator_adaptor::inner_allocator): Add noexcept.
5711 (scoped_allocator_adaptor::outer_allocator): Likewise.
5712 * testsuite/20_util/scoped_allocator/noexcept.cc: New test.
5714 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5717 * include/std/limits (numeric_limits<__float128>): Define.
5718 * testsuite/18_support/numeric_limits/128bit.cc: New test.
5720 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5722 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Extend logic for avr and
5723 msp430 to all 16-bit targets.
5724 * configure: Regenerate.
5726 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5729 * src/c++17/floating_from_chars.cc (USE_STRTOF128_FOR_FROM_CHARS):
5730 Only define when USE_STRTOD_FOR_FROM_CHARS is also defined.
5731 (USE_STRTOD_FOR_FROM_CHARS): Do not undefine when long double is
5733 (from_chars(const char*, const char*, double&, chars_format)):
5734 Check __LDBL_MANT_DIG__ == __DBL_MANT_DIG__ here.
5735 (from_chars(const char*, const char*, _Float128&, chars_format))
5736 Only use from_chars_strtod when USE_STRTOD_FOR_FROM_CHARS is
5737 defined, otherwise parse a long double and convert to _Float128.
5739 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5742 * include/std/iomanip (operator>>(basic_istream&, _Setfill)):
5743 Add deprecated attribute to non-standard overload.
5744 * doc/xml/manual/evolution.xml: Document deprecation.
5745 * doc/html/*: Regenerate.
5746 * testsuite/27_io/manipulators/standard/char/1.cc: Add
5747 dg-warning for expected deprecated warning.
5748 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
5749 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
5750 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
5752 2023-05-30 Alexandre Oliva <oliva@adacore.com>
5754 * testsuite/20_util/from_chars/4.cc: Skip long double test06
5756 * testsuite/20_util/to_chars/long_double.cc: Xfail run on
5759 2023-05-30 Matthias Kretz <m.kretz@gsi.de>
5762 * include/experimental/bits/simd.h (to_native): Use int NTTP
5763 as specified in PTS2.
5764 (to_compatible): Likewise. Add missing tag to call mask
5766 * testsuite/experimental/simd/pr109822_cast_functions.cc: New
5769 2023-05-30 Matthias Kretz <m.kretz@gsi.de>
5771 * testsuite/experimental/simd/tests/integer_operators.cc:
5772 Compute expected value differently to avoid getting turned into
5775 2023-05-30 Matthias Kretz <m.kretz@gsi.de>
5777 * testsuite/experimental/simd/tests/operator_cvt.cc: Make long
5778 double <-> (u)long conversion tests conditional on sizeof(long
5779 double) and sizeof(long).
5781 2023-05-26 Matthias Kretz <m.kretz@gsi.de>
5783 * include/experimental/bits/simd_ppc.h (_S_bit_shift_left):
5784 Negative __y is UB, so prefer signed compare.
5786 2023-05-25 Jonathan Wakely <jwakely@redhat.com>
5788 * testsuite/util/testsuite_allocator.h (PointerBase): Add
5789 relational operators.
5791 2023-05-25 Alexandre Oliva <oliva@adacore.com>
5793 * testsuite/20_util/to_chars/long_double.cc: Expect execution
5794 fail on x86-vxworks.
5796 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
5799 * include/experimental/bits/simd.h (__intrinsic_type): If
5800 __ALTIVEC__ is defined, map gnu::vector_size types to their
5801 corresponding __vector T types without losing unsignedness of
5802 integer types. Also prefer long long over long.
5803 * include/experimental/bits/simd_ppc.h (_S_popcount): Cast mask
5804 object to the expected unsigned vector type.
5806 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
5809 * include/experimental/bits/simd.h (__intrinsic_type):
5810 Specialize __intrinsic_type<double, 8> and
5811 __intrinsic_type<double, 16> in any case, but provide the member
5812 type only with __aarch64__.
5814 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
5817 * include/experimental/bits/simd_neon.h (_S_reduce): Add
5818 constexpr and make NEON implementation conditional on
5819 not __builtin_is_constant_evaluated.
5821 2023-05-23 Matthias Kretz <m.kretz@gsi.de>
5824 * include/experimental/bits/simd.h (_SimdWrapper::_M_set):
5825 Avoid vector builtin subscripting in constant expressions.
5826 (resizing_simd_cast): Avoid memcpy if constant_evaluated.
5827 (const_where_expression, where_expression, where)
5828 (__extract_part, simd_mask, _SimdIntOperators, simd): Add either
5829 _GLIBCXX_SIMD_CONSTEXPR (on public APIs), or constexpr (on
5831 * include/experimental/bits/simd_builtin.h (__vector_permute)
5832 (__vector_shuffle, __extract_part, _GnuTraits::_SimdCastType1)
5833 (_GnuTraits::_SimdCastType2, _SimdImplBuiltin)
5834 (_MaskImplBuiltin::_S_store): Add constexpr.
5835 (_CommonImplBuiltin::_S_store_bool_array)
5836 (_SimdImplBuiltin::_S_load, _SimdImplBuiltin::_S_store)
5837 (_SimdImplBuiltin::_S_reduce, _MaskImplBuiltin::_S_load): Add
5838 constant_evaluated case.
5839 * include/experimental/bits/simd_fixed_size.h
5840 (_S_masked_load): Reword comment.
5841 (__tuple_element_meta, __make_meta, _SimdTuple::_M_apply_r)
5842 (_SimdTuple::_M_subscript_read, _SimdTuple::_M_subscript_write)
5843 (__make_simd_tuple, __optimize_simd_tuple, __extract_part)
5844 (__autocvt_to_simd, _Fixed::__traits::_SimdBase)
5845 (_Fixed::__traits::_SimdCastType, _SimdImplFixedSize): Add
5847 (_SimdTuple::operator[], _M_set): Add constexpr and add
5848 constant_evaluated case.
5849 (_MaskImplFixedSize::_S_load): Add constant_evaluated case.
5850 * include/experimental/bits/simd_scalar.h: Add constexpr.
5851 * include/experimental/bits/simd_x86.h (_CommonImplX86): Add
5852 constexpr and add constant_evaluated case.
5853 (_SimdImplX86::_S_equal_to, _S_not_equal_to, _S_less)
5854 (_S_less_equal): Value-initialize to satisfy constexpr
5856 (_MaskImplX86::_S_load): Add constant_evaluated case.
5857 (_MaskImplX86::_S_store): Add constexpr and constant_evaluated
5858 case. Value-initialize local variables.
5859 (_MaskImplX86::_S_logical_and, _S_logical_or, _S_bit_not)
5860 (_S_bit_and, _S_bit_or, _S_bit_xor): Add constant_evaluated
5862 * testsuite/experimental/simd/pr109261_constexpr_simd.cc: New
5865 2023-05-22 Matthias Kretz <m.kretz@gsi.de>
5867 * include/experimental/bits/simd_builtin.h (_S_fpclassify): Move
5868 __infn into #ifdef'ed block.
5869 * testsuite/experimental/simd/tests/fpclassify.cc: Declare
5870 constants only when used.
5871 * testsuite/experimental/simd/tests/frexp.cc: Likewise.
5872 * testsuite/experimental/simd/tests/logarithm.cc: Likewise.
5873 * testsuite/experimental/simd/tests/trunc_ceil_floor.cc:
5875 * testsuite/experimental/simd/tests/ldexp_scalbn_scalbln_modf.cc:
5876 Move totest and expect1 into #ifdef'ed block.
5878 2023-05-19 Gerald Pfeifer <gerald@pfeifer.com>
5880 * doc/xml/manual/strings.xml: Move lafstern.org reference to https.
5881 * doc/html/manual/strings.html: Regenerate.
5883 2023-05-17 Jakub Jelinek <jakub@redhat.com>
5886 * testsuite/26_numerics/headers/cmath/constexpr_std_c++23.cc: New test.
5888 2023-05-17 Jakub Jelinek <jakub@redhat.com>
5891 * include/c_global/cmath (atan2, fmod, pow): Move
5892 __gnu_cxx::__promote_2 using templates after _Float{16,32,64,128} and
5893 __gnu_cxx::__bfloat16_t overloads.
5894 (copysign, fdim, fmax, fmin, hypot, nextafter, remainder, remquo):
5896 (fma): Move __gnu_cxx::__promote_3 using template after
5897 _Float{16,32,64,128} and __gnu_cxx::__bfloat16_t overloads.
5899 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
5901 * testsuite/18_support/headers/limits/synopsis.cc: Uncomment
5902 checks for float_round_style and float_denorm_style.
5904 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
5906 * include/bits/c++config: Add system_header pragma.
5908 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
5910 * include/std/expected (expected::and_then, expected::or_else)
5911 (expected::transform, expected::transform_error): Fix exception
5912 specifications as per LWG 3877.
5913 (expected<void, E>::and_then, expected<void, E>::transform):
5915 * testsuite/20_util/expected/lwg3877.cc: New test.
5917 2023-05-17 Ken Matsui <kmatsui@cs.washington.edu>
5919 * include/std/type_traits: Use __bool_constant instead of
5922 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
5924 * configure: Regenerate.
5926 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
5929 * acinclude.m4 (GLIBCXX_CHECK_ALIGNAS_CACHELINE): Define.
5930 * config.h.in: Regenerate.
5931 * configure: Regenerate.
5932 * configure.ac: Use GLIBCXX_CHECK_ALIGNAS_CACHELINE.
5933 * src/c++11/shared_ptr.cc (__gnu_internal::get_mutex): Do not
5934 align lock table if not supported. use __GCC_DESTRUCTIVE_SIZE
5935 instead of hardcoded 64.
5937 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
5939 * acinclude.m4 (GLIBCXX_USE_C99): Check for isblank in C++11
5940 mode and define _GLIBCXX_USE_C99_CTYPE. Check for <fenv.h>
5941 functions in C++11 mode and define _GLIBCXX_USE_C99_FENV.
5942 * config.h.in: Regenerate.
5943 * configure: Regenerate.
5944 * include/c_compatibility/fenv.h: Check _GLIBCXX_USE_C99_FENV
5945 instead of _GLIBCXX_USE_C99_FENV_TR1.
5946 * include/c_global/cfenv: Likewise.
5947 * include/c_global/cctype: Check _GLIBCXX_USE_C99_CTYPE instead
5948 of _GLIBCXX_USE_C99_CTYPE_TR1.
5950 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
5952 * acinclude.m4 (GLIBCXX_USE_C99): Check for <stdint.h> types in
5953 C++11 mode and define _GLIBCXX_USE_C99_STDINT. Check for
5954 <inttypes.h> features in C++11 mode and define
5955 _GLIBCXX_USE_C99_INTTYPES and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T.
5956 * config.h.in: Regenerate.
5957 * configure: Regenerate.
5958 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macros.
5959 * include/bits/chrono.h: Check _GLIBCXX_USE_C99_STDINT instead
5960 of _GLIBCXX_USE_C99_STDINT_TR1.
5961 * include/c_compatibility/inttypes.h: Check
5962 _GLIBCXX_USE_C99_INTTYPES and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T
5963 instead of _GLIBCXX_USE_C99_INTTYPES_TR1 and
5964 _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
5965 * include/c_compatibility/stdatomic.h: Check
5966 _GLIBCXX_USE_C99_STDINT instead of _GLIBCXX_USE_C99_STDINT_TR1.
5967 * include/c_compatibility/stdint.h: Likewise.
5968 * include/c_global/cinttypes: Check _GLIBCXX_USE_C99_INTTYPES
5969 and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T instead of
5970 _GLIBCXX_USE_C99_INTTYPES_TR1 and
5971 _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
5972 * include/c_global/cstdint: Check _GLIBCXX_USE_C99_STDINT
5973 instead of _GLIBCXX_USE_C99_STDINT_TR1.
5974 * include/std/atomic: Likewise.
5975 * src/c++11/cow-stdexcept.cc: Likewise.
5976 * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc:
5978 * testsuite/lib/libstdc++.exp (check_v3_target_cstdint):
5981 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
5983 * acinclude.m4 (GLIBCXX_USE_C99): Check for complex inverse trig
5984 functions in C++11 mode and define _GLIBCXX_USE_C99_COMPLEX_ARC.
5985 * config.h.in: Regenerate.
5986 * configure: Regenerate.
5987 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macro.
5988 * include/std/complex: Check _GLIBCXX_USE_C99_COMPLEX_ARC
5989 instead of _GLIBCXX_USE_C99_COMPLEX_TR1.
5991 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
5993 * testsuite/ext/debug_allocator/check_deallocate_null.cc: Add
5994 assertion to ensure expected exception is throw.
5996 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
5998 * testsuite/libstdc++-prettyprinters/chrono.cc: Only test
5999 printer for chrono::zoned_time for cx11 ABI and tzdb effective
6002 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
6004 * acinclude.m4 (GLIBCXX_CHECK_PTHREAD_MUTEX_CLOCKLOCK): Define
6005 _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK in terms of _GLIBCXX_TSAN.
6006 * configure: Regenerate.
6008 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
6010 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Use a non-null pointer
6011 to check for nan, nanf, and nanl.
6012 * configure: Regenerate.
6014 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
6016 * include/bits/char_traits.h (char_traits<char16_t>): Do not
6017 depend on _GLIBCXX_USE_C99_STDINT_TR1.
6018 (char_traits<char32_t>): Likewise.
6019 * include/experimental/source_location: Likewise.
6021 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
6023 * include/std/atomic (atomic_int_least8_t, atomic_uint_least8_t)
6024 (atomic_int_least16_t, atomic_uint_least16_t)
6025 (atomic_int_least32_t, atomic_uint_least32_t)
6026 (atomic_int_least64_t, atomic_uint_least64_t)
6027 (atomic_int_fast16_t, atomic_uint_fast16_t)
6028 (atomic_int_fast32_t, atomic_uint_fast32_t)
6029 (atomic_int_fast64_t, atomic_uint_fast64_t)
6030 (atomic_intmax_t, atomic_uintmax_t): Define unconditionally.
6031 * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc: Adjust.
6033 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
6035 * include/bits/algorithmfwd.h (shuffle): Do not depend on
6036 _GLIBCXX_USE_C99_STDINT_TR1.
6037 * include/bits/ranges_algo.h (shuffle): Likewise.
6038 * include/bits/stl_algo.h (shuffle): Likewise.
6039 * include/ext/random: Likewise.
6040 * include/ext/throw_allocator.h (random_condition): Likewise.
6041 * include/std/random: Likewise.
6042 * src/c++11/cow-string-inst.cc: Likewise.
6043 * src/c++11/random.cc: Likewise.
6045 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
6047 * testsuite/experimental/feat-cxx14.cc: Remove dependency on
6048 _GLIBCXX_USE_C99_STDINT_TR1.
6050 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
6052 * testsuite/22_locale/locale/cons/unicode.cc: Remove dependency
6053 on _GLIBCXX_USE_C99_STDINT_TR1.
6055 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
6057 * testsuite/21_strings/basic_string_view/typedefs.cc: Remove
6058 dependency on _GLIBCXX_USE_C99_STDINT_TR1.
6059 * testsuite/experimental/string_view/typedefs.cc: Likewise.
6061 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
6063 * src/c++17/floating_from_chars.cc [USE_STRTOD_FOR_FROM_CHARS]
6064 (auto_locale, auto_ferounding): New class types.
6065 (from_chars_impl): Use auto_locale and auto_ferounding.
6067 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
6070 * include/std/chrono (hh_mm_ss::__fits): Remove variable
6072 (hh_mm_ss::__subseconds): Remove __fits from constraints.
6073 * testsuite/std/time/hh_mm_ss/109772.cc: New test.
6074 * testsuite/std/time/hh_mm_ss/1.cc: Adjust expected size for
6075 hh_mm_ss<duration<int, std::pico>>.
6077 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
6079 * config/abi/pre/gnu.ver: Export basic_string::_S_allocate.
6080 * include/bits/basic_ios.h: Add static assertion checking
6081 traits_type::value_type.
6082 * include/bits/basic_string.h: Likewise. Do not rebind
6083 allocator, and add static assertion checking its value_type.
6084 (basic_string::_Alloc_traits_impl): Remove class template.
6085 (basic_string::_S_allocate): New static member function.
6086 (basic_string::assign): Use _S_allocate.
6087 * include/bits/basic_string.tcc (basic_string::_M_create)
6088 (basic_string::reserve, basic_string::_M_replace): Likewise.
6089 * testsuite/21_strings/basic_string/requirements/explicit_instantiation/debug.cc:
6090 Disable for C++20 and later.
6091 * testsuite/21_strings/basic_string/requirements/explicit_instantiation/int.cc:
6094 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
6097 * include/bits/std_abs.h (abs(__float128)): Handle negative NaN
6098 and negative zero correctly.
6099 * testsuite/26_numerics/headers/cmath/109758.cc: New test.
6101 2023-05-10 François Dumont <fdumont@gcc.gnu.org>
6103 * include/bits/hashtable_policy.h
6104 (_NodeBuilder<>::_S_build): Use __node_ptr.
6105 (_ReuseOrAllocNode<>): Use __node_ptr in place of __node_type*.
6106 (_AllocNode<>): Likewise.
6107 (_Equality<>::_M_equal): Remove const_iterator usages. Only preserved
6108 to call std::is_permutation in the non-unique key implementation.
6109 * include/bits/hashtable.h (_Hashtable<>::_M_update_begin()): Capture
6111 (_Hashtable<>::_M_bucket_begin(size_type)): Implement implicitly inline.
6112 (_Hashtable<>::_M_insert_bucket_begin): Likewise.
6113 (_Hashtable<>::_M_remove_bucket_begin): Likewise.
6114 (_Hashtable<>::_M_compute_hash_code): Use __node_ptr rather than
6116 (_Hashtable<>::find): Likewise.
6117 (_Hashtable<>::_M_emplace): Likewise.
6118 (_Hashtable<>::_M_insert_unique): Likewise.
6120 2023-05-09 Jonathan Wakely <jwakely@redhat.com>
6122 * python/libstdcxx/v6/printers.py (StdChronoDurationPrinter):
6123 Print floating-point durations correctly.
6124 (StdChronoTimePointPrinter): Support printing only the value,
6125 not the type name. Uncomment handling for known clocks.
6126 (StdChronoZonedTimePrinter): Remove type names from output.
6127 (StdChronoCalendarPrinter): Fix hh_mm_ss member access.
6128 (StdChronoTimeZonePrinter): Add equals sign to output.
6129 * testsuite/libstdc++-prettyprinters/chrono.cc: New test.
6131 2023-05-05 Alexandre Oliva <oliva@adacore.com>
6133 * testsuite/20_util/from_chars/4.cc: Skip long double test06
6135 * testsuite/20_util/to_chars/long_double.cc: Xfail run on
6138 2023-05-04 Jonathan Wakely <jwakely@redhat.com>
6140 * doc/xml/manual/abi.xml (abi.versioning.history): Document
6141 libstdc++.so.6.0.32 and GLIBCXX_3.4.32 version.
6142 * doc/html/manual/abi.html: Regenerate.
6144 2023-05-04 Florian Weimer <fweimer@redhat.com>
6146 * doc/xml/manual/abi.xml (abi.versioning.history): Add
6147 GCC_7.0.0, GCC_9.0.0, GCC_11.0, GCC_12.0.0, GCC_13.0.0 for
6150 2023-05-03 Jakub Jelinek <jakub@redhat.com>
6152 * src/c++17/floating_from_chars.cc
6153 (_ZSt10from_charsPKcS0_RDF128_St12chars_format): New alias to
6154 _ZSt10from_charsPKcS0_Ru9__ieee128St12chars_format.
6155 * src/c++17/floating_to_chars.cc (_ZSt8to_charsPcS_DF128_): New alias to
6156 _ZSt8to_charsPcS_u9__ieee128.
6157 (_ZSt8to_charsPcS_DF128_St12chars_format): New alias to
6158 _ZSt8to_charsPcS_u9__ieee128St12chars_format.
6159 (_ZSt8to_charsPcS_DF128_St12chars_formati): New alias to
6160 _ZSt8to_charsPcS_u9__ieee128St12chars_formati.
6161 * config/abi/post/powerpc64le-linux-gnu/baseline_symbols.txt: Updated.
6163 2023-05-03 Jakub Jelinek <jakub@redhat.com>
6165 * configure.host (abi_baseline_pair): Use powerpc64le-linux-gnu
6166 rather than powerpc64-linux-gnu for powerpc64le*-linux*.
6167 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Remove
6168 _ZTI*DF128_, _ZTI*DF64x symbols and symbols in
6169 GLIBCXX_IEEE128_3.4.{29,30,31} and CXXABI_IEEE128_1.3.13 symbol
6171 * config/abi/post/powerpc64le-linux-gnu/baseline_symbols.txt: New
6174 2023-05-03 Kefu Chai <kefu.chai@scylladb.com>
6175 Jonathan Wakely <jwakely@redhat.com>
6178 * include/bits/basic_string.h (basic_string(Iter, Iter, Alloc)):
6179 Initialize _M_string_length.
6181 2023-05-02 Jakub Jelinek <jakub@redhat.com>
6183 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
6184 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
6185 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
6186 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
6187 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
6188 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
6189 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
6190 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
6192 2023-05-02 Jakub Jelinek <jakub@redhat.com>
6195 * src/c++98/ios_init.cc: Add #pragma GCC diagnostic ignored for
6198 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
6200 * include/bits/random.h (gamma_distribution): Add to the right
6202 (discrete_distribution, piecewise_constant_distribution)
6203 (piecewise_linear_distribution): Create a new doxygen group and
6204 fix the incomplete doxygen comments.
6205 * include/bits/uniform_int_dist.h (uniform_int_distribution):
6206 Add to doxygen group.
6208 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
6210 * include/bits/uses_allocator.h: Add missing @file comment.
6211 * include/bits/regex.tcc: Remove stray doxygen comments.
6212 * include/experimental/memory_resource: Likewise.
6213 * include/std/bit: Tweak doxygen @cond comments.
6214 * include/std/expected: Likewise.
6215 * include/std/numbers: Likewise.
6217 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
6219 * doc/doxygen/user.cfg.in (STRIP_FROM_PATH): Remove prefixes
6222 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
6224 * include/bits/move.h: Simplify opening/closing namespace std.
6226 2023-04-28 Jakub Jelinek <jakub@redhat.com>
6229 * config/abi/pre/gnu.ver (GLIBCXX_3.4.32): Export
6230 _ZSt21ios_base_library_initv.
6231 * testsuite/util/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.32
6232 symver and make it the latestp.
6233 * src/c++98/ios_init.cc (ios_base_library_init): New alias.
6234 * acinclude.m4 (libtool_VERSION): Change to 6:32:0.
6235 * include/std/iostream: If init_priority attribute is supported
6236 and _GLIBCXX_SYMVER_GNU, force undefined _ZSt21ios_base_library_initv
6237 symbol into the object.
6238 * configure: Regenerated.
6240 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
6242 * include/bits/mofunc_impl.h: Fix typo in doxygen comment.
6243 * include/std/format: Likewise.
6245 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
6247 * doc/doxygen/user.cfg.in (FORMULA_TRANSPARENT, DOT_FONTNAME)
6248 (DOT_FONTSIZE, DOT_TRANSPARENT): Remove obsolete options.
6250 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
6252 * doc/doxygen/user.cfg.in (SOURCE_BROWSER): Only set to YES for
6254 * include/bits/gslice_array.h (_DEFINE_VALARRAY_OPERATOR): Omit
6256 * include/bits/indirect_array.h (_DEFINE_VALARRAY_OPERATOR):
6258 * include/bits/mask_array.h (_DEFINE_VALARRAY_OPERATOR):
6260 * include/bits/slice_array.h (_DEFINE_VALARRAY_OPERATOR):
6262 * include/std/valarray (_DEFINE_VALARRAY_UNARY_OPERATOR)
6263 (_DEFINE_VALARRAY_AUGMENTED_ASSIGNMENT)
6264 (_DEFINE_VALARRAY_EXPR_AUGMENTED_ASSIGNMENT)
6265 (_DEFINE_BINARY_OPERATOR): Likewise.
6267 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
6269 * include/bits/memory_resource.h: Improve doxygen comments.
6270 * include/std/memory_resource: Likewise.
6272 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
6275 * include/bits/basic_string.h: Improve doxygen comments.
6276 * include/bits/cow_string.h: Likewise.
6277 * include/bits/forward_list.h: Likewise.
6278 * include/bits/fs_dir.h: Likewise.
6279 * include/bits/fs_path.h: Likewise.
6280 * include/bits/quoted_string.h: Likewise.
6281 * include/bits/stl_bvector.h: Likewise.
6282 * include/bits/stl_map.h: Likewise.
6283 * include/bits/stl_multimap.h: Likewise.
6284 * include/bits/stl_multiset.h: Likewise.
6285 * include/bits/stl_set.h: Likewise.
6286 * include/bits/stl_vector.h: Likewise.
6287 * include/bits/unordered_map.h: Likewise.
6288 * include/bits/unordered_set.h: Likewise.
6289 * include/std/filesystem: Likewise.
6290 * include/std/iomanip: Likewise.
6292 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
6295 * src/c++11/random.cc (__throw_syserr): New function.
6296 (random_device::_M_init, random_device::_M_init_pretr1): Use new
6297 function for bad tokens.
6298 (random_device::_M_getval): Use new function for read errors.
6299 * testsuite/util/testsuite_random.h (random_device_available):
6300 Change catch handler to use std::system_error.
6302 2023-04-24 Patrick Palka <ppalka@redhat.com>
6304 * include/bits/max_size_type.h (__max_diff_type::operator>>=):
6305 Fix propagation of sign bit.
6306 * testsuite/std/ranges/iota/max_size_type.cc: Avoid using the
6307 non-standard 'signed typedef-name'. Add some compile-time tests
6308 for right-shifting a negative __max_diff_type value by more than
6311 2023-04-19 Patrick Palka <ppalka@redhat.com>
6312 Jonathan Wakely <jwakely@redhat.com>
6315 * include/bits/utility.h (_Nth_type): Conditionally define in
6316 terms of __type_pack_element if available.
6317 * testsuite/20_util/tuple/element_access/get_neg.cc: Prune
6318 additional errors from the new built-in.
6320 2023-04-19 Jonathan Wakely <jwakely@redhat.com>
6323 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
6326 * src/Makefile.am: Move globals_io.cc to here.
6327 * src/Makefile.in: Regenerate.
6328 * src/c++98/Makefile.am: Remove globals_io.cc from here.
6329 * src/c++98/Makefile.in: Regenerate.
6330 * src/c++98/globals_io.cc [_GLIBCXX_SYMVER_GNU] (cin): Adjust
6331 symbol name and then export with GLIBCXX_3.4.31 symver.
6332 (cout, cerr, clog, wcin, wcout, wcerr, wclog): Likewise.
6333 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt:
6335 * config/abi/post/i486-linux-gnu/baseline_symbols.txt:
6337 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt:
6339 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
6341 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
6343 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
6345 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt:
6347 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt:
6349 * config/abi/pre/gnu.ver: Add iostream objects to new symver.
6351 2023-04-19 Jonathan Wakely <jwakely@redhat.com>
6354 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
6357 * config/abi/pre/gnu.ver: Fix preprocessor condition.
6359 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
6361 * doc/xml/manual/extensions.xml: Fix example to declare and
6362 qualify std::free, and use NULL instead of 0.
6363 * doc/html/manual/ext_demangling.html: Regenerate.
6364 * libsupc++/cxxabi.h: Adjust doxygen comments.
6366 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
6369 * config/abi/pre/gnu.ver: Fix preprocessor condition.
6371 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
6374 * src/Makefile.am: Move globals_io.cc to here.
6375 * src/Makefile.in: Regenerate.
6376 * src/c++98/Makefile.am: Remove globals_io.cc from here.
6377 * src/c++98/Makefile.in: Regenerate.
6378 * src/c++98/globals_io.cc [_GLIBCXX_SYMVER_GNU] (cin): Adjust
6379 symbol name and then export with GLIBCXX_3.4.31 symver.
6380 (cout, cerr, clog, wcin, wcout, wcerr, wclog): Likewise.
6381 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt:
6383 * config/abi/post/i486-linux-gnu/baseline_symbols.txt:
6385 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt:
6387 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
6389 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
6391 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
6393 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt:
6395 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt:
6397 * config/abi/pre/gnu.ver: Add iostream objects to new symver.
6399 2023-04-18 Patrick Palka <ppalka@redhat.com>
6402 * include/bits/ranges_cmp.h (__cpp_lib_ranges): Bump value
6404 * include/std/ranges (range_adaptor_closure): Define for C++23.
6405 * include/std/version (__cpp_lib_ranges): Bump value for
6407 * testsuite/std/ranges/version_c++23.cc: Bump expected value
6408 of __cpp_lib_ranges.
6409 * testsuite/std/ranges/range_adaptor_closure.cc: New test.
6411 2023-04-18 Patrick Palka <ppalka@redhat.com>
6413 * include/bits/ranges_algo.h (__cpp_lib_ranges_contains):
6415 (__cpp_lib_ranges_iota): Likewise.
6416 (__cpp_lib_ranges_find_last): Likewise.
6417 (__cpp_lib_fold): Rename to ...
6418 (__cpp_lib_ranges_fold): ... this.
6419 * include/std/version: As above.
6420 * testsuite/25_algorithms/fold_left/1.cc: Adjust after
6421 renaming __cpp_lib_fold.
6422 * testsuite/std/ranges/version_c++23.cc: Verify values
6423 of the above feature-test macros.
6425 2023-04-18 Patrick Palka <ppalka@redhat.com>
6428 * include/std/ranges (views::_AsConst::operator()): Add
6429 missing const to constant_range test.
6430 * testsuite/std/ranges/adaptors/as_const/1.cc (test02):
6431 Improve formatting. Adjust expected type of v2.
6434 2023-04-14 Patrick Palka <ppalka@redhat.com>
6436 * include/bits/ranges_base.h (const_iterator_t): Define for C++23.
6437 (const_sentinel_t): Likewise.
6438 (range_const_reference_t): Likewise.
6439 (constant_range): Likewise.
6440 (__cust_access::__possibly_const_range): Likewise, replacing ...
6441 (__cust_access::__as_const): ... this.
6442 (__cust_access::_CBegin::operator()): Redefine for C++23 as per P2278R4.
6443 (__cust_access::_CEnd::operator()): Likewise.
6444 (__cust_access::_CRBegin::operator()): Likewise.
6445 (__cust_access::_CREnd::operator()): Likewise.
6446 (__cust_access::_CData::operator()): Likewise.
6447 * include/bits/ranges_util.h (ranges::__detail::__different_from):
6448 Make it an alias of std::__detail::__different_from.
6449 (view_interface::cbegin): Define for C++23.
6450 (view_interface::cend): Likewise.
6451 * include/bits/stl_iterator.h (__detail::__different_from): Define.
6452 (iter_const_reference_t): Define for C++23.
6453 (__detail::__constant_iterator): Likewise.
6454 (__detail::__is_const_iterator): Likewise.
6455 (__detail::__not_a_const_iterator): Likewise.
6456 (__detail::__iter_const_rvalue_reference_t): Likewise.
6457 (__detail::__basic_const_iter_cat):: Likewise.
6458 (const_iterator): Likewise.
6459 (__detail::__const_sentinel): Likewise.
6460 (const_sentinel): Likewise.
6461 (basic_const_iterator): Likewise.
6462 (common_type<basic_const_iterator<_Tp>, _Up>): Likewise.
6463 (common_type<_Up, basic_const_iterator<_Tp>>): Likewise.
6464 (common_type<basic_const_iterator<_Tp>, basic_const_iterator<Up>>):
6466 (make_const_iterator): Define for C++23.
6467 (make_const_sentinel): Likewise.
6468 * include/std/ranges (__cpp_lib_ranges_as_const): Likewise.
6469 (as_const_view): Likewise.
6470 (enable_borrowed_range<as_const_view>): Likewise.
6471 (views::__detail::__is_ref_view): Likewise.
6472 (views::__detail::__can_is_const_view): Likewise.
6473 (views::_AsConst, views::as_const): Likewise.
6474 * include/std/span (span::const_iterator): Likewise.
6475 (span::const_reverse_iterator): Likewise.
6476 (span::cbegin): Likewise.
6477 (span::cend): Likewise.
6478 (span::crbegin): Likewise.
6479 (span::crend): Likewise.
6480 * include/std/version (__cpp_lib_ranges_as_const): Likewise.
6481 * testsuite/std/ranges/adaptors/join.cc (test06): Adjust to
6482 behave independently of C++20 vs C++23.
6483 * testsuite/std/ranges/version_c++23.cc: Verify value of
6484 __cpp_lib_ranges_as_const macro.
6485 * testsuite/24_iterators/const_iterator/1.cc: New test.
6486 * testsuite/std/ranges/adaptors/as_const/1.cc: New test.
6488 2023-04-14 Patrick Palka <ppalka@redhat.com>
6490 * include/bits/ranges_base.h (__cust_access::__as_const)
6491 (__cust_access::_CBegin, __cust::cbegin)
6492 (__cust_access::_CEnd, __cust::cend)
6493 (__cust_access::_CRBegin, __cust::crbegin)
6494 (__cust_access::_CREnd, __cust::crend)
6495 (__cust_access::_CData, __cust::cdata): Move down definitions to
6496 shortly after the definition of input_range.
6498 2023-04-14 Patrick Palka <ppalka@redhat.com>
6500 * include/bits/ranges_algo.h: Include <optional> for C++23.
6501 (__cpp_lib_fold): Define for C++23.
6502 (in_value_result): Likewise.
6503 (__detail::__flipped): Likewise.
6504 (__detail::__indirectly_binary_left_foldable_impl): Likewise.
6505 (__detail::__indirectly_binary_left_foldable): Likewise.
6506 (___detail:__indirectly_binary_right_foldable): Likewise.
6507 (fold_left_with_iter_result): Likewise.
6508 (__fold_left_with_iter_fn, fold_left_with_iter): Likewise.
6509 (__fold_left_fn, fold_left): Likewise.
6510 (__fold_left_first_with_iter_fn, fold_left_first_with_iter):
6512 (__fold_left_first_fn, fold_left_first): Likewise.
6513 (__fold_right_fn, fold_right): Likewise.
6514 (__fold_right_last_fn, fold_right_last): Likewise.
6515 * include/std/version (__cpp_lib_fold): Likewise.
6516 * testsuite/25_algorithms/fold_left/1.cc: New test.
6517 * testsuite/25_algorithms/fold_right/1.cc: New test.
6519 2023-04-14 Jonathan Wakely <jwakely@redhat.com>
6521 * include/std/format (formatter): Add comment to deleted default
6522 constructor of primary template.
6523 (_Checking_scanner): Add static_assert.
6525 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
6527 * doc/xml/manual/using.xml: Document libstdc++exp.a library.
6528 * doc/html/*: Regenerate.
6530 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
6532 * testsuite/17_intro/names.cc [_AIX]: Do not define policy.
6533 * testsuite/19_diagnostics/error_code/cons/lwg3629.cc: Rename
6534 namespace to avoid clashing with libc struct.
6535 * testsuite/19_diagnostics/error_condition/cons/lwg3629.cc:
6537 * testsuite/23_containers/unordered_map/96088.cc: Skip on AIX.
6538 * testsuite/23_containers/unordered_multimap/96088.cc: Likewise.
6539 * testsuite/23_containers/unordered_multiset/96088.cc: Likewise.
6540 * testsuite/23_containers/unordered_set/96088.cc: Likewise.
6541 * testsuite/experimental/synchronized_value.cc: Require gthreads
6542 and add missing option for pthreads targets.
6544 2023-04-12 Patrick Palka <ppalka@redhat.com>
6546 * include/std/ranges (__cpp_lib_ranges_enumerate): Define
6548 (__detail::__range_with_movable_reference): Likewise.
6549 (enumerate_view): Likewise.
6550 (enumerate_view::_Iterator): Likewise.
6551 (enumerate_view::_Sentinel): Likewise.
6552 (views::__detail::__can_enumerate_view): Likewise.
6553 (views::_Enumerate, views::enumerate): Likewise.
6554 * include/std/version (__cpp_lib_ranges_enumerate): Likewise.
6555 * testsuite/std/ranges/version_c++23.cc: Verify value of
6556 __cpp_lib_ranges_enumerate.
6557 * testsuite/std/ranges/adaptors/enumerate/1.cc: New test.
6559 2023-04-12 Patrick Palka <ppalka@redhat.com>
6561 * include/std/ranges (lazy_split_view::_OuterIter::_OuterIter):
6562 Propagate _M_trailing_empty in the const-converting constructor
6564 * testsuite/std/ranges/adaptors/adjacent/1.cc (test04): Correct
6566 * testsuite/std/ranges/adaptors/lazy_split.cc (test12): New test.
6568 2023-04-12 Patrick Palka <ppalka@redhat.com>
6570 * src/c++17/floating_from_chars.cc: Include <algorithm>,
6571 <iterator>, <limits> and <cstdint>.
6573 2023-04-12 Patrick Palka <ppalka@redhat.com>
6576 * include/std/ranges (chunk_by_view::_M_find_next): Generalize
6577 parameter types of the lambda wrapper passed to adjacent_find.
6578 (chunk_by_view::_M_find_prev): Likewise.
6579 * testsuite/std/ranges/adaptors/chunk_by/1.cc (test04, test05):
6582 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
6585 * include/experimental/internet (basic_endpoint::basic_endpoint()):
6586 Ensure that the required union members are active. Only define
6587 as constexpr for C++20 and later.
6588 (basic_endpoint::basic_endpoint(const protocol_type&, port_type)):
6590 * testsuite/experimental/net/internet/endpoint/cons.cc: Only
6591 check constexpr default constructor for C++20 and later.
6592 * testsuite/experimental/net/internet/endpoint/extensible.cc:
6595 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
6597 * src/c++20/tzdata.zi: Import new file from 2023c release.
6599 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
6601 * include/precompiled/stdc++.h (C++17): Don't double-include
6602 <charconv>, once with wrong conditions.
6603 * testsuite/18_support/96817.cc: Require hosted.
6604 * testsuite/18_support/bad_exception/59392.cc: Ditto.
6605 * testsuite/20_util/scoped_allocator/108952.cc: Ditto.
6606 * testsuite/20_util/uses_allocator/lwg3527.cc: Ditto.
6607 * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
6610 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
6612 * include/bits/c++config: When __STDC_HOSTED__ is zero,
6613 disable _GLIBCXX_DEBUG and, if it was set, enable
6614 _GLIBCXX_ASSERTIONS.
6615 * testsuite/lib/libstdc++.exp (check_v3_target_debug_mode):
6616 Include <bits/c++config.h> when determining whether debug is
6617 set, in order to inherit the logic from above
6619 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
6621 * testsuite/17_intro/versionconflict.cc: New test.
6622 * include/std/version: Allow disabling the system_header pragma
6623 via _GLIBCXX_TESTING_SYSHDR.
6625 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
6627 * include/bits/unique_ptr.h (__cpp_lib_constexpr_memory):
6628 Synchronize the definition block with...
6629 * include/bits/ptr_traits.h (__cpp_lib_constexpr_memory):
6630 ... this one here. Also define the 202202L value, rather than
6631 leaving it up to purely unique_ptr.h, so that the value is
6632 synchronized across all headers.
6633 (__gnu_debug::_Safe_iterator_base): Move into new conditional
6635 * include/std/memory (__cpp_lib_atomic_value_initialization):
6636 Define on freestanding under the same conditions as in
6638 * include/std/version (__cpp_lib_robust_nonmodifying_seq_ops):
6639 Also define on freestanding.
6640 (__cpp_lib_to_chars): Ditto.
6641 (__cpp_lib_gcd): Ditto.
6642 (__cpp_lib_gcd_lcm): Ditto.
6643 (__cpp_lib_raw_memory_algorithms): Ditto.
6644 (__cpp_lib_array_constexpr): Ditto.
6645 (__cpp_lib_nonmember_container_access): Ditto.
6646 (__cpp_lib_clamp): Ditto.
6647 (__cpp_lib_constexpr_char_traits): Ditto.
6648 (__cpp_lib_constexpr_string): Ditto.
6649 (__cpp_lib_sample): Ditto.
6650 (__cpp_lib_lcm): Ditto.
6651 (__cpp_lib_constexpr_iterator): Ditto.
6652 (__cpp_lib_constexpr_char_traits): Ditto.
6653 (__cpp_lib_interpolate): Ditto.
6654 (__cpp_lib_constexpr_utility): Ditto.
6655 (__cpp_lib_shift): Ditto.
6656 (__cpp_lib_ranges): Ditto.
6657 (__cpp_lib_move_iterator_concept): Ditto.
6658 (__cpp_lib_constexpr_numeric): Ditto.
6659 (__cpp_lib_constexpr_functional): Ditto.
6660 (__cpp_lib_constexpr_algorithms): Ditto.
6661 (__cpp_lib_constexpr_tuple): Ditto.
6662 (__cpp_lib_constexpr_memory): Ditto.
6664 2023-04-05 John David Anglin <danglin@gcc.gnu.org>
6666 * testsuite/22_locale/locale/cons/12658_thread-2.cc: Double
6667 timeout factor on hppa*-*-*.
6669 2023-04-05 Jonathan Wakely <jwakely@redhat.com>
6671 * include/bits/regex.h (sub_match::swap): New function.
6672 * testsuite/28_regex/sub_match/lwg3204.cc: New test.
6674 2023-04-04 Jonathan Wakely <jwakely@redhat.com>
6676 * doc/xml/manual/extensions.xml: Remove std::bad_exception from
6678 * doc/html/manual/ext_demangling.html: Regenerate.
6680 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
6682 PR tree-optimization/107087
6683 * include/bits/cow_string.h (basic_string::size()): Add
6684 optimizer hint that _S_empty_rep()._M_length is always zero.
6685 (basic_string::length()): Call size().
6687 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
6690 * include/std/stop_token (_Stop_state_ptr(const stop_source&)):
6691 Add attribute access with access-mode 'none'.
6692 * testsuite/30_threads/stop_token/stop_source/109339.cc: New test.
6694 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
6696 * include/experimental/internet (ip::basic_endpoint::_M_if_v6):
6697 Revert change from member function to data member. Fix for
6698 constant evaluation by detecting which union member is active.
6699 (ip::basic_endpoint::resize): Revert changes to update _M_is_v6
6702 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
6705 * testsuite/20_util/optional/monadic/pr109340.cc: Moved to...
6706 * testsuite/20_util/optional/monadic/pr109242.cc: ...here.
6708 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
6710 * include/experimental/internet (ip::make_address): Implement
6712 (ip::address_v4::broadcast()): Avoid undefined shift.
6713 (ip::basic_endpoint): Fix member functions for constexpr.
6714 (ip::basic_endpoint::_M_is_v6): Replace member function with
6715 data member, adjust member functions using it.
6716 (ip::basic_endpoint::resize): Update _M_is_v6 based on sockaddr
6718 * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
6719 constexpr checks to work in C++14.
6720 * testsuite/experimental/net/internet/address/v4/creation.cc:
6722 * testsuite/experimental/net/internet/endpoint/cons.cc:
6724 * testsuite/experimental/net/internet/network/v4/cons.cc:
6726 * testsuite/experimental/net/internet/network/v4/members.cc:
6728 * testsuite/experimental/net/internet/endpoint/extensible.cc: New test.
6730 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
6732 * include/std/expected (expected::value() &): Use const lvalue
6733 for unex member passed to bad_expected_access constructor, as
6736 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
6739 * include/std/expected (expected::transform): Use
6740 std::remove_cv_t instead of std::remove_cvref_t.
6741 (expected::transform_error): Likewise.
6742 (expected<cv void, E>::transform): Likewise.
6743 (expected<cv void, E>::transform_error): Likewise.
6744 * include/std/optional (transform): Use std::remove_cv_t.
6745 * testsuite/20_util/optional/monadic/pr109340.cc: New test.
6747 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
6749 * include/std/optional (optional): Adjust static assertion to
6750 reject arrays and functions as well as references.
6751 * testsuite/20_util/optional/requirements_neg.cc: New test.
6753 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
6756 * include/bits/istream.tcc (istream::_M_extract(ValueT&)): Use
6757 std::use_facet instead of cached _M_num_get facet.
6758 (istream::operator>>(short&)): Likewise.
6759 (istream::operator>>(int&)): Likewise.
6760 * include/bits/ostream.tcc (ostream::_M_insert(ValueT)): Use
6761 std::use_facet instead of cached _M_num_put facet.
6763 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
6765 * include/bits/char_traits.h (char_traits::copy): Return without
6766 using memcpy if n==0.
6767 (char_traits::assign): Likewise for memset.
6769 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
6772 * include/bits/basic_string.h (basic_string::_M_is_local()): Add
6773 hint for compiler that local strings fit in the local buffer.
6775 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
6778 * include/std/chrono (__detail::__get_leap_second_info): Update
6779 expiry date of hardcoded leapseconds list.
6780 * src/c++20/tzdb.cc (tzdb_list::_Node::_S_read_leap_seconds()):
6782 * src/c++20/tzdata.zi: Import new file from 2023a release.
6783 * testsuite/std/time/time_zone/get_info_local.cc: Only check
6784 transitions for Egypt up to 2014.
6786 2023-03-28 Matthias Kretz <m.kretz@gsi.de>
6788 * include/experimental/bits/simd.h (is_simd_flag_type): New.
6789 (_IsSimdFlagType): New.
6790 (copy_from, copy_to, load ctors): Constrain _Flags using
6793 2023-03-28 Matthias Kretz <m.kretz@gsi.de>
6795 * include/experimental/bits/simd_x86.h (_SimdImplX86): Use
6796 _Base::_S_divides if the optimized _S_divides function is hidden
6797 via the preprocessor.
6799 2023-03-27 Jakub Jelinek <jakub@redhat.com>
6801 * testsuite/experimental/net/timer/waitable/dest.cc: Avoid -Wformat
6802 warning if size_t is not unsigned long.
6804 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
6806 * include/bits/shared_ptr_atomic.h (atomic::operator=(nullptr_t)):
6807 Add overload, as per LWG 3893.
6808 * testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc:
6809 Check assignment from nullptr.
6811 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
6813 * include/std/format (formatter<const charT[N], charT>): Do not
6814 define partial speclialization, as per LWG 3833.
6815 * testsuite/std/format/formatter/requirements.cc: Check it.
6817 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
6819 * include/std/utility (__cpp_lib_constexpr_algorithms): Define,
6821 * testsuite/20_util/exchange/constexpr.cc: Check for it.
6823 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
6825 * include/std/version (__cpp_lib_format): Define.
6826 * testsuite/std/format/functions/format.cc: Check it.
6828 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
6830 * include/bits/basic_string.tcc (basic_string::resize_and_overwrite):
6831 Pass rvalues to the callback, as now allowed by LWG 3645.
6832 Enforce preconditions on the return value.
6833 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
6836 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
6838 * include/std/format: Add a comment noting that the resolution
6839 of LWG 3720 has been applied..
6841 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
6843 * include/bits/regex.h (match_results): Add allocator-extended
6844 copy and move constructors, as per LWG 2195.
6845 * testsuite/28_regex/match_results/ctors/char/alloc.cc: New test.
6847 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
6849 * include/bits/stream_iterator.h (istream_iterator): Add
6850 constexpr to copy constructor, as per LWG 3600.
6851 * testsuite/24_iterators/istream_iterator/cons/constexpr.cc:
6852 Check copy construction.
6854 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
6856 * include/experimental/bits/simd_x86.h
6857 (_SimdImplX86::_S_divides): Replace test for __GCC_IEC_559 == 0
6858 with __RECIPROCAL_MATH__.
6860 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
6862 * include/experimental/bits/simd_detail.h: Don't define
6863 _GLIBCXX_SIMD_WORKAROUND_PR90993 for Clang.
6864 * include/experimental/bits/simd_x86.h (_S_divides): Remove
6865 check for __clang__.
6867 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
6869 * include/experimental/bits/simd_detail.h: Don't declare the
6870 simd API as constexpr with Clang.
6871 * include/experimental/bits/simd_x86.h (__movm): New.
6872 (_S_blend_avx512): Resolve FIXME. Implement blend using __movm
6874 (_SimdImplX86::_S_masked_unary): Clang does not implement the
6875 same builtins. Implement the function using __movm, ?:, and -
6876 operators on vector_size types instead.
6878 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
6880 * testsuite/experimental/simd/tests/operators.cc: Clang doesn't
6881 define __GCC_IEC_559. Use __STDC_IEC_559__ instead.
6883 2023-03-20 Jonathan Wakely <jwakely@redhat.com>
6885 * src/filesystem/ops-common.h (get_temp_directory_from_env): Fix
6888 2023-03-20 Marek Polacek <polacek@redhat.com>
6891 * testsuite/20_util/pair/cons/explicit_construct.cc: Adjust dg-error.
6892 * testsuite/20_util/tuple/cons/explicit_construct.cc: Likewise.
6893 * testsuite/23_containers/span/explicit.cc: Likewise.
6895 2023-03-20 Jonathan Wakely <jwakely@redhat.com>
6898 * include/std/expected (expected<void>::expected(in_place_t)):
6899 Remove template-head.
6901 2023-03-18 Jonathan Wakely <jwakely@redhat.com>
6904 * testsuite/18_support/coroutines/hash.cc: Use const object
6907 2023-03-17 Jonathan Wakely <jwakely@redhat.com>
6910 * include/std/coroutine (hash<>::operator()): Add const.
6911 * testsuite/18_support/coroutines/hash.cc: New test.
6913 2023-03-14 Patrick Palka <ppalka@redhat.com>
6916 * include/std/ranges (repeat_view): Remove redundant parentheses
6918 (repeat_view::_Iterator): Correct the requires-clause.
6920 2023-03-14 Patrick Palka <ppalka@redhat.com>
6922 * include/bits/stl_iterator.h (move_iterator::_S_iter_concept):
6924 (__cpp_lib_move_iterator_concept): Define for C++20.
6925 (move_iterator::iterator_concept): Strengthen as per P2520R0.
6926 * include/std/version (__cpp_lib_move_iterator_concept): Define
6928 * testsuite/24_iterators/move_iterator/p2520r0.cc: New test.
6930 2023-03-14 Patrick Palka <ppalka@redhat.com>
6932 * include/bits/ranges_util.h (view_interface::empty): Add
6933 preferred overloads that use ranges::size when the range is
6934 sized as per LWG 3715.
6935 * testsuite/std/ranges/adaptors/lwg3715.cc: New test.
6937 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
6939 * include/bits/chrono.h (__is_duration_v, __is_time_point_v):
6940 Only define for C++17 and later.
6942 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
6944 * src/Makefile.am: Add comment about linker script fragments.
6945 * src/Makefile.in: Regenerate.
6947 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
6950 * include/bits/mask_array.h (mask_array): Add assertions to
6951 assignment operators.
6952 * include/std/valarray (valarray::operator[](valarray<bool>)):
6954 * testsuite/26_numerics/valarray/mask-1_neg.cc: New test.
6955 * testsuite/26_numerics/valarray/mask-2_neg.cc: New test.
6956 * testsuite/26_numerics/valarray/mask-3_neg.cc: New test.
6957 * testsuite/26_numerics/valarray/mask-4_neg.cc: New test.
6958 * testsuite/26_numerics/valarray/mask-5_neg.cc: New test.
6959 * testsuite/26_numerics/valarray/mask-6_neg.cc: New test.
6960 * testsuite/26_numerics/valarray/mask-7_neg.cc: New test.
6961 * testsuite/26_numerics/valarray/mask-8_neg.cc: New test.
6962 * testsuite/26_numerics/valarray/mask.cc: New test.
6964 2023-03-13 Jakub Jelinek <jakub@redhat.com>
6966 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
6967 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
6969 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
6971 * doc/Makefile.am: Add comment referring to documentation.
6972 * doc/Makefile.in: Regenerate.
6974 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
6976 * doc/html/*: Regenerate.
6978 2023-03-13 Jonny Grant <jg@jguk.org>
6980 * doc/xml/faq.xml: Update copyright year.
6982 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
6984 * include/bits/allocator.h: Fix typo in comment.
6986 2023-03-12 Jakub Jelinek <jakub@redhat.com>
6988 * config/abi/pre/gnu.ver (CXXABI_1.3.14): Also export __bf16 tinfos
6989 if it isn't mangled as DF16b but u6__bf16.
6991 2023-03-12 Gerald Pfeifer <gerald@pfeifer.com>
6993 * doc/xml/manual/documentation_hacking.xml: Move www.graphviz.org
6995 * doc/html/manual/documentation_hacking.html: Regenerate.
6997 2023-03-10 Jonathan Wakely <jwakely@redhat.com>
7000 * python/libstdcxx/v6/xmethods.py (SharedPtrUseCountWorker):
7001 Remove self-recursion in __init__. Add missing _supports.
7002 * testsuite/libstdc++-xmethods/shared_ptr.cc: Check use_count()
7005 2023-03-09 Patrick Palka <ppalka@redhat.com>
7007 * include/std/ranges
7008 (cartesian_product_view::_Iterator::_Iterator): Remove
7009 constraint on default constructor as per LWG 3849.
7010 (cartesian_product_view::_Iterator::_M_prev): Adjust position
7011 of _Nm > 0 test as per LWG 3820.
7012 (cartesian_product_view::_Iterator::_M_advance): Perform bounds
7013 checking only on sized cartesian products.
7014 * testsuite/std/ranges/cartesian_product/1.cc (test08): New test.
7016 2023-03-09 Patrick Palka <ppalka@redhat.com>
7019 * include/std/ranges (chunk_by_view::_M_pred): Remove DMI as per
7021 (repeat_view::_M_pred): Likewise.
7022 * testsuite/std/ranges/adaptors/chunk_by/1.cc (test03): New test.
7023 * testsuite/std/ranges/repeat/1.cc (test05): New test.
7025 2023-03-09 Patrick Palka <ppalka@redhat.com>
7028 * include/std/ranges (__detail::__can_single_view): New concept.
7029 (_Single::operator()): Constrain it. Move [[nodiscard]] to the
7030 end of the function declarator.
7031 (__detail::__can_iota_view): New concept.
7032 (_Iota::operator()): Constrain it. Move [[nodiscard]] to the
7033 end of the function declarator.
7034 (__detail::__can_istream_view): New concept.
7035 (_Istream::operator()): Constrain it. Move [[nodiscard]] to the
7036 end of the function declarator.
7037 * testsuite/std/ranges/iota/iota_view.cc (test07): New test.
7038 * testsuite/std/ranges/istream_view.cc (test08): New test.
7039 * testsuite/std/ranges/single_view.cc (test07): New test.
7041 2023-03-09 Patrick Palka <ppalka@redhat.com>
7044 * include/std/ranges (cartesian_product_view::end): When
7045 building the tuple of iterators, avoid calling ranges::begin on
7046 the first range if __empty_tail is false.
7047 * testsuite/std/ranges/cartesian_product/1.cc (test07): New test.
7049 2023-03-09 Jonathan Wakely <jwakely@redhat.com>
7052 * config/os/gnu-linux/ldbl-ieee128-extra.ver: Fix incorrect
7055 2023-03-07 Jakub Jelinek <jakub@redhat.com>
7057 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
7058 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
7059 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
7060 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
7061 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
7063 2023-03-07 Jonathan Wakely <jwakely@redhat.com>
7066 * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Adjust patterns to
7067 not match symbols in namespace std::__gnu_cxx11_ieee128.
7068 * config/os/gnu-linux/ldbl-ieee128-extra.ver: Add patterns for
7069 std::__gnu_cxx11_ieee128::money_{get,put}.
7071 2023-03-07 Jonathan Wakely <jwakely@redhat.com>
7073 * libsupc++/eh_personality.cc: Fix spelling in comment.
7075 2023-03-03 Alexandre Oliva <oliva@adacore.com>
7077 * testsuite/30_threads/async/async.cc (test04): Initialize
7078 steady_start, renamed from steady_begin, next to slow_start.
7079 Increase tolerance for final wait.
7081 2023-03-03 Alexandre Oliva <oliva@adacore.com>
7083 * testsuite/libstdc++-prettyprinters/80276.cc: Add
7084 std::string to debug info.
7085 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
7087 2023-03-03 Alexandre Oliva <oliva@adacore.com>
7092 * include/bits/std_thread.h (thread::_M_thread_deps): New
7093 static implicitly-inline member function.
7094 (std::thread template ctor): Pass it to _M_start_thread.
7095 * src/c++11/thread.cc (thread::_M_start_thread): Name depend
7096 parameter, force it live on entry.
7098 2023-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7100 * config/abi/post/i386-solaris/baseline_symbols.txt: Regenerate.
7101 * config/abi/post/i386-solaris/amd64/baseline_symbols.txt:
7103 * config/abi/post/sparc-solaris/baseline_symbols.txt: Likewise.
7104 * config/abi/post/sparc-solaris/sparcv9/baseline_symbols.txt:
7107 2023-03-01 Jonathan Wakely <jwakely@redhat.com>
7109 * include/bits/cow_string.h: Fix typo in comment.
7111 2023-03-01 Jonathan Wakely <jwakely@redhat.com>
7113 * src/c++20/tzdb.cc (chrono::tzdb::current_zone()) Use "UTC" if
7114 current time zone cannot be determined.
7115 * testsuite/std/time/tzdb/1.cc: Remove conditions based on
7116 HAVE_TZDB macro and test all members unconditionally.
7118 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
7121 * include/bits/uses_allocator_args.h
7122 (uses_allocator_construction_args): Implement LWG 3527.
7123 * testsuite/20_util/pair/astuple/get-2.cc: New test.
7124 * testsuite/20_util/scoped_allocator/108952.cc: New test.
7125 * testsuite/20_util/uses_allocator/lwg3527.cc: New test.
7127 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
7130 * include/bits/stl_algobase.h (__copy_move<false, false, RA>)
7131 Add __assign_one static member function.
7132 (__copy_move<true, false, RA>): Likewise.
7133 (__copy_move<IsMove, true, RA>): Do not use memmove for a single
7135 (__copy_move_backward<IsMove, true, RA>): Likewise.
7136 * testsuite/25_algorithms/copy/108846.cc: New test.
7137 * testsuite/25_algorithms/copy_backward/108846.cc: New test.
7138 * testsuite/25_algorithms/copy_n/108846.cc: New test.
7139 * testsuite/25_algorithms/move/108846.cc: New test.
7140 * testsuite/25_algorithms/move_backward/108846.cc: New test.
7142 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
7144 * src/c++11/codecvt.cc: Add [[likely]] and [[unlikely]]
7147 2023-02-27 Jonathan Wakely <jwakely@redhat.com>
7149 * include/bits/basic_ios.h (basic_ios::_M_setstate): Add
7151 * include/bits/basic_string.h (resize_and_overwrite): Add
7154 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
7156 * include/experimental/bits/simd.h: Line breaks and indenting
7157 fixed to follow the libstdc++ standard.
7158 * include/experimental/bits/simd_builtin.h: Likewise.
7159 * include/experimental/bits/simd_fixed_size.h: Likewise.
7160 * include/experimental/bits/simd_neon.h: Likewise.
7161 * include/experimental/bits/simd_ppc.h: Likewise.
7162 * include/experimental/bits/simd_scalar.h: Likewise.
7163 * include/experimental/bits/simd_x86.h: Likewise.
7165 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
7168 * include/experimental/bits/simd_fixed_size.h
7169 (_SimdImplFixedSize::_S_broadcast): Replace inline with
7170 _GLIBCXX_SIMD_INTRINSIC.
7171 (_SimdImplFixedSize::_S_generate): Likewise.
7172 (_SimdImplFixedSize::_S_load): Likewise.
7173 (_SimdImplFixedSize::_S_masked_load): Likewise.
7174 (_SimdImplFixedSize::_S_store): Likewise.
7175 (_SimdImplFixedSize::_S_masked_store): Likewise.
7176 (_SimdImplFixedSize::_S_min): Likewise.
7177 (_SimdImplFixedSize::_S_max): Likewise.
7178 (_SimdImplFixedSize::_S_complement): Likewise.
7179 (_SimdImplFixedSize::_S_unary_minus): Likewise.
7180 (_SimdImplFixedSize::_S_plus): Likewise.
7181 (_SimdImplFixedSize::_S_minus): Likewise.
7182 (_SimdImplFixedSize::_S_multiplies): Likewise.
7183 (_SimdImplFixedSize::_S_divides): Likewise.
7184 (_SimdImplFixedSize::_S_modulus): Likewise.
7185 (_SimdImplFixedSize::_S_bit_and): Likewise.
7186 (_SimdImplFixedSize::_S_bit_or): Likewise.
7187 (_SimdImplFixedSize::_S_bit_xor): Likewise.
7188 (_SimdImplFixedSize::_S_bit_shift_left): Likewise.
7189 (_SimdImplFixedSize::_S_bit_shift_right): Likewise.
7190 (_SimdImplFixedSize::_S_remquo): Add inline keyword (to be
7191 explicit about not always-inline, yet).
7192 (_SimdImplFixedSize::_S_isinf): Likewise.
7193 (_SimdImplFixedSize::_S_isfinite): Likewise.
7194 (_SimdImplFixedSize::_S_isnan): Likewise.
7195 (_SimdImplFixedSize::_S_isnormal): Likewise.
7196 (_SimdImplFixedSize::_S_signbit): Likewise.
7198 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
7201 * include/experimental/bits/simd_builtin.h
7202 (_SimdImplBuiltin::_S_masked_unary): More efficient
7203 implementation of masked inc-/decrement for integers and floats
7205 * include/experimental/bits/simd_x86.h
7206 (_SimdImplX86::_S_masked_unary): New. Use AVX512 masked subtract
7207 builtins for masked inc-/decrement.
7209 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
7211 * include/experimental/executor (executor): Constrain template
7214 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
7216 * include/experimental/internet (basic_endpoint): Add missing
7217 constexpr to comparison operators.
7218 * testsuite/experimental/net/internet/endpoint/cons.cc: New test.
7220 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
7222 * include/experimental/internet (network_v4::netmask()): Avoid
7224 (network_v4::broadcast()): Optimize and fix for targets with
7225 uint_least32_t wider than 32 bits.
7226 (network_v4::to_string(const Allocator&)): Fix for custom
7227 allocators and optimize using to_chars.
7228 (operator==(const network_v4&, const network_v4&)): Add missing
7230 (operator==(const network_v6&, const network_v6&)): Likewise.
7231 * testsuite/experimental/net/internet/network/v4/cons.cc: New test.
7232 * testsuite/experimental/net/internet/network/v4/members.cc: New test.
7234 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
7236 * include/experimental/internet (address_4(const bytes_type&)):
7237 Use __builtin_bit_cast if available, otherwise convert to
7239 (address_v4::to_bytes()): Likewise, but convert from network
7241 * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
7242 incorrect tests. Check for constexpr too.
7243 * testsuite/experimental/net/internet/address/v4/creation.cc:
7245 * testsuite/experimental/net/internet/address/v4/members.cc:
7246 Check that bytes_type is a standard-layout type.
7248 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
7250 * include/experimental/internet (address_v4::to_string):
7252 * testsuite/experimental/net/internet/address/v4/members.cc:
7253 Check more addresses.
7255 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
7257 * include/ext/aligned_buffer.h (__aligned_buffer): Add
7260 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
7262 * testsuite/std/format/arguments/lwg3810.cc: Move dg-options
7265 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
7267 * testsuite/experimental/simd/tests/reductions.cc: Introduce
7268 max_distance as the type-dependent max error.
7270 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
7272 * include/experimental/bits/simd_builtin.h (_S_set): Compare as
7273 int. The actual range of these indexes is very small.
7275 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
7277 * include/experimental/bits/simd_x86.h (_S_bit_shift_left)
7278 (_S_bit_shift_right): Declare constexpr. The implementation was
7279 already expecting constexpr evaluation.
7281 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
7284 * include/experimental/bits/simd_detail.h
7285 (_GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA): Define as empty for
7288 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
7291 * include/experimental/bits/simd.h (__vector_broadcast):
7292 Implement via __vector_broadcast_impl instead of
7293 __call_with_n_evaluations + 2 lambdas.
7294 (__vector_broadcast_impl): New.
7296 2023-02-22 Alexandre Oliva <oliva@adacore.com>
7298 * src/c++11/shared_ptr.cc (__gnu_internal::get_mutex):
7299 Avoid destruction of the mutex pool.
7301 2023-02-22 Alexandre Oliva <oliva@adacore.com>
7303 * testsuite/27_io/basic_ofstream/open/char/noreplace.cc: xfail
7305 * testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc:
7308 2023-02-22 Alexandre Oliva <oliva@adacore.com>
7310 * testsuite/17_intro/names.cc: Undef func on vxworks >= 7 in
7313 2023-02-20 Andreas Schwab <schwab@linux-m68k.org>
7315 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
7317 2023-02-20 Matthias Kretz <m.kretz@gsi.de>
7319 * include/experimental/bits/simd.h (__extract_part, split):
7320 Use reserved name for template parameter.
7322 2023-02-20 Andreas Schwab <schwab@suse.de>
7324 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
7326 2023-02-18 Gerald Pfeifer <gerald@pfeifer.com>
7328 * doc/xml/faq.xml: Switch two links to www.open-std.org to https.
7329 * doc/html/faq.html: Regenerate.
7331 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
7333 * include/experimental/bits/simd_math.h (__hypot): Bitcasting
7334 between scalars requires the __bit_cast helper function instead
7337 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
7339 * include/experimental/bits/simd_x86.h
7340 (_SimdImplX86::_S_not_equal_to, _SimdImplX86::_S_less)
7341 (_SimdImplX86::_S_less_equal): Do not call
7342 __builtin_is_constant_evaluated in constexpr-if.
7344 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
7346 * testsuite/experimental/simd/tests/bits/verify.h
7347 (verify::verify): Use %zx for size_t in format string.
7349 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
7351 * testsuite/experimental/simd/generate_makefile.sh: Generate and
7352 pre-compile pch.h, which includes all headers that do not depend
7353 on command-line macros.
7354 * testsuite/experimental/simd/tests/bits/main.h: New file.
7355 (iterate_abis, main): Moved from verify.h.
7356 * testsuite/experimental/simd/tests/bits/verify.h
7357 (iterate_abis, main): Moved to main.h.
7358 * testsuite/experimental/simd/tests/bits/conversions.h: Add
7360 (genHalfBits): Simplify.
7361 * testsuite/experimental/simd/tests/bits/make_vec.h: Add include
7363 (make_alternating_mask): Moved from mask_loadstore.
7364 * testsuite/experimental/simd/tests/bits/mathreference.h: Add
7366 * testsuite/experimental/simd/tests/bits/test_values.h: Ditto.
7367 * testsuite/experimental/simd/tests/mask_loadstore.cc
7368 (make_mask, make_alternating_mask): Removed.
7369 * testsuite/experimental/simd/tests/mask_reductions.cc: Ditto.
7370 * testsuite/experimental/simd/tests/operators.cc (genHalfBits):
7372 * testsuite/experimental/simd/tests/abs.cc: Only include
7375 * testsuite/experimental/simd/tests/algorithms.cc: Ditto.
7376 * testsuite/experimental/simd/tests/broadcast.cc: Ditto.
7377 * testsuite/experimental/simd/tests/casts.cc: Ditto.
7378 * testsuite/experimental/simd/tests/fpclassify.cc: Ditto.
7379 * testsuite/experimental/simd/tests/frexp.cc: Ditto.
7380 * testsuite/experimental/simd/tests/generator.cc: Ditto.
7381 * testsuite/experimental/simd/tests/hypot3_fma.cc: Ditto.
7382 * testsuite/experimental/simd/tests/integer_operators.cc: Ditto.
7383 * testsuite/experimental/simd/tests/ldexp_scalbn_scalbln_modf.cc:
7384 * testsuite/experimental/simd/tests/loadstore.cc: Ditto.
7385 * testsuite/experimental/simd/tests/logarithm.cc: Ditto.
7386 * testsuite/experimental/simd/tests/mask_broadcast.cc: Ditto.
7387 * testsuite/experimental/simd/tests/mask_conversions.cc: Ditto.
7388 * testsuite/experimental/simd/tests/mask_implicit_cvt.cc: Ditto.
7389 * testsuite/experimental/simd/tests/mask_operator_cvt.cc: Ditto.
7390 * testsuite/experimental/simd/tests/mask_operators.cc: Ditto.
7391 * testsuite/experimental/simd/tests/math_1arg.cc: Ditto.
7392 * testsuite/experimental/simd/tests/math_2arg.cc: Ditto.
7393 * testsuite/experimental/simd/tests/operator_cvt.cc: Ditto.
7394 * testsuite/experimental/simd/tests/reductions.cc: Ditto.
7395 * testsuite/experimental/simd/tests/remqo.cc: Ditto.
7396 * testsuite/experimental/simd/tests/simd.cc: Ditto.
7397 * testsuite/experimental/simd/tests/sincos.cc: Ditto.
7398 * testsuite/experimental/simd/tests/split_concat.cc: Ditto.
7399 * testsuite/experimental/simd/tests/splits.cc: Ditto.
7400 * testsuite/experimental/simd/tests/trigonometric.cc: Ditto.
7401 * testsuite/experimental/simd/tests/trunc_ceil_floor.cc: Ditto.
7402 * testsuite/experimental/simd/tests/where.cc: Ditto.
7404 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
7406 * testsuite/experimental/simd/README.md: Document the timeout
7407 and timeout-factor directives. Minor typo fixed.
7409 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
7412 * include/experimental/bits/simd_detail.h: Define
7413 _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
7414 * include/experimental/bits/simd.h: Annotate lambdas with
7415 _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
7416 * include/experimental/bits/simd_builtin.h: Ditto.
7417 * include/experimental/bits/simd_converter.h: Ditto.
7418 * include/experimental/bits/simd_fixed_size.h: Ditto.
7419 * include/experimental/bits/simd_math.h: Ditto.
7420 * include/experimental/bits/simd_neon.h: Ditto.
7421 * include/experimental/bits/simd_x86.h: Ditto.
7423 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
7425 * include/experimental/bits/simd.h
7426 (_SimdWrapper::_M_is_constprop_none_of)
7427 (_SimdWrapper::_M_is_constprop_all_of): Return false unless the
7428 computed result still satisfies __builtin_constant_p.
7430 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
7432 * testsuite/std/format/arguments/lwg3810.cc: Replace UTF-8
7435 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
7437 * include/Makefile.am: Add new header.
7438 * include/Makefile.in: Regenerate.
7439 * include/experimental/synchronized_value: New file.
7440 * testsuite/experimental/synchronized_value.cc: New test.
7442 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
7444 * include/experimental/optional: Fix header name in comment.
7446 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
7448 * include/std/format (__format::_Arg_store): New class template.
7449 (basic_format_args): Remove nested type _Store and add deduction
7450 guide from _Arg_store.
7451 (basic_format_arg, make_format_args): Adjust.
7452 * testsuite/std/format/arguments/lwg3810.cc: New test.
7454 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
7456 * include/bits/stl_pair.h (pair) [C++20]: Add non-dangling
7457 constraints to constructors and add deleted overloads for the
7458 dangling cases, as per P2255R2.
7459 (pair) [!C++20 && _GLIBCXX_DEBUG]: Add static assertions to
7460 make dangling cases ill-formed.
7461 * testsuite/20_util/pair/dangling_ref.cc: New test.
7463 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
7465 * testsuite/17_intro/names_pstl.cc: Require et tbb_backend.
7467 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
7469 * include/ext/throw_allocator.h: Use reserved names for
7472 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
7474 * testsuite/17_intro/names_pstl.cc: Add space after effective
7477 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
7479 * include/pstl/algorithm_fwd.h (__pattern_search_n)
7480 (__brick_unique_copy, __brick_adjacent_find)
7481 (__brick_generate_n, __pattern_generate_n): Use reserved names
7483 * include/pstl/algorithm_impl.h (__brick_unique_copy)
7484 (__pattern_reverse, __brick_generate_n): Likewise.
7485 * include/pstl/execution_impl.h (__prefer_unsequenced_tag)
7486 (__prefer_parallel_tag): Likewise.
7487 * include/pstl/glue_algorithm_impl.h (transform): Likewise.
7488 * include/pstl/glue_numeric_defs.h (adjacent_difference):
7490 * include/pstl/numeric_impl.h (__brick_adjacent_difference):
7492 * include/pstl/parallel_backend_tbb.h (__merge_func): Likewise.
7493 * include/pstl/unseq_backend_simd.h (_Combiner)
7494 (__simd_min_element, __simd_minmax_element): Likewise.
7495 * testsuite/17_intro/names_pstl.cc: New test.
7497 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
7499 * include/bits/fs_ops.h (create_directory): Use reserved name
7501 * include/bits/ranges_algo.h (__contains_subrange_fn):
7503 * include/bits/regex_automaton.h (_State_base::_M_print):
7505 * include/bits/regex_automaton.tcc(_State_base::_M_print):
7507 * include/bits/regex_scanner.tcc(_Scanner::_M_print): Likewise.
7508 * include/experimental/bits/fs_ops.h (create_directory):
7510 * include/std/mutex (timed_mutex::_M_clocklock): Likewise.
7511 (recursive_timed_mutex:_M_clocklock): Likewise.
7512 * include/std/tuple (basic_common_reference): Likewise.
7513 * libsupc++/cxxabi_init_exception.h
7514 (__cxa_init_primary_exception): Likewise.
7515 * testsuite/17_intro/names.cc: Add checks.
7517 2023-02-14 Gerald Pfeifer <gerald@pfeifer.com>
7519 * doc/xml/manual/status_cxx2017.xml: Update an open-std.org link
7520 to www.open-std.org and https.
7521 * doc/html/manual/status.html: Regenerate.
7523 2023-02-14 Thomas W Rodgers <rodgert@twrodgers.com>
7526 * include/std/atomic (atomic_flag_wait): Add.
7527 (atomic_flag_wait_explicit): Add.
7528 (atomic_flag_notify): Add.
7529 (atomic_flag_notify_explicit): Add.
7530 * testsuite/29_atomics/atomic_flag/wait_notify/1.cc:
7531 Add test case to cover missing atomic_flag free functions.
7533 2023-02-14 Thomas W Rodgers <rodgert@twrodgers.com>
7536 * include/std/atomic (atomic_flag_test): Add.
7537 (atomic_flag_test_explicit): Add.
7538 * testsuite/29_atomics/atomic_flag/test/explicit.cc: Add
7539 test case to cover missing atomic_flag free functions.
7540 * testsuite/29_atomics/atomic_flag/test/implicit.cc:
7543 2023-02-13 Gerald Pfeifer <gerald@pfeifer.com>
7545 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust
7546 "The Component Object Model" reference.
7547 * doc/html/manual/policy_data_structures.html: Regenerate.
7549 2023-02-12 Gerald Pfeifer <gerald@pfeifer.com>
7551 * doc/xml/manual/containers.xml: Tweak a link to N1780
7553 * doc/html/manual/associative.html: Regenerate.
7555 2023-02-12 Gerald Pfeifer <gerald@pfeifer.com>
7557 * doc/xml/manual/ctype.xml: Change www.unix.org to unix.org.
7558 * doc/html/manual/facets.html: Regenerate.
7560 2023-02-11 Gerald Pfeifer <gerald@pfeifer.com>
7562 * doc/xml/manual/policy_data_structures_biblio.xml: Update
7563 link to "Worst-case efficient priority queues".
7564 * doc/html/manual/policy_data_structures.html: Regenerate.
7566 2023-02-06 Arsen Arsenović <arsen@aarsen.me>
7568 * doc/xml/manual/using.xml: Document newly-freestanding
7569 headers and the effect of the -ffreestanding flag.
7570 * doc/xml/manual/status_cxx2023.xml: Document P1642R11 as
7572 * doc/xml/manual/configure.xml: Document that hosted installs
7573 respect __STDC_HOSTED__.
7574 * doc/xml/manual/test.xml: Document how to run tests in
7576 * doc/html/*: Regenerate.
7578 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
7580 * include/bits/ranges_algo.h (__find_last_fn): Rename T to _Tp.
7581 (__find_last_if_fn): Likewise.
7583 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
7585 * include/std/type_traits: Add diagnostic pragmas around
7586 references to deprecated std::aligned_storage and
7587 std::aligned_union traits.
7588 * testsuite/20_util/aligned_storage/requirements/alias_decl.cc:
7589 Add dg-warning for et c++23.
7590 * testsuite/20_util/aligned_storage/requirements/explicit_instantiation.cc:
7592 * testsuite/20_util/aligned_storage/value.cc: Likewise.
7593 * testsuite/20_util/aligned_union/1.cc: Likewise.
7594 * testsuite/20_util/aligned_union/requirements/alias_decl.cc:
7597 2023-02-06 Nathaniel Shead <nathanieloshead@gmail.com>
7599 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macros.
7600 * include/bits/c++config (_GLIBCXX23_DEPRECATED)
7601 (_GLIBCXX23_DEPRECATED_SUGGEST): New macros.
7602 * include/std/type_traits (aligned_storage, aligned_union)
7603 (aligned_storage_t, aligned_union_t): Deprecate for C++23.
7604 * testsuite/20_util/aligned_storage/deprecated-2b.cc: New test.
7605 * testsuite/20_util/aligned_union/deprecated-2b.cc: New test.
7607 2023-02-06 Nathaniel Shead <nathanieloshead@gmail.com>
7609 * doc/doxygen/user.cfg.in (PREDEFINED): Update macros.
7610 * include/bits/c++config (_GLIBCXX20_DEPRECATED): Make
7611 consistent with other 'deprecated' macros.
7612 * include/std/type_traits (is_pod, is_pod_v): Use
7613 _GLIBCXX20_DEPRECATED_SUGGEST instead.
7615 2023-02-06 Arsen Arsenović <arsen@aarsen.me>
7617 * Makefile.am [!_GLIBCXX_HOSTED]: Enable src/ subdirectory.
7618 * Makefile.in: Regenerate.
7619 * src/Makefile.am [!_GLIBCXX_HOSTED]: Omit compatibility files.
7620 There's no history to be compatible with.
7621 * src/c++11/Makefile.am [!_GLIBCXX_HOSTED]: Omit hosted-only
7622 source files from the build.
7623 * src/c++17/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
7624 * src/c++20/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
7625 * src/c++98/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
7626 * src/Makefile.in: Regenerate.
7627 * src/c++11/Makefile.in: Regenerate.
7628 * src/c++17/Makefile.in: Regenerate.
7629 * src/c++20/Makefile.in: Regenerate.
7630 * src/c++98/Makefile.in: Regenerate.
7632 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
7634 * src/Makefile.am [GLIBCXX_HOSTED] (SUBDIRS): Do not add
7635 filesystem, libbacktrace and experimental.
7636 * src/Makefile.in: Regenerate.
7638 2023-02-04 Hans-Peter Nilsson <hp@axis.com>
7641 * include/pstl/unseq_backend_simd.h (__simd_or): Use __INT32_TYPE__
7644 2023-02-04 Gerald Pfeifer <gerald@pfeifer.com>
7646 * doc/xml/manual/documentation_hacking.xml: Adjust link to pdftex.
7647 * doc/html/manual/documentation_hacking.html: Regenerate.
7649 2023-02-04 François Dumont <fdumont@gcc.gnu.org>
7651 * include/bits/basic_string.h (operator=(basic_string&&)): Transfer move-to
7652 storage to the move-from instance when allocators are equal.
7653 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc (test04):
7656 2023-02-03 Samuel Thibault <samuel.thibault@gnu.org>
7658 * config/os/gnu-linux/os_defines.h [!__linux__]
7659 (_GLIBCXX_NATIVE_THREAD_ID, _GLIBCXX_GTHREAD_USE_WEAK): Do not define.
7661 2023-02-03 Patrick Palka <ppalka@redhat.com>
7663 * include/bits/ranges_algo.h (__find_last_fn, find_last):
7665 (__find_last_if_fn, find_last_if): Define.
7666 (__find_last_if_not_fn, find_last_if_not): Define.
7667 * testsuite/25_algorithms/find_last/1.cc: New test.
7668 * testsuite/25_algorithms/find_last_if/1.cc: New test.
7669 * testsuite/25_algorithms/find_last_if_not/1.cc: New test.
7671 2023-02-03 Patrick Palka <ppalka@redhat.com>
7673 * include/bits/ranges_algo.h (out_value_result): Define.
7674 (iota_result): Define.
7675 (__iota_fn, iota): Define.
7676 * testsuite/25_algorithms/iota/1.cc: New test.
7678 2023-02-03 Patrick Palka <ppalka@redhat.com>
7680 * include/bits/ranges_algo.h (__contains_fn, contains): Define.
7681 (__contains_subrange_fn, contains_subrange): Define.
7682 * testsuite/25_algorithms/contains/1.cc: New test.
7683 * testsuite/25_algorithms/contains_subrange/1.cc: New test.
7685 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
7687 * doc/xml/manual/abi.xml: Tweak link to ABIcheck project.
7688 * doc/html/manual/abi.html: Regenerate.
7690 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
7692 * src/filesystem/ops-common.h [AVR] (__unsupported): Always use
7693 errc::function_not_supported instead of errc::not_supported.
7695 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
7697 * include/std/sstream (basic_stringbuf::view): Define for old
7699 (basic_istringstream::view, basic_0stringstream::view)
7700 (basic_stringstream::view): Likewise.
7701 * testsuite/27_io/basic_istringstream/view/char/1.cc: Remove
7702 { dg-require-effective-target cxx11_abi }.
7703 * testsuite/27_io/basic_istringstream/view/wchar_t/1.cc:
7705 * testsuite/27_io/basic_ostringstream/view/char/1.cc: Likewise.
7706 * testsuite/27_io/basic_ostringstream/view/wchar_t/1.cc:
7708 * testsuite/27_io/basic_stringbuf/view/char/1.cc: Likewise.
7709 * testsuite/27_io/basic_stringbuf/view/wchar_t/1.cc: Likewise.
7710 * testsuite/27_io/basic_stringstream/view/char/1.cc: Likewise.
7711 * testsuite/27_io/basic_stringstream/view/wchar_t/1.cc:
7714 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
7717 * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Export shared_ptr
7718 conversion operators for directory iterator comparisons with
7719 std::default_sentinel_t.
7720 * include/bits/fs_path.h (path::path(string_view, _Type))
7721 (path::_Cmpt::_Cmpt(string_view, _Type, size_t)): Move inline
7723 * src/c++17/fs_path.cc: ... here.
7724 * testsuite/27_io/filesystem/path/108636.cc: New test.
7726 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
7728 * include/std/variant (variant::operator=): Implement resolution
7730 * testsuite/20_util/variant/lwg3585.cc: New test.
7732 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
7734 * doc/xml/manual/using_exceptions.xml: Update a www.open-std.org
7736 * doc/html/manual/using_exceptions.html: Regenerate.
7738 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
7740 * doc/xml/manual/debug.xml: Fix link to online GDB manual.
7741 * doc/html/manual/debug.html: Regenerate.
7743 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
7745 * src/c++11/random.cc (random_device::_M_fini): Do not try to
7746 close the file handle if the target doesn't support the
7747 /dev/random and /dev/urandom files.
7749 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
7751 * config/os/generic/error_constants.h (errc::value_too_large)
7753 * src/c++11/system_error.cc
7754 (system_category::default_error_condition) [__AVR__]: Only match
7755 recognize values equal to EDOM, ERANGE, ENOSYS and EINTR.
7756 * src/c++17/fs_ops.cc (fs::current_path) [__AVR__]: Do not check
7757 for ENOENT etc. in switch.
7758 (fs::remove_all) [__AVR__]: Likewise.
7759 * src/filesystem/ops-common.h [__AVR__]: Do not use POSIX open,
7762 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
7764 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR) [avr-*-*, msp430-*-*]: Set
7766 * configure: Regenerate.
7768 2023-02-01 Hans-Peter Nilsson <hp@axis.com>
7771 * testsuite/std/time/hh_mm_ss/1.cc (size): Add empty
7772 struct at end of S0.
7774 2023-01-30 Gerald Pfeifer <gerald@pfeifer.com>
7776 * doc/xml/manual/shared_ptr.xml: Move links from both
7777 http://open-std.org and http://www.open-std.org to
7778 https://www.open-std.org.
7779 * doc/html/manual/memory.html: Regenerate.
7781 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
7783 * doc/xml/manual/appendix_contributing.xml: Adjust link to
7784 ISO C++ standard at ANSI.
7785 Move link to www.open-std.org to https.
7786 * doc/html/manual/appendix_contributing.html: Regenerate.
7788 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
7790 * doc/xml/manual/documentation_hacking.xml: Move sourceforge.net
7792 * doc/html/manual/documentation_hacking.html: Regenerate.
7794 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
7796 * doc/xml/manual/abi.xml: Update www.open-std.org link to https.
7797 * doc/html/manual/abi.html: Regenerate.
7799 2023-01-27 Jakub Jelinek <jakub@redhat.com>
7802 * testsuite/17_intro/names.cc (__unused): For linux or GNU hurd
7803 include features.h if present and then check __GLIBC__ and
7804 __GLIBC_MINOR__ macros for glibc prior to 2.19, instead of testing
7805 __GLIBC_PREREQ which isn't defined yet.
7807 2023-01-27 Jonathan Wakely <jwakely@redhat.com>
7809 * src/c++20/tzdb.cc (tzdata_stream): Use constant instead of
7812 2023-01-27 Jonathan Wakely <jwakely@redhat.com>
7815 * testsuite/23_containers/map/modifiers/108554.cc: Use dg-bogus.
7817 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
7819 * src/c++20/tzdb.cc (operator>>(istream&, ZoneInfo&)): Allow
7820 rules named "+" for compatibility with older tzdata.zi files.
7822 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
7825 * include/bits/stl_tree.h (_Rb_tree_insert_and_rebalance): Add
7827 (_Rb_tree_rebalance_for_erase): Add nonnull and returns_nonnull
7829 * testsuite/23_containers/map/modifiers/108554.cc: New test.
7831 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
7834 * src/c++20/tzdb.cc (current_zone): Look for TIMEZONE or ZONE in
7835 /etc/sysconfig/clock, not DEFAULT_TIMEZONE.
7837 2023-01-26 Gerald Pfeifer <gerald@pfeifer.com>
7839 * doc/xml/manual/intro.xml: Update links to www.open-std.org to
7841 * doc/html/manual/bugs.html: Regenerate.
7843 2023-01-24 Jonathan Wakely <jwakely@redhat.com>
7846 * src/c++20/tzdb.cc (current_zone): Look for DEFAULT_TIMEZONE in
7847 /etc/sysconfig/clock.
7849 2023-01-24 Jonathan Wakely <jwakely@redhat.com>
7852 * include/bits/ranges_base.h: Include <bits/stl_iterator.h> for
7853 std::make_reverse_iterator.
7854 * include/std/tuple: Include <bits/ranges_util.h> for subrange.
7855 (make_from_tuple): Add static assertion from P2255 to diagnose
7856 dangling references.
7857 * testsuite/20_util/tuple/make_from_tuple/dangling_ref.cc: New test.
7858 * testsuite/20_util/tuple/make_from_tuple/tuple_like.cc: New test.
7860 2023-01-23 François Dumont <fdumont@gcc.gnu.org>
7862 * include/debug/safe_iterator.h (_Safe_iterator<>::_Unchecked): New.
7863 (_Safe_iterator(const _Safe_iterator&, _Unchecked)): New.
7864 (_Safe_iterator::operator++(int)): Use latter.
7865 (_Safe_iterator::operator--(int)): Likewise.
7866 (_Safe_iterator(_Iterator, const _Safe_sequence_base*)): Remove !_M_insular()
7868 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::_Unchecked):
7870 (_Safe_local_iterator(const _Safe_local_iterator&, _Unchecked)): New.
7871 (_Safe_local_iterator::operator++(int)): Use latter.
7872 * src/c++11/debug.cc (_S_debug_messages): Add as comment the _Debug_msg_id
7873 entry associated to the array entry.
7875 2023-01-18 Jonathan Wakely <jwakely@redhat.com>
7877 * include/bits/fs_path.h (u8path): Add deprecated attribute.
7878 * testsuite/27_io/filesystem/path/construct/90281.cc: Add
7879 -Wno-deprecated-declarations for C++20 and later.
7880 * testsuite/27_io/filesystem/path/factory/u8path-char8_t.cc:
7882 * testsuite/27_io/filesystem/path/factory/u8path.cc: Likewise.
7883 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
7884 * testsuite/27_io/filesystem/path/factory/u8path-depr.cc: New test.
7886 2023-01-18 Jonathan Wakely <jwakely@redhat.com>
7888 * include/bits/random.h (random_device) [!_GLIBCXX_USE_DEV_RANDOM]:
7889 Always call _M_fini and _M_getentropy.
7891 2023-01-18 Gerald Pfeifer <gerald@pfeifer.com>
7893 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust links
7894 to www.open-std.org to use https.
7895 (COM: Component Model Object Technologies): Rename from...
7896 (The Component Object Model): ...to.
7897 * doc/html/manual/policy_data_structures.html: Regenerate.
7899 2023-01-18 Dimitrij Mijoski <dmjpp@hotmail.com>
7901 * testsuite/22_locale/codecvt/codecvt_unicode.cc: Simplify.
7902 * testsuite/22_locale/codecvt/codecvt_unicode.h: Simplify.
7903 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: Simplify.
7905 2023-01-17 Jonathan Wakely <jwakely@redhat.com>
7907 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Check $target_os instead
7908 of $host. Fix check for file being present during native build.
7909 * configure: Regenerate.
7911 2023-01-17 Martin Liska <mliska@suse.cz>
7913 * src/libbacktrace/Makefile.in: Regenerate.
7915 2023-01-16 Jonathan Wakely <jwakely@redhat.com>
7917 * src/c++20/tzdb.cc (_GLIBCXX_USE_CXX11_ABI): Define to 1.
7919 2023-01-16 Jonathan Wakely <jwakely@redhat.com>
7922 * include/c_compatibility/stdatomic.h: Change copyright line to
7923 be consistent with other headers contributed under DCO terms.
7924 * include/std/expected: Add full stop to copyright line.
7925 * src/c++20/tzdb.cc: Likewise.
7927 2023-01-15 Gerald Pfeifer <gerald@pfeifer.com>
7929 * doc/xml/manual/status_cxx2014.xml: Switch www.open-std.org to
7931 * doc/xml/manual/status_cxx2017.xml: Ditto.
7932 * doc/xml/manual/status_cxx2020.xml: Ditto.
7933 * doc/xml/manual/status_cxx2023.xml: Ditto.
7934 * doc/html/manual/status.html: Regenerate.
7936 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
7938 * testsuite/std/time/tzdb_list/1.cc: Remove dg-xfail-run-if
7939 and fail gracefully if defining the weak symbol doesn't work.
7941 2023-01-15 François Dumont <fdumont@gcc.gnu.org>
7944 * include/debug/safe_iterator.h (_Safe_iterator<>::operator++(int)): Extend deadlock
7945 fix to other iterator category.
7946 (_Safe_iterator<>::operator--(int)): Likewise.
7947 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::operator++(int)):
7949 * testsuite/util/debug/unordered_checks.h (invalid_local_iterator_pre_increment): New.
7950 (invalid_local_iterator_post_increment): New.
7951 * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_post_increment_neg.cc:
7953 * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_pre_increment_neg.cc:
7956 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
7958 * testsuite/30_threads/jthread/jthread.cc: Remove -pthread from
7961 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
7963 * testsuite/std/time/clock/utc/io.cc: Use ctype to widen char.
7965 2023-01-14 Björn Schäpers <bjoern@hazardy.de>
7967 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Add check for
7968 windows.h. Add pecoff as FORMAT_FILE.
7969 * config.h.in: Regenerate.
7970 * configure: Regenerate.
7971 * src/libbacktrace/Makefile.am: Regenerate.
7972 * src/libbacktrace/Makefile.in: Add pecoff.c as FORMAT_FILE.
7974 2023-01-14 Björn Schäpers <bjoern@hazardy.de>
7976 * include/std/stacktrace (stacktrace_entry::_S_demangle): Use
7977 raw __name if __cxa_demangle could not demangle it.
7979 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
7982 * src/c++20/tzdb.cc (current_zone()) [_AIX]: Use TZ environment
7985 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
7987 * src/c++20/tzdb.cc (TZDB_DISABLED): Disable all code for
7989 * testsuite/std/time/tzdb/leap_seconds.cc: Require tzdb
7991 * testsuite/std/time/tzdb_list/1.cc: Likewise.
7993 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
7995 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Replace the
7996 --with-libstdcxx-zoneinfo-dir configure option with
7997 --with-libstdcxx-zoneinfo with yes/no/static choices as well as
7999 * config.h.in: Regenerate.
8000 * configure: Regenerate.
8001 * doc/xml/manual/configure.xml: Document configure option.
8002 * doc/html/manual/configure.html: Regenerate.
8003 * src/c++20/Makefile.am: Generate tzdata.zi.h header.
8004 * src/c++20/Makefile.in: Regenerate.
8005 * src/c++20/tzdb.cc (__gnu_cxx::zoneinfo_dir_override): Return a
8006 null pointer if no directory is configured.
8007 (zoneinfo_dir): Replace with ...
8008 (zoneinfo_file): New function.
8009 (tzdata_stream): New istream class.
8010 (remote_version, reload_tzdb): Use tzdata_stream.
8011 * testsuite/lib/libstdc++.exp (check_effective_target_tzdb):
8012 Check new _GLIBCXX_STATIC_TZDATA macro and ignore presence of
8013 tzdata.zi file in default location.
8014 * src/c++20/tzdata.zi: New file.
8016 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
8018 * include/bits/chrono_io.h (operator<<): Fix syntax errors.
8019 * testsuite/std/time/month_day/io.cc: New test.
8020 * testsuite/std/time/month_day_last/io.cc: New test.
8021 * testsuite/std/time/month_weekday/io.cc: New test.
8022 * testsuite/std/time/month_weekday_last/io.cc: New test.
8023 * testsuite/std/time/weekday_indexed/io.cc: New test.
8024 * testsuite/std/time/weekday_last/io.cc: New test.
8025 * testsuite/std/time/year_month/io.cc: New test.
8026 * testsuite/std/time/year_month_day_last/io.cc: New test.
8027 * testsuite/std/time/year_month_weekday/io.cc: New test.
8028 * testsuite/std/time/year_month_weekday_last/io.cc: New test.
8030 2023-01-14 François Dumont <fdumont@gcc.gnu.org>
8032 * include/std/format [_GLIBCXX_INLINE_VERSION](to_chars): Adapt __asm symbol
8034 * config/abi/pre/gnu-versioned-namespace.ver: Add to_chars/from_chars symbols
8037 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
8039 * include/bits/std_mutex.h: Include <errno.h>.
8041 2023-01-13 Arsen Arsenović <arsen@aarsen.me>
8043 * testsuite/20_util/to_chars/version.cc: Mark hosted-only.
8044 * testsuite/20_util/uses_allocator/lwg3677.cc: Ditto.
8045 * testsuite/20_util/weak_ptr/cons/self_move.cc: Ditto.
8046 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Replace usage of
8047 std::make_unique with a freestanding-compatible wrapper around
8049 * testsuite/21_strings/basic_string_view/operations/contains/char.cc:
8050 Don't test for presence of __cpp_lib_string_contains on !HOSTED.
8051 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
8053 * testsuite/std/ranges/version_c++23.cc: Don't test for presence
8054 of __cpp_lib_ranges in !HOSTED.
8056 2023-01-13 Arsen Arsenović <arsen@aarsen.me>
8058 * include/Makefile.am: Install bits/char_traits.h,
8060 * include/Makefile.in: Regenerate.
8061 * include/bits/char_traits.h: Gate hosted-only, wchar-only and
8062 mbstate-only bits behind appropriate #ifs.
8063 * include/std/string_view: Gate <iostream> functionality behind
8065 * include/std/version: Enable __cpp_lib_constexpr_string_view
8066 and __cpp_lib_starts_ends_with in !HOSTED.
8067 * include/std/ranges: Re-enable __is_basic_string_view on
8068 freestanding, include <string_view> directly.
8069 * include/precompiled/stdc++.h: Include <string_view> when
8071 * testsuite/20_util/function_objects/searchers.cc: Skip testing
8072 boyer_moore searchers on freestanding
8073 * testsuite/21_strings/basic_string_view/capacity/1.cc: Guard
8074 <string>-related tests behind __STDC_HOSTED__.
8075 * testsuite/21_strings/basic_string_view/cons/char/1.cc: Ditto.
8076 * testsuite/21_strings/basic_string_view/cons/char/2.cc: Remove
8077 unused <stdexcept> include.
8078 * testsuite/21_strings/basic_string_view/cons/char/3.cc: Remove
8079 unused <vector> include.
8080 * testsuite/21_strings/basic_string_view/cons/char/range.cc:
8081 Guard <string> related testing behind __STDC_HOSTED__.
8082 * testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc:
8083 Guard <stdexcept> related tests behind __STDC_HOSTED__.
8084 * testsuite/21_strings/basic_string_view/element_access/char/1.cc:
8086 * testsuite/21_strings/basic_string_view/element_access/wchar_t/1.cc:
8087 Guard <stdexcept> tests behind __STDC_HOSTED__.
8088 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
8089 Enable test on freestanding, guard <stdexcept> bits behind
8091 * testsuite/21_strings/basic_string_view/operations/substr/char.cc:
8092 Guard <stdexcept> bits behind __STDC_HOSTED__.
8093 * testsuite/21_strings/basic_string_view/operations/substr/wchar_t.cc:
8096 2023-01-13 Dimitrij Mijoski <dmjpp@hotmail.com>
8099 * src/c++11/codecvt.cc (read_utf8_code_point): Correctly detect
8100 errors in incomplete multibyte sequences.
8101 (utf16_in): Remove surrogates parameter. Fix conditions for
8103 (utf16_out): Fix condition for returning partial.
8104 (ucs2_in): Do not pass surrogates argument to utf16_in.
8105 * testsuite/22_locale/codecvt/codecvt_unicode.cc: New test.
8106 * testsuite/22_locale/codecvt/codecvt_unicode.h: New header for
8108 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: New
8111 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
8114 * config/io/c_io_stdio.h (__c_lock): Define as a typedef for
8115 __GTHREAD_LEGACY_MUTEX_T if defined.
8117 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
8120 * config/os/gnu-linux/ldbl-extra.ver (GLIBCXX_LDBL_3.4.31):
8121 Export __try_use_facet specializations for facets in namespace
8123 * config/os/gnu-linux/ldbl-ieee128-extra.ver
8124 (GLIBCXX_IEEE128_3.4.31): Likewise for facets in namespace
8126 * testsuite/util/testsuite_abi.cc: Add to lists of known and
8129 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
8131 * include/bits/std_mutex.h: Remove <system_error> include.
8132 * include/std/condition_variable: Add <bits/error_constants.h>
8134 * include/std/mutex: Likewise.
8135 * include/std/shared_mutex: Likewise.
8137 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
8140 * include/experimental/memory_resource
8141 (_GLIBCXX_MAX_ALIGN_MATCHES_MALLOC): Define.
8142 (do_allocate, do_deallocate): Check it.
8143 * testsuite/experimental/memory_resource/new_delete_resource.cc:
8144 Relax expected behaviour for 64-bit hppa-hp-hpux11.11.
8146 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
8148 * doc/xml/manual/abi.xml: Add latest library versions.
8149 * doc/html/manual/abi.html: Regenerate.
8151 2023-01-12 François Dumont <fdumont@gcc.gnu.org>
8154 * include/bits/stl_tree.h (_Rb_tree<>::_M_insert_range_equal): Remove
8155 unused _Alloc_node instance.
8157 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
8159 * include/bits/atomic_wait.h (__detail::__platform_wait_t):
8160 Define as unsigned long if always lock-free, and unsigned int
8163 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
8165 * src/c++20/tzdb.cc (tzdb_list::_S_init_tzdb): Use __try and
8166 __catch macros for exception handling.
8168 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
8171 * include/bits/stl_algobase.h (__lg): Replace six overloads with
8172 a single function template for all integer types.
8173 * include/bits/stl_algo.h (__merge_adaptive_resize): Cast
8174 arithmetic results back to _Distance.
8176 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
8179 * include/std/span (span::span()): Un-simplify constraint to
8180 work for size_t of lesser rank than int.
8182 2023-01-07 LIU Hao <lh_mouse@126.com>
8184 PR middle-end/108300
8185 * src/c++11/system_error.cc: Define `WIN32_LEAN_AND_MEAN` before
8187 * src/c++11/thread.cc: Likewise.
8188 * src/c++17/fs_ops.cc: Likewise.
8189 * src/filesystem/ops.cc: Likewise.
8191 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
8194 * src/c++20/tzdb.cc (zoneinfo_dir): Add diagnostic pragma.
8196 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
8199 * src/c++20/tzdb.cc (time_zone::_Impl::RulesCounter): New class
8200 template and partial specialization for synchronizing access to
8201 time_zone::_Impl::infos.
8202 (time_zone::_M_get_sys_info, reload_tzdb): Adjust uses of
8205 2023-01-06 Patrick Palka <ppalka@redhat.com>
8208 * include/bits/utility.h (__cpp_lib_ranges_zip): Define for C++23.
8209 * include/std/ranges (__cpp_lib_ranges_zip): Likewise.
8210 (__cpp_lib_ranges_chunk): Likewise.
8211 (__cpp_lib_ranges_slide): Likewise.
8212 (__cpp_lib_ranges_chunk_by): Likewise.
8213 (__cpp_lib_ranges_join_with): Likewise.
8214 (__cpp_lib_ranges_repeat): Likewise.
8215 (__cpp_lib_ranges_stride): Likewise.
8216 (__cpp_lib_ranges_cartesian_product): Likewise.
8217 (__cpp_lib_ranges_as_rvalue): Likewise.
8218 * include/std/version: Ditto.
8219 * testsuite/20_util/tuple/p2321r2.cc: Verify value of
8221 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Likewise.
8222 * testsuite/std/ranges/adaptors/chunk/1.cc: Likewise.
8223 * testsuite/std/ranges/adaptors/chunk_by/1.cc: Likewise.
8224 * testsuite/std/ranges/adaptors/join_with/1.cc: Likewise.
8225 * testsuite/std/ranges/adaptors/slide/1.cc: Likewise.
8226 * testsuite/std/ranges/adaptors/stride/1.cc: Likewise.
8227 * testsuite/std/ranges/cartesian_product/1.cc: Likewise.
8228 * testsuite/std/ranges/repeat/1.cc: Likewise.
8229 * testsuite/std/ranges/zip/1.cc: Likewise.
8230 * testsuite/std/ranges/version_c++23.cc: New test.
8232 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
8235 * include/std/bitset (operator>>): Use alloca in the right
8236 scope, not in a constructor.
8237 * testsuite/20_util/bitset/io/input.cc: Check case from PR.
8239 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
8242 * include/std/format (basic_format_arg) [!__cpp_lib_to_chars]:
8243 Disable visiting floating-point types.
8245 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
8248 * include/debug/safe_iterator.h (_Safe_iterator::operator++(int))
8249 (_Safe_iterator::operator--(int)): Do not hold lock around
8250 construction of return value.
8252 2023-01-05 John David Anglin <danglin@gcc.gnu.org>
8254 * config/cpu/hppa/atomicity.h (_PA_LDCW_INSN): Define.
8255 (__exchange_and_add): Use _PA_LDCW_INSN. Use ordered store for
8256 lock release. Revise loop.
8257 (__atomic_add): Likewise.
8259 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
8262 * python/libstdcxx/v6/printers.py (_utc_timezone): New global
8264 (StdChronoTimePointPrinter::to_string): Use it.
8266 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
8269 * include/std/functional (_Bind_front): Add no_unique_address
8270 attribute to data members.
8271 * testsuite/20_util/function_objects/bind_front/107784.cc: Check
8272 size of call wrappers with empty types for targets and bound
8275 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
8278 * src/c++20/tzdb.cc (chrono::current_zone()): Check for zone
8279 using only last component of the name.
8281 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
8285 * config/abi/pre/gnu.ver: Move zoneinfo_dir_override export to
8286 the latest symbol version.
8287 * src/c++20/tzdb.cc (USE_ATOMIC_SHARED_PTR): Define to 0 if
8288 atomic<_Node*> is not always lock free.
8289 (USE_ATOMIC_LIST_HEAD): New macro.
8290 [__hpux__] (__gnu_cxx::zoneinfo_dir_override()): Provide
8291 definition of weak symbol.
8292 (tzdb_list::_Node::_S_head): Rename to _S_head_cache.
8293 (tzdb_list::_Node::_S_list_head): New function for accessing
8294 list head efficiently.
8295 (tzdb_list::_Node::_S_cache_list_head): New function for
8296 updating _S_list_head.
8298 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
8301 * include/std/chrono (hh_mm_ss): Do not use chrono::abs if
8302 duration rep is unsigned.
8303 * testsuite/std/time/hh_mm_ss/1.cc: Check unsigned rep.
8305 2023-01-04 Iain Sandoe <iain@sandoe.co.uk>
8308 * config/abi/pre/gnu.ver (GLIBCXX_3.4):
8309 Add __gnu_cxx::zoneinfo_dir_override().
8311 2023-01-04 Jonathan Wakely <jwakely@redhat.com>
8314 * include/std/array (__array_traits<T, 0>::operator T*()): Add
8316 * testsuite/23_containers/array/element_access/constexpr_c++17.cc: Check
8317 std::array<T, 0>::data().
8320 Copyright (C) 2023 Free Software Foundation, Inc.
8322 Copying and distribution of this file, with or without modification,
8323 are permitted in any medium without royalty provided the copyright
8324 notice and this notice are preserved.