1 2023-11-30 Jonathan Wakely <jwakely@redhat.com>
3 * include/std/ranges (__detail::__toable): Fix incorrect use of
4 _Range instead of _Cont.
5 (__detail::_ToClosure, __detail::_ToClosure2): Add missing
6 constexpr specifier on constructors.
7 * testsuite/std/ranges/conv/1.cc (_Cont, _Cont2, _Cont3): Remove
8 unnecessary begin() and end() members.
9 (test_constexpr): New function to check range adaptors are
10 usable in constant expressions.
12 2023-11-29 Thomas Schwinge <thomas@codesourcery.com>
14 * testsuite/23_containers/span/at.cc: Fix for '-fno-exceptions'
17 2023-11-28 Jonathan Wakely <jwakely@redhat.com>
19 * include/bits/atomic_wait.h: Include <stdint.h>.
21 2023-11-28 Jonathan Wakely <jwakely@redhat.com>
23 * include/bits/stl_uninitialized.h: Fix typo in comment.
25 2023-11-24 Jan Hubicka <jh@suse.cz>
28 * include/bits/stl_uninitialized.h (__relocate_a_1): Use memcpy instead
31 2023-11-23 Jonathan Wakely <jwakely@redhat.com>
34 * include/bits/ranges_base.h (from_range_t): Define new tag
36 (from_range): Define new tag object.
37 * include/bits/version.def (ranges_to_container): Define.
38 * include/bits/version.h: Regenerate.
39 * include/std/ranges (ranges::to): Define.
40 * testsuite/std/ranges/conv/1.cc: New test.
41 * testsuite/std/ranges/conv/2_neg.cc: New test.
42 * testsuite/std/ranges/conv/version.cc: New test.
44 2023-11-23 Jonathan Wakely <jwakely@redhat.com>
46 * testsuite/util/testsuite_allocator.h (uneq_allocator): Fix
47 equality operator for heterogeneous comparisons.
49 2023-11-21 Jonathan Wakely <jwakely@redhat.com>
51 * include/bits/version.def (freestanding_cstring): Add.
52 * include/bits/version.h: Regenerate.
53 * include/c_compatibility/string.h (strtok): Do not declare for
55 * include/c_global/cstring (strtok): Likewise.
56 * testsuite/21_strings/headers/cstring/version.cc: New test.
58 2023-11-21 Jonathan Wakely <jwakely@redhat.com>
60 * include/bits/version.def (freestanding_algorithm)
61 (freestanding_array, freestanding_optional)
62 (freestanding_string_view, freestanding_variant): Add.
63 * include/bits/version.h: Regenerate.
64 * include/std/algorithm (__glibcxx_want_freestanding_algorithm):
66 * include/std/array (__glibcxx_want_freestanding_array):
68 * include/std/optional (__glibcxx_want_freestanding_optional):
70 * include/std/string_view
71 (__glibcxx_want_freestanding_string_view): Define.
72 * include/std/variant (__glibcxx_want_freestanding_variant):
74 * testsuite/20_util/optional/version.cc: Add checks for
75 __cpp_lib_freestanding_optional.
76 * testsuite/20_util/variant/version.cc: Add checks for
77 __cpp_lib_freestanding_variant.
78 * testsuite/23_containers/array/tuple_interface/get_neg.cc:
79 Adjust dg-error line numbers.
80 * testsuite/21_strings/basic_string_view/requirements/version.cc:
82 * testsuite/23_containers/array/requirements/version.cc: New
84 * testsuite/25_algorithms/fill_n/requirements/version.cc: New
86 * testsuite/25_algorithms/swap_ranges/requirements/version.cc:
89 2023-11-21 Jonathan Wakely <jwakely@redhat.com>
91 * include/bits/version.def (freestanding_expected): New macro.
92 (span): Add C++26 value.
93 * include/bits/version.h: Regenerate.
94 * include/std/expected (__glibcxx_want_freestanding_expected):
96 * include/std/span (span::at): New member function.
97 * testsuite/20_util/expected/version.cc: Add checks for
98 __cpp_lib_freestanding_expected.
99 * testsuite/23_containers/span/2.cc: Moved to...
100 * testsuite/23_containers/span/version.cc: ...here. Add checks
101 for __cpp_lib_span in <span> as well as in <version>.
102 * testsuite/23_containers/span/1.cc: Removed.
103 * testsuite/23_containers/span/at.cc: New test.
105 2023-11-21 Jonathan Wakely <jwakely@redhat.com>
107 * include/tr2/dynamic_bitset (dynamic_bitset): Pass zero and one
108 characters to _M_copy_from_string.
109 * testsuite/tr2/dynamic_bitset/string.cc: New test.
111 2023-11-21 Jonathan Wakely <jwakely@redhat.com>
113 * doc/html/*: Regenerate.
114 * doc/xml/faq.xml: Remove reference to buildstat.html pages.
115 * doc/xml/manual/test.xml: Likewise
117 2023-11-21 Jan Hubicka <jh@suse.cz>
122 * include/bits/stl_vector.h (_M_realloc_append): New member function.
124 * include/bits/vector.tcc: (emplace_back): Use it.
125 (_M_realloc_insert): Let compiler know that new vector size is non-zero.
126 (_M_realloc_append): New member function.
128 2023-11-18 Jonathan Wakely <jwakely@redhat.com>
131 * include/std/format (basic_format_arg::_S_to_arg_type): Check
132 value_type for basic_string_view and basic_string
134 * testsuite/std/format/arguments/112607.cc: New test.
136 2023-11-18 Jonathan Wakely <jwakely@redhat.com>
139 * include/std/format (_Sink_iter::_M_reserve): New member
141 (_Sink::_Reservation): New nested class.
142 (_Sink::_M_reserve, _Sink::_M_bump): New virtual functions.
143 (_Seq_sink::_M_reserve, _Seq_sink::_M_bump): New virtual
145 (_Iter_sink<O, ContigIter>::_M_reserve): Likewise.
146 (__do_vformat_to): Use new functions to optimize "{}" case.
148 2023-11-17 Jonathan Wakely <jwakely@redhat.com>
150 * config.h.in: Regenerate.
152 2023-11-17 Jonathan Wakely <jwakely@redhat.com>
154 * include/Makefile.am: Add new header.
155 * include/Makefile.in: Regenerate.
156 * include/bits/version.def (saturation_arithmetic): Define.
157 * include/bits/version.h: Regenerate.
158 * include/std/numeric: Include new header.
159 * include/bits/sat_arith.h: New file.
160 * testsuite/26_numerics/saturation/add.cc: New test.
161 * testsuite/26_numerics/saturation/cast.cc: New test.
162 * testsuite/26_numerics/saturation/div.cc: New test.
163 * testsuite/26_numerics/saturation/mul.cc: New test.
164 * testsuite/26_numerics/saturation/sub.cc: New test.
165 * testsuite/26_numerics/saturation/version.cc: New test.
167 2023-11-17 Jonathan Wakely <jwakely@redhat.com>
169 * include/std/utility (in_range): Rename _Up parameter to _Res.
171 2023-11-17 Jonathan Wakely <jwakely@redhat.com>
173 * include/bits/out_ptr.h: Add Doxygen comments. Remove a
174 redundant preprocessor condition.
175 * testsuite/20_util/smartptr.adapt/version.cc: New test.
177 2023-11-17 Jonathan Wakely <jwakely@redhat.com>
179 * include/bits/chrono_io.h: Fix Doxygen markup.
181 2023-11-16 Jonathan Wakely <jwakely@redhat.com>
184 * include/std/stacktrace (formatter::format): Format according
186 * include/std/thread (formatter::format): Use _Align_right as
188 * testsuite/19_diagnostics/stacktrace/output.cc: Check
189 fill-and-align handling. Change compile test to run.
190 * testsuite/30_threads/thread/id/output.cc: Check fill-and-align
193 2023-11-16 Jonathan Wakely <jwakely@redhat.com>
196 * include/Makefile.am: Add new header.
197 * include/Makefile.in: Regenerate.
198 * include/bits/out_ptr.h: New file.
199 * include/bits/shared_ptr.h (__is_shared_ptr): Move definition
201 * include/bits/shared_ptr_atomic.h (__is_shared_ptr): ... from
203 * include/bits/shared_ptr_base.h (__shared_count): Declare
204 out_ptr_t as a friend.
205 (_Sp_counted_deleter, __shared_ptr): Likewise.
206 * include/bits/unique_ptr.h (unique_ptr, unique_ptr<T[], D>):
207 Declare out_ptr_t and inout_ptr_t as friends.
208 (__is_unique_ptr): Define new variable template.
209 * include/bits/version.def (out_ptr): Define.
210 * include/bits/version.h: Regenerate.
211 * include/std/memory: Include new header.
212 * testsuite/20_util/smartptr.adapt/inout_ptr/1.cc: New test.
213 * testsuite/20_util/smartptr.adapt/inout_ptr/2.cc: New test.
214 * testsuite/20_util/smartptr.adapt/inout_ptr/shared_ptr_neg.cc:
216 * testsuite/20_util/smartptr.adapt/inout_ptr/void_ptr.cc: New
218 * testsuite/20_util/smartptr.adapt/out_ptr/1.cc: New test.
219 * testsuite/20_util/smartptr.adapt/out_ptr/2.cc: New test.
220 * testsuite/20_util/smartptr.adapt/out_ptr/shared_ptr_neg.cc:
222 * testsuite/20_util/smartptr.adapt/out_ptr/void_ptr.cc: New
225 2023-11-16 Jonathan Wakely <jwakely@redhat.com>
227 * include/bits/algorithmfwd.h: Do not define standard feature
229 * include/bits/align.h: Likewise. Test internal macros instead
231 * include/bits/alloc_traits.h: Likewise.
232 * include/bits/allocator.h: Likewise.
233 * include/bits/atomic_base.h: Likewise.
234 * include/bits/atomic_timed_wait.h: Likewise.
235 * include/bits/atomic_wait.h: Likewise.
236 * include/bits/basic_string.h: Likewise.
237 * include/bits/basic_string.tcc: Likewise.
238 * include/bits/char_traits.h: Likewise.
239 * include/bits/chrono.h: Likewise.
240 * include/bits/cow_string.h: Likewise.
241 * include/bits/forward_list.h: Likewise.
242 * include/bits/hashtable.h: Likewise.
243 * include/bits/ios_base.h: Likewise.
244 * include/bits/memory_resource.h: Likewise.
245 * include/bits/move.h: Likewise.
246 * include/bits/move_only_function.h: Likewise.
247 * include/bits/node_handle.h: Likewise.
248 * include/bits/ptr_traits.h: Likewise.
249 * include/bits/range_access.h: Likewise.
250 * include/bits/ranges_algo.h: Likewise.
251 * include/bits/ranges_cmp.h: Likewise.
252 * include/bits/ranges_util.h: Likewise.
253 * include/bits/semaphore_base.h: Likewise.
254 * include/bits/shared_ptr.h: Likewise.
255 * include/bits/shared_ptr_atomic.h: Likewise.
256 * include/bits/shared_ptr_base.h: Likewise.
257 * include/bits/stl_algo.h: Likewise.
258 * include/bits/stl_algobase.h: Likewise.
259 * include/bits/stl_function.h: Likewise.
260 * include/bits/stl_iterator.h: Likewise.
261 * include/bits/stl_list.h: Likewise.
262 * include/bits/stl_map.h: Likewise.
263 * include/bits/stl_pair.h: Likewise.
264 * include/bits/stl_queue.h: Likewise.
265 * include/bits/stl_stack.h: Likewise.
266 * include/bits/stl_tree.h: Likewise.
267 * include/bits/stl_uninitialized.h: Likewise.
268 * include/bits/stl_vector.h: Likewise.
269 * include/bits/unique_ptr.h: Likewise.
270 * include/bits/unordered_map.h: Likewise.
271 * include/bits/uses_allocator_args.h: Likewise.
272 * include/bits/utility.h: Likewise.
273 * include/bits/erase_if.h: Add comment.
274 * include/std/algorithm: Define standard feature test macros
276 * include/std/atomic: Likewise.
277 * include/std/array: Likewise.
278 * include/std/chrono: Likewise.
279 * include/std/condition_variable: Likewise.
280 * include/std/deque: Likewise.
281 * include/std/format: Likewise.
282 * include/std/functional: Likewise.
283 * include/std/forward_list: Likewise.
284 * include/std/ios: Likewise.
285 * include/std/iterator: Likewise.
286 * include/std/list: Likewise.
287 * include/std/map: Likewise.
288 * include/std/memory: Likewise.
289 * include/std/numeric: Likewise.
290 * include/std/queue: Likewise.
291 * include/std/ranges: Likewise.
292 * include/std/regex: Likewise.
293 * include/std/set: Likewise.
294 * include/std/stack: Likewise.
295 * include/std/stop_token: Likewise.
296 * include/std/string: Likewise.
297 * include/std/string_view:
298 * include/std/tuple: Likewise.
299 * include/std/unordered_map:
300 * include/std/unordered_set:
301 * include/std/utility: Likewise.
302 * include/std/vector: Likewise.
303 * include/std/scoped_allocator: Query internal macros instead of
306 2023-11-16 Jonathan Wakely <jwakely@redhat.com>
308 * testsuite/18_support/byte/requirements.cc: Disable PCH.
309 * testsuite/18_support/destroying_delete.cc: Likewise.
310 * testsuite/18_support/source_location/1.cc: Likewise.
311 * testsuite/18_support/source_location/version.cc: Likewise.
312 * testsuite/18_support/type_info/constexpr.cc: Likewise.
313 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
315 * testsuite/19_diagnostics/stacktrace/output.cc: Likewise.
316 * testsuite/19_diagnostics/stacktrace/synopsis.cc: Likewise.
317 * testsuite/19_diagnostics/stacktrace/version.cc: Likewise.
318 * testsuite/20_util/addressof/requirements/constexpr.cc:
320 * testsuite/20_util/allocator_traits/header-2.cc: Likewise.
321 * testsuite/20_util/allocator_traits/header.cc: Likewise.
322 * testsuite/20_util/as_const/1.cc: Likewise. Likewise.
323 * testsuite/20_util/bitset/cons/constexpr_c++23.cc: Likewise.
324 * testsuite/20_util/bitset/version.cc: Likewise.
325 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc:
327 * testsuite/20_util/duration_cast/rounding.cc: Likewise.
328 * testsuite/20_util/enable_shared_from_this/members/weak_from_this.cc:
330 * testsuite/20_util/exchange/constexpr.cc: Likewise.
331 * testsuite/20_util/expected/synopsis.cc: Likewise.
332 * testsuite/20_util/expected/version.cc: Likewise.
333 * testsuite/20_util/function_objects/bind_front/1.cc: Likewise.
334 * testsuite/20_util/function_objects/bind_front/2.cc: Likewise.
335 * testsuite/20_util/function_objects/invoke/3.cc: Likewise.
336 * testsuite/20_util/function_objects/invoke/4.cc: Likewise.
337 * testsuite/20_util/function_objects/invoke/constexpr.cc:
339 * testsuite/20_util/function_objects/invoke/version.cc:
341 * testsuite/20_util/function_objects/searchers.cc: Likewise.
342 * testsuite/20_util/integer_comparisons/1.cc: Likewise.
343 * testsuite/20_util/integer_comparisons/2.cc: Likewise.
344 * testsuite/20_util/is_bounded_array/value.cc: Likewise.
345 * testsuite/20_util/is_layout_compatible/value.cc: Likewise.
346 * testsuite/20_util/is_layout_compatible/version.cc: Likewise.
347 * testsuite/20_util/is_nothrow_swappable/requirements/explicit_instantiation.cc:
349 * testsuite/20_util/is_nothrow_swappable/requirements/typedefs.cc:
351 * testsuite/20_util/is_nothrow_swappable/value.cc: Likewise.
352 * testsuite/20_util/is_nothrow_swappable/value.h: Likewise.
353 * testsuite/20_util/is_nothrow_swappable_with/requirements/explicit_instantiation.cc:
354 Remove redundant checks already tested elsewhere.
355 * testsuite/20_util/is_nothrow_swappable_with/requirements/typedefs.cc:
357 * testsuite/20_util/is_nothrow_swappable_with/value.cc: Disable
359 * testsuite/20_util/is_pointer_interconvertible/value.cc:
361 * testsuite/20_util/is_pointer_interconvertible/version.cc:
363 * testsuite/20_util/is_scoped_enum/value.cc: Likewise.
364 * testsuite/20_util/is_scoped_enum/version.cc: Likewise.
365 * testsuite/20_util/is_swappable/requirements/explicit_instantiation.cc:
366 Remove redundant checks already tested elsewhere.
367 * testsuite/20_util/is_swappable/requirements/typedefs.cc:
368 Remove redundant checks already tested elsewhere.
369 * testsuite/20_util/is_swappable/value.cc: Disable PCH.
370 * testsuite/20_util/is_swappable/value.h: Reorder headers.
371 * testsuite/20_util/is_swappable_with/requirements/explicit_instantiation.cc:
372 Remove redundant checks already tested elsewhere.
373 * testsuite/20_util/is_swappable_with/requirements/typedefs.cc:
374 Remove redundant checks already tested elsewhere.
375 * testsuite/20_util/is_swappable_with/value.cc: Disable PCH.
376 * testsuite/20_util/is_unbounded_array/value.cc: Likewise.
377 * testsuite/20_util/move_only_function/cons.cc: Likewise.
378 * testsuite/20_util/move_only_function/version.cc: Likewise.
379 * testsuite/20_util/optional/monadic/and_then.cc: Likewise.
380 * testsuite/20_util/optional/requirements.cc: Likewise.
381 * testsuite/20_util/optional/version.cc: Likewise.
382 * testsuite/20_util/owner_less/void.cc: Likewise.
383 * testsuite/20_util/reference_from_temporary/value.cc: Likewise.
384 * testsuite/20_util/reference_from_temporary/version.cc:
386 * testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc:
388 * testsuite/20_util/shared_ptr/creation/array.cc: Likewise.
389 * testsuite/20_util/shared_ptr/creation/overwrite.cc: Likewise.
390 * testsuite/20_util/shared_ptr/creation/version.cc: Likewise.
391 * testsuite/20_util/time_point_cast/rounding.cc: Likewise.
392 * testsuite/20_util/to_chars/constexpr.cc: Likewise.
393 * testsuite/20_util/to_chars/result.cc: Likewise.
394 * testsuite/20_util/to_chars/version.cc: Likewise.
395 * testsuite/20_util/to_underlying/1.cc: Likewise.
396 * testsuite/20_util/to_underlying/version.cc: Likewise.
397 * testsuite/20_util/tuple/apply/1.cc: Likewise.
398 * testsuite/20_util/tuple/cons/constexpr_allocator_arg_t.cc:
400 * testsuite/20_util/tuple/make_from_tuple/1.cc: Likewise.
401 * testsuite/20_util/tuple/p2321r2.cc: Likewise.
402 * testsuite/20_util/tuple/tuple_element_t.cc: Likewise.
403 * testsuite/20_util/unique_ptr/cons/constexpr_c++20.cc:
405 * testsuite/20_util/unique_ptr/creation/for_overwrite.cc:
407 * testsuite/20_util/unreachable/1.cc: Likewise.
408 * testsuite/20_util/unreachable/version.cc: Likewise.
409 * testsuite/20_util/unwrap_reference/1.cc: Likewise.
410 * testsuite/20_util/unwrap_reference/3.cc: Likewise.
411 * testsuite/20_util/variant/constexpr.cc: Likewise.
412 * testsuite/20_util/variant/version.cc: Likewise.
413 * testsuite/20_util/variant/visit_inherited.cc: Likewise.
414 * testsuite/20_util/void_t/1.cc: Likewise.
415 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
417 * testsuite/21_strings/basic_string/cons/char/constexpr.cc:
419 * testsuite/21_strings/basic_string/cons/wchar_t/constexpr.cc:
421 * testsuite/21_strings/basic_string/erasure.cc: Likewise.
422 * testsuite/21_strings/basic_string/numeric_conversions/char/to_string_float.cc:
424 * testsuite/21_strings/basic_string/numeric_conversions/version.cc:
426 * testsuite/21_strings/basic_string/version.cc: Likewise.
427 * testsuite/21_strings/basic_string_view/operations/contains/char.cc:
429 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
431 * testsuite/21_strings/basic_string_view/operations/copy/char/constexpr.cc:
433 * testsuite/21_strings/char_traits/requirements/constexpr_functions_c++17.cc:
435 * testsuite/21_strings/char_traits/requirements/constexpr_functions_c++20.cc:
437 * testsuite/21_strings/char_traits/requirements/version.cc:
439 * testsuite/23_containers/array/comparison_operators/constexpr.cc:
441 * testsuite/23_containers/array/creation/1.cc: Likewise.
442 * testsuite/23_containers/array/creation/2.cc: Likewise.
443 * testsuite/23_containers/array/element_access/constexpr_c++17.cc:
445 * testsuite/23_containers/array/requirements/constexpr_fill.cc:
447 * testsuite/23_containers/array/requirements/constexpr_iter.cc:
449 * testsuite/23_containers/deque/erasure.cc: Likewise.
450 * testsuite/23_containers/forward_list/erasure.cc: Likewise.
451 * testsuite/23_containers/list/erasure.cc: Likewise.
452 * testsuite/23_containers/map/erasure.cc: Likewise.
453 * testsuite/23_containers/queue/cons_from_iters.cc: Likewise.
454 * testsuite/23_containers/set/erasure.cc: Likewise.
455 * testsuite/23_containers/span/1.cc: Likewise.
456 * testsuite/23_containers/span/2.cc: Likewise.
457 * testsuite/23_containers/stack/cons_from_iters.cc: Likewise.
458 * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
459 * testsuite/23_containers/unordered_map/operations/1.cc:
461 * testsuite/23_containers/unordered_set/erasure.cc: Likewise.
462 * testsuite/23_containers/unordered_set/operations/1.cc:
464 * testsuite/23_containers/vector/cons/constexpr.cc: Likewise.
465 * testsuite/23_containers/vector/erasure.cc: Likewise.
466 * testsuite/23_containers/vector/requirements/version.cc:
468 * testsuite/24_iterators/insert_iterator/constexpr.cc: Likewise.
469 * testsuite/25_algorithms/clamp/constexpr.cc: Likewise.
470 * testsuite/25_algorithms/clamp/requirements/explicit_instantiation/1.cc:
471 Remove redundant checks already tested elsewhere.
472 * testsuite/25_algorithms/constexpr_macro.cc: Likewise.
473 * testsuite/25_algorithms/cpp_lib_constexpr.cc: Likewise.
474 * testsuite/25_algorithms/fold_left/1.cc: Likewise.
475 * testsuite/25_algorithms/pstl/feature_test-2.cc: Likewise.
476 * testsuite/25_algorithms/pstl/feature_test-3.cc: Likewise.
477 * testsuite/25_algorithms/pstl/feature_test-4.cc: Likewise.
478 * testsuite/25_algorithms/pstl/feature_test-5.cc: Likewise.
479 * testsuite/25_algorithms/pstl/feature_test.cc: Likewise.
480 * testsuite/26_numerics/bit/bit.byteswap/byteswap.cc: Likewise.
481 * testsuite/26_numerics/bit/bit.byteswap/version.cc: Likewise.
482 * testsuite/26_numerics/bit/bit.cast/bit_cast.cc: Likewise.
483 * testsuite/26_numerics/bit/bit.cast/version.cc: Likewise.
484 * testsuite/26_numerics/bit/header-2.cc: Likewise.
485 * testsuite/26_numerics/bit/header.cc: Likewise.
486 * testsuite/26_numerics/complex/1.cc: Likewise.
487 * testsuite/26_numerics/complex/2.cc: Likewise.
488 * testsuite/26_numerics/endian/2.cc: Likewise.
489 * testsuite/26_numerics/endian/3.cc: Likewise.
490 * testsuite/26_numerics/gcd/1.cc: Likewise.
491 * testsuite/26_numerics/lcm/1.cc: Likewise.
492 * testsuite/26_numerics/lerp/1.cc: Likewise.
493 * testsuite/26_numerics/lerp/version.cc: Likewise.
494 * testsuite/26_numerics/midpoint/integral.cc: Likewise.
495 * testsuite/26_numerics/midpoint/version.cc: Likewise.
496 * testsuite/26_numerics/numbers/1.cc: Likewise.
497 * testsuite/26_numerics/numbers/2.cc: Likewise.
498 * testsuite/27_io/basic_filebuf/native_handle/char/1.cc:
500 * testsuite/27_io/basic_filebuf/native_handle/version.cc:
502 * testsuite/27_io/basic_ofstream/open/char/noreplace.cc:
504 * testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc:
506 * testsuite/27_io/basic_syncbuf/1.cc: Likewise.
507 * testsuite/27_io/basic_syncbuf/2.cc: Likewise.
508 * testsuite/27_io/basic_syncstream/1.cc: Likewise.
509 * testsuite/27_io/basic_syncstream/2.cc: Likewise.
510 * testsuite/27_io/spanstream/1.cc: Likewise.
511 * testsuite/27_io/spanstream/version.cc: Likewise.
512 * testsuite/29_atomics/atomic/cons/value_init.cc: Likewise.
513 * testsuite/29_atomics/atomic/lock_free_aliases.cc: Likewise.
514 * testsuite/29_atomics/atomic/wait_notify/1.cc: Likewise.
515 * testsuite/29_atomics/atomic/wait_notify/2.cc: Likewise.
516 * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc:
518 * testsuite/29_atomics/headers/stdatomic.h/version.cc: Likewise.
519 * testsuite/30_threads/barrier/1.cc: Likewise.
520 * testsuite/30_threads/barrier/2.cc: Likewise.
521 * testsuite/30_threads/condition_variable_any/stop_token/1.cc:
523 * testsuite/30_threads/condition_variable_any/stop_token/2.cc:
525 * testsuite/30_threads/jthread/1.cc: Likewise.
526 * testsuite/30_threads/jthread/version.cc: Likewise.
527 * testsuite/30_threads/latch/1.cc: Likewise.
528 * testsuite/30_threads/latch/2.cc: Likewise.
529 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc:
531 * testsuite/30_threads/semaphore/1.cc: Likewise.
532 * testsuite/30_threads/semaphore/2.cc: Likewise.
533 * testsuite/30_threads/stop_token/1.cc: Likewise.
534 * testsuite/30_threads/stop_token/2.cc: Likewise.
535 * testsuite/experimental/feat-char8_t.cc: Likewise.
536 * testsuite/experimental/iterator/ostream_joiner.cc: Likewise.
537 * testsuite/experimental/numeric/gcd.cc: Likewise.
538 * testsuite/experimental/scopeguard/uniqueres.cc: Likewise.
539 * testsuite/std/concepts/1.cc: Likewise.
540 * testsuite/std/concepts/2.cc: Likewise.
541 * testsuite/std/ranges/adaptors/as_const/1.cc: Likewise.
542 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Likewise.
543 * testsuite/std/ranges/adaptors/chunk/1.cc: Likewise.
544 * testsuite/std/ranges/adaptors/chunk_by/1.cc: Likewise.
545 * testsuite/std/ranges/adaptors/enumerate/1.cc: Likewise.
546 * testsuite/std/ranges/adaptors/join_with/1.cc: Likewise.
547 * testsuite/std/ranges/adaptors/slide/1.cc: Likewise.
548 * testsuite/std/ranges/adaptors/stride/1.cc: Likewise.
549 * testsuite/std/ranges/cartesian_product/1.cc: Likewise.
550 * testsuite/std/ranges/headers/ranges/synopsis.cc: Likewise.
551 * testsuite/std/ranges/repeat/1.cc: Likewise.
552 * testsuite/std/ranges/version_c++23.cc: Likewise.
553 * testsuite/std/ranges/zip/1.cc: Likewise.
554 * testsuite/std/time/syn_c++20.cc: Likewise.
555 * testsuite/experimental/feat-cxx14.cc: Likewise. Include
556 <algorithm> and <iterator>.
557 * testsuite/23_containers/array/tuple_interface/get_neg.cc:
558 Adjust dg-error line numbers.
560 2023-11-16 Jonathan Wakely <jwakely@redhat.com>
562 * include/bits/version.def (stds): Use >= 202100 for C++23
564 * include/bits/version.h: Regenerate.
565 * include/std/thread: Use > C++20 instead of >= C++23 for
566 __cplusplus condition.
568 2023-11-16 Jonathan Wakely <jwakely@redhat.com>
570 * include/std/istream (__rvalue_stream_extraction_t): Test
571 __cpp_concepts instead of __cpp_lib_concepts.
572 * include/std/ostream (__derived_from_ios_base): Likewise.
573 (__rvalue_stream_insertion_t): Likewise.
575 2023-11-15 Jonathan Wakely <jwakely@redhat.com>
578 * python/libstdcxx/v6/xmethods.py (DequeWorkerBase.index):
579 Correctly handle unused capacity at the start of the first node.
580 * testsuite/libstdc++-xmethods/deque.cc: Check index operator
581 when elements have been removed from the front.
583 2023-11-15 Jonathan Wakely <jwakely@redhat.com>
585 * include/std/stacktrace (basic_stacktrace::at): Fix class name
586 in exception message.
587 * testsuite/19_diagnostics/stacktrace/hash.cc: Do not fail if
588 current() returns a non-empty stacktrace.
590 2023-11-15 Alexandre Oliva <oliva@gnu.org>
593 2023-11-15 Alexandre Oliva <oliva@adacore.com>
595 * include/bits/stl_bvector.h (_GLIBCXX_ALWAYS_INLINE): Undef.
597 2023-11-15 Alexandre Oliva <oliva@adacore.com>
599 * include/bits/stl_bvector.h (_GLIBCXX_ALWAYS_INLINE): Undef.
601 2023-11-14 Cassio Neri <cassio.neri@gmail.com>
603 * include/std/chrono (operator-(const weekday&, const weekday&)):
606 2023-11-14 Cassio Neri <cassio.neri@gmail.com>
608 * include/std/chrono (weekday::_S_from_days): Fix UB.
609 * testsuite/std/time/weekday/1.cc: Add test for overflow.
611 2023-11-14 Cassio Neri <cassio.neri@gmail.com>
613 * include/std/chrono (year::is_leap): Clear code.
615 2023-11-14 Cassio Neri <cassio.neri@gmail.com>
617 * include/std/chrono (year_month_day_last::day): Remove &1.
619 2023-11-14 Jonathan Wakely <jwakely@redhat.com>
621 * include/std/charconv (__from_chars_pow2_base): Convert base to
622 unsigned for call to __countr_zero.
623 (__from_chars_alnum): Likewise for call to __bit_width.
625 2023-11-14 Jonathan Wakely <jwakely@redhat.com>
628 * include/std/stacktrace (hash<basic_stacktrace<Alloc>>): Fix
629 type of hash functio nfor entries.
630 * testsuite/19_diagnostics/stacktrace/hash.cc: New test.
632 2023-11-14 Jonathan Wakely <jwakely@redhat.com>
635 * python/libstdcxx/v6/xmethods.py (DequeWorkerBase.size): Fix
636 calculation to use _M_start._M_cur.
637 * testsuite/libstdc++-xmethods/deque.cc: Check failing cases.
639 2023-11-13 Arsen Arsenović <arsen@aarsen.me>
641 * configure: Regenerate.
643 2023-11-13 Jonathan Wakely <jwakely@redhat.com>
645 * testsuite/std/time/clock/file/io.cc: Double timeout using
647 * testsuite/std/time/clock/gps/io.cc: Likewise.
648 * testsuite/std/time/clock/local/io.cc: Likewise.
649 * testsuite/std/time/clock/system/io.cc: Likewise.
650 * testsuite/std/time/clock/tai/io.cc: Likewise.
651 * testsuite/std/time/clock/utc/io.cc: Likewise.
653 2023-11-13 Jonathan Wakely <jwakely@redhat.com>
656 * include/std/optional (_Optional_payload_base::_M_reset): Set
657 _M_engaged to false unconditionally.
659 2023-11-11 Jonathan Wakely <jwakely@redhat.com>
662 * include/bits/stl_bvector.h (_M_assume_normalized): Do not use
663 statement form of assume attribute for Clang.
665 2023-11-11 Jonathan Wakely <jwakely@redhat.com>
667 * include/std/string_view (operator==, operator<=>): Remove
668 redundant overloads (LWG 3950).
670 2023-11-11 Jonathan Wakely <jwakely@redhat.com>
672 * testsuite/26_numerics/headers/complex.h/std_c++11.h: Moved to...
673 * testsuite/26_numerics/headers/complex.h/std_c++11.cc: ...here.
674 * testsuite/26_numerics/headers/complex.h/std_c++98.h: Moved to...
675 * testsuite/26_numerics/headers/complex.h/std_c++98.cc: ...here.
676 Check macro first and then #undef.
677 * testsuite/26_numerics/headers/complex.h/std_gnu++11.h: Moved to...
678 * testsuite/26_numerics/headers/complex.h/std_gnu++11.cc: ...here.
680 2023-11-11 Jonathan Wakely <jwakely@redhat.com>
683 * include/bits/utility.h (integer_sequence): Add static_assert.
684 * testsuite/20_util/integer_sequence/112473.cc: New test.
686 2023-11-11 Jonathan Wakely <jwakely@redhat.com>
688 * testsuite/20_util/pair/dangling_ref.cc: Add hosted effective
689 target for specifiers using c++17_down.
691 2023-11-11 Jonathan Wakely <jwakely@redhat.com>
693 * include/bits/shared_ptr_atomic.h (atomic_is_lock_free)
694 (atomic_load_explicit, atomic_load, atomic_store_explicit)
695 (atomic_store, atomic_exchange_explicit, atomic_exchange)
696 (atomic_compare_exchange_strong, atomic_compare_exchange_weak)
697 (atomic_compare_exchange_strong_explicit)
698 (atomic_compare_exchange_weak_explicit): Add deprecated
699 attribute for C++20 and later.
700 * testsuite/20_util/shared_ptr/atomic/1.cc: Suppress deprecated
702 * testsuite/20_util/shared_ptr/atomic/2.cc: Likewise.
703 * testsuite/20_util/shared_ptr/atomic/3.cc: Likewise.
704 * testsuite/29_atomics/atomic/lwg3220.cc: Likewise.
706 2023-11-11 Jonathan Wakely <jwakely@redhat.com>
708 * include/bits/std_mutex.h (lock_guard): Add [[nodiscard]]
709 attribute to constructors.
710 * include/bits/unique_lock.h (unique_lock): Likewise.
711 * include/std/mutex (scoped_lock, scoped_lock<Mutex>): Likewise.
712 * testsuite/30_threads/lock_guard/cons/nodiscard.cc: New test.
713 * testsuite/30_threads/scoped_lock/cons/nodiscard.cc: New test.
714 * testsuite/30_threads/unique_lock/cons/nodiscard.cc: New test.
716 2023-11-11 Jonathan Wakely <jwakely@redhat.com>
718 * include/std/span (span, as_bytes, as_writable_bytes): Add
719 [[nodiscard]] attribute on all non-void functions.
720 * testsuite/23_containers/span/back_assert_neg.cc: Suppress
722 * testsuite/23_containers/span/back_neg.cc: Likewise.
723 * testsuite/23_containers/span/first_2_assert_neg.cc: Likewise.
724 * testsuite/23_containers/span/first_assert_neg.cc: Likewise.
725 * testsuite/23_containers/span/first_neg.cc: Likewise.
726 * testsuite/23_containers/span/front_assert_neg.cc: Likewise.
727 * testsuite/23_containers/span/front_neg.cc: Likewise.
728 * testsuite/23_containers/span/index_op_assert_neg.cc: Likewise.
729 * testsuite/23_containers/span/index_op_neg.cc: Likewise.
730 * testsuite/23_containers/span/last_2_assert_neg.cc: Likewise.
731 * testsuite/23_containers/span/last_assert_neg.cc: Likewise.
732 * testsuite/23_containers/span/last_neg.cc: Likewise.
733 * testsuite/23_containers/span/subspan_2_assert_neg.cc:
735 * testsuite/23_containers/span/subspan_3_assert_neg.cc:
737 * testsuite/23_containers/span/subspan_4_assert_neg.cc:
739 * testsuite/23_containers/span/subspan_5_assert_neg.cc:
741 * testsuite/23_containers/span/subspan_6_assert_neg.cc:
743 * testsuite/23_containers/span/subspan_assert_neg.cc: Likewise.
744 * testsuite/23_containers/span/subspan_neg.cc: Likewise.
745 * testsuite/23_containers/span/nodiscard.cc: New test.
747 2023-11-11 Jonathan Wakely <jwakely@redhat.com>
750 * config.h.in: Regenerate.
751 * configure: Regenerate.
752 * linkage.m4 (GLIBCXX_MAYBE_UNDERSCORED_FUNCS): Remove.
753 (GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_1): Do not check for _foo.
754 (GLIBCXX_CHECK_MATH_DECLS_AND_LINKAGES_1): Likewise.
755 (GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_2): Likewise.
756 (GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_3): Likewise.
757 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_2): Do not use
758 GLIBCXX_MAYBE_UNDERSCORED_FUNCS.
760 2023-11-11 Nathaniel Shead <nathanieloshead@gmail.com>
763 * include/c_global/cmath (acosf, acosl, asinf, asinl, atanf)
764 (atanl, atan2f, atan2l, ceilf, ceill, cosf, cosl, coshf, coshl)
765 (expf, expl, fabsf, fabsl, floorf, floorl, fmodf, fmodl, frexpf)
766 (frexpl, ldexpf, ldexpl, logf, logl, log10f, log10l, modff)
767 (modfl, powf, powl, sinf, sinl, sinhf, sinhl, sqrtf, sqrtl, tanf)
768 (tanl, tanhf, tanhl): Add using-declarations in namespace std.
769 * testsuite/26_numerics/headers/cmath/equivalent_functions.cc:
771 * testsuite/26_numerics/headers/cmath/functions_std_c++17.cc:
772 Add checks for existence of above names.
774 2023-11-09 Arsen Arsenović <arsen@aarsen.me>
776 * testsuite/20_util/scoped_allocator/noexcept.cc: Mark as
779 2023-11-09 Arsen Arsenović <arsen@aarsen.me>
781 * include/bits/memoryfwd.h: Remove HOSTED check around allocator
782 and its specializations.
784 2023-11-09 Patrick Palka <ppalka@redhat.com>
787 * include/std/ranges (__detail::__box<_Tp>::operator*): Define
788 && overloads as well.
789 (__detail::__take_of_repeat_view): Forward __r when accessing
791 (__detail::__drop_of_repeat_view): Likewise.
792 * testsuite/std/ranges/repeat/1.cc (test07): New test.
794 2023-11-09 François Dumont <fdumont@gcc.gnu.org>
796 * include/bits/hashtable_policy.h (_RehashStateGuard): New.
797 (_Insert_base<>::_M_insert_range(_IIt, _IIt, const _NodeGet&, false_type)):
799 * include/bits/hashtable.h (__rehash_guard_t): New.
800 (__rehash_state): Remove.
802 (_M_rehash_aux): Rename into _M_rehash.
803 (_M_assign_elements, _M_insert_unique_node, _M_insert_multi_node): Adapt.
806 2023-11-09 François Dumont <fdumont@gcc.gnu.org>
808 * include/bits/hashtable_policy.h
809 (struct _NodePtrGuard<_HashtableAlloc, _NodePtr>): New.
810 (_ReuseAllocNode::operator()(_Args&&...)): Use latter to guard allocated node
811 pointer while constructing in place the value_type instance.
813 2023-11-09 Alexandre Oliva <oliva@adacore.com>
816 * include/bits/stl_bvector.h (_Bit_iterator_base): Add
817 _M_assume_normalized member function. Call it in _M_bump_up,
818 _M_bump_down, _M_incr, operator==, operator<=>, operator<, and
820 (_Bit_iterator): Also call it in operator*.
821 (_Bit_const_iterator): Likewise.
823 2023-11-07 François Dumont <fdumont@gcc.gnu.org>
825 * include/bits/hashtable_policy.h
826 (_Hashtable_alloc<>::_M_allocate_node): Add missing call to node destructor
827 on construct exception.
829 2023-11-07 Richard Biener <rguenther@suse.de>
832 * src/c++98/locale.cc (locale::facet::_S_initialize_once):
833 Check whether _S_c_locale is already initialized.
834 (locale::facet::_S_get_c_locale): Always perform non-threadsafe
835 init when threadsafe init failed.
837 2023-11-06 Ian Lance Taylor <iant@golang.org>
839 PR libbacktrace/111315
840 PR libbacktrace/112263
841 * acinclude.m4: Set -D_GNU_SOURCE in BACKTRACE_CPPFLAGS and when
842 grepping link.h for dl_iterate_phdr.
843 * configure: Regenerate.
845 2023-11-06 Jonathan Wakely <jwakely@redhat.com>
847 * include/std/expected (expected::and_then, expected::or_else):
848 Add string literals to static assertions.
849 * include/std/optional (optional::and_then, optional::or_else):
852 2023-11-04 Feng Jisen <J1senn@outlook.com>
854 * include/bits/utility.h (_Nth_type): Remove redundant partial
857 2023-11-04 Jonathan Wakely <jwakely@redhat.com>
860 * include/std/system_error (system_error::system_error): Group
861 arguments so that concatenation can reuse rvalue's capacity.
862 * src/c++11/system_error.cc (strerror_string): New function.
863 [_GLIBCXX_HAVE_STRERROR_R] (use_strerror_result): New functions.
864 (generic_error_category::message): Use strerror_string.
865 (system_error_category::message): Likewise.
867 2023-11-04 Jonathan Wakely <jwakely@redhat.com>
869 * doc/xml/manual/appendix_contributing.xml: Replace example that
871 * doc/html/manual/source_code_style.html: Regenerate.
873 2023-11-02 Jonathan Wakely <jwakely@redhat.com>
876 * include/std/string_view (string_view::remove_suffix): Add
878 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/debug.cc:
880 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/debug.cc:
883 2023-11-02 Jonathan Wakely <jwakely@redhat.com>
885 * acinclude.m4 (GLIBCXX_ENABLE_C99): Fix snprintf checks.
886 * configure: Regenerate.
888 2023-10-30 François Dumont <fdumont@gcc.gnu.org>
890 * config/abi/pre/gnu-versioned-namespace.ver: Add comment on recently
891 added emul TLS symbols.
893 2023-10-30 François Dumont <fdumont@gcc.gnu.org>
895 * src/experimental/contract.cc
896 [_GLIBCXX_INLINE_VERSION](handle_contract_violation): Rework comment.
897 Remove weak attribute.
899 2023-10-29 François Dumont <fdumont@gcc.gnu.org>
901 * config/abi/pre/gnu-versioned-namespace.ver: Add missing emul TLS
904 2023-10-29 François Dumont <fdumont@gcc.gnu.org>
906 * src/experimental/contract.cc
907 [_GLIBCXX_INLINE_VERSION](handle_contract_violation): Provide symbol
908 without version namespace decoration for gcc.
910 2023-10-26 Jonathan Wakely <jwakely@redhat.com>
913 * include/std/shared_mutex (shared_lock::unlock): Change errc
914 constant to operation_not_permitted.
915 * testsuite/30_threads/shared_lock/locking/112089.cc: New test.
917 2023-10-26 Jonathan Wakely <jwakely@redhat.com>
919 * testsuite/20_util/duration/io.cc: Double timeout using
921 * testsuite/std/time/day/io.cc: Likewise.
922 * testsuite/std/time/format.cc: Likewise.
923 * testsuite/std/time/hh_mm_ss/io.cc: Likewise.
924 * testsuite/std/time/month/io.cc: Likewise.
925 * testsuite/std/time/month_day/io.cc: Likewise.
926 * testsuite/std/time/month_day_last/io.cc: Likewise.
927 * testsuite/std/time/month_weekday/io.cc: Likewise.
928 * testsuite/std/time/month_weekday_last/io.cc: Likewise.
929 * testsuite/std/time/weekday/io.cc: Likewise.
930 * testsuite/std/time/weekday_indexed/io.cc: Likewise.
931 * testsuite/std/time/weekday_last/io.cc: Likewise.
932 * testsuite/std/time/year/io.cc: Likewise.
933 * testsuite/std/time/year_month/io.cc: Likewise.
934 * testsuite/std/time/year_month_day/io.cc: Likewise.
935 * testsuite/std/time/year_month_day_last/io.cc: Likewise.
936 * testsuite/std/time/year_month_weekday/io.cc: Likewise.
937 * testsuite/std/time/year_month_weekday_last/io.cc: Likewise.
938 * testsuite/std/time/zoned_time/io.cc: Likewise.
940 2023-10-25 Jonathan Wakely <jwakely@redhat.com>
943 * src/libbacktrace/Makefile.am: Add -prefer-pic to libtool
945 * src/libbacktrace/Makefile.in: Regenerate.
947 2023-10-24 Paul M. Bendixen <paulbendixen@gmail.com>
949 * include/Makefile.am: Move cstdarg, cstdalign and cstdbool to
951 * include/Makefile.in: Regenerate.
953 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
955 * configure: Regenerate.
956 * configure.ac: Handle Darwin rpaths.
957 * src/Makefile.am: Handle Darwin rpaths.
958 * src/Makefile.in: Regenerate.
960 2023-10-21 Jonathan Wakely <jwakely@redhat.com>
962 * include/bits/basic_string.h (_M_init_local_buf()): New
964 (_M_use_local_data()): Use _M_init_local_buf.
965 (basic_string(), basic_string(const Alloc&))
966 (basic_string(basic_string&&))
967 (basic_string(basic_string&&, const Alloc&)): Use
968 _M_init_local_buf instead of _M_use_local_data().
969 * include/bits/basic_string.tcc (swap(basic_string&))
970 (_M_construct(InIter, InIter, input_iterator_tag))
971 (_M_construct(InIter, InIter, forward_iterator_tag))
972 (_M_construct(size_type, CharT), reserve()): Likewise.
974 2023-10-21 Benjamin Brock <brock@cs.berkeley.edu>
976 * include/std/ranges (zip_view, adjacent_view): Implement
977 workaround for LLVM-61763.
979 2023-10-21 Dimitrij Mijoski <dmjpp@hotmail.com>
981 * testsuite/22_locale/codecvt/codecvt_unicode.h: Test length()
983 2023-10-21 Jonathan Wakely <jwakely@redhat.com>
985 * include/bits/fs_dir.h (operator==(default_sentinel_t)): Fix
988 2023-10-20 Marek Polacek <polacek@redhat.com>
991 * include/std/charconv (from_chars): Add explicit casts.
993 2023-10-19 François Dumont <fdumont@gcc.gnu.org>
995 * include/bits/hashtable_policy.h
996 (_Hash_code_base::_M_hash_code(const _Hash&, const _Hash_node_value<>&)): Remove.
997 (_Hash_code_base::_M_hash_code<_H2>(const _H2&, const _Hash_node_value<>&)): Remove.
998 * include/bits/hashtable.h
999 (_M_src_hash_code<_H2>(const _H2&, const key_type&, const __node_value_type&)): New.
1000 (_M_merge_unique<>, _M_merge_multi<>): Use latter.
1001 * testsuite/23_containers/unordered_map/modifiers/merge.cc
1002 (test04, test05, test06): New test cases.
1004 2023-10-13 Jakub Jelinek <jakub@redhat.com>
1006 * testsuite/tr1/8_c_compatibility/cstdio/functions.cc (test01):
1007 Initialize stream to va_arg(ap, FILE*) rather than 0.
1008 * testsuite/tr1/8_c_compatibility/cwchar/functions.cc (test01):
1011 2023-10-13 Hans-Peter Nilsson <hp@axis.com>
1013 * testsuite/29_atomics/atomic/compare_exchange_padding.cc,
1014 testsuite/29_atomics/atomic_flag/clear/1.cc,
1015 testsuite/29_atomics/atomic_flag/cons/value_init.cc,
1016 testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc,
1017 testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc,
1018 testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc,
1019 testsuite/29_atomics/atomic_ref/generic.cc,
1020 testsuite/29_atomics/atomic_ref/integral.cc,
1021 testsuite/29_atomics/atomic_ref/pointer.cc: Replace
1022 dg-require-thread-fence with dg-require-atomic-cmpxchg-word.
1024 2023-10-13 Hans-Peter Nilsson <hp@axis.com>
1026 * testsuite/lib/dg-options.exp (dg-require-atomic-cmpxchg-word):
1028 * testsuite/lib/libstdc++.exp (check_v3_target_atomic_cmpxchg_word):
1031 2023-10-05 François Dumont <fdumont@gcc.gnu.org>
1033 * config/abi/pre/gnu-versioned-namespace.ver: Add missing symbols
1034 for _Float{16,32,64,128,32x,64x,128x}.
1036 2023-10-04 Tom Tromey <tromey@adacore.com>
1038 * python/libstdcxx/v6/printers.py
1039 (StdExpAnyPrinter.__init__): Qualify call to
1042 2023-10-04 Tom Tromey <tromey@adacore.com>
1044 * python/libstdcxx/v6/printers.py: Assume that
1045 _versioned_namespace is non-None.
1046 * python/libstdcxx/v6/xmethods.py (is_specialization_of):
1047 Assume that _versioned_namespace is non-None.
1049 2023-10-04 Tom Tromey <tromey@adacore.com>
1051 * python/libstdcxx/v6/xmethods.py (_versioned_namespace):
1054 2023-09-29 Dimitrij Mijoski <dmjpp@hotmail.com>
1057 * src/c++11/codecvt.cc (read_utf8_code_point): Fix handing of
1058 surrogates in UTF-8.
1059 (ucs4_out): Fix handling of surrogates in UCS-4 -> UTF-8.
1060 (ucs4_in): Fix handling of range with odd number of bytes.
1061 (ucs4_out): Fix handling of surrogates in UCS-4 -> UTF-16.
1062 (ucs2_out): Fix handling of surrogates in UCS-2 -> UTF-16.
1063 (ucs2_in): Fix handling of range with odd number of bytes.
1064 (__codecvt_utf16_base<char16_t>::do_in): Likewise.
1065 (__codecvt_utf16_base<char32_t>::do_in): Likewise.
1066 (__codecvt_utf16_base<wchar_t>::do_in): Likewise.
1067 * testsuite/22_locale/codecvt/codecvt_unicode.cc: Renames, add
1068 tests for codecvt_utf16<char16_t> and codecvt_utf16<char32_t>.
1069 * testsuite/22_locale/codecvt/codecvt_unicode.h: Refactor UTF-8
1070 testing functions for char8_t, add more test cases for errors,
1071 add testing functions for codecvt_utf16.
1072 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc:
1073 Renames, add tests for codecvt_utf16<whchar_t>.
1074 * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc (test06):
1076 * testsuite/22_locale/codecvt/codecvt_unicode_char8_t.cc: New
1079 2023-09-29 Nathaniel Shead <nathanieloshead@gmail.com>
1081 * include/bits/basic_string.h: (basic_string(basic_string&&)):
1082 Activate _M_local_buf when needed.
1083 (basic_string(basic_string&&, const _Alloc&)): Likewise.
1084 * include/bits/basic_string.tcc: (basic_string::swap): Likewise.
1085 * include/std/variant: (__detail::__variant::__construct_n): New.
1086 (__detail::__variant::__emplace): Use __construct_n.
1088 2023-09-28 Tom Tromey <tromey@adacore.com>
1090 * python/libstdcxx/v6/printers.py (Printer.add_version)
1091 (add_one_template_type_printer)
1092 (FilteringTypePrinter.add_one_type_printer): Use Python
1095 2023-09-28 Tom Tromey <tromey@adacore.com>
1097 * python/libstdcxx/v6/printers.py (std_ratio_t_tuple):
1100 2023-09-28 Tom Tromey <tromey@adacore.com>
1102 * python/libstdcxx/v6/printers.py
1103 (StdExpOptionalPrinter.__init__, lookup_node_type):
1104 Remove unused variables.
1106 2023-09-28 Tom Tromey <tromey@adacore.com>
1108 * python/libstdcxx/v6/printers.py: Don't import 'os'.
1109 * python/libstdcxx/v6/__init__.py: Don't import 'gdb'.
1111 2023-09-28 Tom Tromey <tromey@adacore.com>
1113 * python/libstdcxx/v6/printers.py: Use gdb.ValuePrinter
1114 everywhere. Rename members to start with "_".
1116 2023-09-28 Tom Tromey <tromey@adacore.com>
1118 * testsuite/lib/gdb-test.exp (gdb-test): Enable Python
1119 stack traces from gdb.
1121 2023-09-28 Jonathan Wakely <jwakely@redhat.com>
1123 * python/libstdcxx/v6/xmethods.py (is_specialization_of): Define
1125 (ArrayMethodsMatcher, DequeMethodsMatcher)
1126 (ForwardListMethodsMatcher, ListMethodsMatcher)
1127 (VectorMethodsMatcher, AssociativeContainerMethodsMatcher)
1128 (UniquePtrGetWorker, UniquePtrMethodsMatcher)
1129 (SharedPtrSubscriptWorker, SharedPtrMethodsMatcher): Use
1130 is_specialization_of instead of re.match.
1132 2023-09-28 Jonathan Wakely <jwakely@redhat.com>
1134 * python/libstdcxx/v6/printers.py: Break long lines. Use raw
1135 strings for regular expressions. Add whitespace around
1137 (is_member_of_namespace): Use isinstance to check type.
1138 (is_specialization_of): Likewise. Adjust template_name
1139 for versioned namespace instead of duplicating the re.match
1141 (StdExpAnyPrinter._string_types): New static method.
1142 (StdExpAnyPrinter.to_string): Use _string_types.
1144 2023-09-28 Jonathan Wakely <jwakely@redhat.com>
1146 * python/libstdcxx/v6/printers.py: Format docstrings according
1148 * python/libstdcxx/v6/xmethods.py: Likewise.
1150 2023-09-28 Tim Song <t.canens.cpp@gmail.com>
1153 * include/bits/hashtable_policy.h
1154 (_Hash_node_value_base<>::_M_valptr(), _Hash_node_value_base<>::_M_v())
1155 Add [[__gnu__::__always_inline__]].
1157 2023-09-27 Jonathan Wakely <jwakely@redhat.com>
1159 * python/libstdcxx/v6/printers.py (StdChronoTimeZoneRulePrinter):
1160 Fix incorrect number of replacement fields.
1162 2023-09-26 Hans-Peter Nilsson <hp@axis.com>
1164 * testsuite/29_atomics/atomic_flag/cons/value_init.cc: Add
1165 dg-require-thread-fence.
1167 2023-09-25 Patrick Palka <ppalka@redhat.com>
1169 * include/std/charconv (__detail::__integer_to_chars_result_type):
1171 (__detail::__to_chars_16): Use to_chars_result as return type.
1172 (__detail::__to_chars_10): Likewise.
1173 (__detail::__to_chars_8): Likewise.
1174 (__detail::__to_chars_2): Likewise.
1175 (__detail::__to_chars_i): Likewise.
1176 (__detail::__integer_from_chars_result_type): Inline the
1178 (from_chars): ... here. Use __is_standard_integer in the
1179 constraint. Encode constraint as a defaulted non-type template
1180 parameter instead of within the return type.
1182 2023-09-25 John David Anglin <danglin@gcc.gnu.org>
1184 * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.
1186 2023-09-25 Jonathan Wakely <jwakely@redhat.com>
1190 * include/std/array (to_array): Cast memcpy arguments to void*.
1191 * testsuite/23_containers/array/creation/111512.cc: New test.
1193 2023-09-25 Jonathan Wakely <jwakely@redhat.com>
1195 * include/bits/move.h (forward_list): Define for C++23.
1196 * include/bits/version.def (forward_like): Define.
1197 * include/bits/version.h: Regenerate.
1198 * include/std/utility (__glibcxx_want_forward_like): Define.
1199 * testsuite/20_util/forward_like/1.cc: New test.
1200 * testsuite/20_util/forward_like/2_neg.cc: New test.
1201 * testsuite/20_util/forward_like/version.cc: New test.
1203 2023-09-19 Marek Polacek <polacek@redhat.com>
1205 * testsuite/20_util/allocator/105975.cc: Add dg-error.
1207 2023-09-18 Patrick Palka <ppalka@redhat.com>
1211 * testsuite/26_numerics/random/discard_block_engine/cons/seed_seq2.cc:
1212 Make data member seed_seq::called mutable.
1213 * testsuite/26_numerics/random/independent_bits_engine/cons/seed_seq2.cc:
1215 * testsuite/26_numerics/random/linear_congruential_engine/cons/seed_seq2.cc:
1217 * testsuite/26_numerics/random/mersenne_twister_engine/cons/seed_seq2.cc:
1219 * testsuite/26_numerics/random/shuffle_order_engine/cons/seed_seq2.cc:
1221 * testsuite/26_numerics/random/subtract_with_carry_engine/cons/seed_seq2.cc:
1223 * testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/seed_seq2.cc:
1226 2023-09-18 Jonathan Wakely <jwakely@redhat.com>
1228 * doc/xml/manual/status_cxx2020.xml: Tweak P1466R3 status.
1229 * doc/html/manual/status.html: Regenerate.
1231 2023-09-18 Jonathan Wakely <jwakely@redhat.com>
1233 * doc/xml/manual/configure.xml: Use conventional option name.
1234 * doc/xml/manual/status_cxx2020.xml: Update.
1235 * doc/xml/manual/status_cxx2023.xml: Update.
1236 * doc/html/*: Regenerate.
1238 2023-09-18 Jonathan Wakely <jwakely@redhat.com>
1240 * doc/xml/manual/intro.xml: Clarify that building libstdc++
1241 separately from GCC is not supported.
1242 * doc/xml/manual/prerequisites.xml: Note msgfmt prerequisite for
1244 * doc/html/manual/setup.html: Regenerate.
1246 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
1248 * testsuite/29_atomics/atomic_ref/wait_notify.cc: Do not
1249 restrict to pthreads targets.
1250 * testsuite/30_threads/jthread/3.cc: Likewise.
1251 * testsuite/30_threads/semaphore/100806.cc: Likewise.
1252 * testsuite/30_threads/semaphore/try_acquire.cc: Likewise.
1253 * testsuite/30_threads/semaphore/try_acquire_for.cc: Likewise.
1254 * testsuite/30_threads/semaphore/try_acquire_posix.cc: Likewise.
1256 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
1258 * testsuite/18_support/coroutines/95917.cc: Remove dg-options
1260 * testsuite/18_support/coroutines/hash.cc: Likewise.
1261 * testsuite/18_support/coroutines/lwg3460.cc: Likewise.
1262 * testsuite/18_support/destroying_delete.cc: Likewise.
1263 * testsuite/18_support/source_location/1.cc: Likewise.
1264 * testsuite/18_support/source_location/consteval.cc: Likewise.
1265 * testsuite/18_support/source_location/version.cc: Likewise.
1266 * testsuite/19_diagnostics/error_category/operators/three_way.cc:
1268 * testsuite/19_diagnostics/error_code/operators/three_way.cc:
1270 * testsuite/19_diagnostics/error_condition/operators/three_way.cc:
1272 * testsuite/19_diagnostics/stacktrace/output.cc: Likewise.
1273 * testsuite/26_numerics/adjacent_difference/lwg2055.cc:
1275 * testsuite/26_numerics/bit/bit.count/countl_zero.cc: Likewise.
1276 * testsuite/26_numerics/bit/bit.count/countr_one.cc: Likewise.
1277 * testsuite/26_numerics/bit/bit.count/countr_zero.cc: Likewise.
1278 * testsuite/26_numerics/bit/bit.count/popcount.cc: Likewise.
1279 * testsuite/26_numerics/bit/bit.pow.two/bit_ceil.cc: Likewise.
1280 * testsuite/26_numerics/bit/bit.pow.two/has_single_bit.cc:
1282 * testsuite/28_regex/iterators/regex_iterator/lwg3719.cc:
1284 * testsuite/28_regex/iterators/regex_token_iterator/lwg3719.cc:
1286 * testsuite/28_regex/sub_match/compare_c++20.cc: Likewise.
1287 * testsuite/experimental/filesystem/iterators/106201.cc:
1289 * testsuite/experimental/scopeguard/exit.cc: Likewise.
1290 * testsuite/experimental/scopeguard/uniqueres.cc: Likewise.
1292 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
1294 * testsuite/30_threads/barrier/1.cc: Remove dg-options
1296 * testsuite/30_threads/barrier/2.cc: Likewise.
1297 * testsuite/30_threads/barrier/arrive.cc: Likewise.
1298 * testsuite/30_threads/barrier/arrive_and_drop.cc: Likewise.
1299 * testsuite/30_threads/barrier/arrive_and_wait.cc: Likewise.
1300 * testsuite/30_threads/barrier/completion.cc: Likewise.
1301 * testsuite/30_threads/condition_variable/members/clock_neg.cc:
1303 * testsuite/30_threads/condition_variable_any/members/clock_neg.cc:
1305 * testsuite/30_threads/condition_variable_any/stop_token/1.cc:
1307 * testsuite/30_threads/condition_variable_any/stop_token/2.cc:
1309 * testsuite/30_threads/future/members/clock_neg.cc: Likewise.
1310 * testsuite/30_threads/headers/stop_token/synopsis.cc: Likewise.
1311 * testsuite/30_threads/headers/thread/types_std_c++20.cc:
1313 * testsuite/30_threads/jthread/1.cc: Likewise.
1314 * testsuite/30_threads/jthread/100612.cc: Likewise.
1315 * testsuite/30_threads/jthread/95989.cc: Likewise.
1316 * testsuite/30_threads/jthread/jthread.cc: Likewise.
1317 * testsuite/30_threads/jthread/version.cc: Likewise.
1318 * testsuite/30_threads/latch/1.cc: Likewise.
1319 * testsuite/30_threads/latch/2.cc: Likewise.
1320 * testsuite/30_threads/latch/3.cc: Likewise.
1321 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/clock_neg.cc:
1323 * testsuite/30_threads/semaphore/1.cc: Likewise.
1324 * testsuite/30_threads/semaphore/2.cc: Likewise.
1325 * testsuite/30_threads/semaphore/least_max_value_neg.cc:
1327 * testsuite/30_threads/semaphore/try_acquire_until.cc: Likewise.
1328 * testsuite/30_threads/shared_future/members/clock_neg.cc:
1330 * testsuite/30_threads/shared_lock/locking/clock_neg.cc:
1332 * testsuite/30_threads/shared_timed_mutex/try_lock_until/clock_neg.cc:
1334 * testsuite/30_threads/stop_token/1.cc: Likewise.
1335 * testsuite/30_threads/stop_token/2.cc: Likewise.
1336 * testsuite/30_threads/stop_token/stop_callback.cc: Likewise.
1337 * testsuite/30_threads/stop_token/stop_callback/deadlock.cc:
1339 * testsuite/30_threads/stop_token/stop_callback/destructible_neg.cc:
1341 * testsuite/30_threads/stop_token/stop_callback/invocable_neg.cc:
1343 * testsuite/30_threads/stop_token/stop_callback/invoke.cc:
1345 * testsuite/30_threads/stop_token/stop_source.cc: Likewise.
1346 * testsuite/30_threads/stop_token/stop_source/assign.cc:
1348 * testsuite/30_threads/stop_token/stop_token.cc: Likewise.
1349 * testsuite/30_threads/stop_token/stop_token/stop_possible.cc:
1351 * testsuite/30_threads/thread/id/operators_c++20.cc: Likewise.
1352 * testsuite/30_threads/timed_mutex/try_lock_until/clock_neg.cc:
1354 * testsuite/30_threads/unique_lock/locking/clock_neg.cc:
1357 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
1359 * testsuite/27_io/basic_istream/extractors_character/char/lwg2499.cc:
1360 Remove dg-options -std=gnu++2a.
1361 * testsuite/27_io/basic_istream/extractors_character/char/lwg2499_neg.cc:
1363 * testsuite/27_io/basic_istream/extractors_character/wchar_t/lwg2499.cc:
1365 * testsuite/27_io/basic_istream/extractors_character/wchar_t/lwg2499_neg.cc:
1367 * testsuite/27_io/basic_istringstream/cons/char/1.cc: Likewise.
1368 * testsuite/27_io/basic_istringstream/cons/wchar_t/1.cc:
1370 * testsuite/27_io/basic_istringstream/str/char/2.cc: Likewise.
1371 * testsuite/27_io/basic_istringstream/str/wchar_t/2.cc:
1373 * testsuite/27_io/basic_istringstream/view/char/1.cc: Likewise.
1374 * testsuite/27_io/basic_istringstream/view/wchar_t/1.cc:
1376 * testsuite/27_io/basic_ostream/emit/1.cc: Likewise.
1377 * testsuite/27_io/basic_ostream/inserters_character/char/deleted.cc:
1379 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/deleted.cc:
1381 * testsuite/27_io/basic_ostringstream/cons/char/1.cc: Likewise.
1382 * testsuite/27_io/basic_ostringstream/cons/wchar_t/1.cc:
1384 * testsuite/27_io/basic_ostringstream/str/char/3.cc: Likewise.
1385 * testsuite/27_io/basic_ostringstream/str/wchar_t/3.cc:
1387 * testsuite/27_io/basic_ostringstream/view/char/1.cc: Likewise.
1388 * testsuite/27_io/basic_ostringstream/view/wchar_t/1.cc:
1390 * testsuite/27_io/basic_stringbuf/cons/char/2.cc: Likewise.
1391 * testsuite/27_io/basic_stringbuf/cons/wchar_t/2.cc: Likewise.
1392 * testsuite/27_io/basic_stringbuf/str/char/4.cc: Likewise.
1393 * testsuite/27_io/basic_stringbuf/str/wchar_t/4.cc: Likewise.
1394 * testsuite/27_io/basic_stringbuf/view/char/1.cc: Likewise.
1395 * testsuite/27_io/basic_stringbuf/view/wchar_t/1.cc: Likewise.
1396 * testsuite/27_io/basic_stringstream/cons/char/1.cc: Likewise.
1397 * testsuite/27_io/basic_stringstream/cons/char/97719.cc:
1399 * testsuite/27_io/basic_stringstream/cons/wchar_t/1.cc:
1401 * testsuite/27_io/basic_stringstream/str/char/5.cc: Likewise.
1402 * testsuite/27_io/basic_stringstream/str/wchar_t/5.cc.cc:
1404 * testsuite/27_io/basic_stringstream/view/char/1.cc: Likewise.
1405 * testsuite/27_io/basic_stringstream/view/wchar_t/1.cc:
1407 * testsuite/27_io/basic_syncbuf/1.cc: Likewise.
1408 * testsuite/27_io/basic_syncbuf/2.cc: Likewise.
1409 * testsuite/27_io/basic_syncbuf/basic_ops/1.cc: Likewise.
1410 * testsuite/27_io/basic_syncbuf/requirements/types.cc: Likewise.
1411 * testsuite/27_io/basic_syncbuf/sync_ops/1.cc: Likewise.
1412 * testsuite/27_io/basic_syncstream/1.cc: Likewise.
1413 * testsuite/27_io/basic_syncstream/2.cc: Likewise.
1414 * testsuite/27_io/basic_syncstream/basic_ops/1.cc: Likewise.
1415 * testsuite/27_io/basic_syncstream/requirements/types.cc:
1417 * testsuite/27_io/filesystem/iterators/106201.cc: Likewise.
1418 * testsuite/27_io/filesystem/iterators/lwg3719.cc: Likewise.
1419 * testsuite/27_io/filesystem/path/factory/u8path-depr.cc:
1421 * testsuite/27_io/filesystem/path/nonmember/cmp_c++20.cc:
1424 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
1426 * testsuite/26_numerics/accumulate/constexpr.cc: Remove
1427 dg-options -std=gnu++2a.
1428 * testsuite/26_numerics/accumulate/lwg2055.cc: Likewise.
1429 * testsuite/26_numerics/adjacent_difference/constexpr.cc:
1431 * testsuite/26_numerics/bit/bit.cast/105027.cc: Likewise.
1432 * testsuite/26_numerics/bit/bit.cast/bit_cast.cc: Likewise.
1433 * testsuite/26_numerics/bit/bit.cast/version.cc: Likewise.
1434 * testsuite/26_numerics/bit/bit.count/countl_one.cc: Likewise.
1435 * testsuite/26_numerics/bit/bit.pow.two/bit_ceil_neg.cc:
1437 * testsuite/26_numerics/bit/bit.pow.two/bit_floor.cc: Likewise.
1438 * testsuite/26_numerics/bit/bit.pow.two/bit_width.cc: Likewise.
1439 * testsuite/26_numerics/bit/bit.pow.two/lwg3656.cc: Likewise.
1440 * testsuite/26_numerics/bit/bit.rotate/rotl.cc: Likewise.
1441 * testsuite/26_numerics/bit/bit.rotate/rotr.cc: Likewise.
1442 * testsuite/26_numerics/bit/header-2.cc: Likewise.
1443 * testsuite/26_numerics/bit/header.cc: Likewise.
1444 * testsuite/26_numerics/complex/1.cc: Likewise.
1445 * testsuite/26_numerics/complex/2.cc: Likewise.
1446 * testsuite/26_numerics/complex/comparison_operators/more_constexpr.cc:
1448 * testsuite/26_numerics/complex/operators/more_constexpr.cc:
1450 * testsuite/26_numerics/complex/requirements/more_constexpr.cc:
1452 * testsuite/26_numerics/complex/value_operations/more_constexpr.cc:
1454 * testsuite/26_numerics/endian/1.cc: Likewise.
1455 * testsuite/26_numerics/endian/2.cc: Likewise.
1456 * testsuite/26_numerics/endian/3.cc: Likewise.
1457 * testsuite/26_numerics/exclusive_scan/constexpr.cc: Likewise.
1458 * testsuite/26_numerics/inclusive_scan/constexpr.cc: Likewise.
1459 * testsuite/26_numerics/inner_product/constexpr.cc: Likewise.
1460 * testsuite/26_numerics/inner_product/lwg2055.cc: Likewise.
1461 * testsuite/26_numerics/iota/constexpr.cc: Likewise.
1462 * testsuite/26_numerics/lerp/1.cc: Likewise.
1463 * testsuite/26_numerics/lerp/constexpr.cc: Likewise.
1464 * testsuite/26_numerics/lerp/version.cc: Likewise.
1465 * testsuite/26_numerics/midpoint/floating.cc: Likewise.
1466 * testsuite/26_numerics/midpoint/integral.cc: Likewise.
1467 * testsuite/26_numerics/midpoint/pointer.cc: Likewise.
1468 * testsuite/26_numerics/midpoint/pointer_neg.cc: Likewise.
1469 * testsuite/26_numerics/midpoint/version.cc: Likewise.
1470 * testsuite/26_numerics/numbers/1.cc: Likewise.
1471 * testsuite/26_numerics/numbers/2.cc: Likewise.
1472 * testsuite/26_numerics/numbers/3.cc: Likewise.
1473 * testsuite/26_numerics/numbers/float128.cc: Likewise.
1474 * testsuite/26_numerics/numbers/nonfloat_neg.cc: Likewise.
1475 * testsuite/26_numerics/partial_sum/constexpr.cc: Likewise.
1476 * testsuite/26_numerics/partial_sum/lwg2055.cc: Likewise.
1477 * testsuite/26_numerics/random/concept.cc: Likewise.
1478 * testsuite/26_numerics/reduce/constexpr.cc: Likewise.
1479 * testsuite/26_numerics/slice/compare.cc: Likewise.
1480 * testsuite/26_numerics/transform_exclusive_scan/constexpr.cc:
1482 * testsuite/26_numerics/transform_inclusive_scan/constexpr.cc:
1484 * testsuite/26_numerics/transform_reduce/constexpr.cc: Likewise.
1486 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
1488 * testsuite/24_iterators/aliases.cc: Remove dg-options
1490 * testsuite/24_iterators/associated_types/incrementable.traits.cc:
1492 * testsuite/24_iterators/associated_types/iterator.traits.cc:
1494 * testsuite/24_iterators/associated_types/readable.traits.cc:
1496 * testsuite/24_iterators/back_insert_iterator/constexpr.cc:
1498 * testsuite/24_iterators/back_insert_iterator/pr93884.cc:
1500 * testsuite/24_iterators/bidirectional/concept.cc: Likewise.
1501 * testsuite/24_iterators/common_iterator/1.cc: Likewise.
1502 * testsuite/24_iterators/common_iterator/100823.cc: Likewise.
1503 * testsuite/24_iterators/common_iterator/2.cc: Likewise.
1504 * testsuite/24_iterators/contiguous/concept.cc: Likewise.
1505 * testsuite/24_iterators/contiguous/tag.cc: Likewise.
1506 * testsuite/24_iterators/counted_iterator/1.cc: Likewise.
1507 * testsuite/24_iterators/counted_iterator/lwg3389.cc: Likewise.
1508 * testsuite/24_iterators/counted_iterator/lwg3643.cc: Likewise.
1509 * testsuite/24_iterators/customization_points/92894.cc:
1511 * testsuite/24_iterators/customization_points/iter_move.cc:
1513 * testsuite/24_iterators/customization_points/iter_swap.cc:
1515 * testsuite/24_iterators/customization_points/lwg3420.cc:
1517 * testsuite/24_iterators/forward/concept.cc: Likewise.
1518 * testsuite/24_iterators/front_insert_iterator/constexpr.cc:
1520 * testsuite/24_iterators/front_insert_iterator/pr93884.cc:
1522 * testsuite/24_iterators/headers/iterator/synopsis_c++20.cc:
1524 * testsuite/24_iterators/indirect_callable/92894.cc: Likewise.
1525 * testsuite/24_iterators/indirect_callable/projected-adl.cc:
1527 * testsuite/24_iterators/indirect_callable/projected.cc:
1529 * testsuite/24_iterators/input/concept.cc: Likewise.
1530 * testsuite/24_iterators/insert_iterator/constexpr.cc: Likewise.
1531 * testsuite/24_iterators/istream_iterator/cons/sentinel.cc:
1533 * testsuite/24_iterators/istream_iterator/sentinel.cc: Likewise.
1534 * testsuite/24_iterators/istreambuf_iterator/cons/sentinel.cc:
1536 * testsuite/24_iterators/istreambuf_iterator/sentinel.cc:
1538 * testsuite/24_iterators/move_iterator/cust.cc: Likewise.
1539 * testsuite/24_iterators/move_iterator/dr3435.cc: Likewise.
1540 * testsuite/24_iterators/move_iterator/input_iterator.cc:
1542 * testsuite/24_iterators/move_iterator/lwg3390.cc: Likewise.
1543 * testsuite/24_iterators/move_iterator/lwg3391.cc: Likewise.
1544 * testsuite/24_iterators/move_iterator/move_only.cc: Likewise.
1545 * testsuite/24_iterators/move_iterator/p2520r0.cc: Likewise.
1546 * testsuite/24_iterators/move_iterator/rel_ops_c++20.cc:
1548 * testsuite/24_iterators/move_iterator/sentinel.cc: Likewise.
1549 * testsuite/24_iterators/normal_iterator/cmp_c++20.cc: Likewise.
1550 * testsuite/24_iterators/output/concept.cc: Likewise.
1551 * testsuite/24_iterators/random_access/concept.cc: Likewise.
1552 * testsuite/24_iterators/range_access/range_access_cpp20.cc:
1554 * testsuite/24_iterators/range_access/range_access_cpp20_neg.cc:
1556 * testsuite/24_iterators/range_operations/100768.cc: Likewise.
1557 * testsuite/24_iterators/range_operations/advance.cc: Likewise.
1558 * testsuite/24_iterators/range_operations/advance_overflow.cc:
1560 * testsuite/24_iterators/range_operations/distance.cc: Likewise.
1561 * testsuite/24_iterators/range_operations/lwg3392.cc: Likewise.
1562 * testsuite/24_iterators/range_operations/next.cc: Likewise.
1563 * testsuite/24_iterators/range_operations/prev.cc: Likewise.
1564 * testsuite/24_iterators/reverse_iterator/cust.cc: Likewise.
1565 * testsuite/24_iterators/reverse_iterator/dr3435.cc: Likewise.
1566 * testsuite/24_iterators/reverse_iterator/rel_ops_c++20.cc:
1569 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
1571 * testsuite/23_containers/array/comparison_operators/96851.cc:
1572 Remove dg-options -std=gnu++2a.
1573 * testsuite/23_containers/array/comparison_operators/constexpr.cc:
1575 * testsuite/23_containers/array/creation/1.cc: Likewise.
1576 * testsuite/23_containers/array/creation/110167.cc: Likewise.
1577 * testsuite/23_containers/array/creation/2.cc: Likewise.
1578 * testsuite/23_containers/array/creation/3_neg.cc: Likewise.
1579 * testsuite/23_containers/array/requirements/constexpr_fill.cc:
1581 * testsuite/23_containers/array/requirements/constexpr_swap.cc:
1583 * testsuite/23_containers/deque/48101-3_neg.cc: Likewise.
1584 * testsuite/23_containers/deque/erasure.cc: Likewise.
1585 * testsuite/23_containers/deque/modifiers/emplace/92878_92947.cc:
1587 * testsuite/23_containers/deque/operators/cmp_c++20.cc:
1589 * testsuite/23_containers/forward_list/48101-3_neg.cc: Likewise.
1590 * testsuite/23_containers/forward_list/cmp_c++20.cc: Likewise.
1591 * testsuite/23_containers/forward_list/erasure.cc: Likewise.
1592 * testsuite/23_containers/forward_list/modifiers/92878_92947.cc:
1594 * testsuite/23_containers/forward_list/operations/remove_cxx20_return.cc:
1596 * testsuite/23_containers/forward_list/operations/unique_cxx20_return.cc:
1598 * testsuite/23_containers/list/48101-3_neg.cc: Likewise.
1599 * testsuite/23_containers/list/cmp_c++20.cc: Likewise.
1600 * testsuite/23_containers/list/erasure.cc: Likewise.
1601 * testsuite/23_containers/list/modifiers/emplace/92878_92947.cc:
1603 * testsuite/23_containers/list/operations/remove_cxx20_return.cc:
1605 * testsuite/23_containers/list/operations/unique_cxx20_return.cc:
1607 * testsuite/23_containers/map/48101-3_neg.cc: Likewise.
1608 * testsuite/23_containers/map/erasure.cc: Likewise.
1609 * testsuite/23_containers/map/modifiers/emplace/92878_92947.cc:
1611 * testsuite/23_containers/map/operations/contains.cc: Likewise.
1612 * testsuite/23_containers/map/operators/cmp_c++20.cc: Likewise.
1613 * testsuite/23_containers/multimap/48101-3_neg.cc: Likewise.
1614 * testsuite/23_containers/multimap/modifiers/emplace/92878_92947.cc:
1616 * testsuite/23_containers/multimap/operations/contains.cc:
1618 * testsuite/23_containers/multimap/operators/cmp_c++20.cc:
1620 * testsuite/23_containers/multiset/48101-3_neg.cc: Likewise.
1621 * testsuite/23_containers/multiset/modifiers/emplace/92878_92947.cc:
1623 * testsuite/23_containers/multiset/operations/contains.cc:
1625 * testsuite/23_containers/multiset/operators/cmp_c++20.cc:
1627 * testsuite/23_containers/priority_queue/92878_92947.cc:
1629 * testsuite/23_containers/queue/92878_92947.cc: Likewise.
1630 * testsuite/23_containers/queue/cmp_c++20.cc: Likewise.
1631 * testsuite/23_containers/set/48101-3_neg.cc: Likewise.
1632 * testsuite/23_containers/set/erasure.cc: Likewise.
1633 * testsuite/23_containers/set/modifiers/emplace/92878_92947.cc:
1635 * testsuite/23_containers/set/operations/contains.cc: Likewise.
1636 * testsuite/23_containers/set/operators/cmp_c++20.cc: Likewise.
1637 * testsuite/23_containers/span/1.cc: Likewise.
1638 * testsuite/23_containers/span/101411.cc: Likewise.
1639 * testsuite/23_containers/span/2.cc: Likewise.
1640 * testsuite/23_containers/span/deduction.cc: Likewise.
1641 * testsuite/23_containers/span/explicit.cc: Likewise.
1642 * testsuite/23_containers/span/layout_compat.cc: Likewise.
1643 * testsuite/23_containers/span/lwg3255.cc: Likewise.
1644 * testsuite/23_containers/span/nothrow_cons.cc: Likewise.
1645 * testsuite/23_containers/span/trivially_copyable.cc: Likewise.
1646 * testsuite/23_containers/stack/92878_92947.cc: Likewise.
1647 * testsuite/23_containers/stack/cmp_c++20.cc: Likewise.
1648 * testsuite/23_containers/unordered_map/48101-3_neg.cc:
1650 * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
1651 * testsuite/23_containers/unordered_map/modifiers/92878_92947.cc:
1653 * testsuite/23_containers/unordered_map/operations/1.cc:
1655 * testsuite/23_containers/unordered_map/operations/contains.cc:
1657 * testsuite/23_containers/unordered_multimap/48101-3_neg.cc:
1659 * testsuite/23_containers/unordered_multimap/modifiers/92878_92947.cc:
1661 * testsuite/23_containers/unordered_multimap/operations/1.cc:
1663 * testsuite/23_containers/unordered_multimap/operations/contains.cc:
1665 * testsuite/23_containers/unordered_multiset/48101-3_neg.cc:
1667 * testsuite/23_containers/unordered_multiset/modifiers/92878_92947.cc:
1669 * testsuite/23_containers/unordered_multiset/operations/1.cc:
1671 * testsuite/23_containers/unordered_multiset/operations/contains.cc:
1673 * testsuite/23_containers/unordered_set/48101-3_neg.cc:
1675 * testsuite/23_containers/unordered_set/erasure.cc: Likewise.
1676 * testsuite/23_containers/unordered_set/modifiers/92878_92947.cc:
1678 * testsuite/23_containers/unordered_set/operations/1.cc:
1680 * testsuite/23_containers/unordered_set/operations/contains.cc:
1682 * testsuite/23_containers/vector/48101-3_neg.cc: Likewise.
1683 * testsuite/23_containers/vector/bool/capacity/constexpr.cc:
1685 * testsuite/23_containers/vector/bool/cmp_c++20.cc: Likewise.
1686 * testsuite/23_containers/vector/bool/cons/constexpr.cc:
1688 * testsuite/23_containers/vector/bool/element_access/constexpr.cc:
1690 * testsuite/23_containers/vector/bool/iterator_c++20.cc:
1692 * testsuite/23_containers/vector/bool/modifiers/assign/constexpr.cc:
1694 * testsuite/23_containers/vector/bool/modifiers/constexpr.cc:
1696 * testsuite/23_containers/vector/bool/modifiers/swap/constexpr.cc:
1698 * testsuite/23_containers/vector/capacity/constexpr.cc:
1700 * testsuite/23_containers/vector/cmp_c++20.cc: Likewise.
1701 * testsuite/23_containers/vector/cons/constexpr.cc: Likewise.
1702 * testsuite/23_containers/vector/data_access/constexpr.cc:
1704 * testsuite/23_containers/vector/element_access/constexpr.cc:
1706 * testsuite/23_containers/vector/erasure.cc: Likewise.
1707 * testsuite/23_containers/vector/modifiers/assign/constexpr.cc:
1709 * testsuite/23_containers/vector/modifiers/constexpr.cc:
1711 * testsuite/23_containers/vector/modifiers/emplace/92878_92947.cc:
1713 * testsuite/23_containers/vector/modifiers/swap/constexpr.cc:
1715 * testsuite/23_containers/vector/requirements/version.cc:
1718 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
1720 * testsuite/21_strings/basic_string/cons/char/105995.cc: Remove
1721 dg-options -std=gnu++20.
1722 * testsuite/21_strings/basic_string/cons/char/constexpr.cc:
1724 * testsuite/21_strings/basic_string/cons/wchar_t/constexpr.cc:
1726 * testsuite/21_strings/basic_string/erasure.cc: Likewise.
1727 * testsuite/21_strings/basic_string/hash/hash_char8_t.cc:
1729 * testsuite/21_strings/basic_string/literals/constexpr.cc:
1731 * testsuite/21_strings/basic_string/modifiers/constexpr.cc:
1733 * testsuite/21_strings/basic_string/modifiers/swap/constexpr-wchar_t.cc:
1735 * testsuite/21_strings/basic_string/modifiers/swap/constexpr.cc:
1737 * testsuite/21_strings/basic_string/operations/ends_with/char.cc:
1739 * testsuite/21_strings/basic_string/operations/ends_with/nonnull.cc:
1741 * testsuite/21_strings/basic_string/operations/ends_with/wchar_t.cc:
1743 * testsuite/21_strings/basic_string/operations/starts_with/char.cc:
1745 * testsuite/21_strings/basic_string/operations/starts_with/nonnull.cc:
1747 * testsuite/21_strings/basic_string/operations/starts_with/wchar_t.cc:
1749 * testsuite/21_strings/basic_string/operators/char/cmp_c++20.cc:
1751 * testsuite/21_strings/basic_string/operators/wchar_t/cmp_c++20.cc:
1753 * testsuite/21_strings/basic_string_view/cons/char/range.cc:
1755 * testsuite/21_strings/basic_string_view/operations/copy/char/constexpr.cc:
1757 * testsuite/21_strings/basic_string_view/operations/copy/wchar_t/constexpr.cc:
1759 * testsuite/21_strings/basic_string_view/operations/ends_with/char.cc:
1761 * testsuite/21_strings/basic_string_view/operations/ends_with/nonnull.cc:
1763 * testsuite/21_strings/basic_string_view/operations/ends_with/wchar_t.cc:
1765 * testsuite/21_strings/basic_string_view/operations/starts_with/char.cc:
1767 * testsuite/21_strings/basic_string_view/operations/starts_with/nonnull.cc:
1769 * testsuite/21_strings/basic_string_view/operations/starts_with/wchar_t.cc:
1771 * testsuite/21_strings/basic_string_view/operators/char/cmp_c++20.cc:
1773 * testsuite/21_strings/basic_string_view/operators/wchar_t/cmp_c++20.cc:
1775 * testsuite/21_strings/basic_string_view/requirements/constexpr_iter.cc:
1777 * testsuite/21_strings/char_traits/requirements/constexpr_functions_c++20.cc:
1780 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
1782 * testsuite/20_util/allocator/105975.cc: Remove dg-options
1784 * testsuite/20_util/allocator/rebind_c++20.cc: Likewise.
1785 * testsuite/20_util/allocator/requirements/constexpr.cc:
1787 * testsuite/20_util/allocator/requirements/typedefs_c++20.cc:
1789 * testsuite/20_util/allocator_traits/header-2.cc: Likewise.
1790 * testsuite/20_util/allocator_traits/header.cc: Likewise.
1791 * testsuite/20_util/allocator_traits/members/92878_92947.cc:
1793 * testsuite/20_util/any/assign/92878_92947.cc: Likewise.
1794 * testsuite/20_util/any/cons/92878_92947.cc: Likewise.
1795 * testsuite/20_util/assume_aligned/1.cc: Likewise.
1796 * testsuite/20_util/assume_aligned/2_neg.cc: Likewise.
1797 * testsuite/20_util/assume_aligned/3.cc: Likewise.
1798 * testsuite/20_util/assume_aligned/97132.cc: Likewise.
1799 * testsuite/20_util/bind/constexpr.cc: Likewise.
1800 * testsuite/20_util/bitset/operations/96303.cc: Likewise.
1801 * testsuite/20_util/common_reference/100894.cc: Likewise.
1802 * testsuite/20_util/common_reference/requirements/alias_decl.cc:
1804 * testsuite/20_util/common_reference/requirements/explicit_instantiation.cc:
1806 * testsuite/20_util/common_reference/requirements/typedefs.cc:
1808 * testsuite/20_util/duration/comparison_operators/three_way.cc:
1810 * testsuite/20_util/exchange/constexpr.cc: Likewise.
1811 * testsuite/20_util/exchange/noexcept.cc: Likewise.
1812 * testsuite/20_util/from_chars/1_c++20_neg.cc: Likewise.
1813 * testsuite/20_util/from_chars/compare.cc: Likewise.
1814 * testsuite/20_util/function_objects/bind_front/1.cc: Likewise.
1815 * testsuite/20_util/function_objects/bind_front/107784.cc:
1817 * testsuite/20_util/function_objects/bind_front/111327.cc:
1819 * testsuite/20_util/function_objects/bind_front/2.cc: Likewise.
1820 * testsuite/20_util/function_objects/bind_front/97101.cc:
1822 * testsuite/20_util/function_objects/bind_front/constexpr.cc:
1824 * testsuite/20_util/function_objects/constexpr_searcher.cc:
1826 * testsuite/20_util/function_objects/identity/1.cc: Likewise.
1827 * testsuite/20_util/function_objects/invoke/constexpr.cc:
1829 * testsuite/20_util/function_objects/mem_fn/constexpr.cc:
1831 * testsuite/20_util/function_objects/not_fn/constexpr.cc:
1833 * testsuite/20_util/integer_comparisons/1.cc: Likewise.
1834 * testsuite/20_util/integer_comparisons/2.cc: Likewise.
1835 * testsuite/20_util/integer_comparisons/equal.cc: Likewise.
1836 * testsuite/20_util/integer_comparisons/equal_neg.cc: Likewise.
1837 * testsuite/20_util/integer_comparisons/greater.cc: Likewise.
1838 * testsuite/20_util/integer_comparisons/greater_equal.cc:
1840 * testsuite/20_util/integer_comparisons/greater_equal_neg.cc:
1842 * testsuite/20_util/integer_comparisons/greater_neg.cc:
1844 * testsuite/20_util/integer_comparisons/in_range.cc: Likewise.
1845 * testsuite/20_util/integer_comparisons/in_range_neg.cc:
1847 * testsuite/20_util/integer_comparisons/less.cc: Likewise.
1848 * testsuite/20_util/integer_comparisons/less_equal.cc: Likewise.
1849 * testsuite/20_util/integer_comparisons/less_equal_neg.cc:
1851 * testsuite/20_util/integer_comparisons/less_neg.cc: Likewise.
1852 * testsuite/20_util/integer_comparisons/not_equal.cc: Likewise.
1853 * testsuite/20_util/integer_comparisons/not_equal_neg.cc:
1855 * testsuite/20_util/is_bounded_array/requirements/explicit_instantiation.cc:
1857 * testsuite/20_util/is_bounded_array/requirements/typedefs.cc:
1859 * testsuite/20_util/is_bounded_array/value.cc: Likewise.
1860 * testsuite/20_util/is_constant_evaluated/1.cc: Likewise.
1861 * testsuite/20_util/is_constant_evaluated/noexcept.cc: Likewise.
1862 * testsuite/20_util/is_constructible/92878_92947.cc: Likewise.
1863 * testsuite/20_util/is_layout_compatible/is_corresponding_member.cc:
1865 * testsuite/20_util/is_layout_compatible/value.cc: Likewise.
1866 * testsuite/20_util/is_layout_compatible/version.cc: Likewise.
1867 * testsuite/20_util/is_nothrow_constructible/value_c++20.cc:
1869 * testsuite/20_util/is_nothrow_convertible/requirements/explicit_instantiation.cc:
1871 * testsuite/20_util/is_nothrow_convertible/requirements/typedefs.cc:
1873 * testsuite/20_util/is_nothrow_convertible/value.cc: Likewise.
1874 * testsuite/20_util/is_pod/deprecated-2a.cc: Likewise.
1875 * testsuite/20_util/is_pointer_interconvertible/value.cc:
1877 * testsuite/20_util/is_pointer_interconvertible/version.cc:
1879 * testsuite/20_util/is_pointer_interconvertible/with_class.cc:
1881 * testsuite/20_util/is_unbounded_array/requirements/explicit_instantiation.cc:
1883 * testsuite/20_util/is_unbounded_array/requirements/typedefs.cc:
1885 * testsuite/20_util/is_unbounded_array/value.cc: Likewise.
1886 * testsuite/20_util/optional/assignment/92878_92947.cc:
1888 * testsuite/20_util/optional/cons/92878_92947.cc: Likewise.
1889 * testsuite/20_util/optional/constexpr/assign.cc: Likewise.
1890 * testsuite/20_util/optional/constexpr/cons/conv.cc: Likewise.
1891 * testsuite/20_util/optional/constexpr/modifiers.cc: Likewise.
1892 * testsuite/20_util/optional/constexpr/swap.cc: Likewise.
1893 * testsuite/20_util/optional/relops/96269.cc: Likewise.
1894 * testsuite/20_util/optional/relops/three_way.cc: Likewise.
1895 * testsuite/20_util/pair/comparison_operators/constexpr_c++20.cc:
1897 * testsuite/20_util/pair/cons/92878_92947.cc: Likewise.
1898 * testsuite/20_util/pair/constexpr_assign.cc: Likewise.
1899 * testsuite/20_util/pair/constexpr_swap.cc: Likewise.
1900 * testsuite/20_util/pair/requirements/structural.cc: Likewise.
1901 * testsuite/20_util/pointer_traits/pointer_to_constexpr.cc:
1903 * testsuite/20_util/polymorphic_allocator/allocate_object.cc:
1905 * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc:
1907 * testsuite/20_util/polymorphic_allocator/lwg3237.cc: Likewise.
1908 * testsuite/20_util/reference_wrapper/constexpr.cc: Likewise.
1909 * testsuite/20_util/reference_wrapper/incomplete.cc: Likewise.
1910 * testsuite/20_util/remove_cvref/requirements/alias_decl.cc:
1912 * testsuite/20_util/remove_cvref/requirements/explicit_instantiation.cc:
1914 * testsuite/20_util/remove_cvref/value.cc: Likewise.
1915 * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc:
1917 * testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc:
1919 * testsuite/20_util/shared_ptr/casts/rval.cc: Likewise.
1920 * testsuite/20_util/shared_ptr/comparison/cmp_c++20.cc:
1922 * testsuite/20_util/shared_ptr/cons/alias-rval.cc: Likewise.
1923 * testsuite/20_util/shared_ptr/creation/92878_92947.cc:
1925 * testsuite/20_util/shared_ptr/creation/array.cc: Likewise.
1926 * testsuite/20_util/shared_ptr/creation/overwrite.cc: Likewise.
1927 * testsuite/20_util/shared_ptr/creation/version.cc: Likewise.
1928 * testsuite/20_util/time_point/4.cc: Likewise.
1929 * testsuite/20_util/time_point/comparison_operators/three_way.cc:
1931 * testsuite/20_util/to_address/1.cc: Likewise.
1932 * testsuite/20_util/to_address/1_neg.cc: Likewise.
1933 * testsuite/20_util/to_address/debug.cc: Likewise.
1934 * testsuite/20_util/to_address/lwg3545.cc: Likewise.
1935 * testsuite/20_util/to_chars/compare.cc: Likewise.
1936 * testsuite/20_util/tuple/comparison_operators/three_way.cc:
1938 * testsuite/20_util/tuple/cons/102270.cc: Likewise.
1939 * testsuite/20_util/tuple/cons/constexpr_allocator_arg_t.cc:
1941 * testsuite/20_util/tuple/constexpr_swap.cc: Likewise.
1942 * testsuite/20_util/type_identity/requirements/alias_decl.cc:
1944 * testsuite/20_util/type_identity/requirements/explicit_instantiation.cc:
1946 * testsuite/20_util/type_identity/requirements/typedefs.cc:
1948 * testsuite/20_util/typeindex/comparison_operators_c++20.cc:
1950 * testsuite/20_util/unique_ptr/comparison/compare_c++20.cc:
1952 * testsuite/20_util/unique_ptr/creation/92878_92947.cc:
1954 * testsuite/20_util/unique_ptr/creation/for_overwrite.cc:
1956 * testsuite/20_util/unique_ptr/creation/for_overwrite__neg.cc:
1958 * testsuite/20_util/unique_ptr/io/lwg2948.cc: Likewise.
1959 * testsuite/20_util/unwrap_reference/1.cc: Likewise.
1960 * testsuite/20_util/unwrap_reference/2.cc: Likewise.
1961 * testsuite/20_util/unwrap_reference/3.cc: Likewise.
1962 * testsuite/20_util/uses_allocator/92878_92947.cc: Likewise.
1963 * testsuite/20_util/uses_allocator/lwg3527.cc: Likewise.
1964 * testsuite/20_util/uses_allocator/make_obj.cc: Likewise.
1965 * testsuite/20_util/uses_allocator/uninitialized_construct.cc:
1967 * testsuite/20_util/variant/92878_92947.cc: Likewise.
1968 * testsuite/20_util/variant/95915.cc: Likewise.
1969 * testsuite/20_util/variant/constexpr.cc: Likewise.
1970 * testsuite/20_util/variant/relops/three_way.cc: Likewise.
1971 * testsuite/20_util/variant/visit_neg.cc: Likewise.
1972 * testsuite/20_util/variant/visit_r.cc: Likewise.
1973 * testsuite/20_util/weak_ptr/atomic_weak_ptr.cc: Likewise.
1975 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
1977 * testsuite/18_support/comparisons/algorithms/fallback.cc:
1978 Remove dg-options -std=gnu++2a.
1979 * testsuite/18_support/comparisons/algorithms/partial_order.cc:
1981 * testsuite/18_support/comparisons/algorithms/strong_order.cc:
1983 * testsuite/18_support/comparisons/algorithms/strong_order_floats.cc:
1985 * testsuite/18_support/comparisons/algorithms/weak_order.cc:
1987 * testsuite/18_support/comparisons/categories/94565.cc:
1989 * testsuite/18_support/comparisons/categories/partialord.cc:
1991 * testsuite/18_support/comparisons/categories/strongord.cc:
1993 * testsuite/18_support/comparisons/categories/weakord.cc:
1995 * testsuite/18_support/comparisons/categories/zero_neg.cc:
1997 * testsuite/18_support/comparisons/common/1.cc: Likewise.
1998 * testsuite/18_support/comparisons/object/93479.cc: Likewise.
1999 * testsuite/18_support/comparisons/object/lwg3530.cc: Likewise.
2001 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2003 * testsuite/29_atomics/atomic/compare_exchange_padding.cc:
2004 Remove dg-options -std=gnu++2a.
2005 * testsuite/29_atomics/atomic/cons/value_init.cc: Likewise.
2006 * testsuite/29_atomics/atomic/lock_free_aliases.cc: Likewise.
2007 * testsuite/29_atomics/atomic/requirements/types_neg.cc:
2009 * testsuite/29_atomics/atomic/wait_notify/1.cc: Likewise.
2010 * testsuite/29_atomics/atomic/wait_notify/100334.cc: Likewise.
2011 * testsuite/29_atomics/atomic/wait_notify/102994.cc: Likewise.
2012 * testsuite/29_atomics/atomic/wait_notify/2.cc: Likewise.
2013 * testsuite/29_atomics/atomic/wait_notify/bool.cc: Likewise.
2014 * testsuite/29_atomics/atomic/wait_notify/generic.cc: Likewise.
2015 * testsuite/29_atomics/atomic/wait_notify/pointers.cc: Likewise.
2016 * testsuite/29_atomics/atomic_flag/cons/value_init.cc: Likewise.
2017 * testsuite/29_atomics/atomic_flag/test/explicit.cc: Likewise.
2018 * testsuite/29_atomics/atomic_flag/test/implicit.cc: Likewise.
2019 * testsuite/29_atomics/atomic_flag/wait_notify/1.cc: Likewise.
2020 * testsuite/29_atomics/atomic_float/1.cc: Likewise.
2021 * testsuite/29_atomics/atomic_float/95282.cc: Likewise.
2022 * testsuite/29_atomics/atomic_float/requirements.cc: Likewise.
2023 * testsuite/29_atomics/atomic_float/value_init.cc: Likewise.
2024 * testsuite/29_atomics/atomic_float/wait_notify.cc: Likewise.
2025 * testsuite/29_atomics/atomic_integral/cons/value_init.cc:
2027 * testsuite/29_atomics/atomic_integral/wait_notify.cc: Likewise.
2028 * testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc:
2030 * testsuite/29_atomics/atomic_ref/deduction.cc: Likewise.
2031 * testsuite/29_atomics/atomic_ref/float.cc: Likewise.
2032 * testsuite/29_atomics/atomic_ref/generic.cc: Likewise.
2033 * testsuite/29_atomics/atomic_ref/integral.cc: Likewise.
2034 * testsuite/29_atomics/atomic_ref/pointer.cc: Likewise.
2035 * testsuite/29_atomics/atomic_ref/requirements.cc: Likewise.
2036 * testsuite/29_atomics/headers/atomic/types_std_c++20.cc:
2038 * testsuite/29_atomics/headers/atomic/types_std_c++20_neg.cc:
2040 * testsuite/29_atomics/headers/atomic/types_std_c++2a.cc:
2042 * testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc:
2045 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2047 * testsuite/27_io/basic_filebuf/native_handle/char/1.cc: New test.
2048 * testsuite/27_io/basic_filebuf/native_handle/wchar_t/1.cc: New test.
2050 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2052 * acinclude.m4 (GLIBCXX_CHECK_FILEBUF_NATIVE_HANDLES): New
2054 * config.h.in: Regenerate.
2055 * config/abi/pre/gnu.ver (GLIBCXX_3.4.32): Export new
2056 basic_filebuf members.
2057 * config/io/basic_file_stdio.cc (__basic_file::native_handle):
2058 Define new function.
2059 * config/io/basic_file_stdio.h (__basic_file::native_handle):
2060 Declare new function.
2061 * configure: Regenerate.
2062 * configure.ac: Use GLIBCXX_CHECK_FILEBUF_NATIVE_HANDLES.
2063 * include/bits/version.def (fstream_native_handles): New macro.
2064 * include/bits/version.h: Regenerate.
2065 * include/std/fstream (basic_filebuf::native_handle)
2066 (basic_fstream::native_handle, basic_ifstream::native_handle)
2067 (basic_ofstream::native_handle): New functions.
2068 * src/c++11/Makefile.am: Move compilation of basic_file.cc,
2069 locale_init.cc and localename.cc to here.
2070 * src/c++11/Makefile.in: Regenerate.
2071 * src/c++98/locale_init.cc: Moved to...
2072 * src/c++11/locale_init.cc: ...here.
2073 * src/c++98/localename.cc: Moved to...
2074 * src/c++11/localename.cc: ...here.
2075 * src/c++98/Makefile.am: Remove basic_file.cc, locale_init.cc
2076 and localename.cc from here.
2077 * src/c++98/Makefile.in: Regenerate.
2078 * testsuite/27_io/basic_filebuf/native_handle/version.cc: New test.
2079 * testsuite/27_io/basic_fstream/native_handle/char/1.cc: New test.
2080 * testsuite/27_io/basic_fstream/native_handle/wchar_t/1.cc: New test.
2081 * testsuite/27_io/basic_ifstream/native_handle/char/1.cc: New test.
2082 * testsuite/27_io/basic_ifstream/native_handle/wchar_t/1.cc: New test.
2083 * testsuite/27_io/basic_ofstream/native_handle/char/1.cc: New test.
2084 * testsuite/27_io/basic_ofstream/native_handle/wchar_t/1.cc: New test.
2086 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2088 * testsuite/libstdc++-dg/conformance.exp: Add log line when
2089 using testsuite_files.
2091 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2093 * testsuite/20_util/shared_ptr/atomic/3.cc: Simplify dg
2095 * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc:
2097 * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc:
2099 * testsuite/20_util/synchronized_pool_resource/allocate.cc:
2101 * testsuite/20_util/synchronized_pool_resource/allocate_single.cc:
2103 * testsuite/20_util/synchronized_pool_resource/cons.cc:
2105 * testsuite/20_util/synchronized_pool_resource/cons_single.cc:
2107 * testsuite/20_util/synchronized_pool_resource/is_equal.cc:
2109 * testsuite/20_util/synchronized_pool_resource/multithreaded.cc:
2111 * testsuite/20_util/synchronized_pool_resource/options.cc:
2113 * testsuite/20_util/synchronized_pool_resource/release.cc:
2115 * testsuite/20_util/synchronized_pool_resource/release_single.cc:
2117 * testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc:
2119 * testsuite/30_threads/stop_token/stop_callback/deadlock-mt.cc:
2121 * testsuite/30_threads/stop_token/stop_callback/destroy.cc:
2124 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2126 * testsuite/23_containers/span/back_assert_neg.cc: Remove
2127 dg-options and add effective target selector to dg-do. Add
2129 * testsuite/23_containers/span/back_neg.cc: Likewise.
2130 * testsuite/23_containers/span/cons_1_assert_neg.cc: Likewise.
2131 * testsuite/23_containers/span/cons_2_assert_neg.cc: Likewise.
2132 * testsuite/23_containers/span/first_2_assert_neg.cc: Likewise.
2133 * testsuite/23_containers/span/first_assert_neg.cc: Likewise.
2134 * testsuite/23_containers/span/first_neg.cc: Likewise.
2135 * testsuite/23_containers/span/front_assert_neg.cc: Likewise.
2136 * testsuite/23_containers/span/front_neg.cc: Likewise.
2137 * testsuite/23_containers/span/index_op_assert_neg.cc: Likewise.
2138 * testsuite/23_containers/span/index_op_neg.cc: Likewise.
2139 * testsuite/23_containers/span/last_2_assert_neg.cc: Likewise.
2140 * testsuite/23_containers/span/last_assert_neg.cc: Likewise.
2141 * testsuite/23_containers/span/last_neg.cc: Likewise.
2142 * testsuite/23_containers/span/subspan_2_assert_neg.cc:
2144 * testsuite/23_containers/span/subspan_3_assert_neg.cc:
2146 * testsuite/23_containers/span/subspan_4_assert_neg.cc:
2148 * testsuite/23_containers/span/subspan_5_assert_neg.cc:
2150 * testsuite/23_containers/span/subspan_6_assert_neg.cc:
2152 * testsuite/23_containers/span/subspan_assert_neg.cc: Likewise.
2153 * testsuite/23_containers/span/subspan_neg.cc: Likewise.
2154 * testsuite/24_iterators/range_operations/advance_debug_neg.cc:
2157 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2159 * testsuite/18_support/headers/limits/synopsis_cxx23.cc: Remove
2161 * testsuite/18_support/headers/stdfloat/types_std.cc: Likewise.
2162 * testsuite/18_support/type_info/constexpr.cc: Likewise.
2163 * testsuite/19_diagnostics/stacktrace/current.cc: Likewise.
2164 * testsuite/19_diagnostics/stacktrace/entry.cc: Likewise.
2165 * testsuite/19_diagnostics/stacktrace/stacktrace.cc: Likewise.
2166 * testsuite/19_diagnostics/stacktrace/synopsis.cc: Likewise.
2167 * testsuite/19_diagnostics/stacktrace/version.cc: Likewise.
2168 * testsuite/20_util/aligned_storage/deprecated-2b.cc: Likewise.
2169 * testsuite/20_util/aligned_union/deprecated-2b.cc: Likewise.
2170 * testsuite/20_util/bitset/access/constexpr.cc: Likewise.
2171 * testsuite/20_util/bitset/cons/constexpr_c++23.cc: Likewise.
2172 * testsuite/20_util/bitset/count/constexpr.cc: Likewise.
2173 * testsuite/20_util/bitset/ext/constexpr.cc: Likewise.
2174 * testsuite/20_util/bitset/operations/constexpr_c++23.cc:
2176 * testsuite/20_util/bitset/version.cc: Likewise.
2177 * testsuite/20_util/from_chars/8.cc: Likewise.
2178 * testsuite/20_util/from_chars/constexpr.cc: Likewise.
2179 * testsuite/20_util/function/cons/deduction_c++23.cc: Likewise.
2180 * testsuite/20_util/function_objects/invoke/4.cc: Likewise.
2181 * testsuite/20_util/function_objects/invoke/dangling_ref.cc:
2183 * testsuite/20_util/is_scoped_enum/value.cc: Likewise.
2184 * testsuite/20_util/is_scoped_enum/version.cc: Likewise.
2185 * testsuite/20_util/move_only_function/call.cc: Likewise.
2186 * testsuite/20_util/move_only_function/cons.cc: Likewise.
2187 * testsuite/20_util/move_only_function/move.cc: Likewise.
2188 * testsuite/20_util/move_only_function/version.cc: Likewise.
2189 * testsuite/20_util/optional/monadic/and_then.cc: Likewise.
2190 * testsuite/20_util/optional/monadic/or_else.cc: Likewise.
2191 * testsuite/20_util/optional/monadic/or_else_neg.cc: Likewise.
2192 * testsuite/20_util/optional/monadic/pr109242.cc: Likewise.
2193 * testsuite/20_util/optional/monadic/transform.cc: Likewise.
2194 * testsuite/20_util/pair/p2321r2.cc: Likewise.
2195 * testsuite/20_util/reference_from_temporary/value.cc: Likewise.
2196 * testsuite/20_util/reference_from_temporary/value2.cc:
2198 * testsuite/20_util/reference_from_temporary/version.cc:
2200 * testsuite/20_util/to_chars/constexpr.cc: Likewise.
2201 * testsuite/20_util/to_chars/float128_c++23.cc: Likewise.
2202 * testsuite/20_util/to_chars/float16_c++23.cc: Likewise.
2203 * testsuite/20_util/to_chars/version.cc: Likewise.
2204 * testsuite/20_util/to_underlying/1.cc: Likewise.
2205 * testsuite/20_util/to_underlying/version.cc: Likewise.
2206 * testsuite/20_util/tuple/p2321r2.cc: Likewise.
2207 * testsuite/20_util/unique_ptr/assign/constexpr.cc: Likewise.
2208 * testsuite/20_util/unique_ptr/comparison/constexpr.cc:
2210 * testsuite/20_util/unique_ptr/cons/constexpr_c++20.cc:
2212 * testsuite/20_util/unique_ptr/creation/constexpr.cc: Likewise.
2213 * testsuite/20_util/unique_ptr/modifiers/constexpr.cc: Likewise.
2214 * testsuite/20_util/unique_ptr/specialized_algorithms/constexpr.cc: Likewise.
2215 * testsuite/20_util/unreachable/1.cc: Likewise.
2216 * testsuite/20_util/unreachable/version.cc: Likewise.
2217 * testsuite/20_util/uses_allocator/lwg3677.cc: Likewise.
2218 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc: Likewise.
2219 * testsuite/21_strings/basic_string/operations/contains/char.cc:
2221 * testsuite/21_strings/basic_string/operations/contains/nonnull.cc: Likewise.
2222 * testsuite/21_strings/basic_string/operations/contains/wchar_t.cc: Likewise.
2223 * testsuite/21_strings/basic_string_view/cons/char/range_c++20.cc: Likewise.
2224 * testsuite/21_strings/basic_string_view/cons/wchar_t/range_c++20.cc: Likewise.
2225 * testsuite/21_strings/basic_string_view/operations/contains/char.cc: Likewise.
2226 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc: Likewise.
2227 * testsuite/21_strings/basic_string_view/operations/contains/nonnull.cc: Likewise.
2228 * testsuite/21_strings/basic_string_view/operations/contains/wchar_t.cc: Likewise.
2229 * testsuite/23_containers/queue/cons_from_iters.cc: Likewise.
2230 * testsuite/23_containers/stack/cons_from_iters.cc: Likewise.
2231 * testsuite/23_containers/vector/bool/element_access/1.cc:
2233 * testsuite/24_iterators/const_iterator/1.cc: Likewise.
2234 * testsuite/25_algorithms/contains/1.cc: Likewise.
2235 * testsuite/25_algorithms/contains_subrange/1.cc: Likewise.
2236 * testsuite/25_algorithms/find_last/1.cc: Likewise.
2237 * testsuite/25_algorithms/find_last_if/1.cc: Likewise.
2238 * testsuite/25_algorithms/find_last_if_not/1.cc: Likewise.
2239 * testsuite/25_algorithms/fold_left/1.cc: Likewise.
2240 * testsuite/25_algorithms/fold_right/1.cc: Likewise.
2241 * testsuite/25_algorithms/iota/1.cc: Likewise.
2242 * testsuite/26_numerics/bit/bit.byteswap/byteswap.cc: Likewise.
2243 * testsuite/26_numerics/bit/bit.byteswap/version.cc: Likewise.
2244 * testsuite/26_numerics/complex/ext_c++23.cc: Likewise.
2245 * testsuite/26_numerics/headers/cmath/c99_classification_macros_c++23.cc: Likewise.
2246 * testsuite/26_numerics/headers/cmath/constexpr_std_c++23.cc:
2248 * testsuite/26_numerics/headers/cmath/functions_std_c++23.cc:
2250 * testsuite/26_numerics/headers/cmath/nextafter_c++23.cc:
2252 * testsuite/26_numerics/numbers/4.cc: Likewise.
2253 * testsuite/27_io/basic_ostream/inserters_other/char/volatile_ptr.cc: Likewise.
2254 * testsuite/27_io/filesystem/path/native/conv_c++23.cc:
2256 * testsuite/27_io/spanstream/1.cc: Likewise.
2257 * testsuite/27_io/spanstream/2.cc: Likewise.
2258 * testsuite/27_io/spanstream/version.cc: Likewise.
2259 * testsuite/29_atomics/atomic_float/requirements_cxx23.cc:
2261 * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc:
2263 * testsuite/29_atomics/headers/stdatomic.h/version.cc: Likewise.
2264 * testsuite/30_threads/packaged_task/cons/deduction_c++23.cc:
2266 * testsuite/experimental/filesystem/path/native/conv_c++23.cc:
2268 * testsuite/std/ranges/adaptors/adjacent/1.cc: Likewise.
2269 * testsuite/std/ranges/adaptors/adjacent_transform/1.cc:
2271 * testsuite/std/ranges/adaptors/as_const/1.cc: Likewise.
2272 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Likewise.
2273 * testsuite/std/ranges/adaptors/chunk/1.cc: Likewise.
2274 * testsuite/std/ranges/adaptors/chunk_by/1.cc: Likewise.
2275 * testsuite/std/ranges/adaptors/enumerate/1.cc: Likewise.
2276 * testsuite/std/ranges/adaptors/join_with/1.cc: Likewise.
2277 * testsuite/std/ranges/adaptors/lwg3715.cc: Likewise.
2278 * testsuite/std/ranges/adaptors/slide/1.cc: Likewise.
2279 * testsuite/std/ranges/adaptors/stride/1.cc: Likewise.
2280 * testsuite/std/ranges/cartesian_product/1.cc: Likewise.
2281 * testsuite/std/ranges/range_adaptor_closure.cc: Likewise.
2282 * testsuite/std/ranges/repeat/1.cc: Likewise.
2283 * testsuite/std/ranges/version_c++23.cc: Likewise.
2284 * testsuite/std/ranges/zip/1.cc: Likewise.
2285 * testsuite/std/ranges/zip_transform/1.cc: Likewise.
2287 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2289 * testsuite/20_util/expected/assign.cc: Remove dg-options.
2290 * testsuite/20_util/expected/bad.cc: Likewise.
2291 * testsuite/20_util/expected/cons.cc: Likewise.
2292 * testsuite/20_util/expected/equality.cc: Likewise.
2293 * testsuite/20_util/expected/illformed_neg.cc: Likewise.
2294 * testsuite/20_util/expected/lwg3877.cc: Likewise.
2295 * testsuite/20_util/expected/lwg3938.cc: Likewise.
2296 * testsuite/20_util/expected/monadic.cc: Likewise.
2297 * testsuite/20_util/expected/observers.cc: Likewise.
2298 * testsuite/20_util/expected/requirements.cc: Likewise.
2299 * testsuite/20_util/expected/swap.cc: Likewise.
2300 * testsuite/20_util/expected/synopsis.cc: Likewise.
2301 * testsuite/20_util/expected/unexpected.cc: Likewise.
2302 * testsuite/20_util/expected/version.cc: Likewise.
2304 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2306 * testsuite/20_util/duration/arithmetic/overflow_c++20.cc:
2308 * testsuite/20_util/duration/io.cc: Likewise.
2309 * testsuite/std/time/clock/file/io.cc: Likewise.
2310 * testsuite/std/time/clock/file/members.cc: Likewise.
2311 * testsuite/std/time/clock/file/overview.cc: Likewise.
2312 * testsuite/std/time/clock/gps/1.cc: Likewise.
2313 * testsuite/std/time/clock/gps/io.cc: Likewise.
2314 * testsuite/std/time/clock/local/io.cc: Likewise.
2315 * testsuite/std/time/clock/system/io.cc: Likewise.
2316 * testsuite/std/time/clock/tai/1.cc: Likewise.
2317 * testsuite/std/time/clock/tai/io.cc: Likewise.
2318 * testsuite/std/time/clock/utc/1.cc: Likewise.
2319 * testsuite/std/time/clock/utc/io.cc: Likewise.
2320 * testsuite/std/time/clock/utc/leap_second_info.cc: Likewise.
2321 * testsuite/std/time/day/1.cc: Likewise.
2322 * testsuite/std/time/day/io.cc: Likewise.
2323 * testsuite/std/time/exceptions.cc: Likewise.
2324 * testsuite/std/time/format.cc: Likewise.
2325 * testsuite/std/time/hh_mm_ss/1.cc: Likewise.
2326 * testsuite/std/time/hh_mm_ss/109772.cc: Likewise.
2327 * testsuite/std/time/hh_mm_ss/io.cc: Likewise.
2328 * testsuite/std/time/is_am/1.cc: Likewise.
2329 * testsuite/std/time/is_pm/1.cc: Likewise.
2330 * testsuite/std/time/make12/1.cc: Likewise.
2331 * testsuite/std/time/make24/1.cc: Likewise.
2332 * testsuite/std/time/month/1.cc: Likewise.
2333 * testsuite/std/time/month/io.cc: Likewise.
2334 * testsuite/std/time/month_day/1.cc: Likewise.
2335 * testsuite/std/time/month_day/io.cc: Likewise.
2336 * testsuite/std/time/month_day_last/1.cc: Likewise.
2337 * testsuite/std/time/month_day_last/io.cc: Likewise.
2338 * testsuite/std/time/month_weekday/1.cc: Likewise.
2339 * testsuite/std/time/month_weekday/io.cc: Likewise.
2340 * testsuite/std/time/month_weekday_last/1.cc: Likewise.
2341 * testsuite/std/time/month_weekday_last/io.cc: Likewise.
2342 * testsuite/std/time/parse.cc: Likewise.
2343 * testsuite/std/time/syn_c++20.cc: Likewise.
2344 * testsuite/std/time/time_zone/get_info_local.cc: Likewise.
2345 * testsuite/std/time/time_zone/get_info_sys.cc: Likewise.
2346 * testsuite/std/time/time_zone/requirements.cc: Likewise.
2347 * testsuite/std/time/traits/is_clock.cc: Likewise.
2348 * testsuite/std/time/tzdb/1.cc: Likewise.
2349 * testsuite/std/time/tzdb/leap_seconds.cc: Likewise.
2350 * testsuite/std/time/tzdb_list/1.cc: Likewise.
2351 * testsuite/std/time/tzdb_list/requirements.cc: Likewise.
2352 * testsuite/std/time/weekday/1.cc: Likewise.
2353 * testsuite/std/time/weekday/io.cc: Likewise.
2354 * testsuite/std/time/weekday_indexed/io.cc: Likewise.
2355 * testsuite/std/time/weekday_last/1.cc: Likewise.
2356 * testsuite/std/time/weekday_last/io.cc: Likewise.
2357 * testsuite/std/time/year/1.cc: Likewise.
2358 * testsuite/std/time/year/2.cc: Likewise.
2359 * testsuite/std/time/year/io.cc: Likewise.
2360 * testsuite/std/time/weekday_indexed/1.cc: Likewise.
2361 * testsuite/std/time/year_month/1.cc: Likewise.
2362 * testsuite/std/time/year_month/2.cc: Likewise.
2363 * testsuite/std/time/year_month/io.cc: Likewise.
2364 * testsuite/std/time/year_month_day/1.cc: Likewise.
2365 * testsuite/std/time/year_month_day/2.cc: Likewise.
2366 * testsuite/std/time/year_month_day/3.cc: Likewise.
2367 * testsuite/std/time/year_month_day/4.cc: Likewise.
2368 * testsuite/std/time/year_month_day/io.cc: Likewise.
2369 * testsuite/std/time/year_month_day_last/1.cc: Likewise.
2370 * testsuite/std/time/year_month_day_last/2.cc: Likewise.
2371 * testsuite/std/time/year_month_day_last/io.cc: Likewise.
2372 * testsuite/std/time/year_month_weekday/1.cc: Likewise.
2373 * testsuite/std/time/year_month_weekday/2.cc: Likewise.
2374 * testsuite/std/time/year_month_weekday/3.cc: Likewise.
2375 * testsuite/std/time/year_month_weekday/io.cc: Likewise.
2376 * testsuite/std/time/year_month_weekday_last/1.cc: Likewise.
2377 * testsuite/std/time/year_month_weekday_last/2.cc: Likewise.
2378 * testsuite/std/time/year_month_weekday_last/io.cc: Likewise.
2379 * testsuite/std/time/zoned_time/1.cc: Likewise.
2380 * testsuite/std/time/zoned_time/custom.cc: Likewise.
2381 * testsuite/std/time/zoned_time/deduction.cc: Likewise.
2382 * testsuite/std/time/zoned_time/io.cc: Likewise.
2383 * testsuite/std/time/zoned_time/req_neg.cc: Likewise.
2384 * testsuite/std/time/zoned_time/requirements.cc: Likewise.
2385 * testsuite/std/time/zoned_traits.cc: Likewise.
2387 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2389 * testsuite/std/format/arguments/args.cc: Remove dg-options.
2390 * testsuite/std/format/arguments/lwg3810.cc: Likewise.
2391 * testsuite/std/format/error.cc: Likewise.
2392 * testsuite/std/format/format_string.cc: Likewise.
2393 * testsuite/std/format/formatter/concept.cc: Likewise.
2394 * testsuite/std/format/formatter/ext_float.cc: Likewise.
2395 * testsuite/std/format/formatter/requirements.cc: Likewise.
2396 * testsuite/std/format/functions/107871.cc: Likewise.
2397 * testsuite/std/format/functions/format.cc: Likewise.
2398 * testsuite/std/format/functions/format_to.cc: Likewise.
2399 * testsuite/std/format/functions/format_to_n.cc: Likewise.
2400 * testsuite/std/format/functions/size.cc: Likewise.
2401 * testsuite/std/format/functions/vformat_to.cc: Likewise.
2402 * testsuite/std/format/parse_ctx.cc: Likewise.
2403 * testsuite/std/format/string.cc: Likewise.
2404 * testsuite/std/format/string_neg.cc: Likewise.
2405 * testsuite/std/format/functions/format_c++23.cc: Removed.
2407 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2409 * testsuite/20_util/function_objects/range.cmp/equal_to.cc:
2411 * testsuite/20_util/function_objects/range.cmp/greater.cc:
2413 * testsuite/20_util/function_objects/range.cmp/greater_equal.cc:
2415 * testsuite/20_util/function_objects/range.cmp/less.cc:
2417 * testsuite/20_util/function_objects/range.cmp/less_equal.cc:
2419 * testsuite/20_util/function_objects/range.cmp/lwg3530.cc:
2421 * testsuite/20_util/function_objects/range.cmp/not_equal_to.cc:
2423 * testsuite/20_util/specialized_algorithms/construct_at/1.cc:
2425 * testsuite/20_util/specialized_algorithms/construct_at/92878_92947.cc:
2427 * testsuite/20_util/specialized_algorithms/construct_at/95788.cc:
2429 * testsuite/20_util/specialized_algorithms/destroy/constrained.cc:
2431 * testsuite/20_util/specialized_algorithms/uninitialized_copy/constrained.cc:
2433 * testsuite/20_util/specialized_algorithms/uninitialized_default_construct/constrained.cc:
2435 * testsuite/20_util/specialized_algorithms/uninitialized_fill/94017.cc:
2437 * testsuite/20_util/specialized_algorithms/uninitialized_fill/constrained.cc:
2439 * testsuite/20_util/specialized_algorithms/uninitialized_fill_n/94017.cc:
2441 * testsuite/20_util/specialized_algorithms/uninitialized_move/constrained.cc:
2443 * testsuite/20_util/specialized_algorithms/uninitialized_value_construct/constrained.cc:
2445 * testsuite/25_algorithms/adjacent_find/constexpr.cc: Likewise.
2446 * testsuite/25_algorithms/adjacent_find/constrained.cc:
2448 * testsuite/25_algorithms/all_of/constexpr.cc: Likewise.
2449 * testsuite/25_algorithms/all_of/constrained.cc: Likewise.
2450 * testsuite/25_algorithms/any_of/constexpr.cc: Likewise.
2451 * testsuite/25_algorithms/any_of/constrained.cc: Likewise.
2452 * testsuite/25_algorithms/binary_search/constexpr.cc: Likewise.
2453 * testsuite/25_algorithms/binary_search/constrained.cc:
2455 * testsuite/25_algorithms/clamp/constrained.cc: Likewise.
2456 * testsuite/25_algorithms/constexpr_macro.cc: Likewise.
2457 * testsuite/25_algorithms/copy/95578.cc: Likewise.
2458 * testsuite/25_algorithms/copy/constexpr.cc: Likewise.
2459 * testsuite/25_algorithms/copy/constrained.cc: Likewise.
2460 * testsuite/25_algorithms/copy/debug/constexpr_neg.cc: Likewise.
2461 * testsuite/25_algorithms/copy_backward/95578.cc: Likewise.
2462 * testsuite/25_algorithms/copy_backward/constexpr.cc: Likewise.
2463 * testsuite/25_algorithms/copy_backward/constrained.cc:
2465 * testsuite/25_algorithms/copy_backward/debug/constexpr_neg.cc:
2467 * testsuite/25_algorithms/copy_if/constexpr.cc: Likewise.
2468 * testsuite/25_algorithms/copy_if/constrained.cc: Likewise.
2469 * testsuite/25_algorithms/copy_n/constexpr.cc: Likewise.
2470 * testsuite/25_algorithms/copy_n/constrained.cc: Likewise.
2471 * testsuite/25_algorithms/count/constexpr.cc: Likewise.
2472 * testsuite/25_algorithms/count/constrained.cc: Likewise.
2473 * testsuite/25_algorithms/count_if/constexpr.cc: Likewise.
2474 * testsuite/25_algorithms/count_if/constrained.cc: Likewise.
2475 * testsuite/25_algorithms/cpp_lib_constexpr.cc: Likewise.
2476 * testsuite/25_algorithms/equal/95578.cc: Likewise.
2477 * testsuite/25_algorithms/equal/constexpr.cc: Likewise.
2478 * testsuite/25_algorithms/equal/constexpr_neg.cc: Likewise.
2479 * testsuite/25_algorithms/equal/constrained.cc: Likewise.
2480 * testsuite/25_algorithms/equal/debug/constexpr_neg.cc:
2482 * testsuite/25_algorithms/equal_range/constexpr.cc: Likewise.
2483 * testsuite/25_algorithms/equal_range/constrained.cc: Likewise.
2484 * testsuite/25_algorithms/fill/94017.cc: Likewise.
2485 * testsuite/25_algorithms/fill/constexpr.cc: Likewise.
2486 * testsuite/25_algorithms/fill/constrained.cc: Likewise.
2487 * testsuite/25_algorithms/fill_n/94017.cc: Likewise.
2488 * testsuite/25_algorithms/fill_n/constexpr.cc: Likewise.
2489 * testsuite/25_algorithms/fill_n/constrained.cc: Likewise.
2490 * testsuite/25_algorithms/find/constexpr.cc: Likewise.
2491 * testsuite/25_algorithms/find/constrained.cc: Likewise.
2492 * testsuite/25_algorithms/find_end/constexpr.cc: Likewise.
2493 * testsuite/25_algorithms/find_end/constrained.cc: Likewise.
2494 * testsuite/25_algorithms/find_first_of/constexpr.cc: Likewise.
2495 * testsuite/25_algorithms/find_first_of/constrained.cc:
2497 * testsuite/25_algorithms/find_if/constexpr.cc: Likewise.
2498 * testsuite/25_algorithms/find_if/constrained.cc: Likewise.
2499 * testsuite/25_algorithms/find_if_not/constexpr.cc: Likewise.
2500 * testsuite/25_algorithms/find_if_not/constrained.cc: Likewise.
2501 * testsuite/25_algorithms/for_each/constexpr.cc: Likewise.
2502 * testsuite/25_algorithms/for_each/constrained.cc: Likewise.
2503 * testsuite/25_algorithms/generate/constexpr.cc: Likewise.
2504 * testsuite/25_algorithms/generate/constrained.cc: Likewise.
2505 * testsuite/25_algorithms/generate_n/constexpr.cc: Likewise.
2506 * testsuite/25_algorithms/generate_n/constrained.cc: Likewise.
2507 * testsuite/25_algorithms/heap/constrained.cc: Likewise.
2508 * testsuite/25_algorithms/includes/constrained.cc: Likewise.
2509 * testsuite/25_algorithms/inplace_merge/constrained.cc:
2511 * testsuite/25_algorithms/is_heap/constexpr.cc: Likewise.
2512 * testsuite/25_algorithms/is_heap_until/constexpr.cc: Likewise.
2513 * testsuite/25_algorithms/is_partitioned/constexpr.cc: Likewise.
2514 * testsuite/25_algorithms/is_partitioned/constrained.cc:
2516 * testsuite/25_algorithms/is_permutation/constexpr.cc: Likewise.
2517 * testsuite/25_algorithms/is_permutation/constrained.cc:
2519 * testsuite/25_algorithms/is_sorted/constexpr.cc: Likewise.
2520 * testsuite/25_algorithms/is_sorted/constrained.cc: Likewise.
2521 * testsuite/25_algorithms/is_sorted_until/constexpr.cc:
2523 * testsuite/25_algorithms/is_sorted_until/constrained.cc:
2525 * testsuite/25_algorithms/iter_swap/constexpr.cc: Likewise.
2526 * testsuite/25_algorithms/lexicographical_compare/93972.cc:
2528 * testsuite/25_algorithms/lexicographical_compare/95578.cc:
2530 * testsuite/25_algorithms/lexicographical_compare/constexpr.cc:
2532 * testsuite/25_algorithms/lexicographical_compare/constrained.cc:
2534 * testsuite/25_algorithms/lexicographical_compare_three_way/1.cc:
2536 * testsuite/25_algorithms/lexicographical_compare_three_way/constexpr.cc:
2538 * testsuite/25_algorithms/lower_bound/constexpr.cc: Likewise.
2539 * testsuite/25_algorithms/lower_bound/constrained.cc: Likewise.
2540 * testsuite/25_algorithms/lower_bound/debug/constexpr_partitioned_neg.cc:
2542 * testsuite/25_algorithms/lower_bound/debug/constexpr_partitioned_pred_neg.cc:
2544 * testsuite/25_algorithms/lower_bound/debug/constexpr_valid_range_neg.cc:
2546 * testsuite/25_algorithms/make_heap/constexpr.cc: Likewise.
2547 * testsuite/25_algorithms/max/constrained.cc: Likewise.
2548 * testsuite/25_algorithms/max_element/constrained.cc: Likewise.
2549 * testsuite/25_algorithms/merge/constexpr.cc: Likewise.
2550 * testsuite/25_algorithms/merge/constrained.cc: Likewise.
2551 * testsuite/25_algorithms/min/constrained.cc: Likewise.
2552 * testsuite/25_algorithms/min_element/constrained.cc: Likewise.
2553 * testsuite/25_algorithms/minmax/constrained.cc: Likewise.
2554 * testsuite/25_algorithms/minmax_element/constrained.cc:
2556 * testsuite/25_algorithms/mismatch/constexpr.cc: Likewise.
2557 * testsuite/25_algorithms/mismatch/constrained.cc: Likewise.
2558 * testsuite/25_algorithms/move/93872.cc: Likewise.
2559 * testsuite/25_algorithms/move/95578.cc: Likewise.
2560 * testsuite/25_algorithms/move/constexpr.cc: Likewise.
2561 * testsuite/25_algorithms/move/constrained.cc: Likewise.
2562 * testsuite/25_algorithms/move_backward/93872.cc: Likewise.
2563 * testsuite/25_algorithms/move_backward/95578.cc: Likewise.
2564 * testsuite/25_algorithms/move_backward/constrained.cc:
2566 * testsuite/25_algorithms/next_permutation/constexpr.cc:
2568 * testsuite/25_algorithms/next_permutation/constrained.cc:
2570 * testsuite/25_algorithms/none_of/constexpr.cc: Likewise.
2571 * testsuite/25_algorithms/none_of/constrained.cc: Likewise.
2572 * testsuite/25_algorithms/nth_element/constexpr.cc: Likewise.
2573 * testsuite/25_algorithms/nth_element/constrained.cc: Likewise.
2574 * testsuite/25_algorithms/partial_sort/constexpr.cc: Likewise.
2575 * testsuite/25_algorithms/partial_sort/constrained.cc: Likewise.
2576 * testsuite/25_algorithms/partial_sort_copy/constexpr.cc:
2578 * testsuite/25_algorithms/partial_sort_copy/constrained.cc:
2580 * testsuite/25_algorithms/partition/constexpr.cc: Likewise.
2581 * testsuite/25_algorithms/partition/constrained.cc: Likewise.
2582 * testsuite/25_algorithms/partition_copy/constexpr.cc: Likewise.
2583 * testsuite/25_algorithms/partition_copy/constrained.cc:
2585 * testsuite/25_algorithms/partition_point/constexpr.cc:
2587 * testsuite/25_algorithms/partition_point/constrained.cc:
2589 * testsuite/25_algorithms/pop_heap/constexpr.cc: Likewise.
2590 * testsuite/25_algorithms/prev_permutation/constexpr.cc:
2592 * testsuite/25_algorithms/prev_permutation/constrained.cc:
2594 * testsuite/25_algorithms/push_heap/constexpr.cc: Likewise.
2595 * testsuite/25_algorithms/remove/constexpr.cc: Likewise.
2596 * testsuite/25_algorithms/remove/constrained.cc: Likewise.
2597 * testsuite/25_algorithms/remove_copy/constexpr.cc: Likewise.
2598 * testsuite/25_algorithms/remove_copy/constrained.cc: Likewise.
2599 * testsuite/25_algorithms/remove_copy_if/constexpr.cc: Likewise.
2600 * testsuite/25_algorithms/remove_copy_if/constrained.cc:
2602 * testsuite/25_algorithms/remove_if/constexpr.cc: Likewise.
2603 * testsuite/25_algorithms/remove_if/constrained.cc: Likewise.
2604 * testsuite/25_algorithms/replace/constrained.cc: Likewise.
2605 * testsuite/25_algorithms/replace_copy/constexpr.cc: Likewise.
2606 * testsuite/25_algorithms/replace_copy/constrained.cc: Likewise.
2607 * testsuite/25_algorithms/replace_copy_if/constexpr.cc:
2609 * testsuite/25_algorithms/replace_copy_if/constrained.cc:
2611 * testsuite/25_algorithms/replace_if/constexpr.cc: Likewise.
2612 * testsuite/25_algorithms/replace_if/constrained.cc: Likewise.
2613 * testsuite/25_algorithms/reverse/constexpr.cc: Likewise.
2614 * testsuite/25_algorithms/reverse/constrained.cc: Likewise.
2615 * testsuite/25_algorithms/reverse_copy/constexpr.cc: Likewise.
2616 * testsuite/25_algorithms/reverse_copy/constrained.cc: Likewise.
2617 * testsuite/25_algorithms/rotate/constexpr.cc: Likewise.
2618 * testsuite/25_algorithms/rotate/constrained.cc: Likewise.
2619 * testsuite/25_algorithms/rotate_copy/constexpr.cc: Likewise.
2620 * testsuite/25_algorithms/rotate_copy/constrained.cc: Likewise.
2621 * testsuite/25_algorithms/sample/constrained.cc: Likewise.
2622 * testsuite/25_algorithms/search/constexpr.cc: Likewise.
2623 * testsuite/25_algorithms/search/constrained.cc: Likewise.
2624 * testsuite/25_algorithms/search_n/97828.cc: Likewise.
2625 * testsuite/25_algorithms/search_n/constexpr.cc: Likewise.
2626 * testsuite/25_algorithms/search_n/constrained.cc: Likewise.
2627 * testsuite/25_algorithms/set_difference/constexpr.cc: Likewise.
2628 * testsuite/25_algorithms/set_difference/constrained.cc:
2630 * testsuite/25_algorithms/set_intersection/constexpr.cc:
2632 * testsuite/25_algorithms/set_intersection/constrained.cc:
2634 * testsuite/25_algorithms/set_symmetric_difference/constexpr.cc:
2636 * testsuite/25_algorithms/set_symmetric_difference/constrained.cc:
2638 * testsuite/25_algorithms/set_union/constexpr.cc: Likewise.
2639 * testsuite/25_algorithms/set_union/constrained.cc: Likewise.
2640 * testsuite/25_algorithms/shift_left/1.cc: Likewise.
2641 * testsuite/25_algorithms/shift_right/1.cc: Likewise.
2642 * testsuite/25_algorithms/shuffle/constrained.cc: Likewise.
2643 * testsuite/25_algorithms/sort/constexpr.cc: Likewise.
2644 * testsuite/25_algorithms/sort/constrained.cc: Likewise.
2645 * testsuite/25_algorithms/sort_heap/constexpr.cc: Likewise.
2646 * testsuite/25_algorithms/stable_partition/constrained.cc:
2648 * testsuite/25_algorithms/stable_sort/constrained.cc: Likewise.
2649 * testsuite/25_algorithms/swap/constexpr.cc: Likewise.
2650 * testsuite/25_algorithms/swap_ranges/constexpr.cc: Likewise.
2651 * testsuite/25_algorithms/swap_ranges/constrained.cc: Likewise.
2652 * testsuite/25_algorithms/transform/constexpr.cc: Likewise.
2653 * testsuite/25_algorithms/transform/constrained.cc: Likewise.
2654 * testsuite/25_algorithms/unique/constexpr.cc: Likewise.
2655 * testsuite/25_algorithms/unique/constrained.cc: Likewise.
2656 * testsuite/25_algorithms/unique_copy/constexpr.cc: Likewise.
2657 * testsuite/25_algorithms/unique_copy/constrained.cc: Likewise.
2658 * testsuite/25_algorithms/upper_bound/constexpr.cc: Likewise.
2659 * testsuite/25_algorithms/upper_bound/constrained.cc: Likewise.
2660 * testsuite/25_algorithms/upper_bound/debug/constexpr_partitioned_neg.cc:
2662 * testsuite/25_algorithms/upper_bound/debug/constexpr_partitioned_pred_neg.cc:
2664 * testsuite/25_algorithms/upper_bound/debug/constexpr_valid_range_neg.cc:
2667 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2669 * testsuite/std/concepts/1.cc: Remove dg-options.
2670 * testsuite/std/concepts/2.cc: Likewise.
2671 * testsuite/std/concepts/concepts.callable/invocable.cc:
2673 * testsuite/std/concepts/concepts.callable/regular_invocable.cc:
2675 * testsuite/std/concepts/concepts.callable/relation.cc:
2677 * testsuite/std/concepts/concepts.callable/strictweakorder.cc:
2679 * testsuite/std/concepts/concepts.lang/concept.arithmetic/floating_point.cc: Likewise.
2680 * testsuite/std/concepts/concepts.lang/concept.arithmetic/integral.cc: Likewise.
2681 * testsuite/std/concepts/concepts.lang/concept.arithmetic/signed_integral.cc: Likewise.
2682 * testsuite/std/concepts/concepts.lang/concept.arithmetic/unsigned_integral.cc: Likewise.
2683 * testsuite/std/concepts/concepts.lang/concept.assignable/1.cc:
2685 * testsuite/std/concepts/concepts.lang/concept.common/1.cc:
2687 * testsuite/std/concepts/concepts.lang/concept.commonref/1.cc:
2689 * testsuite/std/concepts/concepts.lang/concept.constructible/1.cc: Likewise.
2690 * testsuite/std/concepts/concepts.lang/concept.convertible/1.cc:
2692 * testsuite/std/concepts/concepts.lang/concept.copyconstructible/1.cc: Likewise.
2693 * testsuite/std/concepts/concepts.lang/concept.defaultinitializable/1.cc: Likewise.
2694 * testsuite/std/concepts/concepts.lang/concept.defaultinitializable/lwg3149.cc: Likewise.
2695 * testsuite/std/concepts/concepts.lang/concept.derived/1.cc:
2697 * testsuite/std/concepts/concepts.lang/concept.destructible/1.cc: Likewise.
2698 * testsuite/std/concepts/concepts.lang/concept.moveconstructible/1.cc: Likewise.
2699 * testsuite/std/concepts/concepts.lang/concept.same/1.cc:
2701 * testsuite/std/concepts/concepts.lang/concept.swappable/swap.cc: Likewise.
2702 * testsuite/std/concepts/concepts.lang/concept.swappable/swappable.cc: Likewise.
2703 * testsuite/std/concepts/concepts.lang/concept.swappable/swappable_with.cc: Likewise.
2704 * testsuite/std/concepts/concepts.object/copyable.cc: Likewise.
2705 * testsuite/std/concepts/concepts.object/movable.cc: Likewise.
2706 * testsuite/std/concepts/concepts.object/regular.cc: Likewise.
2707 * testsuite/std/concepts/concepts.object/semiregular.cc:
2709 * testsuite/std/ranges/97600.cc: Likewise.
2710 * testsuite/std/ranges/access/101782.cc: Likewise.
2711 * testsuite/std/ranges/access/begin.cc: Likewise.
2712 * testsuite/std/ranges/access/begin_neg.cc: Likewise.
2713 * testsuite/std/ranges/access/cbegin.cc: Likewise.
2714 * testsuite/std/ranges/access/cdata.cc: Likewise.
2715 * testsuite/std/ranges/access/cend.cc: Likewise.
2716 * testsuite/std/ranges/access/crbegin.cc: Likewise.
2717 * testsuite/std/ranges/access/crend.cc: Likewise.
2718 * testsuite/std/ranges/access/data.cc: Likewise.
2719 * testsuite/std/ranges/access/empty.cc: Likewise.
2720 * testsuite/std/ranges/access/end.cc: Likewise.
2721 * testsuite/std/ranges/access/end_neg.cc: Likewise.
2722 * testsuite/std/ranges/access/lwg3467.cc: Likewise.
2723 * testsuite/std/ranges/access/p2602.cc: Likewise.
2724 * testsuite/std/ranges/access/rbegin.cc: Likewise.
2725 * testsuite/std/ranges/access/rend.cc: Likewise.
2726 * testsuite/std/ranges/access/size.cc: Likewise.
2727 * testsuite/std/ranges/access/size_neg.cc: Likewise.
2728 * testsuite/std/ranges/access/ssize.cc: Likewise.
2729 * testsuite/std/ranges/adaptors/100479.cc: Likewise.
2730 * testsuite/std/ranges/adaptors/100577.cc: Likewise.
2731 * testsuite/std/ranges/adaptors/93978.cc: Likewise.
2732 * testsuite/std/ranges/adaptors/95322.cc: Likewise.
2733 * testsuite/std/ranges/adaptors/99433.cc: Likewise.
2734 * testsuite/std/ranges/adaptors/all.cc: Likewise.
2735 * testsuite/std/ranges/adaptors/common.cc: Likewise.
2736 * testsuite/std/ranges/adaptors/conditionally_borrowed.cc:
2738 * testsuite/std/ranges/adaptors/counted.cc: Likewise.
2739 * testsuite/std/ranges/adaptors/detail/copyable_box.cc:
2741 * testsuite/std/ranges/adaptors/drop.cc: Likewise.
2742 * testsuite/std/ranges/adaptors/drop_while.cc: Likewise.
2743 * testsuite/std/ranges/adaptors/elements.cc: Likewise.
2744 * testsuite/std/ranges/adaptors/filter.cc: Likewise.
2745 * testsuite/std/ranges/adaptors/join.cc: Likewise.
2746 * testsuite/std/ranges/adaptors/lazy_split.cc: Likewise.
2747 * testsuite/std/ranges/adaptors/lazy_split_neg.cc: Likewise.
2748 * testsuite/std/ranges/adaptors/lwg3286.cc: Likewise.
2749 * testsuite/std/ranges/adaptors/lwg3313_neg.cc: Likewise.
2750 * testsuite/std/ranges/adaptors/lwg3325_neg.cc: Likewise.
2751 * testsuite/std/ranges/adaptors/lwg3406.cc: Likewise.
2752 * testsuite/std/ranges/adaptors/p1739.cc: Likewise.
2753 * testsuite/std/ranges/adaptors/p2281.cc: Likewise.
2754 * testsuite/std/ranges/adaptors/p2770r0.cc: Likewise.
2755 * testsuite/std/ranges/adaptors/reverse.cc: Likewise.
2756 * testsuite/std/ranges/adaptors/sizeof.cc: Likewise.
2757 * testsuite/std/ranges/adaptors/split.cc: Likewise.
2758 * testsuite/std/ranges/adaptors/take.cc: Likewise.
2759 * testsuite/std/ranges/adaptors/take_while.cc: Likewise.
2760 * testsuite/std/ranges/adaptors/transform.cc: Likewise.
2761 * testsuite/std/ranges/empty_view.cc: Likewise.
2762 * testsuite/std/ranges/headers/ranges/synopsis.cc: Likewise.
2763 * testsuite/std/ranges/iota/difference_type.cc: Likewise.
2764 * testsuite/std/ranges/iota/iota_view.cc: Likewise.
2765 * testsuite/std/ranges/iota/iterator.cc: Likewise.
2766 * testsuite/std/ranges/iota/lwg3292_neg.cc: Likewise.
2767 * testsuite/std/ranges/iota/max_size_type.cc: Likewise.
2768 * testsuite/std/ranges/istream_view.cc: Likewise.
2769 * testsuite/std/ranges/p2259.cc: Likewise.
2770 * testsuite/std/ranges/p2325.cc: Likewise.
2771 * testsuite/std/ranges/p2367.cc: Likewise.
2772 * testsuite/std/ranges/range.cc: Likewise.
2773 * testsuite/std/ranges/refinements.cc: Likewise.
2774 * testsuite/std/ranges/safe_range.cc: Likewise.
2775 * testsuite/std/ranges/safe_range_types.cc: Likewise.
2776 * testsuite/std/ranges/single_view.cc: Likewise.
2777 * testsuite/std/ranges/sized.cc: Likewise.
2778 * testsuite/std/ranges/subrange/1.cc: Likewise.
2779 * testsuite/std/ranges/subrange/97512.cc: Likewise.
2780 * testsuite/std/ranges/subrange/constexpr.cc: Likewise.
2781 * testsuite/std/ranges/subrange/lwg3282_neg.cc: Likewise.
2782 * testsuite/std/ranges/subrange/lwg3286.cc: Likewise.
2783 * testsuite/std/ranges/subrange/lwg3433.cc: Likewise.
2784 * testsuite/std/ranges/subrange/sizeof.cc: Likewise.
2785 * testsuite/std/ranges/subrange/tuple_like.cc: Likewise.
2786 * testsuite/std/ranges/view.cc: Likewise.
2788 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2790 * testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc:
2792 * testsuite/23_containers/span/contiguous_range_neg.cc:
2794 * testsuite/23_containers/span/everything.cc: Likewise.
2796 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2798 * testsuite/24_iterators/reverse_iterator/100639.cc: Remove
2799 dg-options and add dg-add-options strict_std.
2800 * testsuite/std/ranges/iota/93267.cc: Likewise.
2801 * testsuite/std/ranges/iota/96042.cc: Likewise.
2802 * testsuite/std/ranges/iota/size.cc: Likewise.
2803 * testsuite/std/ranges/subrange/96042.cc: Likewise.
2805 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2807 * testsuite/tr1/5_numerical_facilities/special_functions/07_conf_hyperg/compile_cxx17.cc:
2808 Replace dg-options -std=c++17 with dg-add-options strict_std.
2809 * testsuite/tr1/5_numerical_facilities/special_functions/17_hyperg/compile_cxx17.cc:
2812 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2814 * testsuite/23_containers/deque/48101-2_neg.cc: Replace
2815 dg-options with target selector.
2816 * testsuite/23_containers/forward_list/48101-2_neg.cc: Likewise.
2817 * testsuite/23_containers/list/48101-2_neg.cc: Likewise.
2818 * testsuite/23_containers/map/48101-2_neg.cc: Likewise.
2819 * testsuite/23_containers/map/48101_neg.cc: Likewise.
2820 * testsuite/23_containers/multimap/48101-2_neg.cc: Likewise.
2821 * testsuite/23_containers/multimap/48101_neg.cc: Likewise.
2822 * testsuite/23_containers/multiset/48101-2_neg.cc: Likewise.
2823 * testsuite/23_containers/set/48101-2_neg.cc: Likewise.
2824 * testsuite/23_containers/unordered_map/48101-2_neg.cc:
2826 * testsuite/23_containers/unordered_multimap/48101-2_neg.cc:
2828 * testsuite/23_containers/unordered_multiset/48101-2_neg.cc:
2830 * testsuite/23_containers/unordered_set/48101-2_neg.cc:
2832 * testsuite/23_containers/vector/48101-2_neg.cc: Likewise.
2834 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2836 * doc/xml/manual/test.xml: Update documentation on running and
2838 * doc/html/manual/test.html: Regenerate.
2839 * testsuite/Makefile.am: Add v3-use-std-list to site.tmp
2840 * testsuite/Makefile.in: Regenerate.
2841 * testsuite/lib/dg-options.exp (add_options_for_strict_std): New
2843 * testsuite/lib/libstdc++.exp (search_for): New utility proc.
2844 (v3-dg-runtest): New proc to replace dg-runtest.
2845 * testsuite/libstdc++-dg/conformance.exp: Use v3-dg-runtest.
2847 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2849 * testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc:
2850 Fix test to work for C++23 and C++26 too.
2852 2023-09-15 Patrick Palka <ppalka@redhat.com>
2854 * include/std/bit: Include <concepts>.
2855 (byteswap): Use a type-constraint instead of enable_if_t
2856 inside the return type, and use std::integral.
2857 (_If_is_unsigned_integer): Replace with ...
2858 (__unsigned_integer): ... this.
2859 (rotl): Use a type-constraint instead of enable_if_t inside
2861 (countl_zero): Likewise.
2862 (countl_one): Likewise.
2863 (countr_zero): Likewise.
2864 (countr_one): Likewise.
2865 (popcount): Likewise.
2866 (has_single_bit): Likewise.
2867 (bit_ceil): Likewise.
2868 (bit_floor): Likewise.
2869 (bit_width): Likewise.
2871 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2873 * include/std/variant (variant): Remove derivation from
2874 _Enable_default_constructor base class.
2875 (variant::variant()): Constrain.
2876 * testsuite/20_util/variant/default_ctor.cc: New test.
2878 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2881 * include/std/variant (get<T>): Remove !is_void static
2884 2023-09-15 Jonathan Wakely <jwakely@redhat.com>
2886 * include/bits/version.def (to_chars): Define new value for
2888 * include/bits/version.h: Regenerate.
2889 * include/std/charconv (to_chars_result::operator bool): New
2891 (from_chars_result::operator bool): New function.
2892 * testsuite/20_util/to_chars/version.cc: Update expected value.
2893 * testsuite/20_util/from_chars/result.cc: New test.
2894 * testsuite/20_util/to_chars/result.cc: New test.
2896 2023-09-14 Jonathan Wakely <jwakely@redhat.com>
2899 * testsuite/20_util/integer_sequence/pr111357.cc: New test.
2901 2023-09-14 Jonathan Wakely <jwakely@redhat.com>
2903 * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Use
2904 dg-additional-files. Remove @require@ and @diff@ comments.
2905 * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Likewise.
2906 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Likewise.
2907 * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Likewise.
2908 * testsuite/lib/dg-options.exp (v3_additional_files): New
2910 (dg-additional-files): New proc.
2911 * testsuite/lib/libstdc++.exp (v3_target_compile): Copy
2912 additional files to test directory.
2914 2023-09-14 Jonathan Wakely <jwakely@redhat.com>
2916 * include/experimental/io_context (io_context) [!_GLIBCXX_HAS_GTHREADS]:
2917 Use a plain integer for _M_work_count for single-threaded
2919 * include/experimental/memory_resource (__get_default_resource)
2920 [!_GLIBCXX_HAS_GTHREADS]: Use unsynchronized type for
2921 single-threaded targets.
2922 * src/c++17/default_resource.h: Adjust preprocessor conditions
2923 to match memory_resource.cc.
2924 * src/c++17/memory_resource.cc [!_GLIBCXX_HAS_GTHREADS]
2925 (atomic_mem_res): Use unsynchronized type for single-threaded
2928 2023-09-14 Christophe Lyon <christophe.lyon@linaro.org>
2930 * testsuite/29_atomics/atomic/compare_exchange_padding.cc: Likewise.
2931 * testsuite/29_atomics/atomic/cons/value_init.cc: Likewise.
2932 * testsuite/29_atomics/atomic_float/value_init.cc: Likewise.
2933 * testsuite/29_atomics/atomic_integral/cons/value_init.cc: Likewise.
2934 * testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc: Likewise.
2935 * testsuite/29_atomics/atomic_ref/generic.cc: Likewise.
2936 * testsuite/29_atomics/atomic_ref/integral.cc: Likewise.
2937 * testsuite/29_atomics/atomic_ref/pointer.cc: Likewise.
2939 2023-09-14 François Dumont <fdumont@gcc.gnu.org>
2941 * testsuite/19_diagnostics/stacktrace/synopsis.cc: Add
2942 { dg-require-normal-namespace "" }.
2944 2023-09-13 François Dumont <fdumont@gcc.gnu.org>
2946 * include/std/format (std::__format::_Arg_store): Explicit version
2947 namespace on make_format_args friend declaration.
2949 2023-09-12 Patrick Palka <ppalka@redhat.com>
2952 * include/std/functional (_GLIBCXX_NOT_FN_CALL_OP): Also define
2953 a deleted fallback operator() overload. Constrain both the
2954 enabled and deleted overloads accordingly.
2955 * testsuite/20_util/function_objects/not_fn/111327.cc: New test.
2957 2023-09-12 Patrick Palka <ppalka@redhat.com>
2960 * include/std/functional (_Bind_front::operator()): Add deleted
2961 fallback overloads for each const/ref qualifier pair. Give the
2962 enabled overloads dummy constraints to make each one more
2963 specialized than the corresponding deleted overload.
2964 * testsuite/20_util/function_objects/bind_front/111327.cc: New test.
2966 2023-09-12 Patrick Palka <ppalka@redhat.com>
2968 * include/std/functional (_Bind_front0): Remove.
2969 (_Bind_front_t): Adjust.
2971 2023-09-12 Jonathan Wakely <jwakely@redhat.com>
2973 * python/libstdcxx/v6/printers.py: Reformat.
2974 * python/libstdcxx/v6/xmethods.py: Likewise.
2976 2023-09-11 Jonathan Wakely <jwakely@redhat.com>
2978 * src/c++11/debug.cc (acquire_sequence_ptr_for_lock): New
2980 (reset_sequence_ptr): New function.
2981 (_Safe_iterator_base::_M_detach)
2982 (_Safe_local_iterator_base::_M_detach): Replace bare atomic_load
2983 with acquire_sequence_ptr_for_lock.
2984 (_Safe_iterator_base::_M_reset): Replace bare atomic_store with
2987 2023-09-11 Jonathan Wakely <jwakely@redhat.com>
2989 * src/c++11/Makefile.am: Add new file.
2990 * src/c++11/Makefile.in: Regenerate.
2991 * src/c++11/debug.cc (__glibcxx_assert_fail): Move to ...
2992 * src/c++11/assert_fail.cc: New file.
2994 2023-09-11 Ken Matsui <kmatsui@gcc.gnu.org>
2996 * include/bits/c++config (_GLIBCXX_HAS_BUILTIN): Do not undef.
2997 (_GLIBCXX_USE_BUILTIN_TRAIT): Define.
2999 2023-09-11 Jonathan Wakely <jwakely@redhat.com>
3001 * include/bits/version.def (__cpp_lib_formatters): Define.
3002 * include/bits/version.h: Regenerate.
3003 * include/std/stacktrace (formatter<stacktrace_entry>)
3004 (formatter<basic_stacktrace<Alloc>>): Define.
3005 * include/std/thread (formatter<thread::id, charT>): Define.
3006 * testsuite/19_diagnostics/stacktrace/output.cc: New test.
3007 * testsuite/19_diagnostics/stacktrace/synopsis.cc: Add
3008 std::formatter specializations.
3009 * testsuite/19_diagnostics/stacktrace/version.cc: Check
3010 __cpp_lib_formatters macro.
3011 * testsuite/30_threads/thread/id/hash.cc: Remove gthreads
3013 * testsuite/30_threads/thread/id/operators.cc: Likewise.
3014 * testsuite/30_threads/thread/id/operators_c++20.cc: Likewise.
3015 * testsuite/30_threads/thread/id/output.cc: New test.
3017 2023-09-11 Pekka Seppänen <pexu@gcc.mail.kapsi.fi>
3019 * src/c++11/cow-locale_init.cc: Add [[maybe_unused]] attribute.
3020 * src/c++17/fs_path.cc (path::_S_convert_loc): Likewise.
3021 * src/filesystem/path.cc (path::_S_convert_loc): Likewise.
3023 2023-09-08 Jonathan Wakely <jwakely@redhat.com>
3025 * acinclude.m4 (GLIBCXX_CONFIGURE): Add c++23 directory.
3026 * configure: Regenerate.
3027 * doc/html/manual/*: Regenerate.
3028 * doc/xml/manual/using.xml: Update documentation on linking.
3029 * include/std/stacktrace: Remove declarations of libbacktrace
3031 (stacktrace_entry::_S_err_handler, stacktrace_entry::_S_init):
3033 (stacktrace_entry::_Info): New class.
3034 (stacktrace_entry::_M_get_info): Use _Info.
3035 (__stacktrace_impl): New class.
3036 (basic_stacktrace): Derive from __stacktrace_impl.
3037 (basic_stacktrace::current): Use __stacktrace_impl::_S_current.
3038 * scripts/testsuite_flags.in: Adjust LDFLAGS to find
3039 libstdc++exp instead of libstdc++_libbacktrace.
3040 * src/Makefile.am (SUBDIRS): Add c++23 directory.
3041 * src/Makefile.in: Regenerate.
3042 * src/c++20/Makefile.am: Fix comment.
3043 * src/c++20/Makefile.in: Regenerate.
3044 * src/c++23/Makefile.am: New file.
3045 * src/c++23/Makefile.in: New file.
3046 * src/c++23/stacktrace.cc: New file with definitions of
3047 stacktrace_entry::_Info and __stacktrace_impl members.
3048 * src/experimental/Makefile.am: Use LIBADD to include other
3050 * src/experimental/Makefile.in: Regenerate.
3051 * src/libbacktrace/Makefile.am: Use noinst_LTLIBRARIES.
3052 * src/libbacktrace/Makefile.in: Regenerate.
3053 * testsuite/19_diagnostics/stacktrace/current.cc: Adjust
3054 dg-options to use -lstdc++exp.
3055 * testsuite/19_diagnostics/stacktrace/entry.cc: Likewise.
3056 * testsuite/19_diagnostics/stacktrace/stacktrace.cc: Likewise.
3057 * testsuite/23_containers/vector/debug/assign4_backtrace_neg.cc:
3060 2023-09-08 Alexey Lapshin <alexey.lapshin@espressif.com>
3062 * src/libbacktrace/Makefile.am: Remove -Werror.
3063 * src/libbacktrace/Makefile.in: Regenerate.
3065 2023-09-08 Jonathan Wakely <jwakely@redhat.com>
3067 * testsuite/Makefile.am (check-DEJAGNU): Use @ in recipe.
3068 * testsuite/Makefile.in: Regenerate.
3070 2023-09-08 Yang Yujie <yangyujie@loongson.cn>
3072 * configure.host: Register t-loongarch in tmake_file.
3073 * config/cpu/loongarch/t-loongarch: New file. Manually refresh
3074 MULTISUBDIR with $(shell $(CXX) --print-multi-directory).
3076 2023-09-07 Bruno Victal <mirai@makinata.eu>
3078 * acinclude.m4: Update docbook xsl URI.
3079 * configure: Regenerate.
3081 2023-09-07 Bruno Victal <mirai@makinata.eu>
3083 * doc/Makefile.am: Fix 'doc-install-info' rule.
3084 Fix typo in commment.
3085 * doc/Makefile.in: Regenerate.
3087 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
3089 * testsuite/27_io/filesystem/path/concat/94063.cc: Simplify
3090 dg-do target selector.
3092 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
3094 * testsuite/config/default.exp: Remove trailing whitespace.
3095 * testsuite/lib/dg-options.exp: Likewise.
3096 * testsuite/lib/prune.exp: Likewise.
3097 * testsuite/libstdc++-abi/abi.exp: Likewise.
3098 * testsuite/libstdc++-dg/conformance.exp: Likewise.
3099 * testsuite/libstdc++-prettyprinters/prettyprinters.exp:
3101 * testsuite/libstdc++-xmethods/xmethods.exp: Likewise.
3102 * testsuite/lib/libstdc++.exp: Likewise.
3103 (check_v3_target_c_std): Fix filename for temporary source file.
3105 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
3107 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for mkdir,
3108 chmod, chdir, and getcwd.
3109 * config.h.in: Regenerate.
3110 * configure: Regenerate.
3111 * src/c++17/fs_ops.cc (create_dir): Use USE_MKDIR macro.
3112 (fs::current_path): Use USE_GETCWD and USE_CHDIR macros.
3113 (fs::permissions): Use USE_CHMOD macro.
3114 * src/filesystem/ops-common.h [FILESYSTEM_IS_WINDOWS]
3115 (chmod, mkdir, getcwd, chdir): Define new macros.
3116 [FILESYSTEM_IS_WINDOWS] (chmod, mkdir, getcwd, chdir): Use
3118 * src/filesystem/ops.cc (create_dir): Use USE_MKDIR macro.
3119 (fs::current_path): Use USE_GETCWD and USE_CHDIR macros.
3120 (fs::permissions): Use USE_CHMOD macro.
3122 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
3124 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Disable by default
3126 * configure: Regenerate.
3128 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
3130 * testsuite/23_containers/unordered_map/operations/1.cc: Add
3131 dg-options for C++20 mode.
3132 * testsuite/23_containers/unordered_multimap/operations/1.cc:
3134 * testsuite/23_containers/unordered_multiset/operations/1.cc:
3136 * testsuite/23_containers/unordered_set/operations/1.cc:
3138 * testsuite/std/time/parse.cc: Move dg-options before dg-do.
3140 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
3142 * testsuite/std/ranges/access/cbegin.cc: Adjust for C++23
3144 * testsuite/std/ranges/access/cdata.cc: Likewise.
3145 * testsuite/std/ranges/access/cend.cc: Likewise.
3146 * testsuite/std/ranges/access/crbegin.cc: Likewise.
3147 * testsuite/std/ranges/access/crend.cc: Likewise.
3148 * testsuite/std/ranges/adaptors/take.cc: Likewise.
3149 * testsuite/std/ranges/adaptors/take_while.cc: Likewise.
3150 * testsuite/std/ranges/adaptors/transform.cc: Likewise.
3152 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
3154 * include/bits/iterator_concepts.h (__imove::iter_move): Define
3155 poison pill as deleted for consistency.
3156 (__access::begin): Replace with a single declaration.
3157 * include/bits/ranges_base.h (__access::end, __access::rbegin)
3158 (__access::rend, __access::size): Likewise.
3159 * include/bits/version.def (ranges): Update value for C++23.
3160 * include/bits/version.h: Regenerate.
3161 * libsupc++/compare (__compare): Add missing poison pill
3163 * testsuite/std/ranges/version_c++23.cc: Adjust expected value
3164 of __cpp_lib_ranges.
3165 * testsuite/std/ranges/access/p2602.cc: New test.
3167 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
3169 * include/bits/iterator_concepts.h (ranges::__cust_imove):
3170 Rename to ranges::__imove.
3171 (_IMove): Rename to _IterMove.
3172 (ranges::__cust_iswap): Rename to ranges::__iswap.
3173 (ranges::__cust): Rename to ranges::_Cpo.
3174 (ranges::__cust_access): Rename to ranges::__access.
3175 * include/bits/ranges_base.h (ranges::__cust_access): Rename to
3177 (ranges::__cust): Rename to ranges::_Cpo.
3178 * include/std/concepts (ranges::__cust_swap): Rename to
3180 (ranges::__cust): Rename to ranges::_Cpo.
3181 * libsupc++/compare (__cmp_cust): Rename to __compare.
3182 (__cmp_algo): Rename to _Cpo.
3184 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
3186 * include/bits/version.def (ranges): Update value.
3187 * include/bits/version.h: Regenerate.
3188 * include/std/ranges (__detail::__boxable): Use
3189 move_constructible instead of copy_constructible for C++23.
3190 (__detail::__box<T>): Adjust constraints for partial
3192 (single_view, transform_view): Use __box_constructible instead
3193 of copy_constructible in constraints.
3194 (zip_transform_view, adjacent_transform_view, repeat_view): Use
3195 move_constructible instead of copy_constructible in constraints.
3196 * testsuite/std/ranges/adaptors/adjacent_transform/1.cc: Check
3197 construction from move-only argument.
3198 * testsuite/std/ranges/adaptors/transform.cc: Likewise.
3199 * testsuite/std/ranges/repeat/1.cc: Likewise.
3200 * testsuite/std/ranges/single_view.cc: Likewise.
3201 * testsuite/std/ranges/zip_transform/1.cc: Likewise.
3202 * testsuite/std/ranges/version_c++23.cc: Adjust expected value
3203 of __cpp_lib_ranges.
3205 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
3207 * testsuite/util/testsuite_iterators.h (is_customization_point_object):
3208 Remove parameter name.
3210 2023-09-06 Jonathan Wakely <jwakely@redhat.com>
3212 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Disable by default
3214 * configure: Regenerate.
3216 2023-09-04 Christophe Lyon <christophe.lyon@linaro.org>
3219 2023-09-04 Christophe Lyon <christophe.lyon@linaro.org>
3222 * configure: Regenerate.
3223 * configure.ac: Call GLIBCXX_CHECK_LINKER_FEATURES in cross,
3224 non-Canadian builds.
3226 2023-09-04 Christophe Lyon <christophe.lyon@linaro.org>
3229 * configure: Regenerate.
3230 * configure.ac: Call GLIBCXX_CHECK_LINKER_FEATURES in cross,
3231 non-Canadian builds.
3233 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
3235 * testsuite/26_numerics/complex/literals/types.cc: Remove
3236 dg-options and add target selector instead.
3238 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
3240 * testsuite/tr1/6_containers/utility/pair.cc: Remove dg-options
3241 and qualify ambiguous calls to get.
3242 * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Adjust
3243 expected result for std::pow(float, int) as per DR 550.
3245 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
3247 * testsuite/20_util/auto_ptr/1.cc: Remove dg-options -std=c++03
3248 and add dg-warning for deprecation warnings.
3249 * testsuite/20_util/auto_ptr/2.cc: Likewise.
3250 * testsuite/20_util/auto_ptr/3.cc: Likewise.
3251 * testsuite/20_util/auto_ptr/3946.cc: Likewise.
3252 * testsuite/20_util/auto_ptr/4.cc: Likewise.
3253 * testsuite/20_util/auto_ptr/5.cc: Likewise.
3254 * testsuite/20_util/auto_ptr/6.cc: Likewise.
3255 * testsuite/20_util/auto_ptr/7.cc: Likewise.
3256 * testsuite/20_util/auto_ptr/assign_neg.cc: Likewise.
3257 * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc:
3259 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc:
3261 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc:
3263 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc:
3265 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
3267 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc:
3269 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc:
3272 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
3275 * testsuite/23_containers/vector/26412-1.cc: Moved to...
3276 * testsuite/23_containers/vector/26142-1.cc: ...here.
3277 * testsuite/23_containers/vector/26412-2.cc: Moved to...
3278 * testsuite/23_containers/vector/26142-2.cc: ...here.
3280 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
3282 * testsuite/20_util/bitset/107037.cc: Add c++98_only selector.
3283 * testsuite/26_numerics/complex/56111.cc: Likewise.
3285 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
3287 * testsuite/23_containers/deque/requirements/explicit_instantiation/2.cc:
3288 Add dg-options to restrict the test to C++98 mode.
3289 * testsuite/23_containers/list/requirements/explicit_instantiation/2.cc:
3292 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
3294 * testsuite/20_util/expected/bad.cc: Add missing target
3297 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
3299 * testsuite/25_algorithms/copy/debug/constexpr_neg.cc: Adjust
3301 * testsuite/25_algorithms/equal/debug/constexpr_neg.cc:
3304 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
3306 * testsuite/27_io/filesystem/iterators/91067.cc: Add
3307 -Wno-self-move to options.
3308 * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise.
3310 2023-09-01 Vladimir Palevich <palevichva@gmail.com>
3313 * include/bits/vector.tcc (_M_realloc_insert): End guard
3314 lifetime just before assignment to class members.
3315 (_M_default_append): Likewise.
3317 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
3319 * src/c++17/fs_ops.cc (fs::absolute) [FILESYSTEM_IS_WINDOWS]:
3320 Use __resize_and_overwrite to fill buffer.
3321 (fs::read_symlink) [HAVE_READLINK]: Likewise.
3322 * src/filesystem/ops-common.h (get_temp_directory_from_env)
3323 [FILESYSTEM_IS_WINDOWS]: Likewise.
3325 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
3328 * include/bits/atomic_base.h (__atomic_impl::__compare_exchange):
3329 Add _AtomicRef non-type template parameter and use a loop if it
3331 (__atomic_impl::compare_exchange_weak): Add _AtomicRef NTTP.
3332 (__atomic_impl::compare_exchange_strong): Likewise.
3333 (atomic_ref::compare_exchange_weak): Use true for NTTP.
3334 (atomic_ref::compare_exchange_strong): Use true for NTTP.
3335 * testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc:
3336 Fix test to not rely on atomic_ref::load() to return an object
3337 with padding preserved.
3339 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
3341 * testsuite/27_io/filesystem/path/108636.cc: Add dg-require for
3344 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
3346 * src/c++20/tzdb.cc (tzdb::current_zone): Check configure macros
3347 for POSIX readlink before using filesystem::read_symlink.
3349 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
3351 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Default to yes.
3352 * configure: Regenerate.
3354 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
3356 * include/bits/chrono_io.h (_Parser::operator()): Set failbit
3357 early if invalid values are read when _M_need & _TimeOfDay is
3359 * testsuite/std/time/parse.cc: Check that "25:59" cannot be
3362 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
3365 * include/bits/chrono_io.h (_Parser::Operator()): Check %C
3366 values are in range of year::min() to year::max().
3367 * testsuite/std/time/parse.cc: Check out of range centuries.
3369 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
3371 * include/std/format (__format::_Sink::_M_reset): Change second
3372 argument from iterator to offset.
3374 2023-08-24 Paul Dreik <gccpatches@pauldreik.se>
3377 * testsuite/std/format/string.cc: Check wide character format
3378 strings with out-of-range widths.
3380 2023-08-24 Paul Dreik <gccpatches@pauldreik.se>
3383 * include/std/format (__format::__parse_integer): Check for
3386 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
3388 * testsuite/std/format/functions/format_to.cc: Avoid warning for
3391 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
3393 * include/std/atomic: Add comment to #ifdef and fix indentation.
3394 * include/std/ostream: Check __glibcxx_syncbuf instead of
3395 __cplusplus and _GLIBCXX_HOSTED.
3396 * include/std/thread: Add comment to #ifdef.
3398 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
3400 * include/bits/version.def (__cpp_lib_ratio): Define.
3401 * include/bits/version.h: Regenerate.
3402 * include/std/ratio (quecto, ronto, yocto, zepto)
3403 (zetta, yotta, ronna, quetta): Define.
3404 * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Adjust
3405 dg-error line numbers.
3407 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
3409 * python/libstdcxx/v6/printers.py (StdLocalePrinter): New
3411 * testsuite/libstdc++-prettyprinters/locale.cc: New test.
3413 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
3416 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Do
3417 not show template arguments.
3418 (StdVariantPrinter): Likewise.
3419 * testsuite/libstdc++-prettyprinters/compat.cc: Adjust expected
3421 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
3422 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
3424 2023-08-23 François Dumont <fdumont@gcc.gnu.org>
3426 * testsuite/util/replacement_memory_operators.h
3427 (counter::scope): New, capture and reset counter count at construction and
3428 restore it at destruction.
3429 (counter::check_new): Add scope instantiation.
3430 * testsuite/23_containers/unordered_map/96088.cc (main):
3431 Add counter::scope instantiation.
3432 * testsuite/23_containers/unordered_multimap/96088.cc (main): Likewise.
3433 * testsuite/23_containers/unordered_multiset/96088.cc (main): Likewise.
3434 * testsuite/23_containers/unordered_set/96088.cc (main): Likewise.
3435 * testsuite/ext/malloc_allocator/deallocate_local.cc (main): Likewise.
3436 * testsuite/ext/new_allocator/deallocate_local.cc (main): Likewise.
3437 * testsuite/ext/throw_allocator/deallocate_local.cc (main): Likewise.
3438 * testsuite/ext/pool_allocator/allocate_chunk.cc (started): New global.
3439 (operator new(size_t)): Check started.
3440 (main): Set/Unset started.
3441 * testsuite/17_intro/no_library_allocation.cc: New test case.
3443 2023-08-21 Jonathan Wakely <jwakely@redhat.com>
3445 * testsuite/18_support/nested_exception/rethrow_if_nested-term.cc:
3446 Call std::set_terminate before throwing the nested exception.
3448 2023-08-18 Jonathan Wakely <jwakely@redhat.com>
3451 * include/std/format (formatter): Only define specializations
3452 for 16-bit floating-point types for C++23.
3453 * include/std/limits (numeric_limits): Likewise.
3455 2023-08-18 Jonathan Wakely <jwakely@redhat.com>
3457 * include/bits/chrono_io.h (operator<<): Make uses of wide
3458 strings with streams and std::format type-dependent on _CharT.
3459 * include/std/format [!_GLIBCXX_USE_WCHAR_T] Do not use
3460 __to_wstring_numeric.
3462 2023-08-18 Jonathan Wakely <jwakely@redhat.com>
3464 * include/bits/chrono_io.h (operator<<): Use __format_context.
3465 * include/std/format (__format::__format_context): New alias
3467 [!_GLIBCXX_USE_WCHAR_T] (wformat_args, make_wformat_arg):
3470 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3473 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3475 * config/locale/generic/c_locale.cc (__convert_to_v): Reuse
3476 double overload for long double if possible.
3478 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3480 * src/c++20/tzdb.cc (tzdata_file, leaps_file): Change type to
3483 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3485 * config/locale/generic/c_locale.cc (__convert_to_v): Reuse
3486 double overload for long double if possible.
3488 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3490 * src/c++98/localename.cc (is_C_locale): New function.
3491 (locale::locale(const char*)): Use is_C_locale.
3493 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3496 * include/bits/basic_string.h (basic_string::assign(Iter, Iter)):
3497 Dispatch to _M_replace or move assignment from a temporary,
3498 based on the iterator type.
3500 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3502 * include/std/format (formatter): Add partial specializations
3503 for extended floating-point types.
3504 * testsuite/std/format/functions/format.cc: Move test_float128()
3506 * testsuite/std/format/formatter/ext_float.cc: New test.
3508 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3510 * include/bits/c++config (__gnu_cxx::__bfloat16_t): Define
3511 whenever __BFLT16_DIG__ is defined, not only for C++23.
3512 * include/std/limits (numeric_limits<bfloat16_t>): Likewise.
3513 (numeric_limits<_Float16>, numeric_limits<_Float32>)
3514 (numeric_limits<_Float64>): Likewise for other extended
3515 floating-point types.
3517 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3519 * include/experimental/internet (address_v4::to_string): Remove
3520 unused parameter name.
3522 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3524 * libsupc++/compare (__cmp_cat::__unseq): Make ctor consteval.
3525 * testsuite/18_support/comparisons/categories/zero_neg.cc: Prune
3526 excess errors caused by invalid consteval calls.
3528 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3530 * include/bits/chrono_io.h (__units_suffix_misc): Remove.
3531 (__units_suffix): Return a known suffix as string view, do not
3532 write unknown suffixes to a buffer.
3533 (__fmt_units_suffix): New function that formats the suffix using
3535 (operator<<, __chrono_formatter::_M_q): Use __fmt_units_suffix.
3536 (__chrono_formatter::_M_Z): Correct lifetime of wstring.
3538 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3540 * include/std/format [_GLIBCXX_USE_WCHAR_T]: Guard all wide
3541 string formatters with this macro.
3542 (__formatter_int::_M_format_int, __formatter_fp::format)
3543 (formatter<const void*, C>::format): Use __to_wstring_numeric
3544 instead of std::ctype::widen.
3545 (__formatter_fp::_M_localize): Use hardcoded wchar_t values
3546 instead of std::ctype::widen.
3547 * testsuite/std/format/functions/format.cc: Add more checks for
3548 wstring formatting of arithmetic types.
3550 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3552 * include/bits/basic_string.h (to_string(floating-point-type)):
3553 Implement using std::to_chars for C++26.
3554 * include/bits/version.def (__cpp_lib_to_string): Define.
3555 * include/bits/version.h: Regenerate.
3556 * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
3557 Adjust expected result in C++26 mode.
3558 * testsuite/21_strings/basic_string/numeric_conversions/char/to_string.cc:
3560 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/dr1261.cc:
3562 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/to_wstring.cc:
3564 * testsuite/21_strings/basic_string/numeric_conversions/char/to_string_float.cc:
3566 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/to_wstring_float.cc:
3568 * testsuite/21_strings/basic_string/numeric_conversions/version.cc:
3571 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3573 * include/bits/basic_string.h (to_string(integral-type)): Use
3574 resize_and_overwrite when available.
3575 (__to_wstring_numeric): New helper functions.
3576 (to_wstring): Use std::to_string then __to_wstring_numeric.
3577 * testsuite/21_strings/basic_string/numeric_conversions/char/to_string_int.cc:
3578 Remove check for no excess capacity.
3580 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3582 * include/bits/basic_string.h (__resize_and_overwrite): New
3584 * include/bits/basic_string.tcc (__resize_and_overwrite): New
3586 (resize_and_overwrite): Simplify by using reserve instead of
3587 growing the string manually. Adjust for C++11 compatibility.
3588 * include/bits/cow_string.h (resize_and_overwrite): New
3590 (__resize_and_overwrite): New function.
3591 * include/bits/version.def (__cpp_lib_string_resize_and_overwrite):
3592 Do not depend on cxx11abi.
3593 * include/bits/version.h: Regenerate.
3594 * include/std/format (__formatter_fp::_S_resize_and_overwrite):
3596 (__formatter_fp::format, __formatter_fp::_M_localize): Use
3597 __resize_and_overwrite instead of _S_resize_and_overwrite.
3598 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
3599 Adjust for C++11 compatibility when included by ...
3600 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite_ext.cc:
3603 2023-08-17 Patrick Palka <ppalka@redhat.com>
3605 * include/bits/regex.h (regex_iterator::iterator_concept):
3606 Define for C++20 as per P2770R0.
3607 (regex_token_iterator::iterator_concept): Likewise.
3608 * include/std/ranges (__detail::__as_lvalue): Define.
3609 (join_view::_Iterator): Befriend join_view.
3610 (join_view::_Iterator::_M_satisfy): Use _M_get_outer
3611 instead of _M_outer.
3612 (join_view::_Iterator::_M_get_outer): Define.
3613 (join_view::_Iterator::_Iterator): Split constructor taking
3614 _Parent argument into two as per P2770R0. Remove constraint on
3615 default constructor.
3616 (join_view::_Iterator::_M_outer): Make this data member present
3617 only when the underlying range is forward.
3618 (join_view::_Iterator::operator++): Use _M_get_outer instead of
3620 (join_view::_Iterator::operator--): Use __as_lvalue helper.
3621 (join_view::_Iterator::operator==): Adjust constraints as per
3623 (join_view::_Sentinel::__equal): Use _M_get_outer instead of
3625 (join_view::_M_outer): New data member when the underlying range
3627 (join_view::begin): Adjust definition as per P2770R0.
3628 (join_view::end): Likewise.
3629 (join_with_view::_M_outer_it): New data member when the
3630 underlying range is non-forward.
3631 (join_with_view::begin): Adjust definition as per P2770R0.
3632 (join_with_view::end): Likewise.
3633 (join_with_view::_Iterator::_M_outer_it): Make this data member
3634 present only when the underlying range is forward.
3635 (join_with_view::_Iterator::_M_get_outer): Define.
3636 (join_with_view::_Iterator::_Iterator): Split constructor
3637 taking _Parent argument into two as per P2770R0. Remove
3638 constraint on default constructor.
3639 (join_with_view::_Iterator::_M_update_inner): Adjust definition
3641 (join_with_view::_Iterator::_M_get_inner): Likewise.
3642 (join_with_view::_Iterator::_M_satisfy): Adjust calls to
3643 _M_get_inner. Use _M_get_outer instead of _M_outer_it.
3644 (join_with_view::_Iterator::operator==): Adjust constraints
3646 (join_with_view::_Sentinel::operator==): Use _M_get_outer
3647 instead of _M_outer_it.
3648 * testsuite/std/ranges/adaptors/p2770r0.cc: New test.
3650 2023-08-17 Patrick Palka <ppalka@redhat.com>
3653 * include/std/ranges (__adaptor::_RangeAdaptorClosure):
3654 Convert into a CRTP class template. Move hidden operator|
3655 friends into namespace scope and adjust their constraints.
3656 (__closure::__is_range_adaptor_closure_fn): Define.
3657 (__closure::__is_range_adaptor_closure): Define.
3658 (__adaptor::_Partial): Adjust use of _RangeAdaptorClosure.
3659 (__adaptor::_Pipe): Likewise.
3660 (views::_All): Likewise.
3661 (views::_Join): Likewise.
3662 (views::_Common): Likewise.
3663 (views::_Reverse): Likewise.
3664 (views::_Elements): Likewise.
3665 (views::_Adjacent): Likewise.
3666 (views::_AsRvalue): Likewise.
3667 (views::_Enumerate): Likewise.
3668 (views::_AsConst): Likewise.
3669 * testsuite/std/ranges/adaptors/all.cc: Reinstate assertion
3670 expecting that adding empty range adaptor closure objects to a
3671 pipeline doesn't increase the size of a pipeline.
3673 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3675 * include/std/format (__format::_Pres_type): Add _Pres_F.
3676 (__formatter_fp::parse): Use _Pres_F for 'F'.
3677 (__formatter_fp::format): Set __upper for _Pres_F.
3678 * testsuite/std/format/functions/format.cc: Check formatting of
3679 infinity and NaN for each presentation type.
3681 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3683 * include/Makefile.in: Regenerate.
3685 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3687 * testsuite/24_iterators/move_iterator/p2520r0.cc: Add no_pch.
3688 * testsuite/std/format/functions/format.cc: Likewise.
3689 * testsuite/std/format/functions/format_c++23.cc: Likewise.
3691 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
3693 * testsuite/lib/dg-options.exp (add_options_for_no_pch): Remove
3694 any "-include bits/stdc++.h" from options and add the macro to
3695 the existing options instead of replacing them.
3697 2023-08-16 Jonathan Wakely <jwakely@redhat.com>
3699 * include/bits/basic_string.tcc (resize_and_overwrite): Invoke
3700 the callable with the same size as resize_and_overwrite was
3702 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
3703 Check with small values for the new size.
3704 * testsuite/std/format/functions/format.cc: Check wide
3705 formatting of double values that produce small strings.
3706 * testsuite/std/format/functions/format_c++23.cc: New test.
3708 2023-08-16 Jonathan Wakely <jwakely@redhat.com>
3710 * include/bits/version.def (stds): Update value for C++23.
3711 * include/bits/version.h: Regenerate.
3713 2023-08-16 Jonathan Wakely <jwakely@redhat.com>
3715 * testsuite/25_algorithms/pstl/alg_sorting/set_difference.cc:
3716 Fix name of upstream file this was derived from.
3717 * testsuite/25_algorithms/pstl/alg_sorting/set_intersection.cc:
3719 * testsuite/25_algorithms/pstl/alg_sorting/set_symmetric_difference.cc:
3721 * testsuite/25_algorithms/pstl/alg_sorting/set_union.cc:
3723 * testsuite/25_algorithms/pstl/alg_sorting/set_util.h: Likewise.
3725 2023-08-16 Arsen Arsenović <arsen@aarsen.me>
3727 * libsupc++/typeinfo: Switch to bits/version.h for
3728 __cpp_lib_constexpr_typeinfo.
3729 * libsupc++/new: Switch to bits/version.h for
3730 __cpp_lib_{launder,hardware_interference_size,destroying_delete}.
3731 (launder): Guard behind __cpp_lib_launder.
3732 (hardware_destructive_interference_size)
3733 (hardware_constructive_interference_size): Guard behind
3734 __cpp_lib_hardware_interference_size.
3735 * libsupc++/exception: Switch to bits/version.h for
3736 __cpp_lib_uncaught_exceptions.
3737 (uncaught_exceptions): Guard behind __cpp_lib_uncaught_exceptions.
3738 * libsupc++/compare: Switch to bits/version.h for
3739 __cpp_lib_three_way_comparison.
3740 (three_way_comparable, three_way_comparable_with)
3741 (compare_three_way, weak_order, strong_order, partial_order):
3742 Guard behind __cpp_lib_three_way_comparison >= 201907L.
3743 * include/std/chrono: Drop __cpp_lib_chrono definition.
3744 * include/std/vector: Switch to bits/version.h for
3746 (erase, erase_if): Guard behind __cpp_lib_erase_if.
3747 * include/std/variant: Switch to bits/version.h for
3748 __cpp_lib_variant. Guard whole header behind that FTM.
3749 * include/std/utility: Switch to bits/version.h for
3750 __cpp_lib_{exchange_function,constexpr_algorithms,as_const},
3751 __cpp_lib_{integer_comparison_functions,to_underlying}, and
3752 __cpp_lib_unreachable.
3753 (exchange): Guard behind __cpp_lib_exchange_function.
3754 (cmp_equal, cmp_not_equal, cmp_less, cmp_greater, cmp_less_equal)
3755 (cmp_greater_equal, in_range): Guard behind
3756 __cpp_lib_integer_comparison_functions.
3757 (to_underlying): Guard behind __cpp_lib_to_underlying.
3758 (unreachable): Guard behind __cpp_lib_unreachable.
3759 * include/std/type_traits: Switch to bits/version.h for
3760 __cpp_lib_is_{null_pointer,final,nothrow_convertible,aggregate},
3761 __cpp_lib_is_{constant_evaluated,invocable,layout_compatible},
3762 __cpp_lib_is_{pointer_interconvertible,scoped_enum,swappable},
3763 __cpp_lib_{logical_traits,reference_from_temporary,remove_cvref},
3764 __cpp_lib_{result_of_sfinae,transformation_trait_aliases},
3765 __cpp_lib_{type_identity,type_trait_variable_templates},
3766 __cpp_lib_{unwrap_ref,void_t,integral_constant_callable},
3767 __cpp_lib_{bool_constant,bounded_array_traits}, and
3768 __cpp_lib_has_unique_object_representations.
3769 (integral_constant::operator()): Guard behind
3770 __cpp_lib_integral_constant_callable.
3771 (bool_constant): Guard behind __cpp_lib_bool_constant.
3772 (conjunction, disjunction, negation, conjunction_v, disjunction_v)
3773 (negation_v): Guard behind __cpp_lib_logical_traits.
3774 (is_null_pointer): Guard behind __cpp_lib_is_null_pointer.
3775 (is_final): Guard behind __cpp_lib_is_final.
3776 (is_nothrow_convertible, is_nothrow_convertible_v): Guard behind
3777 __cpp_lib_is_nothrow_convertible.
3778 (remove_const_t, remove_volatile_t, remove_cv_t)
3779 (add_const_t, add_volatile_t, add_cv_t): Guard behind
3780 __cpp_lib_transformation_trait_aliases.
3781 (void_t): Guard behind __cpp_lib_void_t.
3782 (is_swappable_with_v, is_nothrow_swappable_with_v)
3783 (is_swappable_with, is_nothrow_swappable_with): Guard behind
3784 __cpp_lib_is_swappable.
3785 (is_nothrow_invocable_r, is_invocable_r, invoke_result)
3786 (is_invocable, invoke_result_t): Guard behind
3787 __cpp_lib_is_invocable.
3788 (alignment_of_v, extent_v, has_virtual_destructor_v)
3789 (is_abstract_v, is_arithmetic_v, is_array_v)
3790 (is_assignable_v, is_base_of_v, is_class_v, is_compound_v)
3791 (is_constructible_v, is_const_v, is_convertible_v)
3792 (is_copy_assignable_v, is_copy_constructible_v)
3793 (is_default_constructible_v, is_destructible_v)
3794 (is_empty_v, is_enum_v, is_final_v, is_floating_point_v)
3795 (is_function_v, is_fundamental_v, is_integral_v)
3796 (is_invocable_r_v, is_invocable_v, is_literal_type_v)
3797 (is_lvalue_reference_v, is_member_function_pointer_v)
3798 (is_member_object_pointer_v, is_member_pointer_v)
3799 (is_move_assignable_v, is_move_constructible_v)
3800 (is_nothrow_assignable_v, is_nothrow_constructible_v)
3801 (is_nothrow_copy_assignable_v, is_nothrow_copy_constructible_v)
3802 (is_nothrow_default_constructible_v, is_nothrow_destructible_v)
3803 (is_nothrow_invocable_r_v, is_nothrow_invocable_v)
3804 (is_nothrow_move_assignable_v, is_nothrow_move_constructible_v)
3805 (is_null_pointer_v, is_object_v, is_pod_v, is_pointer_v)
3806 (is_polymorphic_v, is_reference_v, is_rvalue_reference_v)
3807 (is_same_v, is_scalar_v, is_signed_v, is_standard_layout_v)
3808 (is_trivially_assignable_v, is_trivially_constructible_v)
3809 (is_trivially_copyable_v, is_trivially_copy_assignable_v)
3810 (is_trivially_copy_constructible_v)
3811 (is_trivially_default_constructible_v)
3812 (is_trivially_destructible_v, is_trivially_move_assignable_v)
3813 (is_trivially_move_constructible_v, is_trivial_v, is_union_v)
3814 (is_unsigned_v, is_void_v, is_volatile_v, rank_v, as variadic):
3815 Guard behind __cpp_lib_type_trait_variable_templates.
3816 (has_unique_object_representations)
3817 (has_unique_object_representations_v): Guard behind
3818 __cpp_lib_has_unique_object_representation.
3819 (is_aggregate): Guard behind __cpp_lib_is_aggregate.
3820 (remove_cvref, remove_cvref_t): Guard behind
3821 __cpp_lib_remove_cvref.
3822 (type_identity, type_identity_t): Guard behind
3823 __cpp_lib_type_identity.
3824 (unwrap_reference, unwrap_reference_t, unwrap_ref_decay)
3825 (unwrap_ref_decay_t): Guard behind __cpp_lib_unwrap_ref.
3826 (is_bounded_array_v, is_unbounded_array_v, is_bounded_array)
3827 (is_unbounded_array): Guard behind __cpp_lib_bounded_array_traits.
3828 (is_scoped_enum, is_scoped_enum_v): Guard behind
3829 __cpp_lib_is_scoped_enum.
3830 (reference_constructs_from_temporary)
3831 (reference_constructs_from_temporary_v): Guard behind
3832 __cpp_lib_reference_from_temporary.
3833 * include/std/tuple: Switch to bits/version.h for
3834 __cpp_lib_{constexpr_tuple,tuple_by_type,apply_make_from_tuple}.
3835 (get<T>): Guard behind __cpp_lib_tuple_by_type.
3836 (apply): Guard behind __cpp_lib_apply.
3837 (make_from_tuple): Guard behind __cpp_lib_make_from_tuple.
3838 * include/std/syncstream: Switch to bits/version.h for
3839 __cpp_lib_syncbuf. Guard header behind that FTM.
3840 * include/std/string_view: Switch to bits/version.h for
3841 __cpp_lib_{string_{view,contains},constexpr_string_view} and
3842 __cpp_lib_starts_ends_with.
3843 (basic_string_view::starts_with, basic_string_view::ends_with):
3844 Guard behind __cpp_lib_starts_ends_with.
3845 [C++23 && _GLIBCXX_HOSTED && !defined(__cpp_lib_string_contains)]:
3846 Assert as impossible ithout a bug in C++23.
3847 * include/std/string: Switch to bits/version.h for
3849 (erase, erase_if): Guard behind __cpp_lib_erase_if.
3850 * include/std/thread: Switch to bits/version.h for
3852 * include/std/stop_token: Switch to bits/version.h for
3854 * include/std/spanstream: Switch to bits/version.h for
3855 __cpp_lib_spanstream. Guard header behind that FTM.
3856 * include/std/span: Switch to bits/version.h for __cpp_lib_span.
3857 Guard header behind that FTM.
3858 * include/std/source_location: Switch to bits/version.h for
3859 __cpp_lib_source_location. Guard header with that FTM.
3860 * include/std/shared_mutex: Switch to bits/version.h for
3861 __cpp_lib_shared{,_timed}_mutex.
3862 (shared_mutex): Guard behind __cpp_lib_shared_mutex.
3863 * include/std/semaphore: Switch to bits/version.h for
3864 __cpp_lib_semaphore. Guard header behind that FTM.
3865 * include/std/ranges: Switch to bits/version.h for
3866 __cpp_lib_ranges_{zip,chunk{,_by},slide,join_with},
3867 __cpp_lib_ranges_{repeat_stride,cartesian_product,as_rvalue},
3868 and __cpp_lib_ranges_{as_const,enumerate,iota}.
3869 (ranges::zip et al, ranges::chunk et al, ranges::slide et al)
3870 (ranges::chunk_by et al, ranges::join_with et al)
3871 (ranges::stride et al, ranges::cartesian_product et al)
3872 (ranges::as_rvalue et al, ranges::as_const et al)
3873 (ranges::enumerate et al): Guard behind appropriate FTM.
3874 * include/std/optional: Switch to bits/version.h for
3875 __cpp_lib_optional. Guard header behind that FTM.
3876 * include/std/numeric: Switch to bits/version.h for
3877 __cpp_lib_{gcd{,_lcm},lcm,constexpr_numeric,interpolate}
3878 and __cpp_lib_parallel_algorithm.
3879 (gcd, lcm): Guard behind __cpp_lib_gcd_lcm.
3880 (midpoint): Guard behind __cpp_lib_interpolate.
3881 * include/std/numbers: Switch to bits/version.h for
3882 __cpp_lib_math_constants. Guard header behind that FTM.
3883 * include/std/mutex: Switch to bits/version.h for
3884 __cpp_lib_scoped_lock.
3885 (scoped_Lock): Guard behind __cpp_lib_scoped_lock.
3886 * include/std/memory_resource: Switch to bits/version.h for
3887 __cpp_lib_{polymorphic_allocator,memory_resource}.
3888 (synchronized_pool_resource): Guard behind
3889 __cpp_lib_memory_resource >= 201603L.
3890 (polymorphic_allocator): Guard behind
3891 __cpp_lib_polymorphic_allocator.
3892 * include/std/memory: Switch to bits/version.h for
3893 __cpp_lib_{parallel_algorithm,atomic_value_initialization}.
3894 * include/std/list: Switch to bits/version.h for
3896 (erase, erase_if): Guard behind __cpp_lib_erase_if.
3897 * include/std/latch: Switch to bits/version.h for __cpp_lib_latch.
3898 Guard header behind that FTM.
3899 * include/std/iterator: Switch to bits/version.h for
3900 __cpp_lib_null_iterators.
3901 * include/std/iomanip: Switch to bits/version.h for
3902 __cpp_lib_quoted_string_io.
3903 (quoted): Guard behind __cpp_lib_quoted_string_io.
3904 * include/std/functional: Switch to bits/version.h for
3905 __cpp_lib_{invoke{,_r},constexpr_functional,bind_front} and
3906 __cpp_lib_{not_fn,booyer_moore_searcher}.
3907 (invoke): Guard behind __cpp_lib_invoke.
3908 (invoke_r): Guard behind __cpp_lib_invoke_r.
3909 (bind_front): Guard behind __cpp_lib_bind_front.
3910 (not_fn): Guard behind __cpp_lib_not_fn.
3911 (boyer_moore_searcher, boyer_moore_horspool_searcher): Guard
3912 definition behind __cpp_lib_boyer_moore_searcher.
3913 * include/std/forward_list: Switch to bits/version.h for
3915 (erase, erase_if): Guard behind __cpp_lib_erase_if.
3916 * include/std/format: Switch to bits/version.h for
3917 __cpp_lib_format. Guard header behind that FTM.
3918 * include/std/filesystem: Switch to bits/version.h for
3919 __cpp_lib_filesystem. Guard header behind that FTM.
3920 * include/std/expected: Switch to bits/version.h for
3921 __cpp_lib_expected. Guard header behind it.
3922 * include/std/execution: Switch to bits/version.h for
3923 __cpp_lib_{execution,parallel_algorithm}. Guard header behind
3925 * include/std/deque: Switch to bits/version.h for
3927 (erase, erase_if): Guard behind __cpp_lib_erase_if.
3928 * include/std/coroutine: Switch to bits/version.h for
3929 __cpp_lib_coroutine. Guard header behind that FTM.
3930 * include/std/concepts: Switch to bits/version.h for
3931 __cpp_lib_concepts. Guard header behind that FTM.
3932 * include/std/complex: Switch to bits/version.h for
3933 __cpp_lib_{complex_udls,constexpr_complex}.
3934 (operator""if, operator""i, operator""il): Guard behind
3935 __cpp_lib_complex_udls.
3936 * include/std/charconv: Swtich to bits/version.h for
3937 __cpp_lib_{to_chars,constexpr_charconv}.
3938 * include/std/bitset: Switch to bits/version.h for
3939 __cpp_lib_constexpr_bitset.
3940 * include/std/bit: Switch to bits/version.h for
3941 __cpp_lib_{bit_cast,byteswap,bitops,int_pow2,endian}.
3942 (bit_cast): Guard behind __cpp_lib_bit_cast.
3943 (byteswap): Guard behind __cpp_lib_byteswap.
3944 (rotl, rotr, countl_zero, countl_one, countr_zero, countr_one)
3945 (popcount): Guard behind __cpp_lib_bitops.
3946 (has_single_bit, bit_ceil, bit_floor, bit_width): Guard behind
3948 (endian): Guard behind __cpp_lib_endian.
3949 * include/std/barrier: Switch to bits/version.h for
3950 __cpp_lib_barrier. Guard header behind that FTM.
3951 * include/std/atomic: Switch to bits/version.h for
3952 __cpp_lib_atomic_{is_always_lock_free,float,ref}
3953 and __cpp_lib_lock_free_type_aliases.
3954 (*::is_always_lock_free): Guard behind
3955 __cpp_lib_atomic_is_always_lock_free.
3956 (atomic<float>): Guard behind __cpp_lib_atomic_float.
3957 (atomic_ref): Guard behind __cpp_lib_atomic_ref.
3958 (atomic_signed_lock_free, atomic_unsigned_lock_free): Guard behind
3959 __cpp_lib_atomic_lock_free_type_aliases.
3960 * include/std/array: Switch to bits/version.h for
3962 (to_array): Guard behind __cpp_lib_to_array.
3963 * include/std/any: Switch to bits/version.h for __cpp_lib_any.
3964 Guard header behind that FTM.
3965 * include/std/algorithm: Switch to bits/version.h for
3966 __cpp_lib_parallel_algorithm.
3967 * include/c_global/cstddef: Switch to bits/version.h for
3969 (byte): Guard behind __cpp_lib_byte.
3970 * include/c_global/cmath: Switch to bits/version.h for
3971 __cpp_lib_{hypot,interpolate}.
3972 (hypot3): Guard behind __cpp_lib_hypot.
3973 (lerp): Guard behind __cpp_lib_interpolate.
3974 * include/c_compatibility/stdatomic.h: Switch to
3975 bits/stl_version.h for __cpp_lib_atomic. Guard header behind that
3977 * include/bits/utility.h: Switch to bits/version.h for
3978 __cpp_lib_{tuple_element_t,integer_sequence,ranges_zip}.
3979 (tuple_element_t): Guard behind __cpp_lib_tuple_element_t.
3980 (integer_sequence et al): Guard behind __cpp_lib_integer_sequence.
3981 * include/bits/uses_allocator_args.h: Switch to bits/version.h for
3982 __cpp_lib_make_obj_using_allocator. Guard header behind that FTM.
3983 * include/bits/unordered_map.h: Switch to bits/version.h for
3984 __cpp_lib_unordered_map_try_emplace.
3985 (try_emplace): Guard behind __cpp_lib_unordered_map_try_emplace.
3986 * include/bits/unique_ptr.h: Switch to bits/version.h for
3987 __cpp_lib_{constexpr_memory,make_unique}.
3988 (make_unique): Guard behind __cpp_lib_make_unique.
3989 * include/bits/stl_vector.h: Switch to bits/version.h for
3990 __cpp_lib_constexpr_vector.
3991 * include/bits/stl_uninitialized.h: Switch to bits/version.h for
3992 __cpp_lib_raw_memory_algorithms.
3993 (uninitialized_default_construct)
3994 (uninitialized_default_construct_n, uninitialized_move)
3995 (uninitialized_move_n, uninitialized_value_construct)
3996 (uninitialized_value_construct_n): Guard behind
3997 __cpp_lib_raw_memory_algorithms.
3998 * include/bits/stl_tree.h: Switch to bits/version.h for
3999 __cpp_lib_generic_associative_lookup.
4000 * include/bits/stl_stack.h: Switch to bits/version.h for
4001 __cpp_lib_adaptor_iterator_pair_constructor.
4002 (stack): Guard iterator-pair constructor behind
4003 __cpp_lib_adaptor_iterator_pair_constructor.
4004 * include/bits/stl_queue.h: Switch to bits/version.h for
4005 __cpp_lib_adaptor_iterator_pair_constructor.
4006 (queue): Guard iterator-pair constructor behind
4007 __cpp_lib_adaptor_iterator_pair_constructor.
4008 * include/bits/stl_pair.h: Switch to bits/version.h for
4009 __cpp_lib_{concepts,tuples_by_type}.
4010 (get): Guard type-getting overloads behind
4011 __cpp_lib_tuples_by_type.
4012 * include/bits/stl_map.h: Switch to bits/version.h for
4013 __cpp_lib_map_try_emplace.
4014 (map<>::try_emplace): Guard behind __cpp_lib_map_try_emplace.
4015 * include/bits/stl_list.h: Switch to bits/version.h for
4016 __cpp_lib_list_remove_return_type.
4017 (__remove_return_type, _GLIBCXX_LIST_REMOVE_RETURN_TYPE_TAG)
4018 [C++20]: guard behind __cpp_lib_list_remove_return_type instead.
4019 * include/bits/stl_iterator.h: Switch to bits/version.h for
4020 __cpp_lib_{constexpr_iterator,array_constexpr} and
4021 __cpp_lib_{make_reverse_iterator,move_iterator_concept}.
4022 (make_reverse_iterator): Guard behind
4023 __cpp_lib_make_reverse_iterator.
4024 (iterator_concept et al): Guard __cpp_lib_move_iterator_concept
4025 changes behind that FTM.
4026 * include/bits/stl_function.h: Switch to bits/version.h for
4027 __cpp_lib_transparent_operators.
4028 (equal_to, not_equal_to, greater, less, greater_equal)
4029 (less_equal, bit_and, bit_or, bit_xor, bit_not, logical_and)
4030 (logical_or, logical_not, plus, minus, multiplies, divides)
4031 (modulus, negate): Guard '= void' fwdecls behind
4032 __cpp_lib_transparent_operators.
4033 (plus<void>, minus<void>, multiplies<void>, divides<void>)
4034 (modulus<void>, negate<void>, logical_and<void>, logical_or<void>)
4035 (logical_not<void>, bit_and<void>, bit_or<void>, bit_xor<void>)
4036 (equal_to<void>, not_equal_to<void>, greater<void>, less<void>)
4037 (greater_equal<void>, less_equal<void>, bit_not<void>)
4038 (__has_is_transparent): Guard behind
4039 __cpp_lib_transparent_operators.
4040 * include/bits/stl_algobase.h: Switch to bits/version.h for
4041 __cpp_lib_robust_nonmodifying_seq_ops.
4042 (robust equal, mismatch): Guard behind
4043 __cpp_lib_nonmember_container_access.
4044 * include/bits/stl_algo.h: Swtich to bits/version.h for
4045 __cpp_lib_{clamp,sample}.
4046 (clamp): Guard behind __cpp_lib_clamp.
4047 (sample): Guard behind __cpp_lib_sample.
4048 * include/bits/specfun.h: Switch to bits/version.h for
4049 __cpp_lib_math_special_functions and __STDCPP_MATH_SPEC_FUNCS__.
4050 * include/bits/shared_ptr_base.h: Switch to bits/version.h for
4051 __cpp_lib_{smart_ptr_for_overwrite,shared_ptr_arrays}.
4052 (_Sp_overwrite_tag): Guard behind
4053 __cpp_lib_smart_ptr_for_overwrite.
4054 * include/bits/shared_ptr_atomic.h: Switch to bits/version.h for
4055 __cpp_lib_atomic_shared_ptr.
4056 * include/bits/shared_ptr.h: Switch to bits/version.h for
4057 __cpp_lib_{enable_shared_from_this,shared_ptr_weak_type}.
4058 (shared_ptr<T>::weak_type): Guard behind
4059 __cpp_lib_shared_ptr_weak_type.
4060 (enable_shared_from_this<T>::weak_from_this): Guard behind
4061 __cpp_lib_enable_shared_from_this.
4062 * include/bits/ranges_cmp.h: Switch to bits/version.h for
4064 * include/bits/ranges_algo.h: Switch to bits/version.h for
4065 __cpp_lib_{shift,ranges_{contains,find_last,fold,iota}}.
4066 * include/bits/range_access.h: Switch to bits/version.h for
4067 __cpp_lib_nonmember_container_access
4068 (size, empty, data): Guard behind
4069 __cpp_lib_nonmember_container_access.
4070 (ssize): Guard behind __cpp_lib_ssize.
4071 * include/bits/ptr_traits.h: Switch to bits/version.h. for
4072 __cpp_lib_{constexpr_memory,to_address}.
4073 (to_address): Guard behind __cpp_lib_to_address.
4074 * include/bits/node_handle.h: Switch to bits/version.h for
4075 __cpp_lib_node_extract. Guard header behind that FTM.
4076 * include/bits/move_only_function.h: Switch to bits/version.h for
4077 __cpp_lib_move_only_function. Guard header behind that FTM.
4078 * include/bits/move.h: Switch to bits/version.h for
4079 __cpp_lib_addressof_constexpr.
4080 * include/bits/ios_base.h: Switch to bits/version.h for
4081 __cpp_lib_ios_noreplace.
4082 (noreplace): Guard with __cpp_lib_ios_noreplace.
4083 * include/bits/hashtable.h: Switch to bits/version.h for
4084 __cpp_lib_generic_unordered_lookup.
4085 (_M_equal_range_tr, _M_count_tr, _M_find_tr): Guard behind
4086 __cpp_lib_generic_unordered_lookup.
4087 * include/bits/forward_list.h: Switch to bits/version.h for
4088 __cpp_lib_list_remove_return_type.
4089 (__remove_return_type): Guard behind
4090 __cpp_lib_list_remove_return_type.
4091 * include/bits/erase_if.h: Switch to bits/version.h for
4093 * include/bits/cow_string.h: Switch to bits/version.h for
4094 __cpp_lib_constexpr_string.
4095 * include/bits/chrono.h: Swtich to bits/version.h for
4096 __cpp_lib_chrono{,_udls}.
4097 (ceil): Guard behind __cpp_lib_chrono.
4098 (operator""ns et al): Guard behind __cpp_lib_chrono_udls.
4099 * include/bits/char_traits.h: Switch to bits/version.h for
4100 __cpp_lib_constexpr_char_traits.
4101 * include/bits/basic_string.h: Switch to bits/version.h for
4102 __cpp_lib_{constexpr_string,string_{resize_and_overwrite,udls}}.
4103 (resize_and_overwrite): Guard behind
4104 __cpp_lib_string_resize_and_overwrite.
4105 (operator""s): Guard behind __cpp_lib_string_udls.
4106 * include/bits/atomic_wait.h: Switch to bits/version.h for
4107 __cpp_lib_atomic_wait. Guard header behind that FTM.
4108 * include/bits/atomic_base.h: Switch to bits/version.h for
4109 __cpp_lib_atomic_value_initialization and
4110 __cpp_lib_atomic_flag_test.
4111 (atomic_flag::test): Guard behind __cpp_lib_atomic_flag_test,
4113 * include/bits/allocator.h: Switch to bits/version.h for
4114 __cpp_lib_incomplete_container_elements.
4115 * include/bits/alloc_traits.h: Switch to using bits/version.h for
4116 __cpp_lib_constexpr_dynamic_alloc and
4117 __cpp_lib_allocator_traits_is_always_equal.
4118 * include/bits/align.h: Switch to bits/version.h for defining
4119 __cpp_lib_assume_aligned.
4120 (assume_aligned): Guard with __cpp_lib_assume_aligned.
4121 * include/bits/algorithmfwd.h: Switch to bits/version.h for
4122 defining __cpp_lib_constexpr_algorithms.
4123 * include/std/stacktrace: Switch to bits/version.h for
4124 __cpp_lib_stacktrace. Guard header behind that FTM.
4125 * testsuite/23_containers/array/tuple_interface/get_neg.cc:
4126 Update line numbers.
4128 2023-08-16 Arsen Arsenović <arsen@aarsen.me>
4130 * include/Makefile.am (bits_freestanding): Add version.h.
4131 (allcreated): Add version.h.
4132 (${bits_srcdir}/version.h): New rule. Regenerates
4133 version.h out of version.{def,tpl}.
4134 * include/Makefile.in: Regenerate.
4135 * include/bits/version.def: New file. Declares a list of
4136 all feature test macros, their values and their preconditions.
4137 * include/bits/version.tpl: New file. Turns version.def
4138 into a sequence of #if blocks.
4139 * include/bits/version.h: New file. Generated from
4141 * include/std/version: Replace with a __glibcxx_want_all define
4142 and bits/version.h include.
4144 2023-08-14 Paul Dreik <gccpatches@pauldreik.se>
4147 * include/std/format (__formatter_fp::format): Use frexp instead
4150 2023-08-12 Ken Matsui <kmatsui@gcc.gnu.org>
4152 * include/std/type_traits (true_type): Use __bool_constant
4154 (false_type): Likewise.
4155 (bool_constant): Likewise.
4157 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
4160 * include/std/format (_Seq_sink::get): Only call _M_overflow if
4161 its precondition is met.
4162 (_Iter_sink::_M_finish): Likewise.
4163 (_Iter_sink<C, ContigIter>::_M_overflow): Only switch to the
4164 internal buffer after running out of space.
4165 (_Iter_sink<C, ContigIter>::_M_finish): Do not use _M_overflow.
4166 (_Counting_sink::count): Likewise.
4167 * testsuite/std/format/functions/format_to_n.cc: Check cases
4168 where the output fits into the buffer.
4170 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
4173 * include/bits/chrono_io.h (operator|=, operator|): Add noexcept
4174 to _ChronoParts operators.
4175 (from_stream, parse): Define new functions.
4176 (__detail::_Parse, __detail::_Parser): New class templates.
4177 * include/std/chrono (__cpp_lib_chrono): Define to 201907L for
4179 * include/std/version (__cpp_lib_chrono): Likewise.
4180 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc:
4181 Adjust expected value of feature test macro.
4182 * testsuite/20_util/duration/io.cc: Test parsing.
4183 * testsuite/std/time/clock/file/io.cc: Likewise.
4184 * testsuite/std/time/clock/gps/io.cc: Likewise.
4185 * testsuite/std/time/clock/system/io.cc: Likewise.
4186 * testsuite/std/time/clock/tai/io.cc: Likewise.
4187 * testsuite/std/time/clock/utc/io.cc: Likewise.
4188 * testsuite/std/time/day/io.cc: Likewise.
4189 * testsuite/std/time/month/io.cc: Likewise.
4190 * testsuite/std/time/month_day/io.cc: Likewise.
4191 * testsuite/std/time/weekday/io.cc: Likewise.
4192 * testsuite/std/time/year/io.cc: Likewise.
4193 * testsuite/std/time/year_month/io.cc: Likewise.
4194 * testsuite/std/time/year_month_day/io.cc: Likewise.
4195 * testsuite/std/time/syn_c++20.cc: Check value of macro and for
4196 the existence of parse and from_stream in namespace chrono.
4197 * testsuite/std/time/clock/local/io.cc: New test.
4198 * testsuite/std/time/parse.cc: New test.
4200 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
4203 * include/std/format (__formatter_fp::format): Do not call log10
4206 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
4208 * python/libstdcxx/v6/printers.py (StdChronoCalendarPrinter):
4209 Check for out-of-range month an weekday indices.
4210 * testsuite/libstdc++-prettyprinters/chrono.cc: Check invalid
4211 month and weekday values.
4213 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
4215 * include/bits/stl_iterator.h (__clamped_iter_cat_t): Remove.
4217 2023-08-10 Jonathan Wakely <jwakely@redhat.com>
4220 * include/std/format (_Spec::_S_parse_width_or_precision): Check
4221 for empty range before dereferencing iterator.
4222 * testsuite/std/format/string.cc: Check for expected exception.
4223 Fix expected exception message in test_pr110862() and actually
4226 2023-08-10 Jonathan Wakely <jwakely@redhat.com>
4229 * include/std/format (__formatter_fp::format): Check return
4230 value of _M_localize.
4231 * testsuite/std/format/functions/format.cc: Check classic
4234 2023-08-10 Jonathan Wakely <jwakely@redhat.com>
4237 * include/bits/stl_iterator.h (__detail::__move_iter_cat): Use
4239 (iterator_traits<common_iterator<I, S>>::_S_iter_cat): Likewise.
4240 (__detail::__basic_const_iterator_iter_cat): Likewise.
4241 * include/bits/stl_iterator_base_types.h (__iterator_category_t):
4242 Rename to __iter_category_t.
4244 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
4246 * include/bits/chrono.h (duration_cast): Do not use braces
4247 around statements for C++11 constexpr rules.
4248 * include/bits/stl_algobase.h (__lg): Rewrite as a single
4249 statement for C++11 constexpr rules.
4250 * include/experimental/bits/fs_path.h (path::string): Use
4251 _GLIBCXX17_CONSTEXPR not _GLIBCXX_CONSTEXPR for 'if constexpr'.
4252 * include/std/charconv (__to_chars_8): Initialize variable for
4253 C++17 constexpr rules.
4255 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
4257 * include/bits/list.tcc (list::sort(Cmp)): Fix -Wsign-compare
4258 warning for loop condition.
4260 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
4262 * include/std/complex: Add diagnostic pragma for clang.
4264 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
4266 * include/bits/shared_ptr_atomic.h (atomic): Change class-head
4268 * include/bits/stl_tree.h (_Rb_tree_merge_helper): Change
4269 class-head to struct in friend declaration.
4270 * include/std/chrono (tzdb_list::_Node): Likewise.
4271 * include/std/future (_Task_state_base, _Task_state): Likewise.
4272 * include/std/scoped_allocator (__inner_type_impl): Likewise.
4273 * include/std/valarray (_BinClos, _SClos, _GClos, _IClos)
4274 (_ValFunClos, _RefFunClos): Change class-head to struct.
4276 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
4278 * include/bits/alloc_traits.h (allocate): Add [[maybe_unused]]
4280 * include/bits/regex_executor.tcc: Remove name of unused
4282 * include/bits/shared_ptr_atomic.h (atomic_is_lock_free):
4284 * include/bits/stl_uninitialized.h: Likewise.
4285 * include/bits/streambuf_iterator.h (operator==): Likewise.
4286 * include/bits/uses_allocator.h: Likewise.
4287 * include/c_global/cmath (isfinite, isinf, isnan): Likewise.
4288 * include/std/chrono (zoned_time): Likewise.
4289 * include/std/future (__future_base::_S_allocate_result):
4291 (packaged_task): Likewise.
4292 * include/std/optional (_Optional_payload_base): Likewise.
4293 * include/std/scoped_allocator (__inner_type_impl): Likewise.
4294 * include/std/tuple (_Tuple_impl): Likewise.
4296 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
4298 * include/bits/new_allocator.h (__new_allocator): Define copy
4299 assignment operator as defaulted.
4300 * include/std/complex (complex<float>, complex<double>)
4301 (complex<long double>): Define copy constructor as defaulted.
4303 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
4305 * include/std/format: Fix some warnings.
4306 (__format::__write(Ctx&, basic_string_view<CharT>)): Remove
4307 unused function template.
4309 2023-08-07 Jonathan Wakely <jwakely@redhat.com>
4312 * include/std/format (__formatter_fp::format): Do not use
4313 __builtin_abs and __builtin_log10 with arbitrary floating-point
4316 2023-08-07 Jonathan Wakely <jwakely@redhat.com>
4319 * include/std/format (__format::_Iter_sink<CharT, OutIter>):
4320 Constrain partial specialization for contiguous iterators to
4321 require the value type to be CharT.
4322 * testsuite/std/format/functions/format_to.cc: New test.
4324 2023-08-07 Jonathan Wakely <jwakely@redhat.com>
4327 * include/std/format (_Scanner::_M_on_replacement_field):
4328 Check for expected '}' before incrementing iterator.
4329 * testsuite/std/format/string.cc: Check "{0:{0}" format string.
4331 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
4333 * configure: Regenerate.
4335 2023-08-07 Alan Modra <amodra@gmail.com>
4337 * configure: Regenerate.
4339 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
4341 * configure: Regenerate.
4343 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
4345 * configure: Regenerate.
4347 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
4349 * configure: Regenerate.
4351 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
4353 * configure: Regenerate.
4355 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
4357 * configure: Regenerate.
4359 2023-08-06 François Dumont <fdumont@gcc.gnu.org>
4361 * config/abi/pre/gnu-versioned-namespace.ver: Add __cxa_call_terminate
4364 2023-07-30 François Dumont <fdumont@gcc.gnu.org>
4366 * src/c++11/compatibility-ldbl-facets-aliases.h: Replace #define with
4368 * src/c++11/locale-inst-monetary.h: Likewise.
4369 * src/c++11/locale-inst-numeric.h: Likewise.
4371 2023-07-27 Jonathan Wakely <jwakely@redhat.com>
4374 * include/std/format (__formatter_fp::format): Ensure __expc is
4375 always set for all presentation types. Set __z correctly for
4377 * testsuite/std/format/functions/format.cc: Check problem cases.
4379 2023-07-26 Jonathan Wakely <jwakely@redhat.com>
4382 * testsuite/23_containers/vector/bool/110807.cc: Require c++11.
4384 2023-07-26 Jonathan Wakely <jwakely@redhat.com>
4387 * include/bits/stl_bvector.h (vector(const vector&)): Access
4388 iterators before allocating.
4389 * include/bits/vector.tcc (vector<bool>::_M_insert_range):
4391 * testsuite/23_containers/vector/bool/110807.cc: New test.
4393 2023-07-26 Jonathan Wakely <jwakely@redhat.com>
4395 * include/bits/algorithmfwd.h (random_shuffle): Add deprecated
4397 * include/bits/stl_algo.h (random_shuffle): Correct comments.
4398 * testsuite/25_algorithms/random_shuffle/1.cc: Disable
4399 deprecated warnings.
4400 * testsuite/25_algorithms/random_shuffle/59603.cc: Likewise.
4401 * testsuite/25_algorithms/random_shuffle/moveable.cc: Likewise.
4402 * testsuite/25_algorithms/random_shuffle/deprecated.cc: New
4405 2023-07-26 Nathaniel Shead <nathanieloshead@gmail.com>
4407 * testsuite/25_algorithms/equal/constexpr_neg.cc: Update diagnostic
4409 * testsuite/26_numerics/gcd/105844.cc: Likewise.
4410 * testsuite/26_numerics/lcm/105844.cc: Likewise.
4412 2023-07-24 Deev Patel <pateldeev@nevada.unr.edu>
4414 * include/std/format (_Formatting_scanner::_M_on_chars): Add
4415 missing constexpr specifier.
4416 (_Formatting_scanner::_M_format_arg): Likewise.
4418 2023-07-24 Jonathan Wakely <jwakely@redhat.com>
4421 * include/bits/basic_string.h [!HAVE_STOF] (stof): Do not
4422 throw an exception for zero result.
4423 [HAVE_BROKEN_STRTOLD] (stold): Do not use strtold.
4425 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
4428 * src/c++17/floating_from_chars.cc (from_chars): Only define
4429 _Float128 overload when using __strfromf128.
4431 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
4434 * include/bits/chrono.h (duration): Improve static assert
4436 (__is_ratio): Move to ...
4437 * include/std/ratio (__is_ratio): ... here.
4438 (__is_ratio_v): New variable template and partial
4440 (__are_both_ratios): New function template.
4441 (__ratio_multiply, ratio_equal, ratio_less, __ratio_add):
4442 Add static assertion.
4443 * testsuite/20_util/ratio/requirements/type_constraints.cc:
4445 * testsuite/20_util/duration/requirements/typedefs_neg1.cc:
4446 Adjust expected error.
4447 * testsuite/20_util/duration/requirements/typedefs_neg2.cc:
4450 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
4452 * include/bits/chrono_io.h (__formatter_chrono::_M_format):
4453 Do not set __is_neg for hh_mm_ss before calling
4454 _M_format_to_ostream. Change __print_sign lambda to only check
4455 __is_neg for durations and hh_mm_ss types.
4456 (__formatter_chrono::_M_format_to_ostream): Only check __is_neg
4458 * testsuite/std/time/hh_mm_ss/io.cc: Check negative values.
4460 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
4463 * include/bits/chrono_io.h (__formatter_chrono::_S_floor_seconds):
4464 Handle duration and hh_mm_ss.
4465 * testsuite/20_util/duration/io.cc: Check locale-specific
4467 * testsuite/std/time/hh_mm_ss/io.cc: Likewise.
4469 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
4471 * include/std/format (__write_padded): Initialize first element
4472 of array to avoid a -Wmaybe-uninitialized warning.
4474 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
4477 * include/bits/chrono_io.h (__formatter_chrono::_M_parse): Fix
4478 allowed modifiers for %z and %Z. Fix -Wparentheses and
4479 -Wnarrowing warnings.
4480 (__formatter_chrono::_M_format): Call new functions for %d, %e,
4482 (__formatter_chrono::_M_c): Use _S_floor_seconds to remove
4483 subsecond precision.
4484 (__formatter_chrono::_M_C_y_Y): Use _M_locale_fmt to handle
4486 (__formatter_chrono::_M_e): Replace with _M_d_e and use
4488 (__formatter_chrono::_M_I): Replace with _M_H_I and use
4490 (__formatter_chrono::_M_m): New function.
4491 (__formatter_chrono::_M_M): New function.
4492 (__formatter_chrono::_M_r): Use _M_locale_fmt.
4493 (__formatter_chrono::_M_S): Likewise.
4494 (__formatter_chrono::_M_u_w): Likewise.
4495 (__formatter_chrono::_M_U_V_W): Likewise.
4496 (__formatter_chrono::_M_X): Use _S_floor_seconds.
4497 (__formatter_chrono::_M_Z): Fix untested branch for wchar_t.
4498 (__formatter_chrono::_S_altnum): Remove function.
4499 (__formatter_chrono::_S_dd_zero_fill): Remove function.
4500 (__formatter_chrono::_S_floor_seconds): New function.
4501 (__formatter_chrono::_M_locale_fmt): New function.
4502 * testsuite/std/time/clock/system/io.cc: Adjust expected output
4503 for locale-specific formats and check modified formats.
4504 * testsuite/std/time/clock/utc/io.cc: Likewise.
4505 * testsuite/std/time/zoned_time/io.cc: New test.
4507 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
4510 * include/bits/chrono_io.h (__formatter_chrono::_M_parse): Only
4511 allow a single modifier.
4512 * testsuite/std/time/format.cc: Check multiple modifiers.
4514 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
4517 * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
4518 Remove dg-require-string-conversions.
4519 * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
4521 * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
4523 * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
4525 * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
4528 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
4531 * include/bits/basic_string.h [!_GLIBCXX_HAVE_STRTOF] (stof):
4532 Define in terms of std::stod.
4534 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
4537 * include/bits/basic_string.h [_GLIBCXX_HAVE_STRTOF] (stof):
4539 [_GLIBCXX_HAVE_STRTOLD] (stold): Define.
4540 * include/c_global/cstdlib [_GLIBCXX_HAVE_STRTOF] (strtof):
4541 Declare in namespace std.
4542 [_GLIBCXX_HAVE_STRTOLD] (strtold): Likewise.
4544 2023-07-13 Jonathan Wakely <jwakely@redhat.com>
4547 * include/bits/basic_string.h (stoi, stol, stoul, stod): Do not
4548 depend on _GLIBCXX_USE_C99_STDLIB.
4549 [__LONG_WIDTH__ == __LONG_LONG_WIDTH__] (stoll, stoull): Define
4550 in terms of stol and stoul respectively.
4551 [__DBL_MANT_DIG__ == __LDBL_MANT_DIG__] (stold): Define in terms
4554 2023-07-12 Jonathan Wakely <jwakely@redhat.com>
4557 * testsuite/27_io/filesystem/path/construct/95048.cc: Check
4558 conversions to wide strings.
4559 * testsuite/experimental/filesystem/path/construct/95048.cc:
4562 2023-07-12 Jonathan Wakely <jwakely@redhat.com>
4564 * config/io/basic_file_stdio.cc: Define LFS macros.
4565 (__basic_file<char>::open): Use fopen unconditionally.
4566 (get_file_offset): Use lseek unconditionally.
4567 (__basic_file<char>::seekoff): Likewise.
4568 (__basic_file<char>::showmanyc): Use fstat unconditionally.
4570 2023-07-12 Jonathan Wakely <jwakely@redhat.com>
4573 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fseeko and ftello
4574 and define _GLIBCXX_USE_FSEEKO_FTELLO.
4575 * config.h.in: Regenerate.
4576 * configure: Regenerate.
4577 * config/io/basic_file_stdio.cc (xwrite) [_GLIBCXX_USE_STDIO_PURE]:
4578 Check for fwrite error correctly.
4579 (__basic_file<char>::xsgetn) [_GLIBCXX_USE_STDIO_PURE]: Check for
4580 fread error correctly.
4581 (get_file_offset): New function.
4582 (__basic_file<char>::seekoff) [_GLIBCXX_USE_STDIO_PURE]: Use
4583 fseeko if available. Use get_file_offset instead of return value
4585 (__basic_file<char>::showmanyc): Use get_file_offset.
4587 2023-07-12 Ken Matsui <kmatsui@gcc.gnu.org>
4589 * include/std/type_traits (__make_unsigned_selector): Use
4590 __is_enum built-in trait.
4591 (__make_signed_selector): Likewise.
4592 (__underlying_type_impl): Likewise.
4594 2023-07-06 Tianqiang Shuai <1101282468@qq.com>
4596 * config/io/basic_file_stdio.cc (xwrite) [USE_STDIO_PURE]: Fix
4599 2023-07-06 Jonathan Wakely <jwakely@redhat.com>
4602 * doc/xml/manual/configure.xml: Describe stdio_pure argument to
4604 * doc/html/manual/configure.html: Regenerate.
4606 2023-07-05 Thomas Rodgers <trodgers@redhat.com>
4608 * testsuite/25_algorithms/pstl/alg_sorting/set.cc: Delete
4610 * testsuite/25_algorithms/pstl/alg_sorting/set_difference.cc:
4612 * testsuite/25_algorithms/pstl/alg_sorting/set_intersection.cc:
4614 * testsuite/25_algorithms/pstl/alg_sorting/set_symmetric_difference.cc:
4616 * testsuite/25_algorithms/pstl/alg_sorting/set_union.cc:
4618 * testsuite/25_algorithms/pstl/alg_sorting/set_util.h:
4621 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
4623 * testsuite/23_containers/forward_list/debug/iterator1_neg.cc:
4624 Skip as UNSUPPORTED for C++98 mode.
4625 * testsuite/23_containers/forward_list/debug/iterator3_neg.cc:
4628 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
4631 * include/bits/stl_uninitialized.h (__uninitialized_default_n):
4632 Do not use std::fill_n during constant evaluation.
4634 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
4636 * include/bits/vector.tcc (_M_default_append): Replace try-block
4639 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
4641 * include/bits/iterator_concepts.h (projected): Add typename.
4643 2023-07-03 Jonathan Wakely <jwakely@redhat.com>
4645 * testsuite/27_io/headers/iosfwd/synopsis.cc: Make wsyncbuf and
4646 wosyncstream depend on _GLIBCXX_USE_CXX11_ABI.
4648 2023-07-03 Jonathan Wakely <jwakely@redhat.com>
4650 * include/pstl/pstl_config.h (_PSTL_PRAGMA_SIMD_SCAN,
4651 _PSTL_PRAGMA_SIMD_INCLUSIVE_SCAN, _PSTL_PRAGMA_SIMD_EXCLUSIVE_SCAN):
4652 Define to OpenMP 5.0 pragmas even for GCC 10.0+.
4653 (_PSTL_UDS_PRESENT): Define to 1 for GCC 10.0+.
4655 2023-07-03 Jonathan Wakely <jwakely@redhat.com>
4657 * include/bits/alloc_traits.h (_Destroy): Qualify call.
4658 * include/bits/stl_construct.h (_Destroy, _Destroy_n): Likewise.
4659 * testsuite/23_containers/vector/cons/destroy-adl.cc: New test.
4661 2023-07-03 Iain Sandoe <iain@sandoe.co.uk>
4663 * testsuite/lib/libstdc++.exp: Remove additional flag handled
4666 2023-06-30 Jonathan Wakely <jwakely@redhat.com>
4669 * acinclude.m4 (GLIBCXX_CHECK_INIT_PRIORITY): New.
4670 * config.h.in: Regenerate.
4671 * configure: Regenerate.
4672 * configure.ac: Use GLIBCXX_CHECK_INIT_PRIORITY.
4673 * include/std/iostream: Use new autoconf macro as well as
4675 * src/c++98/ios_base_init.h: Use new autoconf macro instead of
4678 2023-06-30 Jonathan Wakely <jwakely@redhat.com>
4680 * src/c++11/random.cc (random_device::_M_init): Add maybe_unused
4683 2023-06-30 Jonathan Wakely <jwakely@redhat.com>
4686 * src/c++11/random.cc (random_device::_M_init): Throw
4687 std::system_error when the requested device is a valid token but
4688 not available at runtime.
4690 2023-06-30 Hans-Peter Nilsson <hp@axis.com>
4693 * include/pstl/unseq_backend_simd.h (__simd_or): Re-apply using
4694 __INT32_TYPE__ instead of int32_t.
4696 2023-06-29 Jonathan Wakely <jwakely@redhat.com>
4698 * src/c++20/tzdb.cc (USE_ATOMIC_SHARED_PTR): Define consistently
4699 with USE_ATOMIC_LIST_HEAD.
4700 (list_mutex): Replace global object with function. Use local
4701 static object when std::mutex constructor isn't constexpr.
4703 2023-06-29 Jonathan Wakely <jwakely@redhat.com>
4706 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check that
4707 copy_file_range can be called with loff_t* arguments.
4708 * configure: Regenerate.
4709 * src/filesystem/ops-common.h (copy_file_copy_file_range):
4710 Use loff_t for offsets.
4712 2023-06-29 Tom Tromey <tromey@adacore.com>
4714 * testsuite/lib/gdb-test.exp (gdb-test): Relax type-printer
4717 2023-06-28 Jan Hubicka <jh@suse.cz>
4719 PR middle-end/109849
4720 * include/bits/c++config (std::__terminate): Mark cold.
4721 * include/bits/functexcept.h: Mark everything as cold.
4722 * libsupc++/exception: Mark terminate and unexpected as cold.
4724 2023-06-26 Thomas Rodgers <trodgers@redhat.com>
4726 * include/pstl/algorithm_fwd.h: Synchronize with upstream.
4727 * include/pstl/algorithm_impl.h: Likewise.
4728 * include/pstl/execution_defs.h: Likewise.
4729 * include/pstl/execution_impl.h: Likewise.
4730 * include/pstl/glue_algorithm_impl.h: Likewise.
4731 * include/pstl/glue_execution_defs.h: Likewise.
4732 * include/pstl/glue_memory_impl.h: Likewise.
4733 * include/pstl/glue_numeric_impl.h: Likewise.
4734 * include/pstl/memory_impl.h: Likewise.
4735 * include/pstl/numeric_fwd.h: Likewise.
4736 * include/pstl/numeric_impl.h: Likewise.
4737 * include/pstl/parallel_backend.h: Likewise.
4738 * include/pstl/parallel_backend_serial.h: Likewise.
4739 * include/pstl/parallel_backend_tbb.h: Likewise.
4740 * include/pstl/parallel_impl.h: Likewise.
4741 * include/pstl/pstl_config.h: Likewise.
4742 * include/pstl/unseq_backend_simd.h: Likewise.
4743 * include/pstl/utils.h: Likewise.
4744 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc:
4746 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc:
4748 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc:
4750 * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc:
4752 * testsuite/25_algorithms/pstl/alg_merge/merge.cc: Likewise.
4753 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc:
4755 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc:
4757 * testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc:
4759 * testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc:
4761 * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc:
4763 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc:
4765 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc:
4767 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc:
4769 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc:
4771 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc:
4773 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc:
4775 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc:
4777 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc:
4779 * testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc:
4781 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc:
4783 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc:
4785 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc:
4787 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc:
4789 * testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc:
4791 * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc:
4793 * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc:
4795 * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc:
4797 * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc:
4799 * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc:
4801 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc:
4803 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc:
4805 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc:
4807 * testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc:
4809 * testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc:
4811 * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc:
4813 * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc:
4815 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc:
4817 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc:
4819 * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc:
4821 * testsuite/25_algorithms/pstl/alg_sorting/includes.cc:
4823 * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc:
4825 * testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc:
4827 * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc:
4829 * testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc:
4831 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc:
4833 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc:
4835 * testsuite/25_algorithms/pstl/alg_sorting/set.cc:
4837 * testsuite/25_algorithms/pstl/alg_sorting/sort.cc:
4839 * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc:
4841 * testsuite/26_numerics/pstl/numeric_ops/reduce.cc:
4843 * testsuite/26_numerics/pstl/numeric_ops/scan.cc:
4845 * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc:
4847 * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc:
4849 * testsuite/util/pstl/test_utils.h:
4852 2023-06-26 Jonathan Wakely <jwakely@redhat.com>
4855 * include/std/format (__format::__parse_integer): Fix buffer
4856 overflow for wide chars.
4857 (formatter<const void*, C>::format): Cast to uintptr_t instead
4859 * testsuite/std/format/string.cc: Test too-large widths.
4861 2023-06-26 Jonathan Wakely <jwakely@redhat.com>
4863 * include/bits/iterator_concepts.h (projected): Replace class
4864 template with alias template denoting an ADL-proofed helper.
4865 (incremental_traits<projected<Iter, Proj>>): Remove.
4866 * testsuite/24_iterators/indirect_callable/projected-adl.cc:
4869 2023-06-26 Jonathan Wakely <jwakely@redhat.com>
4871 * include/debug/helper_functions.h (__get_distance)
4872 (__check_singular, __valid_range_aux, __valid_range): Qualify
4873 calls to disable ADL.
4874 (__check_singular_aux(const _Safe_iterator_base*)): Declare
4875 overload that was previously found via ADL.
4877 2023-06-23 Jonathan Wakely <jwakely@redhat.com>
4879 * include/bits/vector.tcc (_M_realloc_insert): Replace try-block
4882 2023-06-20 Jonathan Wakely <jwakely@redhat.com>
4884 * include/std/array (to_array(T(&)[N])): Remove redundant
4886 (to_array(T(&&)[N])): Remove redundant std::move.
4888 2023-06-16 Alexandre Oliva <oliva@adacore.com>
4890 * testsuite/20_util/from_chars/4.cc: Skip long double on
4893 2023-06-16 Joel Brobecker <brobecker@adacore.com>
4895 * configure.ac ["x${with_newlib}" = "xyes"]: Define
4896 HAVE_HYPOTF. Add compile-checks for various long double
4897 math functions as well.
4898 * configure: Regenerate.
4900 2023-06-14 Jonny Grant <jg@jguk.org>
4902 * doc/xml/manual/extensions.xml: Remove demangle exception
4903 description and include.
4904 * doc/html/manual/ext_demangling.html: Regenerate.
4906 2023-06-10 Hans-Peter Nilsson <hp@axis.com>
4908 * testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc (main)
4909 [! SIMULATOR_TEST]: Also exclude running test05.
4910 * testsuite/27_io/basic_istream/ignore/char/94749.cc: Ditto.
4912 2023-06-09 Ken Matsui <kmatsui@cs.washington.edu>
4914 * include/std/type_traits: Use using instead of typedef
4916 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
4919 * src/c++17/floating_from_chars.cc (from_chars) <_Float128>:
4920 Only define if _Float128 and long double have different
4923 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
4926 * include/experimental/internet [IPPROTO_TCP || IPPROTO_UDP]
4927 (basic_endpoint, basic_resolver_entry, resolver_base)
4928 (basic_resolver_results, basic_resolver): Only define if the tcp
4929 or udp protocols will be defined.
4931 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
4933 * acinclude.m4 (libtool_VERSION): Update to 6.0.33.
4934 * configure: Regenerate.
4935 * doc/xml/manual/abi.xml: Add libstdc++.so.6.0.33.
4936 * doc/html/manual/abi.html: Regenerate.
4938 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
4941 * include/std/format (formatter<const void*, charT>::parse):
4942 Only alow 0 and P for C++26 and non-strict modes.
4943 (formatter<const void*, charT>::format): Use toupper for P
4944 type, and insert zero-fill characters for 0 option.
4945 * testsuite/std/format/functions/format.cc: Check pointer
4946 formatting. Only check P2510R3 extensions conditionally.
4947 * testsuite/std/format/parse_ctx.cc: Only check P2510R3
4948 extensions conditionally.
4950 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
4953 * include/std/array (to_array): Initialize arrays of trivial
4954 types using memcpy. For non-trivial types, use lambda
4955 expressions instead of a separate helper function.
4956 (__to_array): Remove.
4957 * testsuite/23_containers/array/creation/110167.cc: New test.
4959 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
4961 * testsuite/23_containers/deque/modifiers/emplace/52799.cc:
4963 * testsuite/23_containers/deque/modifiers/emplace/const_iterator.cc:
4965 * testsuite/23_containers/list/modifiers/emplace/52799.cc:
4967 * testsuite/23_containers/list/modifiers/emplace/const_iterator.cc:
4969 * testsuite/23_containers/vector/modifiers/emplace/52799.cc:
4971 * testsuite/23_containers/vector/modifiers/emplace/const_iterator.cc:
4973 * testsuite/23_containers/deque/modifiers/emplace/1.cc: New
4975 * testsuite/23_containers/list/modifiers/emplace/1.cc: New
4977 * testsuite/23_containers/vector/modifiers/emplace/1.cc: New
4980 2023-06-07 Jakub Jelinek <jakub@redhat.com>
4983 * testsuite/20_util/to_chars/double.cc: Include <cfloat>.
4984 (double_to_chars_test_cases,
4985 double_scientific_precision_to_chars_test_cases_2,
4986 double_fixed_precision_to_chars_test_cases_2): #if out 1e126, 4.91e-6
4987 and 5.547e-6 tests if FLT_EVAL_METHOD is negative or larger than 1.
4988 Add unconditional tests with corresponding double constants
4989 0x1.7a2ecc414a03fp+418, 0x1.4981285e98e79p-18 and
4990 0x1.7440bbff418b9p-18.
4992 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
4994 * testsuite/util/testsuite_abi.cc (check_version): Re-add
4997 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
4999 * testsuite/18_support/nested_exception/rethrow_if_nested-term.cc:
5000 Require effective target exceptions_enabled instead of using
5002 * testsuite/23_containers/vector/capacity/constexpr.cc: Expect
5003 shrink_to_fit() to be a no-op without exceptions enabled.
5004 * testsuite/23_containers/vector/capacity/shrink_to_fit.cc:
5006 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc:
5007 Require effective target exceptions_enabled.
5008 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc:
5010 * testsuite/ext/mt_allocator/check_allocate_max_size.cc:
5012 * testsuite/ext/new_allocator/check_allocate_max_size.cc:
5014 * testsuite/ext/pool_allocator/check_allocate_max_size.cc:
5016 * testsuite/ext/throw_allocator/check_allocate_max_size.cc:
5019 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
5021 * testsuite/20_util/duration/cons/2.cc: Use values that aren't
5022 affected by rounding.
5023 * testsuite/20_util/from_chars/5.cc: Cast arithmetic result to
5024 double before comparing for equality.
5025 * testsuite/20_util/from_chars/6.cc: Likewise.
5026 * testsuite/20_util/variant/86874.cc: Use values that aren't
5027 affected by rounding.
5028 * testsuite/25_algorithms/lower_bound/partitioned.cc: Compare to
5029 original value instead of to floating-point-literal.
5030 * testsuite/26_numerics/random/discrete_distribution/cons/range.cc:
5031 Cast arithmetic result to double before comparing for equality.
5032 * testsuite/26_numerics/random/piecewise_constant_distribution/cons/range.cc:
5034 * testsuite/26_numerics/random/piecewise_linear_distribution/cons/range.cc:
5036 * testsuite/26_numerics/valarray/transcend.cc (eq): Check that
5037 the absolute difference is less than 0.01 instead of comparing
5038 to two decimal places.
5039 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
5040 Cast arithmetic result to double before comparing for equality.
5041 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
5043 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
5045 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/01.cc:
5047 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/09.cc:
5049 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/10.cc:
5051 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
5053 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
5056 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
5058 * configure.ac: Use AS_IF.
5059 * configure: Regenerate.
5061 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
5063 * testsuite/lib/prune.exp (libstdc++-dg-prune): Support
5064 'UNSUPPORTED: [...]: exception handling disabled'.
5066 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
5068 * testsuite/util/testsuite_abi.cc (check_version): Add
5069 CXXABI_1.3.15 symver and make it the latestp. Remove
5070 GLIBCXX_IEEE128_3.4.31 and GLIBCXX_LDBL_3.4.31 from latestp.
5072 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
5073 Jakub Jelinek <jakub@redhat.com>
5076 * include/std/limits: (numeric_limits<__float128>): Define
5077 for __STRICT_ANSI__ as well.
5078 * testsuite/18_support/numeric_limits/128bit.cc: Remove
5079 check for __STRICT_ANSI__.
5081 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
5083 * configure.ac: Use AS_IF.
5084 * configure: Regenerate.
5086 2023-06-06 Matthias Kretz <m.kretz@gsi.de>
5089 * include/experimental/bits/simd_builtin.h (_S_store): Rewrite
5090 to avoid casts to other vector types. Implement store as
5091 succession of power-of-2 sized memcpy to avoid PR90424.
5093 2023-06-06 Matthias Kretz <m.kretz@gsi.de>
5096 * include/experimental/bits/simd_builtin.h (_S_masked_store):
5097 Call into deduced ABI's SimdImpl after conversion.
5098 * include/experimental/bits/simd_x86.h (_S_masked_store_nocvt):
5099 Don't use _mm_maskmoveu_si128. Use the generic fall-back
5100 implementation. Also fix masked stores without SSE2, which
5101 were not doing anything before.
5103 2023-06-06 Matthias Kretz <m.kretz@gsi.de>
5105 * include/experimental/bits/simd.h (__bit_cast): Use
5106 __gnu__::__vector_size__ instead of gnu::vector_size.
5108 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
5111 * include/std/array (__array_traits<T, 0>::operator T*()): Make
5112 conversion operator explicit.
5113 (array::front): Use size_type as subscript operand.
5114 (array::data): Use static_cast to make conversion explicit.
5115 * testsuite/23_containers/array/element_access/110139.cc: New
5118 2023-06-06 Joseph Faulls <Joseph.Faulls@imgtec.com>
5120 * include/bits/locale_classes.tcc: Remove check for
5121 codecvt<char8_t, char, mbstate_t> facet.
5123 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
5125 * src/filesystem/ops-common.h (do_copy_file) [O_CLOEXEC]: Set
5126 close-on-exec flag on file descriptors.
5128 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
5131 * src/filesystem/ops-common.h (do_copy_file): Check for empty
5132 files by trying to read a character.
5133 * testsuite/27_io/filesystem/operations/copy_file_108178.cc:
5136 2023-06-06 Jannik Glückert <jannik.glueckert@gmail.com>
5138 * acinclude.m4 (_GLIBCXX_USE_COPY_FILE_RANGE): Define.
5139 * config.h.in: Regenerate.
5140 * configure: Regenerate.
5141 * src/filesystem/ops-common.h (copy_file_copy_file_range):
5142 Define new function.
5143 (do_copy_file): Use it.
5145 2023-06-06 Jannik Glückert <jannik.glueckert@gmail.com>
5147 * acinclude.m4 (_GLIBCXX_HAVE_LSEEK): Define.
5148 * config.h.in: Regenerate.
5149 * configure: Regenerate.
5150 * src/filesystem/ops-common.h (copy_file_sendfile): Define new
5151 function for sendfile logic. Loop to support large files. Skip
5153 (do_copy_file): Use it.
5155 2023-06-04 Jason Merrill <jason@redhat.com>
5158 * libsupc++/eh_call.cc (__cxa_call_terminate): Take void*.
5159 * config/abi/pre/gnu.ver: Add it.
5161 2023-06-02 François Dumont <fdumont@gcc.gnu.org>
5163 * include/parallel/algobase.h: Include <parallel/search.h>.
5165 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
5167 * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc:
5168 Add const to equality operator.
5170 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
5172 * include/std/expected (expected::and_then, expected::or_else)
5173 (expected::transform_error): Use _M_val and _M_unex instead of
5174 calling value() and error(), as per LWG 3938.
5175 (expected::transform): Likewise. Remove incorrect std::move
5176 calls from lvalue overloads.
5177 (expected<void, E>::and_then, expected<void, E>::or_else)
5178 (expected<void, E>::transform): Use _M_unex instead of calling
5180 * testsuite/20_util/expected/lwg3877.cc: Add checks for and_then
5181 and transform, and for std::expected<void, E>.
5182 * testsuite/20_util/expected/lwg3938.cc: New test.
5184 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
5187 * include/bits/stl_vector.h (_Vector_base::_M_invariant):
5189 (vector::size, vector::capacity): Remove calls to _M_invariant.
5190 * include/bits/vector.tcc (vector::_M_fill_assign): Add
5191 optimization hint to reallocating path.
5192 (vector::_M_assign_aux(FwdIter, FwdIter, forward_iterator_tag)):
5194 * testsuite/23_containers/vector/capacity/invariant.cc: Moved
5196 * testsuite/23_containers/vector/modifiers/assign/no_realloc.cc:
5197 ...here. Check assign(FwdIter, FwdIter) too.
5198 * testsuite/23_containers/vector/types/1.cc: Revert addition
5199 of -Wno-stringop-overread option.
5201 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
5203 * doc/xml/manual/evolution.xml: Document removal of implicit
5204 allocator rebinding extensions in strict mode and for C++20.
5205 * doc/html/*: Regenerate.
5207 2023-06-01 Jason Merrill <jason@redhat.com>
5209 * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Don't check
5210 handlers in the cleanup phase.
5212 2023-06-01 Matthias Kretz <m.kretz@gsi.de>
5215 * include/experimental/bits/simd.h (__vectorized_sizeof): With
5216 __have_neon_a32 only single-precision float works (in addition
5219 2023-06-01 François Dumont <fdumont@gcc.gnu.org>
5221 * include/bits/stl_algo.h
5222 (std::__search, std::search(_FwdIt1, _FwdIt1, _FwdIt2, _FwdIt2, _BinPred)): Move...
5223 * include/bits/stl_algobase.h: ...here.
5224 * include/std/functional: Replace <stl_algo.h> include by <stl_algobase.h>.
5225 * include/parallel/algo.h (std::__parallel::search<_FIt1, _FIt2, _BinaryPred>)
5226 (std::__parallel::__search_switch<_FIt1, _FIt2, _BinaryPred, _ItTag1, _ItTag2>):
5228 * include/parallel/algobase.h: ...here.
5229 * include/experimental/functional: Remove <bits/stl_algo.h> and <parallel/algorithm>
5230 includes. Include <bits/stl_algobase.h>.
5232 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5235 * acinclude.m4 (GLIBCXX_ENABLE_C99): Add separate check for
5236 float_t and double_t and define HAVE_C99_FLT_EVAL_TYPES.
5237 * config.h.in: Regenerate.
5238 * configure: Regenerate.
5239 * include/c_global/cmath (float_t, double_t): Guard using new
5240 _GLIBCXX_HAVE_C99_FLT_EVAL_TYPES macro.
5242 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5244 * acinclude.m4 (GLIBCXX_ENABLE_C99): Add checks for C99 math
5245 functions and define _GLIBCXX_USE_C99_MATH_FUNCS. Move checks
5246 for C99 rounding functions to here.
5247 (GLIBCXX_CHECK_C99_TR1): Remove checks for C99 rounding
5248 functions from here.
5249 * config.h.in: Regenerate.
5250 * configure: Regenerate.
5251 * include/bits/random.h: Use _GLIBCXX_USE_C99_MATH_FUNCS instead
5252 of _GLIBCXX_USE_C99_MATH_TR1.
5253 * include/bits/random.tcc: Likewise.
5254 * include/c_compatibility/math.h: Likewise.
5255 * include/c_global/cmath: Likewise.
5256 * include/ext/random: Likewise.
5257 * include/ext/random.tcc: Likewise.
5258 * include/std/complex: Likewise.
5259 * testsuite/20_util/from_chars/4.cc: Likewise.
5260 * testsuite/20_util/from_chars/8.cc: Likewise.
5261 * testsuite/26_numerics/complex/proj.cc: Likewise.
5262 * testsuite/26_numerics/headers/cmath/60401.cc: Likewise.
5263 * testsuite/26_numerics/headers/cmath/types_std_c++0x.cc:
5265 * testsuite/lib/libstdc++.exp (check_v3_target_cstdint):
5267 * testsuite/util/testsuite_random.h: Likewise.
5269 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5271 * include/bits/stl_vector.h (_Vector_base::_M_invariant()): New
5273 (vector::size(), vector::capacity()): Call _M_invariant().
5274 * testsuite/23_containers/vector/capacity/invariant.cc: New test.
5275 * testsuite/23_containers/vector/types/1.cc: Add suppression for
5276 false positive warning (PR110060).
5278 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5281 * src/c++17/floating_from_chars.cc: Check __FLT128_MANT_DIG__ is
5282 defined before trying to use _Float128.
5284 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5286 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Fix for 32-bit pointers
5287 to check __INT_PTR_WIDTH__ instead of sizeof(void*).
5288 * configure: Regenerate.
5290 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5292 * include/bits/unique_lock.h: Include <bits/error_constants.h>
5293 here for std::errc constants.
5294 * include/std/mutex: Do not include <bits/error_constants.h> and
5297 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5299 * configure.ac: Replace use of -o operator for test.
5300 * configure: Regenerate.
5302 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5304 * include/std/scoped_allocator (scoped_allocator_adaptor): Add
5305 noexcept to all constructors except the default constructor.
5306 (scoped_allocator_adaptor::inner_allocator): Add noexcept.
5307 (scoped_allocator_adaptor::outer_allocator): Likewise.
5308 * testsuite/20_util/scoped_allocator/noexcept.cc: New test.
5310 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5313 * include/std/limits (numeric_limits<__float128>): Define.
5314 * testsuite/18_support/numeric_limits/128bit.cc: New test.
5316 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5318 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Extend logic for avr and
5319 msp430 to all 16-bit targets.
5320 * configure: Regenerate.
5322 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5325 * src/c++17/floating_from_chars.cc (USE_STRTOF128_FOR_FROM_CHARS):
5326 Only define when USE_STRTOD_FOR_FROM_CHARS is also defined.
5327 (USE_STRTOD_FOR_FROM_CHARS): Do not undefine when long double is
5329 (from_chars(const char*, const char*, double&, chars_format)):
5330 Check __LDBL_MANT_DIG__ == __DBL_MANT_DIG__ here.
5331 (from_chars(const char*, const char*, _Float128&, chars_format))
5332 Only use from_chars_strtod when USE_STRTOD_FOR_FROM_CHARS is
5333 defined, otherwise parse a long double and convert to _Float128.
5335 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
5338 * include/std/iomanip (operator>>(basic_istream&, _Setfill)):
5339 Add deprecated attribute to non-standard overload.
5340 * doc/xml/manual/evolution.xml: Document deprecation.
5341 * doc/html/*: Regenerate.
5342 * testsuite/27_io/manipulators/standard/char/1.cc: Add
5343 dg-warning for expected deprecated warning.
5344 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
5345 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
5346 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
5348 2023-05-30 Alexandre Oliva <oliva@adacore.com>
5350 * testsuite/20_util/from_chars/4.cc: Skip long double test06
5352 * testsuite/20_util/to_chars/long_double.cc: Xfail run on
5355 2023-05-30 Matthias Kretz <m.kretz@gsi.de>
5358 * include/experimental/bits/simd.h (to_native): Use int NTTP
5359 as specified in PTS2.
5360 (to_compatible): Likewise. Add missing tag to call mask
5362 * testsuite/experimental/simd/pr109822_cast_functions.cc: New
5365 2023-05-30 Matthias Kretz <m.kretz@gsi.de>
5367 * testsuite/experimental/simd/tests/integer_operators.cc:
5368 Compute expected value differently to avoid getting turned into
5371 2023-05-30 Matthias Kretz <m.kretz@gsi.de>
5373 * testsuite/experimental/simd/tests/operator_cvt.cc: Make long
5374 double <-> (u)long conversion tests conditional on sizeof(long
5375 double) and sizeof(long).
5377 2023-05-26 Matthias Kretz <m.kretz@gsi.de>
5379 * include/experimental/bits/simd_ppc.h (_S_bit_shift_left):
5380 Negative __y is UB, so prefer signed compare.
5382 2023-05-25 Jonathan Wakely <jwakely@redhat.com>
5384 * testsuite/util/testsuite_allocator.h (PointerBase): Add
5385 relational operators.
5387 2023-05-25 Alexandre Oliva <oliva@adacore.com>
5389 * testsuite/20_util/to_chars/long_double.cc: Expect execution
5390 fail on x86-vxworks.
5392 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
5395 * include/experimental/bits/simd.h (__intrinsic_type): If
5396 __ALTIVEC__ is defined, map gnu::vector_size types to their
5397 corresponding __vector T types without losing unsignedness of
5398 integer types. Also prefer long long over long.
5399 * include/experimental/bits/simd_ppc.h (_S_popcount): Cast mask
5400 object to the expected unsigned vector type.
5402 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
5405 * include/experimental/bits/simd.h (__intrinsic_type):
5406 Specialize __intrinsic_type<double, 8> and
5407 __intrinsic_type<double, 16> in any case, but provide the member
5408 type only with __aarch64__.
5410 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
5413 * include/experimental/bits/simd_neon.h (_S_reduce): Add
5414 constexpr and make NEON implementation conditional on
5415 not __builtin_is_constant_evaluated.
5417 2023-05-23 Matthias Kretz <m.kretz@gsi.de>
5420 * include/experimental/bits/simd.h (_SimdWrapper::_M_set):
5421 Avoid vector builtin subscripting in constant expressions.
5422 (resizing_simd_cast): Avoid memcpy if constant_evaluated.
5423 (const_where_expression, where_expression, where)
5424 (__extract_part, simd_mask, _SimdIntOperators, simd): Add either
5425 _GLIBCXX_SIMD_CONSTEXPR (on public APIs), or constexpr (on
5427 * include/experimental/bits/simd_builtin.h (__vector_permute)
5428 (__vector_shuffle, __extract_part, _GnuTraits::_SimdCastType1)
5429 (_GnuTraits::_SimdCastType2, _SimdImplBuiltin)
5430 (_MaskImplBuiltin::_S_store): Add constexpr.
5431 (_CommonImplBuiltin::_S_store_bool_array)
5432 (_SimdImplBuiltin::_S_load, _SimdImplBuiltin::_S_store)
5433 (_SimdImplBuiltin::_S_reduce, _MaskImplBuiltin::_S_load): Add
5434 constant_evaluated case.
5435 * include/experimental/bits/simd_fixed_size.h
5436 (_S_masked_load): Reword comment.
5437 (__tuple_element_meta, __make_meta, _SimdTuple::_M_apply_r)
5438 (_SimdTuple::_M_subscript_read, _SimdTuple::_M_subscript_write)
5439 (__make_simd_tuple, __optimize_simd_tuple, __extract_part)
5440 (__autocvt_to_simd, _Fixed::__traits::_SimdBase)
5441 (_Fixed::__traits::_SimdCastType, _SimdImplFixedSize): Add
5443 (_SimdTuple::operator[], _M_set): Add constexpr and add
5444 constant_evaluated case.
5445 (_MaskImplFixedSize::_S_load): Add constant_evaluated case.
5446 * include/experimental/bits/simd_scalar.h: Add constexpr.
5447 * include/experimental/bits/simd_x86.h (_CommonImplX86): Add
5448 constexpr and add constant_evaluated case.
5449 (_SimdImplX86::_S_equal_to, _S_not_equal_to, _S_less)
5450 (_S_less_equal): Value-initialize to satisfy constexpr
5452 (_MaskImplX86::_S_load): Add constant_evaluated case.
5453 (_MaskImplX86::_S_store): Add constexpr and constant_evaluated
5454 case. Value-initialize local variables.
5455 (_MaskImplX86::_S_logical_and, _S_logical_or, _S_bit_not)
5456 (_S_bit_and, _S_bit_or, _S_bit_xor): Add constant_evaluated
5458 * testsuite/experimental/simd/pr109261_constexpr_simd.cc: New
5461 2023-05-22 Matthias Kretz <m.kretz@gsi.de>
5463 * include/experimental/bits/simd_builtin.h (_S_fpclassify): Move
5464 __infn into #ifdef'ed block.
5465 * testsuite/experimental/simd/tests/fpclassify.cc: Declare
5466 constants only when used.
5467 * testsuite/experimental/simd/tests/frexp.cc: Likewise.
5468 * testsuite/experimental/simd/tests/logarithm.cc: Likewise.
5469 * testsuite/experimental/simd/tests/trunc_ceil_floor.cc:
5471 * testsuite/experimental/simd/tests/ldexp_scalbn_scalbln_modf.cc:
5472 Move totest and expect1 into #ifdef'ed block.
5474 2023-05-19 Gerald Pfeifer <gerald@pfeifer.com>
5476 * doc/xml/manual/strings.xml: Move lafstern.org reference to https.
5477 * doc/html/manual/strings.html: Regenerate.
5479 2023-05-17 Jakub Jelinek <jakub@redhat.com>
5482 * testsuite/26_numerics/headers/cmath/constexpr_std_c++23.cc: New test.
5484 2023-05-17 Jakub Jelinek <jakub@redhat.com>
5487 * include/c_global/cmath (atan2, fmod, pow): Move
5488 __gnu_cxx::__promote_2 using templates after _Float{16,32,64,128} and
5489 __gnu_cxx::__bfloat16_t overloads.
5490 (copysign, fdim, fmax, fmin, hypot, nextafter, remainder, remquo):
5492 (fma): Move __gnu_cxx::__promote_3 using template after
5493 _Float{16,32,64,128} and __gnu_cxx::__bfloat16_t overloads.
5495 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
5497 * testsuite/18_support/headers/limits/synopsis.cc: Uncomment
5498 checks for float_round_style and float_denorm_style.
5500 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
5502 * include/bits/c++config: Add system_header pragma.
5504 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
5506 * include/std/expected (expected::and_then, expected::or_else)
5507 (expected::transform, expected::transform_error): Fix exception
5508 specifications as per LWG 3877.
5509 (expected<void, E>::and_then, expected<void, E>::transform):
5511 * testsuite/20_util/expected/lwg3877.cc: New test.
5513 2023-05-17 Ken Matsui <kmatsui@cs.washington.edu>
5515 * include/std/type_traits: Use __bool_constant instead of
5518 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
5520 * configure: Regenerate.
5522 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
5525 * acinclude.m4 (GLIBCXX_CHECK_ALIGNAS_CACHELINE): Define.
5526 * config.h.in: Regenerate.
5527 * configure: Regenerate.
5528 * configure.ac: Use GLIBCXX_CHECK_ALIGNAS_CACHELINE.
5529 * src/c++11/shared_ptr.cc (__gnu_internal::get_mutex): Do not
5530 align lock table if not supported. use __GCC_DESTRUCTIVE_SIZE
5531 instead of hardcoded 64.
5533 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
5535 * acinclude.m4 (GLIBCXX_USE_C99): Check for isblank in C++11
5536 mode and define _GLIBCXX_USE_C99_CTYPE. Check for <fenv.h>
5537 functions in C++11 mode and define _GLIBCXX_USE_C99_FENV.
5538 * config.h.in: Regenerate.
5539 * configure: Regenerate.
5540 * include/c_compatibility/fenv.h: Check _GLIBCXX_USE_C99_FENV
5541 instead of _GLIBCXX_USE_C99_FENV_TR1.
5542 * include/c_global/cfenv: Likewise.
5543 * include/c_global/cctype: Check _GLIBCXX_USE_C99_CTYPE instead
5544 of _GLIBCXX_USE_C99_CTYPE_TR1.
5546 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
5548 * acinclude.m4 (GLIBCXX_USE_C99): Check for <stdint.h> types in
5549 C++11 mode and define _GLIBCXX_USE_C99_STDINT. Check for
5550 <inttypes.h> features in C++11 mode and define
5551 _GLIBCXX_USE_C99_INTTYPES and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T.
5552 * config.h.in: Regenerate.
5553 * configure: Regenerate.
5554 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macros.
5555 * include/bits/chrono.h: Check _GLIBCXX_USE_C99_STDINT instead
5556 of _GLIBCXX_USE_C99_STDINT_TR1.
5557 * include/c_compatibility/inttypes.h: Check
5558 _GLIBCXX_USE_C99_INTTYPES and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T
5559 instead of _GLIBCXX_USE_C99_INTTYPES_TR1 and
5560 _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
5561 * include/c_compatibility/stdatomic.h: Check
5562 _GLIBCXX_USE_C99_STDINT instead of _GLIBCXX_USE_C99_STDINT_TR1.
5563 * include/c_compatibility/stdint.h: Likewise.
5564 * include/c_global/cinttypes: Check _GLIBCXX_USE_C99_INTTYPES
5565 and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T instead of
5566 _GLIBCXX_USE_C99_INTTYPES_TR1 and
5567 _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
5568 * include/c_global/cstdint: Check _GLIBCXX_USE_C99_STDINT
5569 instead of _GLIBCXX_USE_C99_STDINT_TR1.
5570 * include/std/atomic: Likewise.
5571 * src/c++11/cow-stdexcept.cc: Likewise.
5572 * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc:
5574 * testsuite/lib/libstdc++.exp (check_v3_target_cstdint):
5577 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
5579 * acinclude.m4 (GLIBCXX_USE_C99): Check for complex inverse trig
5580 functions in C++11 mode and define _GLIBCXX_USE_C99_COMPLEX_ARC.
5581 * config.h.in: Regenerate.
5582 * configure: Regenerate.
5583 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macro.
5584 * include/std/complex: Check _GLIBCXX_USE_C99_COMPLEX_ARC
5585 instead of _GLIBCXX_USE_C99_COMPLEX_TR1.
5587 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
5589 * testsuite/ext/debug_allocator/check_deallocate_null.cc: Add
5590 assertion to ensure expected exception is throw.
5592 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
5594 * testsuite/libstdc++-prettyprinters/chrono.cc: Only test
5595 printer for chrono::zoned_time for cx11 ABI and tzdb effective
5598 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
5600 * acinclude.m4 (GLIBCXX_CHECK_PTHREAD_MUTEX_CLOCKLOCK): Define
5601 _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK in terms of _GLIBCXX_TSAN.
5602 * configure: Regenerate.
5604 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
5606 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Use a non-null pointer
5607 to check for nan, nanf, and nanl.
5608 * configure: Regenerate.
5610 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
5612 * include/bits/char_traits.h (char_traits<char16_t>): Do not
5613 depend on _GLIBCXX_USE_C99_STDINT_TR1.
5614 (char_traits<char32_t>): Likewise.
5615 * include/experimental/source_location: Likewise.
5617 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
5619 * include/std/atomic (atomic_int_least8_t, atomic_uint_least8_t)
5620 (atomic_int_least16_t, atomic_uint_least16_t)
5621 (atomic_int_least32_t, atomic_uint_least32_t)
5622 (atomic_int_least64_t, atomic_uint_least64_t)
5623 (atomic_int_fast16_t, atomic_uint_fast16_t)
5624 (atomic_int_fast32_t, atomic_uint_fast32_t)
5625 (atomic_int_fast64_t, atomic_uint_fast64_t)
5626 (atomic_intmax_t, atomic_uintmax_t): Define unconditionally.
5627 * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc: Adjust.
5629 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
5631 * include/bits/algorithmfwd.h (shuffle): Do not depend on
5632 _GLIBCXX_USE_C99_STDINT_TR1.
5633 * include/bits/ranges_algo.h (shuffle): Likewise.
5634 * include/bits/stl_algo.h (shuffle): Likewise.
5635 * include/ext/random: Likewise.
5636 * include/ext/throw_allocator.h (random_condition): Likewise.
5637 * include/std/random: Likewise.
5638 * src/c++11/cow-string-inst.cc: Likewise.
5639 * src/c++11/random.cc: Likewise.
5641 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
5643 * testsuite/experimental/feat-cxx14.cc: Remove dependency on
5644 _GLIBCXX_USE_C99_STDINT_TR1.
5646 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
5648 * testsuite/22_locale/locale/cons/unicode.cc: Remove dependency
5649 on _GLIBCXX_USE_C99_STDINT_TR1.
5651 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
5653 * testsuite/21_strings/basic_string_view/typedefs.cc: Remove
5654 dependency on _GLIBCXX_USE_C99_STDINT_TR1.
5655 * testsuite/experimental/string_view/typedefs.cc: Likewise.
5657 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
5659 * src/c++17/floating_from_chars.cc [USE_STRTOD_FOR_FROM_CHARS]
5660 (auto_locale, auto_ferounding): New class types.
5661 (from_chars_impl): Use auto_locale and auto_ferounding.
5663 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
5666 * include/std/chrono (hh_mm_ss::__fits): Remove variable
5668 (hh_mm_ss::__subseconds): Remove __fits from constraints.
5669 * testsuite/std/time/hh_mm_ss/109772.cc: New test.
5670 * testsuite/std/time/hh_mm_ss/1.cc: Adjust expected size for
5671 hh_mm_ss<duration<int, std::pico>>.
5673 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
5675 * config/abi/pre/gnu.ver: Export basic_string::_S_allocate.
5676 * include/bits/basic_ios.h: Add static assertion checking
5677 traits_type::value_type.
5678 * include/bits/basic_string.h: Likewise. Do not rebind
5679 allocator, and add static assertion checking its value_type.
5680 (basic_string::_Alloc_traits_impl): Remove class template.
5681 (basic_string::_S_allocate): New static member function.
5682 (basic_string::assign): Use _S_allocate.
5683 * include/bits/basic_string.tcc (basic_string::_M_create)
5684 (basic_string::reserve, basic_string::_M_replace): Likewise.
5685 * testsuite/21_strings/basic_string/requirements/explicit_instantiation/debug.cc:
5686 Disable for C++20 and later.
5687 * testsuite/21_strings/basic_string/requirements/explicit_instantiation/int.cc:
5690 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
5693 * include/bits/std_abs.h (abs(__float128)): Handle negative NaN
5694 and negative zero correctly.
5695 * testsuite/26_numerics/headers/cmath/109758.cc: New test.
5697 2023-05-10 François Dumont <fdumont@gcc.gnu.org>
5699 * include/bits/hashtable_policy.h
5700 (_NodeBuilder<>::_S_build): Use __node_ptr.
5701 (_ReuseOrAllocNode<>): Use __node_ptr in place of __node_type*.
5702 (_AllocNode<>): Likewise.
5703 (_Equality<>::_M_equal): Remove const_iterator usages. Only preserved
5704 to call std::is_permutation in the non-unique key implementation.
5705 * include/bits/hashtable.h (_Hashtable<>::_M_update_begin()): Capture
5707 (_Hashtable<>::_M_bucket_begin(size_type)): Implement implicitly inline.
5708 (_Hashtable<>::_M_insert_bucket_begin): Likewise.
5709 (_Hashtable<>::_M_remove_bucket_begin): Likewise.
5710 (_Hashtable<>::_M_compute_hash_code): Use __node_ptr rather than
5712 (_Hashtable<>::find): Likewise.
5713 (_Hashtable<>::_M_emplace): Likewise.
5714 (_Hashtable<>::_M_insert_unique): Likewise.
5716 2023-05-09 Jonathan Wakely <jwakely@redhat.com>
5718 * python/libstdcxx/v6/printers.py (StdChronoDurationPrinter):
5719 Print floating-point durations correctly.
5720 (StdChronoTimePointPrinter): Support printing only the value,
5721 not the type name. Uncomment handling for known clocks.
5722 (StdChronoZonedTimePrinter): Remove type names from output.
5723 (StdChronoCalendarPrinter): Fix hh_mm_ss member access.
5724 (StdChronoTimeZonePrinter): Add equals sign to output.
5725 * testsuite/libstdc++-prettyprinters/chrono.cc: New test.
5727 2023-05-05 Alexandre Oliva <oliva@adacore.com>
5729 * testsuite/20_util/from_chars/4.cc: Skip long double test06
5731 * testsuite/20_util/to_chars/long_double.cc: Xfail run on
5734 2023-05-04 Jonathan Wakely <jwakely@redhat.com>
5736 * doc/xml/manual/abi.xml (abi.versioning.history): Document
5737 libstdc++.so.6.0.32 and GLIBCXX_3.4.32 version.
5738 * doc/html/manual/abi.html: Regenerate.
5740 2023-05-04 Florian Weimer <fweimer@redhat.com>
5742 * doc/xml/manual/abi.xml (abi.versioning.history): Add
5743 GCC_7.0.0, GCC_9.0.0, GCC_11.0, GCC_12.0.0, GCC_13.0.0 for
5746 2023-05-03 Jakub Jelinek <jakub@redhat.com>
5748 * src/c++17/floating_from_chars.cc
5749 (_ZSt10from_charsPKcS0_RDF128_St12chars_format): New alias to
5750 _ZSt10from_charsPKcS0_Ru9__ieee128St12chars_format.
5751 * src/c++17/floating_to_chars.cc (_ZSt8to_charsPcS_DF128_): New alias to
5752 _ZSt8to_charsPcS_u9__ieee128.
5753 (_ZSt8to_charsPcS_DF128_St12chars_format): New alias to
5754 _ZSt8to_charsPcS_u9__ieee128St12chars_format.
5755 (_ZSt8to_charsPcS_DF128_St12chars_formati): New alias to
5756 _ZSt8to_charsPcS_u9__ieee128St12chars_formati.
5757 * config/abi/post/powerpc64le-linux-gnu/baseline_symbols.txt: Updated.
5759 2023-05-03 Jakub Jelinek <jakub@redhat.com>
5761 * configure.host (abi_baseline_pair): Use powerpc64le-linux-gnu
5762 rather than powerpc64-linux-gnu for powerpc64le*-linux*.
5763 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Remove
5764 _ZTI*DF128_, _ZTI*DF64x symbols and symbols in
5765 GLIBCXX_IEEE128_3.4.{29,30,31} and CXXABI_IEEE128_1.3.13 symbol
5767 * config/abi/post/powerpc64le-linux-gnu/baseline_symbols.txt: New
5770 2023-05-03 Kefu Chai <kefu.chai@scylladb.com>
5771 Jonathan Wakely <jwakely@redhat.com>
5774 * include/bits/basic_string.h (basic_string(Iter, Iter, Alloc)):
5775 Initialize _M_string_length.
5777 2023-05-02 Jakub Jelinek <jakub@redhat.com>
5779 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
5780 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
5781 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
5782 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
5783 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
5784 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
5785 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
5786 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
5788 2023-05-02 Jakub Jelinek <jakub@redhat.com>
5791 * src/c++98/ios_init.cc: Add #pragma GCC diagnostic ignored for
5794 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
5796 * include/bits/random.h (gamma_distribution): Add to the right
5798 (discrete_distribution, piecewise_constant_distribution)
5799 (piecewise_linear_distribution): Create a new doxygen group and
5800 fix the incomplete doxygen comments.
5801 * include/bits/uniform_int_dist.h (uniform_int_distribution):
5802 Add to doxygen group.
5804 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
5806 * include/bits/uses_allocator.h: Add missing @file comment.
5807 * include/bits/regex.tcc: Remove stray doxygen comments.
5808 * include/experimental/memory_resource: Likewise.
5809 * include/std/bit: Tweak doxygen @cond comments.
5810 * include/std/expected: Likewise.
5811 * include/std/numbers: Likewise.
5813 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
5815 * doc/doxygen/user.cfg.in (STRIP_FROM_PATH): Remove prefixes
5818 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
5820 * include/bits/move.h: Simplify opening/closing namespace std.
5822 2023-04-28 Jakub Jelinek <jakub@redhat.com>
5825 * config/abi/pre/gnu.ver (GLIBCXX_3.4.32): Export
5826 _ZSt21ios_base_library_initv.
5827 * testsuite/util/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.32
5828 symver and make it the latestp.
5829 * src/c++98/ios_init.cc (ios_base_library_init): New alias.
5830 * acinclude.m4 (libtool_VERSION): Change to 6:32:0.
5831 * include/std/iostream: If init_priority attribute is supported
5832 and _GLIBCXX_SYMVER_GNU, force undefined _ZSt21ios_base_library_initv
5833 symbol into the object.
5834 * configure: Regenerated.
5836 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
5838 * include/bits/mofunc_impl.h: Fix typo in doxygen comment.
5839 * include/std/format: Likewise.
5841 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
5843 * doc/doxygen/user.cfg.in (FORMULA_TRANSPARENT, DOT_FONTNAME)
5844 (DOT_FONTSIZE, DOT_TRANSPARENT): Remove obsolete options.
5846 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
5848 * doc/doxygen/user.cfg.in (SOURCE_BROWSER): Only set to YES for
5850 * include/bits/gslice_array.h (_DEFINE_VALARRAY_OPERATOR): Omit
5852 * include/bits/indirect_array.h (_DEFINE_VALARRAY_OPERATOR):
5854 * include/bits/mask_array.h (_DEFINE_VALARRAY_OPERATOR):
5856 * include/bits/slice_array.h (_DEFINE_VALARRAY_OPERATOR):
5858 * include/std/valarray (_DEFINE_VALARRAY_UNARY_OPERATOR)
5859 (_DEFINE_VALARRAY_AUGMENTED_ASSIGNMENT)
5860 (_DEFINE_VALARRAY_EXPR_AUGMENTED_ASSIGNMENT)
5861 (_DEFINE_BINARY_OPERATOR): Likewise.
5863 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
5865 * include/bits/memory_resource.h: Improve doxygen comments.
5866 * include/std/memory_resource: Likewise.
5868 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
5871 * include/bits/basic_string.h: Improve doxygen comments.
5872 * include/bits/cow_string.h: Likewise.
5873 * include/bits/forward_list.h: Likewise.
5874 * include/bits/fs_dir.h: Likewise.
5875 * include/bits/fs_path.h: Likewise.
5876 * include/bits/quoted_string.h: Likewise.
5877 * include/bits/stl_bvector.h: Likewise.
5878 * include/bits/stl_map.h: Likewise.
5879 * include/bits/stl_multimap.h: Likewise.
5880 * include/bits/stl_multiset.h: Likewise.
5881 * include/bits/stl_set.h: Likewise.
5882 * include/bits/stl_vector.h: Likewise.
5883 * include/bits/unordered_map.h: Likewise.
5884 * include/bits/unordered_set.h: Likewise.
5885 * include/std/filesystem: Likewise.
5886 * include/std/iomanip: Likewise.
5888 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
5891 * src/c++11/random.cc (__throw_syserr): New function.
5892 (random_device::_M_init, random_device::_M_init_pretr1): Use new
5893 function for bad tokens.
5894 (random_device::_M_getval): Use new function for read errors.
5895 * testsuite/util/testsuite_random.h (random_device_available):
5896 Change catch handler to use std::system_error.
5898 2023-04-24 Patrick Palka <ppalka@redhat.com>
5900 * include/bits/max_size_type.h (__max_diff_type::operator>>=):
5901 Fix propagation of sign bit.
5902 * testsuite/std/ranges/iota/max_size_type.cc: Avoid using the
5903 non-standard 'signed typedef-name'. Add some compile-time tests
5904 for right-shifting a negative __max_diff_type value by more than
5907 2023-04-19 Patrick Palka <ppalka@redhat.com>
5908 Jonathan Wakely <jwakely@redhat.com>
5911 * include/bits/utility.h (_Nth_type): Conditionally define in
5912 terms of __type_pack_element if available.
5913 * testsuite/20_util/tuple/element_access/get_neg.cc: Prune
5914 additional errors from the new built-in.
5916 2023-04-19 Jonathan Wakely <jwakely@redhat.com>
5919 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
5922 * src/Makefile.am: Move globals_io.cc to here.
5923 * src/Makefile.in: Regenerate.
5924 * src/c++98/Makefile.am: Remove globals_io.cc from here.
5925 * src/c++98/Makefile.in: Regenerate.
5926 * src/c++98/globals_io.cc [_GLIBCXX_SYMVER_GNU] (cin): Adjust
5927 symbol name and then export with GLIBCXX_3.4.31 symver.
5928 (cout, cerr, clog, wcin, wcout, wcerr, wclog): Likewise.
5929 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt:
5931 * config/abi/post/i486-linux-gnu/baseline_symbols.txt:
5933 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt:
5935 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
5937 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
5939 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
5941 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt:
5943 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt:
5945 * config/abi/pre/gnu.ver: Add iostream objects to new symver.
5947 2023-04-19 Jonathan Wakely <jwakely@redhat.com>
5950 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
5953 * config/abi/pre/gnu.ver: Fix preprocessor condition.
5955 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
5957 * doc/xml/manual/extensions.xml: Fix example to declare and
5958 qualify std::free, and use NULL instead of 0.
5959 * doc/html/manual/ext_demangling.html: Regenerate.
5960 * libsupc++/cxxabi.h: Adjust doxygen comments.
5962 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
5965 * config/abi/pre/gnu.ver: Fix preprocessor condition.
5967 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
5970 * src/Makefile.am: Move globals_io.cc to here.
5971 * src/Makefile.in: Regenerate.
5972 * src/c++98/Makefile.am: Remove globals_io.cc from here.
5973 * src/c++98/Makefile.in: Regenerate.
5974 * src/c++98/globals_io.cc [_GLIBCXX_SYMVER_GNU] (cin): Adjust
5975 symbol name and then export with GLIBCXX_3.4.31 symver.
5976 (cout, cerr, clog, wcin, wcout, wcerr, wclog): Likewise.
5977 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt:
5979 * config/abi/post/i486-linux-gnu/baseline_symbols.txt:
5981 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt:
5983 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
5985 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
5987 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
5989 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt:
5991 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt:
5993 * config/abi/pre/gnu.ver: Add iostream objects to new symver.
5995 2023-04-18 Patrick Palka <ppalka@redhat.com>
5998 * include/bits/ranges_cmp.h (__cpp_lib_ranges): Bump value
6000 * include/std/ranges (range_adaptor_closure): Define for C++23.
6001 * include/std/version (__cpp_lib_ranges): Bump value for
6003 * testsuite/std/ranges/version_c++23.cc: Bump expected value
6004 of __cpp_lib_ranges.
6005 * testsuite/std/ranges/range_adaptor_closure.cc: New test.
6007 2023-04-18 Patrick Palka <ppalka@redhat.com>
6009 * include/bits/ranges_algo.h (__cpp_lib_ranges_contains):
6011 (__cpp_lib_ranges_iota): Likewise.
6012 (__cpp_lib_ranges_find_last): Likewise.
6013 (__cpp_lib_fold): Rename to ...
6014 (__cpp_lib_ranges_fold): ... this.
6015 * include/std/version: As above.
6016 * testsuite/25_algorithms/fold_left/1.cc: Adjust after
6017 renaming __cpp_lib_fold.
6018 * testsuite/std/ranges/version_c++23.cc: Verify values
6019 of the above feature-test macros.
6021 2023-04-18 Patrick Palka <ppalka@redhat.com>
6024 * include/std/ranges (views::_AsConst::operator()): Add
6025 missing const to constant_range test.
6026 * testsuite/std/ranges/adaptors/as_const/1.cc (test02):
6027 Improve formatting. Adjust expected type of v2.
6030 2023-04-14 Patrick Palka <ppalka@redhat.com>
6032 * include/bits/ranges_base.h (const_iterator_t): Define for C++23.
6033 (const_sentinel_t): Likewise.
6034 (range_const_reference_t): Likewise.
6035 (constant_range): Likewise.
6036 (__cust_access::__possibly_const_range): Likewise, replacing ...
6037 (__cust_access::__as_const): ... this.
6038 (__cust_access::_CBegin::operator()): Redefine for C++23 as per P2278R4.
6039 (__cust_access::_CEnd::operator()): Likewise.
6040 (__cust_access::_CRBegin::operator()): Likewise.
6041 (__cust_access::_CREnd::operator()): Likewise.
6042 (__cust_access::_CData::operator()): Likewise.
6043 * include/bits/ranges_util.h (ranges::__detail::__different_from):
6044 Make it an alias of std::__detail::__different_from.
6045 (view_interface::cbegin): Define for C++23.
6046 (view_interface::cend): Likewise.
6047 * include/bits/stl_iterator.h (__detail::__different_from): Define.
6048 (iter_const_reference_t): Define for C++23.
6049 (__detail::__constant_iterator): Likewise.
6050 (__detail::__is_const_iterator): Likewise.
6051 (__detail::__not_a_const_iterator): Likewise.
6052 (__detail::__iter_const_rvalue_reference_t): Likewise.
6053 (__detail::__basic_const_iter_cat):: Likewise.
6054 (const_iterator): Likewise.
6055 (__detail::__const_sentinel): Likewise.
6056 (const_sentinel): Likewise.
6057 (basic_const_iterator): Likewise.
6058 (common_type<basic_const_iterator<_Tp>, _Up>): Likewise.
6059 (common_type<_Up, basic_const_iterator<_Tp>>): Likewise.
6060 (common_type<basic_const_iterator<_Tp>, basic_const_iterator<Up>>):
6062 (make_const_iterator): Define for C++23.
6063 (make_const_sentinel): Likewise.
6064 * include/std/ranges (__cpp_lib_ranges_as_const): Likewise.
6065 (as_const_view): Likewise.
6066 (enable_borrowed_range<as_const_view>): Likewise.
6067 (views::__detail::__is_ref_view): Likewise.
6068 (views::__detail::__can_is_const_view): Likewise.
6069 (views::_AsConst, views::as_const): Likewise.
6070 * include/std/span (span::const_iterator): Likewise.
6071 (span::const_reverse_iterator): Likewise.
6072 (span::cbegin): Likewise.
6073 (span::cend): Likewise.
6074 (span::crbegin): Likewise.
6075 (span::crend): Likewise.
6076 * include/std/version (__cpp_lib_ranges_as_const): Likewise.
6077 * testsuite/std/ranges/adaptors/join.cc (test06): Adjust to
6078 behave independently of C++20 vs C++23.
6079 * testsuite/std/ranges/version_c++23.cc: Verify value of
6080 __cpp_lib_ranges_as_const macro.
6081 * testsuite/24_iterators/const_iterator/1.cc: New test.
6082 * testsuite/std/ranges/adaptors/as_const/1.cc: New test.
6084 2023-04-14 Patrick Palka <ppalka@redhat.com>
6086 * include/bits/ranges_base.h (__cust_access::__as_const)
6087 (__cust_access::_CBegin, __cust::cbegin)
6088 (__cust_access::_CEnd, __cust::cend)
6089 (__cust_access::_CRBegin, __cust::crbegin)
6090 (__cust_access::_CREnd, __cust::crend)
6091 (__cust_access::_CData, __cust::cdata): Move down definitions to
6092 shortly after the definition of input_range.
6094 2023-04-14 Patrick Palka <ppalka@redhat.com>
6096 * include/bits/ranges_algo.h: Include <optional> for C++23.
6097 (__cpp_lib_fold): Define for C++23.
6098 (in_value_result): Likewise.
6099 (__detail::__flipped): Likewise.
6100 (__detail::__indirectly_binary_left_foldable_impl): Likewise.
6101 (__detail::__indirectly_binary_left_foldable): Likewise.
6102 (___detail:__indirectly_binary_right_foldable): Likewise.
6103 (fold_left_with_iter_result): Likewise.
6104 (__fold_left_with_iter_fn, fold_left_with_iter): Likewise.
6105 (__fold_left_fn, fold_left): Likewise.
6106 (__fold_left_first_with_iter_fn, fold_left_first_with_iter):
6108 (__fold_left_first_fn, fold_left_first): Likewise.
6109 (__fold_right_fn, fold_right): Likewise.
6110 (__fold_right_last_fn, fold_right_last): Likewise.
6111 * include/std/version (__cpp_lib_fold): Likewise.
6112 * testsuite/25_algorithms/fold_left/1.cc: New test.
6113 * testsuite/25_algorithms/fold_right/1.cc: New test.
6115 2023-04-14 Jonathan Wakely <jwakely@redhat.com>
6117 * include/std/format (formatter): Add comment to deleted default
6118 constructor of primary template.
6119 (_Checking_scanner): Add static_assert.
6121 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
6123 * doc/xml/manual/using.xml: Document libstdc++exp.a library.
6124 * doc/html/*: Regenerate.
6126 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
6128 * testsuite/17_intro/names.cc [_AIX]: Do not define policy.
6129 * testsuite/19_diagnostics/error_code/cons/lwg3629.cc: Rename
6130 namespace to avoid clashing with libc struct.
6131 * testsuite/19_diagnostics/error_condition/cons/lwg3629.cc:
6133 * testsuite/23_containers/unordered_map/96088.cc: Skip on AIX.
6134 * testsuite/23_containers/unordered_multimap/96088.cc: Likewise.
6135 * testsuite/23_containers/unordered_multiset/96088.cc: Likewise.
6136 * testsuite/23_containers/unordered_set/96088.cc: Likewise.
6137 * testsuite/experimental/synchronized_value.cc: Require gthreads
6138 and add missing option for pthreads targets.
6140 2023-04-12 Patrick Palka <ppalka@redhat.com>
6142 * include/std/ranges (__cpp_lib_ranges_enumerate): Define
6144 (__detail::__range_with_movable_reference): Likewise.
6145 (enumerate_view): Likewise.
6146 (enumerate_view::_Iterator): Likewise.
6147 (enumerate_view::_Sentinel): Likewise.
6148 (views::__detail::__can_enumerate_view): Likewise.
6149 (views::_Enumerate, views::enumerate): Likewise.
6150 * include/std/version (__cpp_lib_ranges_enumerate): Likewise.
6151 * testsuite/std/ranges/version_c++23.cc: Verify value of
6152 __cpp_lib_ranges_enumerate.
6153 * testsuite/std/ranges/adaptors/enumerate/1.cc: New test.
6155 2023-04-12 Patrick Palka <ppalka@redhat.com>
6157 * include/std/ranges (lazy_split_view::_OuterIter::_OuterIter):
6158 Propagate _M_trailing_empty in the const-converting constructor
6160 * testsuite/std/ranges/adaptors/adjacent/1.cc (test04): Correct
6162 * testsuite/std/ranges/adaptors/lazy_split.cc (test12): New test.
6164 2023-04-12 Patrick Palka <ppalka@redhat.com>
6166 * src/c++17/floating_from_chars.cc: Include <algorithm>,
6167 <iterator>, <limits> and <cstdint>.
6169 2023-04-12 Patrick Palka <ppalka@redhat.com>
6172 * include/std/ranges (chunk_by_view::_M_find_next): Generalize
6173 parameter types of the lambda wrapper passed to adjacent_find.
6174 (chunk_by_view::_M_find_prev): Likewise.
6175 * testsuite/std/ranges/adaptors/chunk_by/1.cc (test04, test05):
6178 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
6181 * include/experimental/internet (basic_endpoint::basic_endpoint()):
6182 Ensure that the required union members are active. Only define
6183 as constexpr for C++20 and later.
6184 (basic_endpoint::basic_endpoint(const protocol_type&, port_type)):
6186 * testsuite/experimental/net/internet/endpoint/cons.cc: Only
6187 check constexpr default constructor for C++20 and later.
6188 * testsuite/experimental/net/internet/endpoint/extensible.cc:
6191 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
6193 * src/c++20/tzdata.zi: Import new file from 2023c release.
6195 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
6197 * include/precompiled/stdc++.h (C++17): Don't double-include
6198 <charconv>, once with wrong conditions.
6199 * testsuite/18_support/96817.cc: Require hosted.
6200 * testsuite/18_support/bad_exception/59392.cc: Ditto.
6201 * testsuite/20_util/scoped_allocator/108952.cc: Ditto.
6202 * testsuite/20_util/uses_allocator/lwg3527.cc: Ditto.
6203 * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
6206 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
6208 * include/bits/c++config: When __STDC_HOSTED__ is zero,
6209 disable _GLIBCXX_DEBUG and, if it was set, enable
6210 _GLIBCXX_ASSERTIONS.
6211 * testsuite/lib/libstdc++.exp (check_v3_target_debug_mode):
6212 Include <bits/c++config.h> when determining whether debug is
6213 set, in order to inherit the logic from above
6215 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
6217 * testsuite/17_intro/versionconflict.cc: New test.
6218 * include/std/version: Allow disabling the system_header pragma
6219 via _GLIBCXX_TESTING_SYSHDR.
6221 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
6223 * include/bits/unique_ptr.h (__cpp_lib_constexpr_memory):
6224 Synchronize the definition block with...
6225 * include/bits/ptr_traits.h (__cpp_lib_constexpr_memory):
6226 ... this one here. Also define the 202202L value, rather than
6227 leaving it up to purely unique_ptr.h, so that the value is
6228 synchronized across all headers.
6229 (__gnu_debug::_Safe_iterator_base): Move into new conditional
6231 * include/std/memory (__cpp_lib_atomic_value_initialization):
6232 Define on freestanding under the same conditions as in
6234 * include/std/version (__cpp_lib_robust_nonmodifying_seq_ops):
6235 Also define on freestanding.
6236 (__cpp_lib_to_chars): Ditto.
6237 (__cpp_lib_gcd): Ditto.
6238 (__cpp_lib_gcd_lcm): Ditto.
6239 (__cpp_lib_raw_memory_algorithms): Ditto.
6240 (__cpp_lib_array_constexpr): Ditto.
6241 (__cpp_lib_nonmember_container_access): Ditto.
6242 (__cpp_lib_clamp): Ditto.
6243 (__cpp_lib_constexpr_char_traits): Ditto.
6244 (__cpp_lib_constexpr_string): Ditto.
6245 (__cpp_lib_sample): Ditto.
6246 (__cpp_lib_lcm): Ditto.
6247 (__cpp_lib_constexpr_iterator): Ditto.
6248 (__cpp_lib_constexpr_char_traits): Ditto.
6249 (__cpp_lib_interpolate): Ditto.
6250 (__cpp_lib_constexpr_utility): Ditto.
6251 (__cpp_lib_shift): Ditto.
6252 (__cpp_lib_ranges): Ditto.
6253 (__cpp_lib_move_iterator_concept): Ditto.
6254 (__cpp_lib_constexpr_numeric): Ditto.
6255 (__cpp_lib_constexpr_functional): Ditto.
6256 (__cpp_lib_constexpr_algorithms): Ditto.
6257 (__cpp_lib_constexpr_tuple): Ditto.
6258 (__cpp_lib_constexpr_memory): Ditto.
6260 2023-04-05 John David Anglin <danglin@gcc.gnu.org>
6262 * testsuite/22_locale/locale/cons/12658_thread-2.cc: Double
6263 timeout factor on hppa*-*-*.
6265 2023-04-05 Jonathan Wakely <jwakely@redhat.com>
6267 * include/bits/regex.h (sub_match::swap): New function.
6268 * testsuite/28_regex/sub_match/lwg3204.cc: New test.
6270 2023-04-04 Jonathan Wakely <jwakely@redhat.com>
6272 * doc/xml/manual/extensions.xml: Remove std::bad_exception from
6274 * doc/html/manual/ext_demangling.html: Regenerate.
6276 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
6278 PR tree-optimization/107087
6279 * include/bits/cow_string.h (basic_string::size()): Add
6280 optimizer hint that _S_empty_rep()._M_length is always zero.
6281 (basic_string::length()): Call size().
6283 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
6286 * include/std/stop_token (_Stop_state_ptr(const stop_source&)):
6287 Add attribute access with access-mode 'none'.
6288 * testsuite/30_threads/stop_token/stop_source/109339.cc: New test.
6290 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
6292 * include/experimental/internet (ip::basic_endpoint::_M_if_v6):
6293 Revert change from member function to data member. Fix for
6294 constant evaluation by detecting which union member is active.
6295 (ip::basic_endpoint::resize): Revert changes to update _M_is_v6
6298 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
6301 * testsuite/20_util/optional/monadic/pr109340.cc: Moved to...
6302 * testsuite/20_util/optional/monadic/pr109242.cc: ...here.
6304 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
6306 * include/experimental/internet (ip::make_address): Implement
6308 (ip::address_v4::broadcast()): Avoid undefined shift.
6309 (ip::basic_endpoint): Fix member functions for constexpr.
6310 (ip::basic_endpoint::_M_is_v6): Replace member function with
6311 data member, adjust member functions using it.
6312 (ip::basic_endpoint::resize): Update _M_is_v6 based on sockaddr
6314 * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
6315 constexpr checks to work in C++14.
6316 * testsuite/experimental/net/internet/address/v4/creation.cc:
6318 * testsuite/experimental/net/internet/endpoint/cons.cc:
6320 * testsuite/experimental/net/internet/network/v4/cons.cc:
6322 * testsuite/experimental/net/internet/network/v4/members.cc:
6324 * testsuite/experimental/net/internet/endpoint/extensible.cc: New test.
6326 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
6328 * include/std/expected (expected::value() &): Use const lvalue
6329 for unex member passed to bad_expected_access constructor, as
6332 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
6335 * include/std/expected (expected::transform): Use
6336 std::remove_cv_t instead of std::remove_cvref_t.
6337 (expected::transform_error): Likewise.
6338 (expected<cv void, E>::transform): Likewise.
6339 (expected<cv void, E>::transform_error): Likewise.
6340 * include/std/optional (transform): Use std::remove_cv_t.
6341 * testsuite/20_util/optional/monadic/pr109340.cc: New test.
6343 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
6345 * include/std/optional (optional): Adjust static assertion to
6346 reject arrays and functions as well as references.
6347 * testsuite/20_util/optional/requirements_neg.cc: New test.
6349 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
6352 * include/bits/istream.tcc (istream::_M_extract(ValueT&)): Use
6353 std::use_facet instead of cached _M_num_get facet.
6354 (istream::operator>>(short&)): Likewise.
6355 (istream::operator>>(int&)): Likewise.
6356 * include/bits/ostream.tcc (ostream::_M_insert(ValueT)): Use
6357 std::use_facet instead of cached _M_num_put facet.
6359 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
6361 * include/bits/char_traits.h (char_traits::copy): Return without
6362 using memcpy if n==0.
6363 (char_traits::assign): Likewise for memset.
6365 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
6368 * include/bits/basic_string.h (basic_string::_M_is_local()): Add
6369 hint for compiler that local strings fit in the local buffer.
6371 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
6374 * include/std/chrono (__detail::__get_leap_second_info): Update
6375 expiry date of hardcoded leapseconds list.
6376 * src/c++20/tzdb.cc (tzdb_list::_Node::_S_read_leap_seconds()):
6378 * src/c++20/tzdata.zi: Import new file from 2023a release.
6379 * testsuite/std/time/time_zone/get_info_local.cc: Only check
6380 transitions for Egypt up to 2014.
6382 2023-03-28 Matthias Kretz <m.kretz@gsi.de>
6384 * include/experimental/bits/simd.h (is_simd_flag_type): New.
6385 (_IsSimdFlagType): New.
6386 (copy_from, copy_to, load ctors): Constrain _Flags using
6389 2023-03-28 Matthias Kretz <m.kretz@gsi.de>
6391 * include/experimental/bits/simd_x86.h (_SimdImplX86): Use
6392 _Base::_S_divides if the optimized _S_divides function is hidden
6393 via the preprocessor.
6395 2023-03-27 Jakub Jelinek <jakub@redhat.com>
6397 * testsuite/experimental/net/timer/waitable/dest.cc: Avoid -Wformat
6398 warning if size_t is not unsigned long.
6400 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
6402 * include/bits/shared_ptr_atomic.h (atomic::operator=(nullptr_t)):
6403 Add overload, as per LWG 3893.
6404 * testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc:
6405 Check assignment from nullptr.
6407 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
6409 * include/std/format (formatter<const charT[N], charT>): Do not
6410 define partial speclialization, as per LWG 3833.
6411 * testsuite/std/format/formatter/requirements.cc: Check it.
6413 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
6415 * include/std/utility (__cpp_lib_constexpr_algorithms): Define,
6417 * testsuite/20_util/exchange/constexpr.cc: Check for it.
6419 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
6421 * include/std/version (__cpp_lib_format): Define.
6422 * testsuite/std/format/functions/format.cc: Check it.
6424 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
6426 * include/bits/basic_string.tcc (basic_string::resize_and_overwrite):
6427 Pass rvalues to the callback, as now allowed by LWG 3645.
6428 Enforce preconditions on the return value.
6429 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
6432 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
6434 * include/std/format: Add a comment noting that the resolution
6435 of LWG 3720 has been applied..
6437 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
6439 * include/bits/regex.h (match_results): Add allocator-extended
6440 copy and move constructors, as per LWG 2195.
6441 * testsuite/28_regex/match_results/ctors/char/alloc.cc: New test.
6443 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
6445 * include/bits/stream_iterator.h (istream_iterator): Add
6446 constexpr to copy constructor, as per LWG 3600.
6447 * testsuite/24_iterators/istream_iterator/cons/constexpr.cc:
6448 Check copy construction.
6450 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
6452 * include/experimental/bits/simd_x86.h
6453 (_SimdImplX86::_S_divides): Replace test for __GCC_IEC_559 == 0
6454 with __RECIPROCAL_MATH__.
6456 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
6458 * include/experimental/bits/simd_detail.h: Don't define
6459 _GLIBCXX_SIMD_WORKAROUND_PR90993 for Clang.
6460 * include/experimental/bits/simd_x86.h (_S_divides): Remove
6461 check for __clang__.
6463 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
6465 * include/experimental/bits/simd_detail.h: Don't declare the
6466 simd API as constexpr with Clang.
6467 * include/experimental/bits/simd_x86.h (__movm): New.
6468 (_S_blend_avx512): Resolve FIXME. Implement blend using __movm
6470 (_SimdImplX86::_S_masked_unary): Clang does not implement the
6471 same builtins. Implement the function using __movm, ?:, and -
6472 operators on vector_size types instead.
6474 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
6476 * testsuite/experimental/simd/tests/operators.cc: Clang doesn't
6477 define __GCC_IEC_559. Use __STDC_IEC_559__ instead.
6479 2023-03-20 Jonathan Wakely <jwakely@redhat.com>
6481 * src/filesystem/ops-common.h (get_temp_directory_from_env): Fix
6484 2023-03-20 Marek Polacek <polacek@redhat.com>
6487 * testsuite/20_util/pair/cons/explicit_construct.cc: Adjust dg-error.
6488 * testsuite/20_util/tuple/cons/explicit_construct.cc: Likewise.
6489 * testsuite/23_containers/span/explicit.cc: Likewise.
6491 2023-03-20 Jonathan Wakely <jwakely@redhat.com>
6494 * include/std/expected (expected<void>::expected(in_place_t)):
6495 Remove template-head.
6497 2023-03-18 Jonathan Wakely <jwakely@redhat.com>
6500 * testsuite/18_support/coroutines/hash.cc: Use const object
6503 2023-03-17 Jonathan Wakely <jwakely@redhat.com>
6506 * include/std/coroutine (hash<>::operator()): Add const.
6507 * testsuite/18_support/coroutines/hash.cc: New test.
6509 2023-03-14 Patrick Palka <ppalka@redhat.com>
6512 * include/std/ranges (repeat_view): Remove redundant parentheses
6514 (repeat_view::_Iterator): Correct the requires-clause.
6516 2023-03-14 Patrick Palka <ppalka@redhat.com>
6518 * include/bits/stl_iterator.h (move_iterator::_S_iter_concept):
6520 (__cpp_lib_move_iterator_concept): Define for C++20.
6521 (move_iterator::iterator_concept): Strengthen as per P2520R0.
6522 * include/std/version (__cpp_lib_move_iterator_concept): Define
6524 * testsuite/24_iterators/move_iterator/p2520r0.cc: New test.
6526 2023-03-14 Patrick Palka <ppalka@redhat.com>
6528 * include/bits/ranges_util.h (view_interface::empty): Add
6529 preferred overloads that use ranges::size when the range is
6530 sized as per LWG 3715.
6531 * testsuite/std/ranges/adaptors/lwg3715.cc: New test.
6533 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
6535 * include/bits/chrono.h (__is_duration_v, __is_time_point_v):
6536 Only define for C++17 and later.
6538 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
6540 * src/Makefile.am: Add comment about linker script fragments.
6541 * src/Makefile.in: Regenerate.
6543 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
6546 * include/bits/mask_array.h (mask_array): Add assertions to
6547 assignment operators.
6548 * include/std/valarray (valarray::operator[](valarray<bool>)):
6550 * testsuite/26_numerics/valarray/mask-1_neg.cc: New test.
6551 * testsuite/26_numerics/valarray/mask-2_neg.cc: New test.
6552 * testsuite/26_numerics/valarray/mask-3_neg.cc: New test.
6553 * testsuite/26_numerics/valarray/mask-4_neg.cc: New test.
6554 * testsuite/26_numerics/valarray/mask-5_neg.cc: New test.
6555 * testsuite/26_numerics/valarray/mask-6_neg.cc: New test.
6556 * testsuite/26_numerics/valarray/mask-7_neg.cc: New test.
6557 * testsuite/26_numerics/valarray/mask-8_neg.cc: New test.
6558 * testsuite/26_numerics/valarray/mask.cc: New test.
6560 2023-03-13 Jakub Jelinek <jakub@redhat.com>
6562 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
6563 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
6565 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
6567 * doc/Makefile.am: Add comment referring to documentation.
6568 * doc/Makefile.in: Regenerate.
6570 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
6572 * doc/html/*: Regenerate.
6574 2023-03-13 Jonny Grant <jg@jguk.org>
6576 * doc/xml/faq.xml: Update copyright year.
6578 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
6580 * include/bits/allocator.h: Fix typo in comment.
6582 2023-03-12 Jakub Jelinek <jakub@redhat.com>
6584 * config/abi/pre/gnu.ver (CXXABI_1.3.14): Also export __bf16 tinfos
6585 if it isn't mangled as DF16b but u6__bf16.
6587 2023-03-12 Gerald Pfeifer <gerald@pfeifer.com>
6589 * doc/xml/manual/documentation_hacking.xml: Move www.graphviz.org
6591 * doc/html/manual/documentation_hacking.html: Regenerate.
6593 2023-03-10 Jonathan Wakely <jwakely@redhat.com>
6596 * python/libstdcxx/v6/xmethods.py (SharedPtrUseCountWorker):
6597 Remove self-recursion in __init__. Add missing _supports.
6598 * testsuite/libstdc++-xmethods/shared_ptr.cc: Check use_count()
6601 2023-03-09 Patrick Palka <ppalka@redhat.com>
6603 * include/std/ranges
6604 (cartesian_product_view::_Iterator::_Iterator): Remove
6605 constraint on default constructor as per LWG 3849.
6606 (cartesian_product_view::_Iterator::_M_prev): Adjust position
6607 of _Nm > 0 test as per LWG 3820.
6608 (cartesian_product_view::_Iterator::_M_advance): Perform bounds
6609 checking only on sized cartesian products.
6610 * testsuite/std/ranges/cartesian_product/1.cc (test08): New test.
6612 2023-03-09 Patrick Palka <ppalka@redhat.com>
6615 * include/std/ranges (chunk_by_view::_M_pred): Remove DMI as per
6617 (repeat_view::_M_pred): Likewise.
6618 * testsuite/std/ranges/adaptors/chunk_by/1.cc (test03): New test.
6619 * testsuite/std/ranges/repeat/1.cc (test05): New test.
6621 2023-03-09 Patrick Palka <ppalka@redhat.com>
6624 * include/std/ranges (__detail::__can_single_view): New concept.
6625 (_Single::operator()): Constrain it. Move [[nodiscard]] to the
6626 end of the function declarator.
6627 (__detail::__can_iota_view): New concept.
6628 (_Iota::operator()): Constrain it. Move [[nodiscard]] to the
6629 end of the function declarator.
6630 (__detail::__can_istream_view): New concept.
6631 (_Istream::operator()): Constrain it. Move [[nodiscard]] to the
6632 end of the function declarator.
6633 * testsuite/std/ranges/iota/iota_view.cc (test07): New test.
6634 * testsuite/std/ranges/istream_view.cc (test08): New test.
6635 * testsuite/std/ranges/single_view.cc (test07): New test.
6637 2023-03-09 Patrick Palka <ppalka@redhat.com>
6640 * include/std/ranges (cartesian_product_view::end): When
6641 building the tuple of iterators, avoid calling ranges::begin on
6642 the first range if __empty_tail is false.
6643 * testsuite/std/ranges/cartesian_product/1.cc (test07): New test.
6645 2023-03-09 Jonathan Wakely <jwakely@redhat.com>
6648 * config/os/gnu-linux/ldbl-ieee128-extra.ver: Fix incorrect
6651 2023-03-07 Jakub Jelinek <jakub@redhat.com>
6653 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
6654 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
6655 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
6656 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
6657 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
6659 2023-03-07 Jonathan Wakely <jwakely@redhat.com>
6662 * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Adjust patterns to
6663 not match symbols in namespace std::__gnu_cxx11_ieee128.
6664 * config/os/gnu-linux/ldbl-ieee128-extra.ver: Add patterns for
6665 std::__gnu_cxx11_ieee128::money_{get,put}.
6667 2023-03-07 Jonathan Wakely <jwakely@redhat.com>
6669 * libsupc++/eh_personality.cc: Fix spelling in comment.
6671 2023-03-03 Alexandre Oliva <oliva@adacore.com>
6673 * testsuite/30_threads/async/async.cc (test04): Initialize
6674 steady_start, renamed from steady_begin, next to slow_start.
6675 Increase tolerance for final wait.
6677 2023-03-03 Alexandre Oliva <oliva@adacore.com>
6679 * testsuite/libstdc++-prettyprinters/80276.cc: Add
6680 std::string to debug info.
6681 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
6683 2023-03-03 Alexandre Oliva <oliva@adacore.com>
6688 * include/bits/std_thread.h (thread::_M_thread_deps): New
6689 static implicitly-inline member function.
6690 (std::thread template ctor): Pass it to _M_start_thread.
6691 * src/c++11/thread.cc (thread::_M_start_thread): Name depend
6692 parameter, force it live on entry.
6694 2023-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6696 * config/abi/post/i386-solaris/baseline_symbols.txt: Regenerate.
6697 * config/abi/post/i386-solaris/amd64/baseline_symbols.txt:
6699 * config/abi/post/sparc-solaris/baseline_symbols.txt: Likewise.
6700 * config/abi/post/sparc-solaris/sparcv9/baseline_symbols.txt:
6703 2023-03-01 Jonathan Wakely <jwakely@redhat.com>
6705 * include/bits/cow_string.h: Fix typo in comment.
6707 2023-03-01 Jonathan Wakely <jwakely@redhat.com>
6709 * src/c++20/tzdb.cc (chrono::tzdb::current_zone()) Use "UTC" if
6710 current time zone cannot be determined.
6711 * testsuite/std/time/tzdb/1.cc: Remove conditions based on
6712 HAVE_TZDB macro and test all members unconditionally.
6714 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
6717 * include/bits/uses_allocator_args.h
6718 (uses_allocator_construction_args): Implement LWG 3527.
6719 * testsuite/20_util/pair/astuple/get-2.cc: New test.
6720 * testsuite/20_util/scoped_allocator/108952.cc: New test.
6721 * testsuite/20_util/uses_allocator/lwg3527.cc: New test.
6723 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
6726 * include/bits/stl_algobase.h (__copy_move<false, false, RA>)
6727 Add __assign_one static member function.
6728 (__copy_move<true, false, RA>): Likewise.
6729 (__copy_move<IsMove, true, RA>): Do not use memmove for a single
6731 (__copy_move_backward<IsMove, true, RA>): Likewise.
6732 * testsuite/25_algorithms/copy/108846.cc: New test.
6733 * testsuite/25_algorithms/copy_backward/108846.cc: New test.
6734 * testsuite/25_algorithms/copy_n/108846.cc: New test.
6735 * testsuite/25_algorithms/move/108846.cc: New test.
6736 * testsuite/25_algorithms/move_backward/108846.cc: New test.
6738 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
6740 * src/c++11/codecvt.cc: Add [[likely]] and [[unlikely]]
6743 2023-02-27 Jonathan Wakely <jwakely@redhat.com>
6745 * include/bits/basic_ios.h (basic_ios::_M_setstate): Add
6747 * include/bits/basic_string.h (resize_and_overwrite): Add
6750 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
6752 * include/experimental/bits/simd.h: Line breaks and indenting
6753 fixed to follow the libstdc++ standard.
6754 * include/experimental/bits/simd_builtin.h: Likewise.
6755 * include/experimental/bits/simd_fixed_size.h: Likewise.
6756 * include/experimental/bits/simd_neon.h: Likewise.
6757 * include/experimental/bits/simd_ppc.h: Likewise.
6758 * include/experimental/bits/simd_scalar.h: Likewise.
6759 * include/experimental/bits/simd_x86.h: Likewise.
6761 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
6764 * include/experimental/bits/simd_fixed_size.h
6765 (_SimdImplFixedSize::_S_broadcast): Replace inline with
6766 _GLIBCXX_SIMD_INTRINSIC.
6767 (_SimdImplFixedSize::_S_generate): Likewise.
6768 (_SimdImplFixedSize::_S_load): Likewise.
6769 (_SimdImplFixedSize::_S_masked_load): Likewise.
6770 (_SimdImplFixedSize::_S_store): Likewise.
6771 (_SimdImplFixedSize::_S_masked_store): Likewise.
6772 (_SimdImplFixedSize::_S_min): Likewise.
6773 (_SimdImplFixedSize::_S_max): Likewise.
6774 (_SimdImplFixedSize::_S_complement): Likewise.
6775 (_SimdImplFixedSize::_S_unary_minus): Likewise.
6776 (_SimdImplFixedSize::_S_plus): Likewise.
6777 (_SimdImplFixedSize::_S_minus): Likewise.
6778 (_SimdImplFixedSize::_S_multiplies): Likewise.
6779 (_SimdImplFixedSize::_S_divides): Likewise.
6780 (_SimdImplFixedSize::_S_modulus): Likewise.
6781 (_SimdImplFixedSize::_S_bit_and): Likewise.
6782 (_SimdImplFixedSize::_S_bit_or): Likewise.
6783 (_SimdImplFixedSize::_S_bit_xor): Likewise.
6784 (_SimdImplFixedSize::_S_bit_shift_left): Likewise.
6785 (_SimdImplFixedSize::_S_bit_shift_right): Likewise.
6786 (_SimdImplFixedSize::_S_remquo): Add inline keyword (to be
6787 explicit about not always-inline, yet).
6788 (_SimdImplFixedSize::_S_isinf): Likewise.
6789 (_SimdImplFixedSize::_S_isfinite): Likewise.
6790 (_SimdImplFixedSize::_S_isnan): Likewise.
6791 (_SimdImplFixedSize::_S_isnormal): Likewise.
6792 (_SimdImplFixedSize::_S_signbit): Likewise.
6794 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
6797 * include/experimental/bits/simd_builtin.h
6798 (_SimdImplBuiltin::_S_masked_unary): More efficient
6799 implementation of masked inc-/decrement for integers and floats
6801 * include/experimental/bits/simd_x86.h
6802 (_SimdImplX86::_S_masked_unary): New. Use AVX512 masked subtract
6803 builtins for masked inc-/decrement.
6805 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
6807 * include/experimental/executor (executor): Constrain template
6810 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
6812 * include/experimental/internet (basic_endpoint): Add missing
6813 constexpr to comparison operators.
6814 * testsuite/experimental/net/internet/endpoint/cons.cc: New test.
6816 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
6818 * include/experimental/internet (network_v4::netmask()): Avoid
6820 (network_v4::broadcast()): Optimize and fix for targets with
6821 uint_least32_t wider than 32 bits.
6822 (network_v4::to_string(const Allocator&)): Fix for custom
6823 allocators and optimize using to_chars.
6824 (operator==(const network_v4&, const network_v4&)): Add missing
6826 (operator==(const network_v6&, const network_v6&)): Likewise.
6827 * testsuite/experimental/net/internet/network/v4/cons.cc: New test.
6828 * testsuite/experimental/net/internet/network/v4/members.cc: New test.
6830 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
6832 * include/experimental/internet (address_4(const bytes_type&)):
6833 Use __builtin_bit_cast if available, otherwise convert to
6835 (address_v4::to_bytes()): Likewise, but convert from network
6837 * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
6838 incorrect tests. Check for constexpr too.
6839 * testsuite/experimental/net/internet/address/v4/creation.cc:
6841 * testsuite/experimental/net/internet/address/v4/members.cc:
6842 Check that bytes_type is a standard-layout type.
6844 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
6846 * include/experimental/internet (address_v4::to_string):
6848 * testsuite/experimental/net/internet/address/v4/members.cc:
6849 Check more addresses.
6851 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
6853 * include/ext/aligned_buffer.h (__aligned_buffer): Add
6856 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
6858 * testsuite/std/format/arguments/lwg3810.cc: Move dg-options
6861 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
6863 * testsuite/experimental/simd/tests/reductions.cc: Introduce
6864 max_distance as the type-dependent max error.
6866 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
6868 * include/experimental/bits/simd_builtin.h (_S_set): Compare as
6869 int. The actual range of these indexes is very small.
6871 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
6873 * include/experimental/bits/simd_x86.h (_S_bit_shift_left)
6874 (_S_bit_shift_right): Declare constexpr. The implementation was
6875 already expecting constexpr evaluation.
6877 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
6880 * include/experimental/bits/simd_detail.h
6881 (_GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA): Define as empty for
6884 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
6887 * include/experimental/bits/simd.h (__vector_broadcast):
6888 Implement via __vector_broadcast_impl instead of
6889 __call_with_n_evaluations + 2 lambdas.
6890 (__vector_broadcast_impl): New.
6892 2023-02-22 Alexandre Oliva <oliva@adacore.com>
6894 * src/c++11/shared_ptr.cc (__gnu_internal::get_mutex):
6895 Avoid destruction of the mutex pool.
6897 2023-02-22 Alexandre Oliva <oliva@adacore.com>
6899 * testsuite/27_io/basic_ofstream/open/char/noreplace.cc: xfail
6901 * testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc:
6904 2023-02-22 Alexandre Oliva <oliva@adacore.com>
6906 * testsuite/17_intro/names.cc: Undef func on vxworks >= 7 in
6909 2023-02-20 Andreas Schwab <schwab@linux-m68k.org>
6911 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
6913 2023-02-20 Matthias Kretz <m.kretz@gsi.de>
6915 * include/experimental/bits/simd.h (__extract_part, split):
6916 Use reserved name for template parameter.
6918 2023-02-20 Andreas Schwab <schwab@suse.de>
6920 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
6922 2023-02-18 Gerald Pfeifer <gerald@pfeifer.com>
6924 * doc/xml/faq.xml: Switch two links to www.open-std.org to https.
6925 * doc/html/faq.html: Regenerate.
6927 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
6929 * include/experimental/bits/simd_math.h (__hypot): Bitcasting
6930 between scalars requires the __bit_cast helper function instead
6933 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
6935 * include/experimental/bits/simd_x86.h
6936 (_SimdImplX86::_S_not_equal_to, _SimdImplX86::_S_less)
6937 (_SimdImplX86::_S_less_equal): Do not call
6938 __builtin_is_constant_evaluated in constexpr-if.
6940 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
6942 * testsuite/experimental/simd/tests/bits/verify.h
6943 (verify::verify): Use %zx for size_t in format string.
6945 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
6947 * testsuite/experimental/simd/generate_makefile.sh: Generate and
6948 pre-compile pch.h, which includes all headers that do not depend
6949 on command-line macros.
6950 * testsuite/experimental/simd/tests/bits/main.h: New file.
6951 (iterate_abis, main): Moved from verify.h.
6952 * testsuite/experimental/simd/tests/bits/verify.h
6953 (iterate_abis, main): Moved to main.h.
6954 * testsuite/experimental/simd/tests/bits/conversions.h: Add
6956 (genHalfBits): Simplify.
6957 * testsuite/experimental/simd/tests/bits/make_vec.h: Add include
6959 (make_alternating_mask): Moved from mask_loadstore.
6960 * testsuite/experimental/simd/tests/bits/mathreference.h: Add
6962 * testsuite/experimental/simd/tests/bits/test_values.h: Ditto.
6963 * testsuite/experimental/simd/tests/mask_loadstore.cc
6964 (make_mask, make_alternating_mask): Removed.
6965 * testsuite/experimental/simd/tests/mask_reductions.cc: Ditto.
6966 * testsuite/experimental/simd/tests/operators.cc (genHalfBits):
6968 * testsuite/experimental/simd/tests/abs.cc: Only include
6971 * testsuite/experimental/simd/tests/algorithms.cc: Ditto.
6972 * testsuite/experimental/simd/tests/broadcast.cc: Ditto.
6973 * testsuite/experimental/simd/tests/casts.cc: Ditto.
6974 * testsuite/experimental/simd/tests/fpclassify.cc: Ditto.
6975 * testsuite/experimental/simd/tests/frexp.cc: Ditto.
6976 * testsuite/experimental/simd/tests/generator.cc: Ditto.
6977 * testsuite/experimental/simd/tests/hypot3_fma.cc: Ditto.
6978 * testsuite/experimental/simd/tests/integer_operators.cc: Ditto.
6979 * testsuite/experimental/simd/tests/ldexp_scalbn_scalbln_modf.cc:
6980 * testsuite/experimental/simd/tests/loadstore.cc: Ditto.
6981 * testsuite/experimental/simd/tests/logarithm.cc: Ditto.
6982 * testsuite/experimental/simd/tests/mask_broadcast.cc: Ditto.
6983 * testsuite/experimental/simd/tests/mask_conversions.cc: Ditto.
6984 * testsuite/experimental/simd/tests/mask_implicit_cvt.cc: Ditto.
6985 * testsuite/experimental/simd/tests/mask_operator_cvt.cc: Ditto.
6986 * testsuite/experimental/simd/tests/mask_operators.cc: Ditto.
6987 * testsuite/experimental/simd/tests/math_1arg.cc: Ditto.
6988 * testsuite/experimental/simd/tests/math_2arg.cc: Ditto.
6989 * testsuite/experimental/simd/tests/operator_cvt.cc: Ditto.
6990 * testsuite/experimental/simd/tests/reductions.cc: Ditto.
6991 * testsuite/experimental/simd/tests/remqo.cc: Ditto.
6992 * testsuite/experimental/simd/tests/simd.cc: Ditto.
6993 * testsuite/experimental/simd/tests/sincos.cc: Ditto.
6994 * testsuite/experimental/simd/tests/split_concat.cc: Ditto.
6995 * testsuite/experimental/simd/tests/splits.cc: Ditto.
6996 * testsuite/experimental/simd/tests/trigonometric.cc: Ditto.
6997 * testsuite/experimental/simd/tests/trunc_ceil_floor.cc: Ditto.
6998 * testsuite/experimental/simd/tests/where.cc: Ditto.
7000 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
7002 * testsuite/experimental/simd/README.md: Document the timeout
7003 and timeout-factor directives. Minor typo fixed.
7005 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
7008 * include/experimental/bits/simd_detail.h: Define
7009 _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
7010 * include/experimental/bits/simd.h: Annotate lambdas with
7011 _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
7012 * include/experimental/bits/simd_builtin.h: Ditto.
7013 * include/experimental/bits/simd_converter.h: Ditto.
7014 * include/experimental/bits/simd_fixed_size.h: Ditto.
7015 * include/experimental/bits/simd_math.h: Ditto.
7016 * include/experimental/bits/simd_neon.h: Ditto.
7017 * include/experimental/bits/simd_x86.h: Ditto.
7019 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
7021 * include/experimental/bits/simd.h
7022 (_SimdWrapper::_M_is_constprop_none_of)
7023 (_SimdWrapper::_M_is_constprop_all_of): Return false unless the
7024 computed result still satisfies __builtin_constant_p.
7026 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
7028 * testsuite/std/format/arguments/lwg3810.cc: Replace UTF-8
7031 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
7033 * include/Makefile.am: Add new header.
7034 * include/Makefile.in: Regenerate.
7035 * include/experimental/synchronized_value: New file.
7036 * testsuite/experimental/synchronized_value.cc: New test.
7038 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
7040 * include/experimental/optional: Fix header name in comment.
7042 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
7044 * include/std/format (__format::_Arg_store): New class template.
7045 (basic_format_args): Remove nested type _Store and add deduction
7046 guide from _Arg_store.
7047 (basic_format_arg, make_format_args): Adjust.
7048 * testsuite/std/format/arguments/lwg3810.cc: New test.
7050 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
7052 * include/bits/stl_pair.h (pair) [C++20]: Add non-dangling
7053 constraints to constructors and add deleted overloads for the
7054 dangling cases, as per P2255R2.
7055 (pair) [!C++20 && _GLIBCXX_DEBUG]: Add static assertions to
7056 make dangling cases ill-formed.
7057 * testsuite/20_util/pair/dangling_ref.cc: New test.
7059 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
7061 * testsuite/17_intro/names_pstl.cc: Require et tbb_backend.
7063 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
7065 * include/ext/throw_allocator.h: Use reserved names for
7068 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
7070 * testsuite/17_intro/names_pstl.cc: Add space after effective
7073 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
7075 * include/pstl/algorithm_fwd.h (__pattern_search_n)
7076 (__brick_unique_copy, __brick_adjacent_find)
7077 (__brick_generate_n, __pattern_generate_n): Use reserved names
7079 * include/pstl/algorithm_impl.h (__brick_unique_copy)
7080 (__pattern_reverse, __brick_generate_n): Likewise.
7081 * include/pstl/execution_impl.h (__prefer_unsequenced_tag)
7082 (__prefer_parallel_tag): Likewise.
7083 * include/pstl/glue_algorithm_impl.h (transform): Likewise.
7084 * include/pstl/glue_numeric_defs.h (adjacent_difference):
7086 * include/pstl/numeric_impl.h (__brick_adjacent_difference):
7088 * include/pstl/parallel_backend_tbb.h (__merge_func): Likewise.
7089 * include/pstl/unseq_backend_simd.h (_Combiner)
7090 (__simd_min_element, __simd_minmax_element): Likewise.
7091 * testsuite/17_intro/names_pstl.cc: New test.
7093 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
7095 * include/bits/fs_ops.h (create_directory): Use reserved name
7097 * include/bits/ranges_algo.h (__contains_subrange_fn):
7099 * include/bits/regex_automaton.h (_State_base::_M_print):
7101 * include/bits/regex_automaton.tcc(_State_base::_M_print):
7103 * include/bits/regex_scanner.tcc(_Scanner::_M_print): Likewise.
7104 * include/experimental/bits/fs_ops.h (create_directory):
7106 * include/std/mutex (timed_mutex::_M_clocklock): Likewise.
7107 (recursive_timed_mutex:_M_clocklock): Likewise.
7108 * include/std/tuple (basic_common_reference): Likewise.
7109 * libsupc++/cxxabi_init_exception.h
7110 (__cxa_init_primary_exception): Likewise.
7111 * testsuite/17_intro/names.cc: Add checks.
7113 2023-02-14 Gerald Pfeifer <gerald@pfeifer.com>
7115 * doc/xml/manual/status_cxx2017.xml: Update an open-std.org link
7116 to www.open-std.org and https.
7117 * doc/html/manual/status.html: Regenerate.
7119 2023-02-14 Thomas W Rodgers <rodgert@twrodgers.com>
7122 * include/std/atomic (atomic_flag_wait): Add.
7123 (atomic_flag_wait_explicit): Add.
7124 (atomic_flag_notify): Add.
7125 (atomic_flag_notify_explicit): Add.
7126 * testsuite/29_atomics/atomic_flag/wait_notify/1.cc:
7127 Add test case to cover missing atomic_flag free functions.
7129 2023-02-14 Thomas W Rodgers <rodgert@twrodgers.com>
7132 * include/std/atomic (atomic_flag_test): Add.
7133 (atomic_flag_test_explicit): Add.
7134 * testsuite/29_atomics/atomic_flag/test/explicit.cc: Add
7135 test case to cover missing atomic_flag free functions.
7136 * testsuite/29_atomics/atomic_flag/test/implicit.cc:
7139 2023-02-13 Gerald Pfeifer <gerald@pfeifer.com>
7141 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust
7142 "The Component Object Model" reference.
7143 * doc/html/manual/policy_data_structures.html: Regenerate.
7145 2023-02-12 Gerald Pfeifer <gerald@pfeifer.com>
7147 * doc/xml/manual/containers.xml: Tweak a link to N1780
7149 * doc/html/manual/associative.html: Regenerate.
7151 2023-02-12 Gerald Pfeifer <gerald@pfeifer.com>
7153 * doc/xml/manual/ctype.xml: Change www.unix.org to unix.org.
7154 * doc/html/manual/facets.html: Regenerate.
7156 2023-02-11 Gerald Pfeifer <gerald@pfeifer.com>
7158 * doc/xml/manual/policy_data_structures_biblio.xml: Update
7159 link to "Worst-case efficient priority queues".
7160 * doc/html/manual/policy_data_structures.html: Regenerate.
7162 2023-02-06 Arsen Arsenović <arsen@aarsen.me>
7164 * doc/xml/manual/using.xml: Document newly-freestanding
7165 headers and the effect of the -ffreestanding flag.
7166 * doc/xml/manual/status_cxx2023.xml: Document P1642R11 as
7168 * doc/xml/manual/configure.xml: Document that hosted installs
7169 respect __STDC_HOSTED__.
7170 * doc/xml/manual/test.xml: Document how to run tests in
7172 * doc/html/*: Regenerate.
7174 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
7176 * include/bits/ranges_algo.h (__find_last_fn): Rename T to _Tp.
7177 (__find_last_if_fn): Likewise.
7179 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
7181 * include/std/type_traits: Add diagnostic pragmas around
7182 references to deprecated std::aligned_storage and
7183 std::aligned_union traits.
7184 * testsuite/20_util/aligned_storage/requirements/alias_decl.cc:
7185 Add dg-warning for et c++23.
7186 * testsuite/20_util/aligned_storage/requirements/explicit_instantiation.cc:
7188 * testsuite/20_util/aligned_storage/value.cc: Likewise.
7189 * testsuite/20_util/aligned_union/1.cc: Likewise.
7190 * testsuite/20_util/aligned_union/requirements/alias_decl.cc:
7193 2023-02-06 Nathaniel Shead <nathanieloshead@gmail.com>
7195 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macros.
7196 * include/bits/c++config (_GLIBCXX23_DEPRECATED)
7197 (_GLIBCXX23_DEPRECATED_SUGGEST): New macros.
7198 * include/std/type_traits (aligned_storage, aligned_union)
7199 (aligned_storage_t, aligned_union_t): Deprecate for C++23.
7200 * testsuite/20_util/aligned_storage/deprecated-2b.cc: New test.
7201 * testsuite/20_util/aligned_union/deprecated-2b.cc: New test.
7203 2023-02-06 Nathaniel Shead <nathanieloshead@gmail.com>
7205 * doc/doxygen/user.cfg.in (PREDEFINED): Update macros.
7206 * include/bits/c++config (_GLIBCXX20_DEPRECATED): Make
7207 consistent with other 'deprecated' macros.
7208 * include/std/type_traits (is_pod, is_pod_v): Use
7209 _GLIBCXX20_DEPRECATED_SUGGEST instead.
7211 2023-02-06 Arsen Arsenović <arsen@aarsen.me>
7213 * Makefile.am [!_GLIBCXX_HOSTED]: Enable src/ subdirectory.
7214 * Makefile.in: Regenerate.
7215 * src/Makefile.am [!_GLIBCXX_HOSTED]: Omit compatibility files.
7216 There's no history to be compatible with.
7217 * src/c++11/Makefile.am [!_GLIBCXX_HOSTED]: Omit hosted-only
7218 source files from the build.
7219 * src/c++17/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
7220 * src/c++20/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
7221 * src/c++98/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
7222 * src/Makefile.in: Regenerate.
7223 * src/c++11/Makefile.in: Regenerate.
7224 * src/c++17/Makefile.in: Regenerate.
7225 * src/c++20/Makefile.in: Regenerate.
7226 * src/c++98/Makefile.in: Regenerate.
7228 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
7230 * src/Makefile.am [GLIBCXX_HOSTED] (SUBDIRS): Do not add
7231 filesystem, libbacktrace and experimental.
7232 * src/Makefile.in: Regenerate.
7234 2023-02-04 Hans-Peter Nilsson <hp@axis.com>
7237 * include/pstl/unseq_backend_simd.h (__simd_or): Use __INT32_TYPE__
7240 2023-02-04 Gerald Pfeifer <gerald@pfeifer.com>
7242 * doc/xml/manual/documentation_hacking.xml: Adjust link to pdftex.
7243 * doc/html/manual/documentation_hacking.html: Regenerate.
7245 2023-02-04 François Dumont <fdumont@gcc.gnu.org>
7247 * include/bits/basic_string.h (operator=(basic_string&&)): Transfer move-to
7248 storage to the move-from instance when allocators are equal.
7249 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc (test04):
7252 2023-02-03 Samuel Thibault <samuel.thibault@gnu.org>
7254 * config/os/gnu-linux/os_defines.h [!__linux__]
7255 (_GLIBCXX_NATIVE_THREAD_ID, _GLIBCXX_GTHREAD_USE_WEAK): Do not define.
7257 2023-02-03 Patrick Palka <ppalka@redhat.com>
7259 * include/bits/ranges_algo.h (__find_last_fn, find_last):
7261 (__find_last_if_fn, find_last_if): Define.
7262 (__find_last_if_not_fn, find_last_if_not): Define.
7263 * testsuite/25_algorithms/find_last/1.cc: New test.
7264 * testsuite/25_algorithms/find_last_if/1.cc: New test.
7265 * testsuite/25_algorithms/find_last_if_not/1.cc: New test.
7267 2023-02-03 Patrick Palka <ppalka@redhat.com>
7269 * include/bits/ranges_algo.h (out_value_result): Define.
7270 (iota_result): Define.
7271 (__iota_fn, iota): Define.
7272 * testsuite/25_algorithms/iota/1.cc: New test.
7274 2023-02-03 Patrick Palka <ppalka@redhat.com>
7276 * include/bits/ranges_algo.h (__contains_fn, contains): Define.
7277 (__contains_subrange_fn, contains_subrange): Define.
7278 * testsuite/25_algorithms/contains/1.cc: New test.
7279 * testsuite/25_algorithms/contains_subrange/1.cc: New test.
7281 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
7283 * doc/xml/manual/abi.xml: Tweak link to ABIcheck project.
7284 * doc/html/manual/abi.html: Regenerate.
7286 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
7288 * src/filesystem/ops-common.h [AVR] (__unsupported): Always use
7289 errc::function_not_supported instead of errc::not_supported.
7291 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
7293 * include/std/sstream (basic_stringbuf::view): Define for old
7295 (basic_istringstream::view, basic_0stringstream::view)
7296 (basic_stringstream::view): Likewise.
7297 * testsuite/27_io/basic_istringstream/view/char/1.cc: Remove
7298 { dg-require-effective-target cxx11_abi }.
7299 * testsuite/27_io/basic_istringstream/view/wchar_t/1.cc:
7301 * testsuite/27_io/basic_ostringstream/view/char/1.cc: Likewise.
7302 * testsuite/27_io/basic_ostringstream/view/wchar_t/1.cc:
7304 * testsuite/27_io/basic_stringbuf/view/char/1.cc: Likewise.
7305 * testsuite/27_io/basic_stringbuf/view/wchar_t/1.cc: Likewise.
7306 * testsuite/27_io/basic_stringstream/view/char/1.cc: Likewise.
7307 * testsuite/27_io/basic_stringstream/view/wchar_t/1.cc:
7310 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
7313 * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Export shared_ptr
7314 conversion operators for directory iterator comparisons with
7315 std::default_sentinel_t.
7316 * include/bits/fs_path.h (path::path(string_view, _Type))
7317 (path::_Cmpt::_Cmpt(string_view, _Type, size_t)): Move inline
7319 * src/c++17/fs_path.cc: ... here.
7320 * testsuite/27_io/filesystem/path/108636.cc: New test.
7322 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
7324 * include/std/variant (variant::operator=): Implement resolution
7326 * testsuite/20_util/variant/lwg3585.cc: New test.
7328 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
7330 * doc/xml/manual/using_exceptions.xml: Update a www.open-std.org
7332 * doc/html/manual/using_exceptions.html: Regenerate.
7334 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
7336 * doc/xml/manual/debug.xml: Fix link to online GDB manual.
7337 * doc/html/manual/debug.html: Regenerate.
7339 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
7341 * src/c++11/random.cc (random_device::_M_fini): Do not try to
7342 close the file handle if the target doesn't support the
7343 /dev/random and /dev/urandom files.
7345 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
7347 * config/os/generic/error_constants.h (errc::value_too_large)
7349 * src/c++11/system_error.cc
7350 (system_category::default_error_condition) [__AVR__]: Only match
7351 recognize values equal to EDOM, ERANGE, ENOSYS and EINTR.
7352 * src/c++17/fs_ops.cc (fs::current_path) [__AVR__]: Do not check
7353 for ENOENT etc. in switch.
7354 (fs::remove_all) [__AVR__]: Likewise.
7355 * src/filesystem/ops-common.h [__AVR__]: Do not use POSIX open,
7358 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
7360 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR) [avr-*-*, msp430-*-*]: Set
7362 * configure: Regenerate.
7364 2023-02-01 Hans-Peter Nilsson <hp@axis.com>
7367 * testsuite/std/time/hh_mm_ss/1.cc (size): Add empty
7368 struct at end of S0.
7370 2023-01-30 Gerald Pfeifer <gerald@pfeifer.com>
7372 * doc/xml/manual/shared_ptr.xml: Move links from both
7373 http://open-std.org and http://www.open-std.org to
7374 https://www.open-std.org.
7375 * doc/html/manual/memory.html: Regenerate.
7377 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
7379 * doc/xml/manual/appendix_contributing.xml: Adjust link to
7380 ISO C++ standard at ANSI.
7381 Move link to www.open-std.org to https.
7382 * doc/html/manual/appendix_contributing.html: Regenerate.
7384 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
7386 * doc/xml/manual/documentation_hacking.xml: Move sourceforge.net
7388 * doc/html/manual/documentation_hacking.html: Regenerate.
7390 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
7392 * doc/xml/manual/abi.xml: Update www.open-std.org link to https.
7393 * doc/html/manual/abi.html: Regenerate.
7395 2023-01-27 Jakub Jelinek <jakub@redhat.com>
7398 * testsuite/17_intro/names.cc (__unused): For linux or GNU hurd
7399 include features.h if present and then check __GLIBC__ and
7400 __GLIBC_MINOR__ macros for glibc prior to 2.19, instead of testing
7401 __GLIBC_PREREQ which isn't defined yet.
7403 2023-01-27 Jonathan Wakely <jwakely@redhat.com>
7405 * src/c++20/tzdb.cc (tzdata_stream): Use constant instead of
7408 2023-01-27 Jonathan Wakely <jwakely@redhat.com>
7411 * testsuite/23_containers/map/modifiers/108554.cc: Use dg-bogus.
7413 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
7415 * src/c++20/tzdb.cc (operator>>(istream&, ZoneInfo&)): Allow
7416 rules named "+" for compatibility with older tzdata.zi files.
7418 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
7421 * include/bits/stl_tree.h (_Rb_tree_insert_and_rebalance): Add
7423 (_Rb_tree_rebalance_for_erase): Add nonnull and returns_nonnull
7425 * testsuite/23_containers/map/modifiers/108554.cc: New test.
7427 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
7430 * src/c++20/tzdb.cc (current_zone): Look for TIMEZONE or ZONE in
7431 /etc/sysconfig/clock, not DEFAULT_TIMEZONE.
7433 2023-01-26 Gerald Pfeifer <gerald@pfeifer.com>
7435 * doc/xml/manual/intro.xml: Update links to www.open-std.org to
7437 * doc/html/manual/bugs.html: Regenerate.
7439 2023-01-24 Jonathan Wakely <jwakely@redhat.com>
7442 * src/c++20/tzdb.cc (current_zone): Look for DEFAULT_TIMEZONE in
7443 /etc/sysconfig/clock.
7445 2023-01-24 Jonathan Wakely <jwakely@redhat.com>
7448 * include/bits/ranges_base.h: Include <bits/stl_iterator.h> for
7449 std::make_reverse_iterator.
7450 * include/std/tuple: Include <bits/ranges_util.h> for subrange.
7451 (make_from_tuple): Add static assertion from P2255 to diagnose
7452 dangling references.
7453 * testsuite/20_util/tuple/make_from_tuple/dangling_ref.cc: New test.
7454 * testsuite/20_util/tuple/make_from_tuple/tuple_like.cc: New test.
7456 2023-01-23 François Dumont <fdumont@gcc.gnu.org>
7458 * include/debug/safe_iterator.h (_Safe_iterator<>::_Unchecked): New.
7459 (_Safe_iterator(const _Safe_iterator&, _Unchecked)): New.
7460 (_Safe_iterator::operator++(int)): Use latter.
7461 (_Safe_iterator::operator--(int)): Likewise.
7462 (_Safe_iterator(_Iterator, const _Safe_sequence_base*)): Remove !_M_insular()
7464 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::_Unchecked):
7466 (_Safe_local_iterator(const _Safe_local_iterator&, _Unchecked)): New.
7467 (_Safe_local_iterator::operator++(int)): Use latter.
7468 * src/c++11/debug.cc (_S_debug_messages): Add as comment the _Debug_msg_id
7469 entry associated to the array entry.
7471 2023-01-18 Jonathan Wakely <jwakely@redhat.com>
7473 * include/bits/fs_path.h (u8path): Add deprecated attribute.
7474 * testsuite/27_io/filesystem/path/construct/90281.cc: Add
7475 -Wno-deprecated-declarations for C++20 and later.
7476 * testsuite/27_io/filesystem/path/factory/u8path-char8_t.cc:
7478 * testsuite/27_io/filesystem/path/factory/u8path.cc: Likewise.
7479 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
7480 * testsuite/27_io/filesystem/path/factory/u8path-depr.cc: New test.
7482 2023-01-18 Jonathan Wakely <jwakely@redhat.com>
7484 * include/bits/random.h (random_device) [!_GLIBCXX_USE_DEV_RANDOM]:
7485 Always call _M_fini and _M_getentropy.
7487 2023-01-18 Gerald Pfeifer <gerald@pfeifer.com>
7489 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust links
7490 to www.open-std.org to use https.
7491 (COM: Component Model Object Technologies): Rename from...
7492 (The Component Object Model): ...to.
7493 * doc/html/manual/policy_data_structures.html: Regenerate.
7495 2023-01-18 Dimitrij Mijoski <dmjpp@hotmail.com>
7497 * testsuite/22_locale/codecvt/codecvt_unicode.cc: Simplify.
7498 * testsuite/22_locale/codecvt/codecvt_unicode.h: Simplify.
7499 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: Simplify.
7501 2023-01-17 Jonathan Wakely <jwakely@redhat.com>
7503 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Check $target_os instead
7504 of $host. Fix check for file being present during native build.
7505 * configure: Regenerate.
7507 2023-01-17 Martin Liska <mliska@suse.cz>
7509 * src/libbacktrace/Makefile.in: Regenerate.
7511 2023-01-16 Jonathan Wakely <jwakely@redhat.com>
7513 * src/c++20/tzdb.cc (_GLIBCXX_USE_CXX11_ABI): Define to 1.
7515 2023-01-16 Jonathan Wakely <jwakely@redhat.com>
7518 * include/c_compatibility/stdatomic.h: Change copyright line to
7519 be consistent with other headers contributed under DCO terms.
7520 * include/std/expected: Add full stop to copyright line.
7521 * src/c++20/tzdb.cc: Likewise.
7523 2023-01-15 Gerald Pfeifer <gerald@pfeifer.com>
7525 * doc/xml/manual/status_cxx2014.xml: Switch www.open-std.org to
7527 * doc/xml/manual/status_cxx2017.xml: Ditto.
7528 * doc/xml/manual/status_cxx2020.xml: Ditto.
7529 * doc/xml/manual/status_cxx2023.xml: Ditto.
7530 * doc/html/manual/status.html: Regenerate.
7532 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
7534 * testsuite/std/time/tzdb_list/1.cc: Remove dg-xfail-run-if
7535 and fail gracefully if defining the weak symbol doesn't work.
7537 2023-01-15 François Dumont <fdumont@gcc.gnu.org>
7540 * include/debug/safe_iterator.h (_Safe_iterator<>::operator++(int)): Extend deadlock
7541 fix to other iterator category.
7542 (_Safe_iterator<>::operator--(int)): Likewise.
7543 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::operator++(int)):
7545 * testsuite/util/debug/unordered_checks.h (invalid_local_iterator_pre_increment): New.
7546 (invalid_local_iterator_post_increment): New.
7547 * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_post_increment_neg.cc:
7549 * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_pre_increment_neg.cc:
7552 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
7554 * testsuite/30_threads/jthread/jthread.cc: Remove -pthread from
7557 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
7559 * testsuite/std/time/clock/utc/io.cc: Use ctype to widen char.
7561 2023-01-14 Björn Schäpers <bjoern@hazardy.de>
7563 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Add check for
7564 windows.h. Add pecoff as FORMAT_FILE.
7565 * config.h.in: Regenerate.
7566 * configure: Regenerate.
7567 * src/libbacktrace/Makefile.am: Regenerate.
7568 * src/libbacktrace/Makefile.in: Add pecoff.c as FORMAT_FILE.
7570 2023-01-14 Björn Schäpers <bjoern@hazardy.de>
7572 * include/std/stacktrace (stacktrace_entry::_S_demangle): Use
7573 raw __name if __cxa_demangle could not demangle it.
7575 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
7578 * src/c++20/tzdb.cc (current_zone()) [_AIX]: Use TZ environment
7581 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
7583 * src/c++20/tzdb.cc (TZDB_DISABLED): Disable all code for
7585 * testsuite/std/time/tzdb/leap_seconds.cc: Require tzdb
7587 * testsuite/std/time/tzdb_list/1.cc: Likewise.
7589 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
7591 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Replace the
7592 --with-libstdcxx-zoneinfo-dir configure option with
7593 --with-libstdcxx-zoneinfo with yes/no/static choices as well as
7595 * config.h.in: Regenerate.
7596 * configure: Regenerate.
7597 * doc/xml/manual/configure.xml: Document configure option.
7598 * doc/html/manual/configure.html: Regenerate.
7599 * src/c++20/Makefile.am: Generate tzdata.zi.h header.
7600 * src/c++20/Makefile.in: Regenerate.
7601 * src/c++20/tzdb.cc (__gnu_cxx::zoneinfo_dir_override): Return a
7602 null pointer if no directory is configured.
7603 (zoneinfo_dir): Replace with ...
7604 (zoneinfo_file): New function.
7605 (tzdata_stream): New istream class.
7606 (remote_version, reload_tzdb): Use tzdata_stream.
7607 * testsuite/lib/libstdc++.exp (check_effective_target_tzdb):
7608 Check new _GLIBCXX_STATIC_TZDATA macro and ignore presence of
7609 tzdata.zi file in default location.
7610 * src/c++20/tzdata.zi: New file.
7612 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
7614 * include/bits/chrono_io.h (operator<<): Fix syntax errors.
7615 * testsuite/std/time/month_day/io.cc: New test.
7616 * testsuite/std/time/month_day_last/io.cc: New test.
7617 * testsuite/std/time/month_weekday/io.cc: New test.
7618 * testsuite/std/time/month_weekday_last/io.cc: New test.
7619 * testsuite/std/time/weekday_indexed/io.cc: New test.
7620 * testsuite/std/time/weekday_last/io.cc: New test.
7621 * testsuite/std/time/year_month/io.cc: New test.
7622 * testsuite/std/time/year_month_day_last/io.cc: New test.
7623 * testsuite/std/time/year_month_weekday/io.cc: New test.
7624 * testsuite/std/time/year_month_weekday_last/io.cc: New test.
7626 2023-01-14 François Dumont <fdumont@gcc.gnu.org>
7628 * include/std/format [_GLIBCXX_INLINE_VERSION](to_chars): Adapt __asm symbol
7630 * config/abi/pre/gnu-versioned-namespace.ver: Add to_chars/from_chars symbols
7633 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
7635 * include/bits/std_mutex.h: Include <errno.h>.
7637 2023-01-13 Arsen Arsenović <arsen@aarsen.me>
7639 * testsuite/20_util/to_chars/version.cc: Mark hosted-only.
7640 * testsuite/20_util/uses_allocator/lwg3677.cc: Ditto.
7641 * testsuite/20_util/weak_ptr/cons/self_move.cc: Ditto.
7642 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Replace usage of
7643 std::make_unique with a freestanding-compatible wrapper around
7645 * testsuite/21_strings/basic_string_view/operations/contains/char.cc:
7646 Don't test for presence of __cpp_lib_string_contains on !HOSTED.
7647 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
7649 * testsuite/std/ranges/version_c++23.cc: Don't test for presence
7650 of __cpp_lib_ranges in !HOSTED.
7652 2023-01-13 Arsen Arsenović <arsen@aarsen.me>
7654 * include/Makefile.am: Install bits/char_traits.h,
7656 * include/Makefile.in: Regenerate.
7657 * include/bits/char_traits.h: Gate hosted-only, wchar-only and
7658 mbstate-only bits behind appropriate #ifs.
7659 * include/std/string_view: Gate <iostream> functionality behind
7661 * include/std/version: Enable __cpp_lib_constexpr_string_view
7662 and __cpp_lib_starts_ends_with in !HOSTED.
7663 * include/std/ranges: Re-enable __is_basic_string_view on
7664 freestanding, include <string_view> directly.
7665 * include/precompiled/stdc++.h: Include <string_view> when
7667 * testsuite/20_util/function_objects/searchers.cc: Skip testing
7668 boyer_moore searchers on freestanding
7669 * testsuite/21_strings/basic_string_view/capacity/1.cc: Guard
7670 <string>-related tests behind __STDC_HOSTED__.
7671 * testsuite/21_strings/basic_string_view/cons/char/1.cc: Ditto.
7672 * testsuite/21_strings/basic_string_view/cons/char/2.cc: Remove
7673 unused <stdexcept> include.
7674 * testsuite/21_strings/basic_string_view/cons/char/3.cc: Remove
7675 unused <vector> include.
7676 * testsuite/21_strings/basic_string_view/cons/char/range.cc:
7677 Guard <string> related testing behind __STDC_HOSTED__.
7678 * testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc:
7679 Guard <stdexcept> related tests behind __STDC_HOSTED__.
7680 * testsuite/21_strings/basic_string_view/element_access/char/1.cc:
7682 * testsuite/21_strings/basic_string_view/element_access/wchar_t/1.cc:
7683 Guard <stdexcept> tests behind __STDC_HOSTED__.
7684 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
7685 Enable test on freestanding, guard <stdexcept> bits behind
7687 * testsuite/21_strings/basic_string_view/operations/substr/char.cc:
7688 Guard <stdexcept> bits behind __STDC_HOSTED__.
7689 * testsuite/21_strings/basic_string_view/operations/substr/wchar_t.cc:
7692 2023-01-13 Dimitrij Mijoski <dmjpp@hotmail.com>
7695 * src/c++11/codecvt.cc (read_utf8_code_point): Correctly detect
7696 errors in incomplete multibyte sequences.
7697 (utf16_in): Remove surrogates parameter. Fix conditions for
7699 (utf16_out): Fix condition for returning partial.
7700 (ucs2_in): Do not pass surrogates argument to utf16_in.
7701 * testsuite/22_locale/codecvt/codecvt_unicode.cc: New test.
7702 * testsuite/22_locale/codecvt/codecvt_unicode.h: New header for
7704 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: New
7707 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
7710 * config/io/c_io_stdio.h (__c_lock): Define as a typedef for
7711 __GTHREAD_LEGACY_MUTEX_T if defined.
7713 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
7716 * config/os/gnu-linux/ldbl-extra.ver (GLIBCXX_LDBL_3.4.31):
7717 Export __try_use_facet specializations for facets in namespace
7719 * config/os/gnu-linux/ldbl-ieee128-extra.ver
7720 (GLIBCXX_IEEE128_3.4.31): Likewise for facets in namespace
7722 * testsuite/util/testsuite_abi.cc: Add to lists of known and
7725 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
7727 * include/bits/std_mutex.h: Remove <system_error> include.
7728 * include/std/condition_variable: Add <bits/error_constants.h>
7730 * include/std/mutex: Likewise.
7731 * include/std/shared_mutex: Likewise.
7733 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
7736 * include/experimental/memory_resource
7737 (_GLIBCXX_MAX_ALIGN_MATCHES_MALLOC): Define.
7738 (do_allocate, do_deallocate): Check it.
7739 * testsuite/experimental/memory_resource/new_delete_resource.cc:
7740 Relax expected behaviour for 64-bit hppa-hp-hpux11.11.
7742 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
7744 * doc/xml/manual/abi.xml: Add latest library versions.
7745 * doc/html/manual/abi.html: Regenerate.
7747 2023-01-12 François Dumont <fdumont@gcc.gnu.org>
7750 * include/bits/stl_tree.h (_Rb_tree<>::_M_insert_range_equal): Remove
7751 unused _Alloc_node instance.
7753 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
7755 * include/bits/atomic_wait.h (__detail::__platform_wait_t):
7756 Define as unsigned long if always lock-free, and unsigned int
7759 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
7761 * src/c++20/tzdb.cc (tzdb_list::_S_init_tzdb): Use __try and
7762 __catch macros for exception handling.
7764 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
7767 * include/bits/stl_algobase.h (__lg): Replace six overloads with
7768 a single function template for all integer types.
7769 * include/bits/stl_algo.h (__merge_adaptive_resize): Cast
7770 arithmetic results back to _Distance.
7772 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
7775 * include/std/span (span::span()): Un-simplify constraint to
7776 work for size_t of lesser rank than int.
7778 2023-01-07 LIU Hao <lh_mouse@126.com>
7780 PR middle-end/108300
7781 * src/c++11/system_error.cc: Define `WIN32_LEAN_AND_MEAN` before
7783 * src/c++11/thread.cc: Likewise.
7784 * src/c++17/fs_ops.cc: Likewise.
7785 * src/filesystem/ops.cc: Likewise.
7787 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
7790 * src/c++20/tzdb.cc (zoneinfo_dir): Add diagnostic pragma.
7792 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
7795 * src/c++20/tzdb.cc (time_zone::_Impl::RulesCounter): New class
7796 template and partial specialization for synchronizing access to
7797 time_zone::_Impl::infos.
7798 (time_zone::_M_get_sys_info, reload_tzdb): Adjust uses of
7801 2023-01-06 Patrick Palka <ppalka@redhat.com>
7804 * include/bits/utility.h (__cpp_lib_ranges_zip): Define for C++23.
7805 * include/std/ranges (__cpp_lib_ranges_zip): Likewise.
7806 (__cpp_lib_ranges_chunk): Likewise.
7807 (__cpp_lib_ranges_slide): Likewise.
7808 (__cpp_lib_ranges_chunk_by): Likewise.
7809 (__cpp_lib_ranges_join_with): Likewise.
7810 (__cpp_lib_ranges_repeat): Likewise.
7811 (__cpp_lib_ranges_stride): Likewise.
7812 (__cpp_lib_ranges_cartesian_product): Likewise.
7813 (__cpp_lib_ranges_as_rvalue): Likewise.
7814 * include/std/version: Ditto.
7815 * testsuite/20_util/tuple/p2321r2.cc: Verify value of
7817 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Likewise.
7818 * testsuite/std/ranges/adaptors/chunk/1.cc: Likewise.
7819 * testsuite/std/ranges/adaptors/chunk_by/1.cc: Likewise.
7820 * testsuite/std/ranges/adaptors/join_with/1.cc: Likewise.
7821 * testsuite/std/ranges/adaptors/slide/1.cc: Likewise.
7822 * testsuite/std/ranges/adaptors/stride/1.cc: Likewise.
7823 * testsuite/std/ranges/cartesian_product/1.cc: Likewise.
7824 * testsuite/std/ranges/repeat/1.cc: Likewise.
7825 * testsuite/std/ranges/zip/1.cc: Likewise.
7826 * testsuite/std/ranges/version_c++23.cc: New test.
7828 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
7831 * include/std/bitset (operator>>): Use alloca in the right
7832 scope, not in a constructor.
7833 * testsuite/20_util/bitset/io/input.cc: Check case from PR.
7835 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
7838 * include/std/format (basic_format_arg) [!__cpp_lib_to_chars]:
7839 Disable visiting floating-point types.
7841 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
7844 * include/debug/safe_iterator.h (_Safe_iterator::operator++(int))
7845 (_Safe_iterator::operator--(int)): Do not hold lock around
7846 construction of return value.
7848 2023-01-05 John David Anglin <danglin@gcc.gnu.org>
7850 * config/cpu/hppa/atomicity.h (_PA_LDCW_INSN): Define.
7851 (__exchange_and_add): Use _PA_LDCW_INSN. Use ordered store for
7852 lock release. Revise loop.
7853 (__atomic_add): Likewise.
7855 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
7858 * python/libstdcxx/v6/printers.py (_utc_timezone): New global
7860 (StdChronoTimePointPrinter::to_string): Use it.
7862 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
7865 * include/std/functional (_Bind_front): Add no_unique_address
7866 attribute to data members.
7867 * testsuite/20_util/function_objects/bind_front/107784.cc: Check
7868 size of call wrappers with empty types for targets and bound
7871 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
7874 * src/c++20/tzdb.cc (chrono::current_zone()): Check for zone
7875 using only last component of the name.
7877 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
7881 * config/abi/pre/gnu.ver: Move zoneinfo_dir_override export to
7882 the latest symbol version.
7883 * src/c++20/tzdb.cc (USE_ATOMIC_SHARED_PTR): Define to 0 if
7884 atomic<_Node*> is not always lock free.
7885 (USE_ATOMIC_LIST_HEAD): New macro.
7886 [__hpux__] (__gnu_cxx::zoneinfo_dir_override()): Provide
7887 definition of weak symbol.
7888 (tzdb_list::_Node::_S_head): Rename to _S_head_cache.
7889 (tzdb_list::_Node::_S_list_head): New function for accessing
7890 list head efficiently.
7891 (tzdb_list::_Node::_S_cache_list_head): New function for
7892 updating _S_list_head.
7894 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
7897 * include/std/chrono (hh_mm_ss): Do not use chrono::abs if
7898 duration rep is unsigned.
7899 * testsuite/std/time/hh_mm_ss/1.cc: Check unsigned rep.
7901 2023-01-04 Iain Sandoe <iain@sandoe.co.uk>
7904 * config/abi/pre/gnu.ver (GLIBCXX_3.4):
7905 Add __gnu_cxx::zoneinfo_dir_override().
7907 2023-01-04 Jonathan Wakely <jwakely@redhat.com>
7910 * include/std/array (__array_traits<T, 0>::operator T*()): Add
7912 * testsuite/23_containers/array/element_access/constexpr_c++17.cc: Check
7913 std::array<T, 0>::data().
7916 Copyright (C) 2023 Free Software Foundation, Inc.
7918 Copying and distribution of this file, with or without modification,
7919 are permitted in any medium without royalty provided the copyright
7920 notice and this notice are preserved.