1 2023-09-07 Bruno Victal <mirai@makinata.eu>
3 * acinclude.m4: Update docbook xsl URI.
4 * configure: Regenerate.
6 2023-09-07 Bruno Victal <mirai@makinata.eu>
8 * doc/Makefile.am: Fix 'doc-install-info' rule.
10 * doc/Makefile.in: Regenerate.
12 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
14 * testsuite/27_io/filesystem/path/concat/94063.cc: Simplify
15 dg-do target selector.
17 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
19 * testsuite/config/default.exp: Remove trailing whitespace.
20 * testsuite/lib/dg-options.exp: Likewise.
21 * testsuite/lib/prune.exp: Likewise.
22 * testsuite/libstdc++-abi/abi.exp: Likewise.
23 * testsuite/libstdc++-dg/conformance.exp: Likewise.
24 * testsuite/libstdc++-prettyprinters/prettyprinters.exp:
26 * testsuite/libstdc++-xmethods/xmethods.exp: Likewise.
27 * testsuite/lib/libstdc++.exp: Likewise.
28 (check_v3_target_c_std): Fix filename for temporary source file.
30 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
32 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for mkdir,
33 chmod, chdir, and getcwd.
34 * config.h.in: Regenerate.
35 * configure: Regenerate.
36 * src/c++17/fs_ops.cc (create_dir): Use USE_MKDIR macro.
37 (fs::current_path): Use USE_GETCWD and USE_CHDIR macros.
38 (fs::permissions): Use USE_CHMOD macro.
39 * src/filesystem/ops-common.h [FILESYSTEM_IS_WINDOWS]
40 (chmod, mkdir, getcwd, chdir): Define new macros.
41 [FILESYSTEM_IS_WINDOWS] (chmod, mkdir, getcwd, chdir): Use
43 * src/filesystem/ops.cc (create_dir): Use USE_MKDIR macro.
44 (fs::current_path): Use USE_GETCWD and USE_CHDIR macros.
45 (fs::permissions): Use USE_CHMOD macro.
47 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
49 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Disable by default
51 * configure: Regenerate.
53 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
55 * testsuite/23_containers/unordered_map/operations/1.cc: Add
56 dg-options for C++20 mode.
57 * testsuite/23_containers/unordered_multimap/operations/1.cc:
59 * testsuite/23_containers/unordered_multiset/operations/1.cc:
61 * testsuite/23_containers/unordered_set/operations/1.cc:
63 * testsuite/std/time/parse.cc: Move dg-options before dg-do.
65 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
67 * testsuite/std/ranges/access/cbegin.cc: Adjust for C++23
69 * testsuite/std/ranges/access/cdata.cc: Likewise.
70 * testsuite/std/ranges/access/cend.cc: Likewise.
71 * testsuite/std/ranges/access/crbegin.cc: Likewise.
72 * testsuite/std/ranges/access/crend.cc: Likewise.
73 * testsuite/std/ranges/adaptors/take.cc: Likewise.
74 * testsuite/std/ranges/adaptors/take_while.cc: Likewise.
75 * testsuite/std/ranges/adaptors/transform.cc: Likewise.
77 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
79 * include/bits/iterator_concepts.h (__imove::iter_move): Define
80 poison pill as deleted for consistency.
81 (__access::begin): Replace with a single declaration.
82 * include/bits/ranges_base.h (__access::end, __access::rbegin)
83 (__access::rend, __access::size): Likewise.
84 * include/bits/version.def (ranges): Update value for C++23.
85 * include/bits/version.h: Regenerate.
86 * libsupc++/compare (__compare): Add missing poison pill
88 * testsuite/std/ranges/version_c++23.cc: Adjust expected value
90 * testsuite/std/ranges/access/p2602.cc: New test.
92 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
94 * include/bits/iterator_concepts.h (ranges::__cust_imove):
95 Rename to ranges::__imove.
96 (_IMove): Rename to _IterMove.
97 (ranges::__cust_iswap): Rename to ranges::__iswap.
98 (ranges::__cust): Rename to ranges::_Cpo.
99 (ranges::__cust_access): Rename to ranges::__access.
100 * include/bits/ranges_base.h (ranges::__cust_access): Rename to
102 (ranges::__cust): Rename to ranges::_Cpo.
103 * include/std/concepts (ranges::__cust_swap): Rename to
105 (ranges::__cust): Rename to ranges::_Cpo.
106 * libsupc++/compare (__cmp_cust): Rename to __compare.
107 (__cmp_algo): Rename to _Cpo.
109 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
111 * include/bits/version.def (ranges): Update value.
112 * include/bits/version.h: Regenerate.
113 * include/std/ranges (__detail::__boxable): Use
114 move_constructible instead of copy_constructible for C++23.
115 (__detail::__box<T>): Adjust constraints for partial
117 (single_view, transform_view): Use __box_constructible instead
118 of copy_constructible in constraints.
119 (zip_transform_view, adjacent_transform_view, repeat_view): Use
120 move_constructible instead of copy_constructible in constraints.
121 * testsuite/std/ranges/adaptors/adjacent_transform/1.cc: Check
122 construction from move-only argument.
123 * testsuite/std/ranges/adaptors/transform.cc: Likewise.
124 * testsuite/std/ranges/repeat/1.cc: Likewise.
125 * testsuite/std/ranges/single_view.cc: Likewise.
126 * testsuite/std/ranges/zip_transform/1.cc: Likewise.
127 * testsuite/std/ranges/version_c++23.cc: Adjust expected value
130 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
132 * testsuite/util/testsuite_iterators.h (is_customization_point_object):
133 Remove parameter name.
135 2023-09-06 Jonathan Wakely <jwakely@redhat.com>
137 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Disable by default
139 * configure: Regenerate.
141 2023-09-04 Christophe Lyon <christophe.lyon@linaro.org>
144 2023-09-04 Christophe Lyon <christophe.lyon@linaro.org>
147 * configure: Regenerate.
148 * configure.ac: Call GLIBCXX_CHECK_LINKER_FEATURES in cross,
151 2023-09-04 Christophe Lyon <christophe.lyon@linaro.org>
154 * configure: Regenerate.
155 * configure.ac: Call GLIBCXX_CHECK_LINKER_FEATURES in cross,
158 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
160 * testsuite/26_numerics/complex/literals/types.cc: Remove
161 dg-options and add target selector instead.
163 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
165 * testsuite/tr1/6_containers/utility/pair.cc: Remove dg-options
166 and qualify ambiguous calls to get.
167 * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Adjust
168 expected result for std::pow(float, int) as per DR 550.
170 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
172 * testsuite/20_util/auto_ptr/1.cc: Remove dg-options -std=c++03
173 and add dg-warning for deprecation warnings.
174 * testsuite/20_util/auto_ptr/2.cc: Likewise.
175 * testsuite/20_util/auto_ptr/3.cc: Likewise.
176 * testsuite/20_util/auto_ptr/3946.cc: Likewise.
177 * testsuite/20_util/auto_ptr/4.cc: Likewise.
178 * testsuite/20_util/auto_ptr/5.cc: Likewise.
179 * testsuite/20_util/auto_ptr/6.cc: Likewise.
180 * testsuite/20_util/auto_ptr/7.cc: Likewise.
181 * testsuite/20_util/auto_ptr/assign_neg.cc: Likewise.
182 * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc:
184 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc:
186 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc:
188 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc:
190 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
192 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc:
194 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc:
197 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
200 * testsuite/23_containers/vector/26412-1.cc: Moved to...
201 * testsuite/23_containers/vector/26142-1.cc: ...here.
202 * testsuite/23_containers/vector/26412-2.cc: Moved to...
203 * testsuite/23_containers/vector/26142-2.cc: ...here.
205 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
207 * testsuite/20_util/bitset/107037.cc: Add c++98_only selector.
208 * testsuite/26_numerics/complex/56111.cc: Likewise.
210 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
212 * testsuite/23_containers/deque/requirements/explicit_instantiation/2.cc:
213 Add dg-options to restrict the test to C++98 mode.
214 * testsuite/23_containers/list/requirements/explicit_instantiation/2.cc:
217 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
219 * testsuite/20_util/expected/bad.cc: Add missing target
222 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
224 * testsuite/25_algorithms/copy/debug/constexpr_neg.cc: Adjust
226 * testsuite/25_algorithms/equal/debug/constexpr_neg.cc:
229 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
231 * testsuite/27_io/filesystem/iterators/91067.cc: Add
232 -Wno-self-move to options.
233 * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise.
235 2023-09-01 Vladimir Palevich <palevichva@gmail.com>
238 * include/bits/vector.tcc (_M_realloc_insert): End guard
239 lifetime just before assignment to class members.
240 (_M_default_append): Likewise.
242 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
244 * src/c++17/fs_ops.cc (fs::absolute) [FILESYSTEM_IS_WINDOWS]:
245 Use __resize_and_overwrite to fill buffer.
246 (fs::read_symlink) [HAVE_READLINK]: Likewise.
247 * src/filesystem/ops-common.h (get_temp_directory_from_env)
248 [FILESYSTEM_IS_WINDOWS]: Likewise.
250 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
253 * include/bits/atomic_base.h (__atomic_impl::__compare_exchange):
254 Add _AtomicRef non-type template parameter and use a loop if it
256 (__atomic_impl::compare_exchange_weak): Add _AtomicRef NTTP.
257 (__atomic_impl::compare_exchange_strong): Likewise.
258 (atomic_ref::compare_exchange_weak): Use true for NTTP.
259 (atomic_ref::compare_exchange_strong): Use true for NTTP.
260 * testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc:
261 Fix test to not rely on atomic_ref::load() to return an object
262 with padding preserved.
264 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
266 * testsuite/27_io/filesystem/path/108636.cc: Add dg-require for
269 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
271 * src/c++20/tzdb.cc (tzdb::current_zone): Check configure macros
272 for POSIX readlink before using filesystem::read_symlink.
274 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
276 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Default to yes.
277 * configure: Regenerate.
279 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
281 * include/bits/chrono_io.h (_Parser::operator()): Set failbit
282 early if invalid values are read when _M_need & _TimeOfDay is
284 * testsuite/std/time/parse.cc: Check that "25:59" cannot be
287 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
290 * include/bits/chrono_io.h (_Parser::Operator()): Check %C
291 values are in range of year::min() to year::max().
292 * testsuite/std/time/parse.cc: Check out of range centuries.
294 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
296 * include/std/format (__format::_Sink::_M_reset): Change second
297 argument from iterator to offset.
299 2023-08-24 Paul Dreik <gccpatches@pauldreik.se>
302 * testsuite/std/format/string.cc: Check wide character format
303 strings with out-of-range widths.
305 2023-08-24 Paul Dreik <gccpatches@pauldreik.se>
308 * include/std/format (__format::__parse_integer): Check for
311 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
313 * testsuite/std/format/functions/format_to.cc: Avoid warning for
316 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
318 * include/std/atomic: Add comment to #ifdef and fix indentation.
319 * include/std/ostream: Check __glibcxx_syncbuf instead of
320 __cplusplus and _GLIBCXX_HOSTED.
321 * include/std/thread: Add comment to #ifdef.
323 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
325 * include/bits/version.def (__cpp_lib_ratio): Define.
326 * include/bits/version.h: Regenerate.
327 * include/std/ratio (quecto, ronto, yocto, zepto)
328 (zetta, yotta, ronna, quetta): Define.
329 * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Adjust
330 dg-error line numbers.
332 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
334 * python/libstdcxx/v6/printers.py (StdLocalePrinter): New
336 * testsuite/libstdc++-prettyprinters/locale.cc: New test.
338 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
341 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Do
342 not show template arguments.
343 (StdVariantPrinter): Likewise.
344 * testsuite/libstdc++-prettyprinters/compat.cc: Adjust expected
346 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
347 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
349 2023-08-23 François Dumont <fdumont@gcc.gnu.org>
351 * testsuite/util/replacement_memory_operators.h
352 (counter::scope): New, capture and reset counter count at construction and
353 restore it at destruction.
354 (counter::check_new): Add scope instantiation.
355 * testsuite/23_containers/unordered_map/96088.cc (main):
356 Add counter::scope instantiation.
357 * testsuite/23_containers/unordered_multimap/96088.cc (main): Likewise.
358 * testsuite/23_containers/unordered_multiset/96088.cc (main): Likewise.
359 * testsuite/23_containers/unordered_set/96088.cc (main): Likewise.
360 * testsuite/ext/malloc_allocator/deallocate_local.cc (main): Likewise.
361 * testsuite/ext/new_allocator/deallocate_local.cc (main): Likewise.
362 * testsuite/ext/throw_allocator/deallocate_local.cc (main): Likewise.
363 * testsuite/ext/pool_allocator/allocate_chunk.cc (started): New global.
364 (operator new(size_t)): Check started.
365 (main): Set/Unset started.
366 * testsuite/17_intro/no_library_allocation.cc: New test case.
368 2023-08-21 Jonathan Wakely <jwakely@redhat.com>
370 * testsuite/18_support/nested_exception/rethrow_if_nested-term.cc:
371 Call std::set_terminate before throwing the nested exception.
373 2023-08-18 Jonathan Wakely <jwakely@redhat.com>
376 * include/std/format (formatter): Only define specializations
377 for 16-bit floating-point types for C++23.
378 * include/std/limits (numeric_limits): Likewise.
380 2023-08-18 Jonathan Wakely <jwakely@redhat.com>
382 * include/bits/chrono_io.h (operator<<): Make uses of wide
383 strings with streams and std::format type-dependent on _CharT.
384 * include/std/format [!_GLIBCXX_USE_WCHAR_T] Do not use
385 __to_wstring_numeric.
387 2023-08-18 Jonathan Wakely <jwakely@redhat.com>
389 * include/bits/chrono_io.h (operator<<): Use __format_context.
390 * include/std/format (__format::__format_context): New alias
392 [!_GLIBCXX_USE_WCHAR_T] (wformat_args, make_wformat_arg):
395 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
398 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
400 * config/locale/generic/c_locale.cc (__convert_to_v): Reuse
401 double overload for long double if possible.
403 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
405 * src/c++20/tzdb.cc (tzdata_file, leaps_file): Change type to
408 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
410 * config/locale/generic/c_locale.cc (__convert_to_v): Reuse
411 double overload for long double if possible.
413 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
415 * src/c++98/localename.cc (is_C_locale): New function.
416 (locale::locale(const char*)): Use is_C_locale.
418 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
421 * include/bits/basic_string.h (basic_string::assign(Iter, Iter)):
422 Dispatch to _M_replace or move assignment from a temporary,
423 based on the iterator type.
425 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
427 * include/std/format (formatter): Add partial specializations
428 for extended floating-point types.
429 * testsuite/std/format/functions/format.cc: Move test_float128()
431 * testsuite/std/format/formatter/ext_float.cc: New test.
433 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
435 * include/bits/c++config (__gnu_cxx::__bfloat16_t): Define
436 whenever __BFLT16_DIG__ is defined, not only for C++23.
437 * include/std/limits (numeric_limits<bfloat16_t>): Likewise.
438 (numeric_limits<_Float16>, numeric_limits<_Float32>)
439 (numeric_limits<_Float64>): Likewise for other extended
440 floating-point types.
442 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
444 * include/experimental/internet (address_v4::to_string): Remove
445 unused parameter name.
447 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
449 * libsupc++/compare (__cmp_cat::__unseq): Make ctor consteval.
450 * testsuite/18_support/comparisons/categories/zero_neg.cc: Prune
451 excess errors caused by invalid consteval calls.
453 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
455 * include/bits/chrono_io.h (__units_suffix_misc): Remove.
456 (__units_suffix): Return a known suffix as string view, do not
457 write unknown suffixes to a buffer.
458 (__fmt_units_suffix): New function that formats the suffix using
460 (operator<<, __chrono_formatter::_M_q): Use __fmt_units_suffix.
461 (__chrono_formatter::_M_Z): Correct lifetime of wstring.
463 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
465 * include/std/format [_GLIBCXX_USE_WCHAR_T]: Guard all wide
466 string formatters with this macro.
467 (__formatter_int::_M_format_int, __formatter_fp::format)
468 (formatter<const void*, C>::format): Use __to_wstring_numeric
469 instead of std::ctype::widen.
470 (__formatter_fp::_M_localize): Use hardcoded wchar_t values
471 instead of std::ctype::widen.
472 * testsuite/std/format/functions/format.cc: Add more checks for
473 wstring formatting of arithmetic types.
475 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
477 * include/bits/basic_string.h (to_string(floating-point-type)):
478 Implement using std::to_chars for C++26.
479 * include/bits/version.def (__cpp_lib_to_string): Define.
480 * include/bits/version.h: Regenerate.
481 * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
482 Adjust expected result in C++26 mode.
483 * testsuite/21_strings/basic_string/numeric_conversions/char/to_string.cc:
485 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/dr1261.cc:
487 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/to_wstring.cc:
489 * testsuite/21_strings/basic_string/numeric_conversions/char/to_string_float.cc:
491 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/to_wstring_float.cc:
493 * testsuite/21_strings/basic_string/numeric_conversions/version.cc:
496 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
498 * include/bits/basic_string.h (to_string(integral-type)): Use
499 resize_and_overwrite when available.
500 (__to_wstring_numeric): New helper functions.
501 (to_wstring): Use std::to_string then __to_wstring_numeric.
502 * testsuite/21_strings/basic_string/numeric_conversions/char/to_string_int.cc:
503 Remove check for no excess capacity.
505 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
507 * include/bits/basic_string.h (__resize_and_overwrite): New
509 * include/bits/basic_string.tcc (__resize_and_overwrite): New
511 (resize_and_overwrite): Simplify by using reserve instead of
512 growing the string manually. Adjust for C++11 compatibility.
513 * include/bits/cow_string.h (resize_and_overwrite): New
515 (__resize_and_overwrite): New function.
516 * include/bits/version.def (__cpp_lib_string_resize_and_overwrite):
517 Do not depend on cxx11abi.
518 * include/bits/version.h: Regenerate.
519 * include/std/format (__formatter_fp::_S_resize_and_overwrite):
521 (__formatter_fp::format, __formatter_fp::_M_localize): Use
522 __resize_and_overwrite instead of _S_resize_and_overwrite.
523 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
524 Adjust for C++11 compatibility when included by ...
525 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite_ext.cc:
528 2023-08-17 Patrick Palka <ppalka@redhat.com>
530 * include/bits/regex.h (regex_iterator::iterator_concept):
531 Define for C++20 as per P2770R0.
532 (regex_token_iterator::iterator_concept): Likewise.
533 * include/std/ranges (__detail::__as_lvalue): Define.
534 (join_view::_Iterator): Befriend join_view.
535 (join_view::_Iterator::_M_satisfy): Use _M_get_outer
537 (join_view::_Iterator::_M_get_outer): Define.
538 (join_view::_Iterator::_Iterator): Split constructor taking
539 _Parent argument into two as per P2770R0. Remove constraint on
541 (join_view::_Iterator::_M_outer): Make this data member present
542 only when the underlying range is forward.
543 (join_view::_Iterator::operator++): Use _M_get_outer instead of
545 (join_view::_Iterator::operator--): Use __as_lvalue helper.
546 (join_view::_Iterator::operator==): Adjust constraints as per
548 (join_view::_Sentinel::__equal): Use _M_get_outer instead of
550 (join_view::_M_outer): New data member when the underlying range
552 (join_view::begin): Adjust definition as per P2770R0.
553 (join_view::end): Likewise.
554 (join_with_view::_M_outer_it): New data member when the
555 underlying range is non-forward.
556 (join_with_view::begin): Adjust definition as per P2770R0.
557 (join_with_view::end): Likewise.
558 (join_with_view::_Iterator::_M_outer_it): Make this data member
559 present only when the underlying range is forward.
560 (join_with_view::_Iterator::_M_get_outer): Define.
561 (join_with_view::_Iterator::_Iterator): Split constructor
562 taking _Parent argument into two as per P2770R0. Remove
563 constraint on default constructor.
564 (join_with_view::_Iterator::_M_update_inner): Adjust definition
566 (join_with_view::_Iterator::_M_get_inner): Likewise.
567 (join_with_view::_Iterator::_M_satisfy): Adjust calls to
568 _M_get_inner. Use _M_get_outer instead of _M_outer_it.
569 (join_with_view::_Iterator::operator==): Adjust constraints
571 (join_with_view::_Sentinel::operator==): Use _M_get_outer
572 instead of _M_outer_it.
573 * testsuite/std/ranges/adaptors/p2770r0.cc: New test.
575 2023-08-17 Patrick Palka <ppalka@redhat.com>
578 * include/std/ranges (__adaptor::_RangeAdaptorClosure):
579 Convert into a CRTP class template. Move hidden operator|
580 friends into namespace scope and adjust their constraints.
581 (__closure::__is_range_adaptor_closure_fn): Define.
582 (__closure::__is_range_adaptor_closure): Define.
583 (__adaptor::_Partial): Adjust use of _RangeAdaptorClosure.
584 (__adaptor::_Pipe): Likewise.
585 (views::_All): Likewise.
586 (views::_Join): Likewise.
587 (views::_Common): Likewise.
588 (views::_Reverse): Likewise.
589 (views::_Elements): Likewise.
590 (views::_Adjacent): Likewise.
591 (views::_AsRvalue): Likewise.
592 (views::_Enumerate): Likewise.
593 (views::_AsConst): Likewise.
594 * testsuite/std/ranges/adaptors/all.cc: Reinstate assertion
595 expecting that adding empty range adaptor closure objects to a
596 pipeline doesn't increase the size of a pipeline.
598 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
600 * include/std/format (__format::_Pres_type): Add _Pres_F.
601 (__formatter_fp::parse): Use _Pres_F for 'F'.
602 (__formatter_fp::format): Set __upper for _Pres_F.
603 * testsuite/std/format/functions/format.cc: Check formatting of
604 infinity and NaN for each presentation type.
606 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
608 * include/Makefile.in: Regenerate.
610 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
612 * testsuite/24_iterators/move_iterator/p2520r0.cc: Add no_pch.
613 * testsuite/std/format/functions/format.cc: Likewise.
614 * testsuite/std/format/functions/format_c++23.cc: Likewise.
616 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
618 * testsuite/lib/dg-options.exp (add_options_for_no_pch): Remove
619 any "-include bits/stdc++.h" from options and add the macro to
620 the existing options instead of replacing them.
622 2023-08-16 Jonathan Wakely <jwakely@redhat.com>
624 * include/bits/basic_string.tcc (resize_and_overwrite): Invoke
625 the callable with the same size as resize_and_overwrite was
627 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
628 Check with small values for the new size.
629 * testsuite/std/format/functions/format.cc: Check wide
630 formatting of double values that produce small strings.
631 * testsuite/std/format/functions/format_c++23.cc: New test.
633 2023-08-16 Jonathan Wakely <jwakely@redhat.com>
635 * include/bits/version.def (stds): Update value for C++23.
636 * include/bits/version.h: Regenerate.
638 2023-08-16 Jonathan Wakely <jwakely@redhat.com>
640 * testsuite/25_algorithms/pstl/alg_sorting/set_difference.cc:
641 Fix name of upstream file this was derived from.
642 * testsuite/25_algorithms/pstl/alg_sorting/set_intersection.cc:
644 * testsuite/25_algorithms/pstl/alg_sorting/set_symmetric_difference.cc:
646 * testsuite/25_algorithms/pstl/alg_sorting/set_union.cc:
648 * testsuite/25_algorithms/pstl/alg_sorting/set_util.h: Likewise.
650 2023-08-16 Arsen Arsenović <arsen@aarsen.me>
652 * libsupc++/typeinfo: Switch to bits/version.h for
653 __cpp_lib_constexpr_typeinfo.
654 * libsupc++/new: Switch to bits/version.h for
655 __cpp_lib_{launder,hardware_interference_size,destroying_delete}.
656 (launder): Guard behind __cpp_lib_launder.
657 (hardware_destructive_interference_size)
658 (hardware_constructive_interference_size): Guard behind
659 __cpp_lib_hardware_interference_size.
660 * libsupc++/exception: Switch to bits/version.h for
661 __cpp_lib_uncaught_exceptions.
662 (uncaught_exceptions): Guard behind __cpp_lib_uncaught_exceptions.
663 * libsupc++/compare: Switch to bits/version.h for
664 __cpp_lib_three_way_comparison.
665 (three_way_comparable, three_way_comparable_with)
666 (compare_three_way, weak_order, strong_order, partial_order):
667 Guard behind __cpp_lib_three_way_comparison >= 201907L.
668 * include/std/chrono: Drop __cpp_lib_chrono definition.
669 * include/std/vector: Switch to bits/version.h for
671 (erase, erase_if): Guard behind __cpp_lib_erase_if.
672 * include/std/variant: Switch to bits/version.h for
673 __cpp_lib_variant. Guard whole header behind that FTM.
674 * include/std/utility: Switch to bits/version.h for
675 __cpp_lib_{exchange_function,constexpr_algorithms,as_const},
676 __cpp_lib_{integer_comparison_functions,to_underlying}, and
677 __cpp_lib_unreachable.
678 (exchange): Guard behind __cpp_lib_exchange_function.
679 (cmp_equal, cmp_not_equal, cmp_less, cmp_greater, cmp_less_equal)
680 (cmp_greater_equal, in_range): Guard behind
681 __cpp_lib_integer_comparison_functions.
682 (to_underlying): Guard behind __cpp_lib_to_underlying.
683 (unreachable): Guard behind __cpp_lib_unreachable.
684 * include/std/type_traits: Switch to bits/version.h for
685 __cpp_lib_is_{null_pointer,final,nothrow_convertible,aggregate},
686 __cpp_lib_is_{constant_evaluated,invocable,layout_compatible},
687 __cpp_lib_is_{pointer_interconvertible,scoped_enum,swappable},
688 __cpp_lib_{logical_traits,reference_from_temporary,remove_cvref},
689 __cpp_lib_{result_of_sfinae,transformation_trait_aliases},
690 __cpp_lib_{type_identity,type_trait_variable_templates},
691 __cpp_lib_{unwrap_ref,void_t,integral_constant_callable},
692 __cpp_lib_{bool_constant,bounded_array_traits}, and
693 __cpp_lib_has_unique_object_representations.
694 (integral_constant::operator()): Guard behind
695 __cpp_lib_integral_constant_callable.
696 (bool_constant): Guard behind __cpp_lib_bool_constant.
697 (conjunction, disjunction, negation, conjunction_v, disjunction_v)
698 (negation_v): Guard behind __cpp_lib_logical_traits.
699 (is_null_pointer): Guard behind __cpp_lib_is_null_pointer.
700 (is_final): Guard behind __cpp_lib_is_final.
701 (is_nothrow_convertible, is_nothrow_convertible_v): Guard behind
702 __cpp_lib_is_nothrow_convertible.
703 (remove_const_t, remove_volatile_t, remove_cv_t)
704 (add_const_t, add_volatile_t, add_cv_t): Guard behind
705 __cpp_lib_transformation_trait_aliases.
706 (void_t): Guard behind __cpp_lib_void_t.
707 (is_swappable_with_v, is_nothrow_swappable_with_v)
708 (is_swappable_with, is_nothrow_swappable_with): Guard behind
709 __cpp_lib_is_swappable.
710 (is_nothrow_invocable_r, is_invocable_r, invoke_result)
711 (is_invocable, invoke_result_t): Guard behind
712 __cpp_lib_is_invocable.
713 (alignment_of_v, extent_v, has_virtual_destructor_v)
714 (is_abstract_v, is_arithmetic_v, is_array_v)
715 (is_assignable_v, is_base_of_v, is_class_v, is_compound_v)
716 (is_constructible_v, is_const_v, is_convertible_v)
717 (is_copy_assignable_v, is_copy_constructible_v)
718 (is_default_constructible_v, is_destructible_v)
719 (is_empty_v, is_enum_v, is_final_v, is_floating_point_v)
720 (is_function_v, is_fundamental_v, is_integral_v)
721 (is_invocable_r_v, is_invocable_v, is_literal_type_v)
722 (is_lvalue_reference_v, is_member_function_pointer_v)
723 (is_member_object_pointer_v, is_member_pointer_v)
724 (is_move_assignable_v, is_move_constructible_v)
725 (is_nothrow_assignable_v, is_nothrow_constructible_v)
726 (is_nothrow_copy_assignable_v, is_nothrow_copy_constructible_v)
727 (is_nothrow_default_constructible_v, is_nothrow_destructible_v)
728 (is_nothrow_invocable_r_v, is_nothrow_invocable_v)
729 (is_nothrow_move_assignable_v, is_nothrow_move_constructible_v)
730 (is_null_pointer_v, is_object_v, is_pod_v, is_pointer_v)
731 (is_polymorphic_v, is_reference_v, is_rvalue_reference_v)
732 (is_same_v, is_scalar_v, is_signed_v, is_standard_layout_v)
733 (is_trivially_assignable_v, is_trivially_constructible_v)
734 (is_trivially_copyable_v, is_trivially_copy_assignable_v)
735 (is_trivially_copy_constructible_v)
736 (is_trivially_default_constructible_v)
737 (is_trivially_destructible_v, is_trivially_move_assignable_v)
738 (is_trivially_move_constructible_v, is_trivial_v, is_union_v)
739 (is_unsigned_v, is_void_v, is_volatile_v, rank_v, as variadic):
740 Guard behind __cpp_lib_type_trait_variable_templates.
741 (has_unique_object_representations)
742 (has_unique_object_representations_v): Guard behind
743 __cpp_lib_has_unique_object_representation.
744 (is_aggregate): Guard behind __cpp_lib_is_aggregate.
745 (remove_cvref, remove_cvref_t): Guard behind
746 __cpp_lib_remove_cvref.
747 (type_identity, type_identity_t): Guard behind
748 __cpp_lib_type_identity.
749 (unwrap_reference, unwrap_reference_t, unwrap_ref_decay)
750 (unwrap_ref_decay_t): Guard behind __cpp_lib_unwrap_ref.
751 (is_bounded_array_v, is_unbounded_array_v, is_bounded_array)
752 (is_unbounded_array): Guard behind __cpp_lib_bounded_array_traits.
753 (is_scoped_enum, is_scoped_enum_v): Guard behind
754 __cpp_lib_is_scoped_enum.
755 (reference_constructs_from_temporary)
756 (reference_constructs_from_temporary_v): Guard behind
757 __cpp_lib_reference_from_temporary.
758 * include/std/tuple: Switch to bits/version.h for
759 __cpp_lib_{constexpr_tuple,tuple_by_type,apply_make_from_tuple}.
760 (get<T>): Guard behind __cpp_lib_tuple_by_type.
761 (apply): Guard behind __cpp_lib_apply.
762 (make_from_tuple): Guard behind __cpp_lib_make_from_tuple.
763 * include/std/syncstream: Switch to bits/version.h for
764 __cpp_lib_syncbuf. Guard header behind that FTM.
765 * include/std/string_view: Switch to bits/version.h for
766 __cpp_lib_{string_{view,contains},constexpr_string_view} and
767 __cpp_lib_starts_ends_with.
768 (basic_string_view::starts_with, basic_string_view::ends_with):
769 Guard behind __cpp_lib_starts_ends_with.
770 [C++23 && _GLIBCXX_HOSTED && !defined(__cpp_lib_string_contains)]:
771 Assert as impossible ithout a bug in C++23.
772 * include/std/string: Switch to bits/version.h for
774 (erase, erase_if): Guard behind __cpp_lib_erase_if.
775 * include/std/thread: Switch to bits/version.h for
777 * include/std/stop_token: Switch to bits/version.h for
779 * include/std/spanstream: Switch to bits/version.h for
780 __cpp_lib_spanstream. Guard header behind that FTM.
781 * include/std/span: Switch to bits/version.h for __cpp_lib_span.
782 Guard header behind that FTM.
783 * include/std/source_location: Switch to bits/version.h for
784 __cpp_lib_source_location. Guard header with that FTM.
785 * include/std/shared_mutex: Switch to bits/version.h for
786 __cpp_lib_shared{,_timed}_mutex.
787 (shared_mutex): Guard behind __cpp_lib_shared_mutex.
788 * include/std/semaphore: Switch to bits/version.h for
789 __cpp_lib_semaphore. Guard header behind that FTM.
790 * include/std/ranges: Switch to bits/version.h for
791 __cpp_lib_ranges_{zip,chunk{,_by},slide,join_with},
792 __cpp_lib_ranges_{repeat_stride,cartesian_product,as_rvalue},
793 and __cpp_lib_ranges_{as_const,enumerate,iota}.
794 (ranges::zip et al, ranges::chunk et al, ranges::slide et al)
795 (ranges::chunk_by et al, ranges::join_with et al)
796 (ranges::stride et al, ranges::cartesian_product et al)
797 (ranges::as_rvalue et al, ranges::as_const et al)
798 (ranges::enumerate et al): Guard behind appropriate FTM.
799 * include/std/optional: Switch to bits/version.h for
800 __cpp_lib_optional. Guard header behind that FTM.
801 * include/std/numeric: Switch to bits/version.h for
802 __cpp_lib_{gcd{,_lcm},lcm,constexpr_numeric,interpolate}
803 and __cpp_lib_parallel_algorithm.
804 (gcd, lcm): Guard behind __cpp_lib_gcd_lcm.
805 (midpoint): Guard behind __cpp_lib_interpolate.
806 * include/std/numbers: Switch to bits/version.h for
807 __cpp_lib_math_constants. Guard header behind that FTM.
808 * include/std/mutex: Switch to bits/version.h for
809 __cpp_lib_scoped_lock.
810 (scoped_Lock): Guard behind __cpp_lib_scoped_lock.
811 * include/std/memory_resource: Switch to bits/version.h for
812 __cpp_lib_{polymorphic_allocator,memory_resource}.
813 (synchronized_pool_resource): Guard behind
814 __cpp_lib_memory_resource >= 201603L.
815 (polymorphic_allocator): Guard behind
816 __cpp_lib_polymorphic_allocator.
817 * include/std/memory: Switch to bits/version.h for
818 __cpp_lib_{parallel_algorithm,atomic_value_initialization}.
819 * include/std/list: Switch to bits/version.h for
821 (erase, erase_if): Guard behind __cpp_lib_erase_if.
822 * include/std/latch: Switch to bits/version.h for __cpp_lib_latch.
823 Guard header behind that FTM.
824 * include/std/iterator: Switch to bits/version.h for
825 __cpp_lib_null_iterators.
826 * include/std/iomanip: Switch to bits/version.h for
827 __cpp_lib_quoted_string_io.
828 (quoted): Guard behind __cpp_lib_quoted_string_io.
829 * include/std/functional: Switch to bits/version.h for
830 __cpp_lib_{invoke{,_r},constexpr_functional,bind_front} and
831 __cpp_lib_{not_fn,booyer_moore_searcher}.
832 (invoke): Guard behind __cpp_lib_invoke.
833 (invoke_r): Guard behind __cpp_lib_invoke_r.
834 (bind_front): Guard behind __cpp_lib_bind_front.
835 (not_fn): Guard behind __cpp_lib_not_fn.
836 (boyer_moore_searcher, boyer_moore_horspool_searcher): Guard
837 definition behind __cpp_lib_boyer_moore_searcher.
838 * include/std/forward_list: Switch to bits/version.h for
840 (erase, erase_if): Guard behind __cpp_lib_erase_if.
841 * include/std/format: Switch to bits/version.h for
842 __cpp_lib_format. Guard header behind that FTM.
843 * include/std/filesystem: Switch to bits/version.h for
844 __cpp_lib_filesystem. Guard header behind that FTM.
845 * include/std/expected: Switch to bits/version.h for
846 __cpp_lib_expected. Guard header behind it.
847 * include/std/execution: Switch to bits/version.h for
848 __cpp_lib_{execution,parallel_algorithm}. Guard header behind
850 * include/std/deque: Switch to bits/version.h for
852 (erase, erase_if): Guard behind __cpp_lib_erase_if.
853 * include/std/coroutine: Switch to bits/version.h for
854 __cpp_lib_coroutine. Guard header behind that FTM.
855 * include/std/concepts: Switch to bits/version.h for
856 __cpp_lib_concepts. Guard header behind that FTM.
857 * include/std/complex: Switch to bits/version.h for
858 __cpp_lib_{complex_udls,constexpr_complex}.
859 (operator""if, operator""i, operator""il): Guard behind
860 __cpp_lib_complex_udls.
861 * include/std/charconv: Swtich to bits/version.h for
862 __cpp_lib_{to_chars,constexpr_charconv}.
863 * include/std/bitset: Switch to bits/version.h for
864 __cpp_lib_constexpr_bitset.
865 * include/std/bit: Switch to bits/version.h for
866 __cpp_lib_{bit_cast,byteswap,bitops,int_pow2,endian}.
867 (bit_cast): Guard behind __cpp_lib_bit_cast.
868 (byteswap): Guard behind __cpp_lib_byteswap.
869 (rotl, rotr, countl_zero, countl_one, countr_zero, countr_one)
870 (popcount): Guard behind __cpp_lib_bitops.
871 (has_single_bit, bit_ceil, bit_floor, bit_width): Guard behind
873 (endian): Guard behind __cpp_lib_endian.
874 * include/std/barrier: Switch to bits/version.h for
875 __cpp_lib_barrier. Guard header behind that FTM.
876 * include/std/atomic: Switch to bits/version.h for
877 __cpp_lib_atomic_{is_always_lock_free,float,ref}
878 and __cpp_lib_lock_free_type_aliases.
879 (*::is_always_lock_free): Guard behind
880 __cpp_lib_atomic_is_always_lock_free.
881 (atomic<float>): Guard behind __cpp_lib_atomic_float.
882 (atomic_ref): Guard behind __cpp_lib_atomic_ref.
883 (atomic_signed_lock_free, atomic_unsigned_lock_free): Guard behind
884 __cpp_lib_atomic_lock_free_type_aliases.
885 * include/std/array: Switch to bits/version.h for
887 (to_array): Guard behind __cpp_lib_to_array.
888 * include/std/any: Switch to bits/version.h for __cpp_lib_any.
889 Guard header behind that FTM.
890 * include/std/algorithm: Switch to bits/version.h for
891 __cpp_lib_parallel_algorithm.
892 * include/c_global/cstddef: Switch to bits/version.h for
894 (byte): Guard behind __cpp_lib_byte.
895 * include/c_global/cmath: Switch to bits/version.h for
896 __cpp_lib_{hypot,interpolate}.
897 (hypot3): Guard behind __cpp_lib_hypot.
898 (lerp): Guard behind __cpp_lib_interpolate.
899 * include/c_compatibility/stdatomic.h: Switch to
900 bits/stl_version.h for __cpp_lib_atomic. Guard header behind that
902 * include/bits/utility.h: Switch to bits/version.h for
903 __cpp_lib_{tuple_element_t,integer_sequence,ranges_zip}.
904 (tuple_element_t): Guard behind __cpp_lib_tuple_element_t.
905 (integer_sequence et al): Guard behind __cpp_lib_integer_sequence.
906 * include/bits/uses_allocator_args.h: Switch to bits/version.h for
907 __cpp_lib_make_obj_using_allocator. Guard header behind that FTM.
908 * include/bits/unordered_map.h: Switch to bits/version.h for
909 __cpp_lib_unordered_map_try_emplace.
910 (try_emplace): Guard behind __cpp_lib_unordered_map_try_emplace.
911 * include/bits/unique_ptr.h: Switch to bits/version.h for
912 __cpp_lib_{constexpr_memory,make_unique}.
913 (make_unique): Guard behind __cpp_lib_make_unique.
914 * include/bits/stl_vector.h: Switch to bits/version.h for
915 __cpp_lib_constexpr_vector.
916 * include/bits/stl_uninitialized.h: Switch to bits/version.h for
917 __cpp_lib_raw_memory_algorithms.
918 (uninitialized_default_construct)
919 (uninitialized_default_construct_n, uninitialized_move)
920 (uninitialized_move_n, uninitialized_value_construct)
921 (uninitialized_value_construct_n): Guard behind
922 __cpp_lib_raw_memory_algorithms.
923 * include/bits/stl_tree.h: Switch to bits/version.h for
924 __cpp_lib_generic_associative_lookup.
925 * include/bits/stl_stack.h: Switch to bits/version.h for
926 __cpp_lib_adaptor_iterator_pair_constructor.
927 (stack): Guard iterator-pair constructor behind
928 __cpp_lib_adaptor_iterator_pair_constructor.
929 * include/bits/stl_queue.h: Switch to bits/version.h for
930 __cpp_lib_adaptor_iterator_pair_constructor.
931 (queue): Guard iterator-pair constructor behind
932 __cpp_lib_adaptor_iterator_pair_constructor.
933 * include/bits/stl_pair.h: Switch to bits/version.h for
934 __cpp_lib_{concepts,tuples_by_type}.
935 (get): Guard type-getting overloads behind
936 __cpp_lib_tuples_by_type.
937 * include/bits/stl_map.h: Switch to bits/version.h for
938 __cpp_lib_map_try_emplace.
939 (map<>::try_emplace): Guard behind __cpp_lib_map_try_emplace.
940 * include/bits/stl_list.h: Switch to bits/version.h for
941 __cpp_lib_list_remove_return_type.
942 (__remove_return_type, _GLIBCXX_LIST_REMOVE_RETURN_TYPE_TAG)
943 [C++20]: guard behind __cpp_lib_list_remove_return_type instead.
944 * include/bits/stl_iterator.h: Switch to bits/version.h for
945 __cpp_lib_{constexpr_iterator,array_constexpr} and
946 __cpp_lib_{make_reverse_iterator,move_iterator_concept}.
947 (make_reverse_iterator): Guard behind
948 __cpp_lib_make_reverse_iterator.
949 (iterator_concept et al): Guard __cpp_lib_move_iterator_concept
950 changes behind that FTM.
951 * include/bits/stl_function.h: Switch to bits/version.h for
952 __cpp_lib_transparent_operators.
953 (equal_to, not_equal_to, greater, less, greater_equal)
954 (less_equal, bit_and, bit_or, bit_xor, bit_not, logical_and)
955 (logical_or, logical_not, plus, minus, multiplies, divides)
956 (modulus, negate): Guard '= void' fwdecls behind
957 __cpp_lib_transparent_operators.
958 (plus<void>, minus<void>, multiplies<void>, divides<void>)
959 (modulus<void>, negate<void>, logical_and<void>, logical_or<void>)
960 (logical_not<void>, bit_and<void>, bit_or<void>, bit_xor<void>)
961 (equal_to<void>, not_equal_to<void>, greater<void>, less<void>)
962 (greater_equal<void>, less_equal<void>, bit_not<void>)
963 (__has_is_transparent): Guard behind
964 __cpp_lib_transparent_operators.
965 * include/bits/stl_algobase.h: Switch to bits/version.h for
966 __cpp_lib_robust_nonmodifying_seq_ops.
967 (robust equal, mismatch): Guard behind
968 __cpp_lib_nonmember_container_access.
969 * include/bits/stl_algo.h: Swtich to bits/version.h for
970 __cpp_lib_{clamp,sample}.
971 (clamp): Guard behind __cpp_lib_clamp.
972 (sample): Guard behind __cpp_lib_sample.
973 * include/bits/specfun.h: Switch to bits/version.h for
974 __cpp_lib_math_special_functions and __STDCPP_MATH_SPEC_FUNCS__.
975 * include/bits/shared_ptr_base.h: Switch to bits/version.h for
976 __cpp_lib_{smart_ptr_for_overwrite,shared_ptr_arrays}.
977 (_Sp_overwrite_tag): Guard behind
978 __cpp_lib_smart_ptr_for_overwrite.
979 * include/bits/shared_ptr_atomic.h: Switch to bits/version.h for
980 __cpp_lib_atomic_shared_ptr.
981 * include/bits/shared_ptr.h: Switch to bits/version.h for
982 __cpp_lib_{enable_shared_from_this,shared_ptr_weak_type}.
983 (shared_ptr<T>::weak_type): Guard behind
984 __cpp_lib_shared_ptr_weak_type.
985 (enable_shared_from_this<T>::weak_from_this): Guard behind
986 __cpp_lib_enable_shared_from_this.
987 * include/bits/ranges_cmp.h: Switch to bits/version.h for
989 * include/bits/ranges_algo.h: Switch to bits/version.h for
990 __cpp_lib_{shift,ranges_{contains,find_last,fold,iota}}.
991 * include/bits/range_access.h: Switch to bits/version.h for
992 __cpp_lib_nonmember_container_access
993 (size, empty, data): Guard behind
994 __cpp_lib_nonmember_container_access.
995 (ssize): Guard behind __cpp_lib_ssize.
996 * include/bits/ptr_traits.h: Switch to bits/version.h. for
997 __cpp_lib_{constexpr_memory,to_address}.
998 (to_address): Guard behind __cpp_lib_to_address.
999 * include/bits/node_handle.h: Switch to bits/version.h for
1000 __cpp_lib_node_extract. Guard header behind that FTM.
1001 * include/bits/move_only_function.h: Switch to bits/version.h for
1002 __cpp_lib_move_only_function. Guard header behind that FTM.
1003 * include/bits/move.h: Switch to bits/version.h for
1004 __cpp_lib_addressof_constexpr.
1005 * include/bits/ios_base.h: Switch to bits/version.h for
1006 __cpp_lib_ios_noreplace.
1007 (noreplace): Guard with __cpp_lib_ios_noreplace.
1008 * include/bits/hashtable.h: Switch to bits/version.h for
1009 __cpp_lib_generic_unordered_lookup.
1010 (_M_equal_range_tr, _M_count_tr, _M_find_tr): Guard behind
1011 __cpp_lib_generic_unordered_lookup.
1012 * include/bits/forward_list.h: Switch to bits/version.h for
1013 __cpp_lib_list_remove_return_type.
1014 (__remove_return_type): Guard behind
1015 __cpp_lib_list_remove_return_type.
1016 * include/bits/erase_if.h: Switch to bits/version.h for
1018 * include/bits/cow_string.h: Switch to bits/version.h for
1019 __cpp_lib_constexpr_string.
1020 * include/bits/chrono.h: Swtich to bits/version.h for
1021 __cpp_lib_chrono{,_udls}.
1022 (ceil): Guard behind __cpp_lib_chrono.
1023 (operator""ns et al): Guard behind __cpp_lib_chrono_udls.
1024 * include/bits/char_traits.h: Switch to bits/version.h for
1025 __cpp_lib_constexpr_char_traits.
1026 * include/bits/basic_string.h: Switch to bits/version.h for
1027 __cpp_lib_{constexpr_string,string_{resize_and_overwrite,udls}}.
1028 (resize_and_overwrite): Guard behind
1029 __cpp_lib_string_resize_and_overwrite.
1030 (operator""s): Guard behind __cpp_lib_string_udls.
1031 * include/bits/atomic_wait.h: Switch to bits/version.h for
1032 __cpp_lib_atomic_wait. Guard header behind that FTM.
1033 * include/bits/atomic_base.h: Switch to bits/version.h for
1034 __cpp_lib_atomic_value_initialization and
1035 __cpp_lib_atomic_flag_test.
1036 (atomic_flag::test): Guard behind __cpp_lib_atomic_flag_test,
1038 * include/bits/allocator.h: Switch to bits/version.h for
1039 __cpp_lib_incomplete_container_elements.
1040 * include/bits/alloc_traits.h: Switch to using bits/version.h for
1041 __cpp_lib_constexpr_dynamic_alloc and
1042 __cpp_lib_allocator_traits_is_always_equal.
1043 * include/bits/align.h: Switch to bits/version.h for defining
1044 __cpp_lib_assume_aligned.
1045 (assume_aligned): Guard with __cpp_lib_assume_aligned.
1046 * include/bits/algorithmfwd.h: Switch to bits/version.h for
1047 defining __cpp_lib_constexpr_algorithms.
1048 * include/std/stacktrace: Switch to bits/version.h for
1049 __cpp_lib_stacktrace. Guard header behind that FTM.
1050 * testsuite/23_containers/array/tuple_interface/get_neg.cc:
1051 Update line numbers.
1053 2023-08-16 Arsen Arsenović <arsen@aarsen.me>
1055 * include/Makefile.am (bits_freestanding): Add version.h.
1056 (allcreated): Add version.h.
1057 (${bits_srcdir}/version.h): New rule. Regenerates
1058 version.h out of version.{def,tpl}.
1059 * include/Makefile.in: Regenerate.
1060 * include/bits/version.def: New file. Declares a list of
1061 all feature test macros, their values and their preconditions.
1062 * include/bits/version.tpl: New file. Turns version.def
1063 into a sequence of #if blocks.
1064 * include/bits/version.h: New file. Generated from
1066 * include/std/version: Replace with a __glibcxx_want_all define
1067 and bits/version.h include.
1069 2023-08-14 Paul Dreik <gccpatches@pauldreik.se>
1072 * include/std/format (__formatter_fp::format): Use frexp instead
1075 2023-08-12 Ken Matsui <kmatsui@gcc.gnu.org>
1077 * include/std/type_traits (true_type): Use __bool_constant
1079 (false_type): Likewise.
1080 (bool_constant): Likewise.
1082 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
1085 * include/std/format (_Seq_sink::get): Only call _M_overflow if
1086 its precondition is met.
1087 (_Iter_sink::_M_finish): Likewise.
1088 (_Iter_sink<C, ContigIter>::_M_overflow): Only switch to the
1089 internal buffer after running out of space.
1090 (_Iter_sink<C, ContigIter>::_M_finish): Do not use _M_overflow.
1091 (_Counting_sink::count): Likewise.
1092 * testsuite/std/format/functions/format_to_n.cc: Check cases
1093 where the output fits into the buffer.
1095 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
1098 * include/bits/chrono_io.h (operator|=, operator|): Add noexcept
1099 to _ChronoParts operators.
1100 (from_stream, parse): Define new functions.
1101 (__detail::_Parse, __detail::_Parser): New class templates.
1102 * include/std/chrono (__cpp_lib_chrono): Define to 201907L for
1104 * include/std/version (__cpp_lib_chrono): Likewise.
1105 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc:
1106 Adjust expected value of feature test macro.
1107 * testsuite/20_util/duration/io.cc: Test parsing.
1108 * testsuite/std/time/clock/file/io.cc: Likewise.
1109 * testsuite/std/time/clock/gps/io.cc: Likewise.
1110 * testsuite/std/time/clock/system/io.cc: Likewise.
1111 * testsuite/std/time/clock/tai/io.cc: Likewise.
1112 * testsuite/std/time/clock/utc/io.cc: Likewise.
1113 * testsuite/std/time/day/io.cc: Likewise.
1114 * testsuite/std/time/month/io.cc: Likewise.
1115 * testsuite/std/time/month_day/io.cc: Likewise.
1116 * testsuite/std/time/weekday/io.cc: Likewise.
1117 * testsuite/std/time/year/io.cc: Likewise.
1118 * testsuite/std/time/year_month/io.cc: Likewise.
1119 * testsuite/std/time/year_month_day/io.cc: Likewise.
1120 * testsuite/std/time/syn_c++20.cc: Check value of macro and for
1121 the existence of parse and from_stream in namespace chrono.
1122 * testsuite/std/time/clock/local/io.cc: New test.
1123 * testsuite/std/time/parse.cc: New test.
1125 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
1128 * include/std/format (__formatter_fp::format): Do not call log10
1131 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
1133 * python/libstdcxx/v6/printers.py (StdChronoCalendarPrinter):
1134 Check for out-of-range month an weekday indices.
1135 * testsuite/libstdc++-prettyprinters/chrono.cc: Check invalid
1136 month and weekday values.
1138 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
1140 * include/bits/stl_iterator.h (__clamped_iter_cat_t): Remove.
1142 2023-08-10 Jonathan Wakely <jwakely@redhat.com>
1145 * include/std/format (_Spec::_S_parse_width_or_precision): Check
1146 for empty range before dereferencing iterator.
1147 * testsuite/std/format/string.cc: Check for expected exception.
1148 Fix expected exception message in test_pr110862() and actually
1151 2023-08-10 Jonathan Wakely <jwakely@redhat.com>
1154 * include/std/format (__formatter_fp::format): Check return
1155 value of _M_localize.
1156 * testsuite/std/format/functions/format.cc: Check classic
1159 2023-08-10 Jonathan Wakely <jwakely@redhat.com>
1162 * include/bits/stl_iterator.h (__detail::__move_iter_cat): Use
1164 (iterator_traits<common_iterator<I, S>>::_S_iter_cat): Likewise.
1165 (__detail::__basic_const_iterator_iter_cat): Likewise.
1166 * include/bits/stl_iterator_base_types.h (__iterator_category_t):
1167 Rename to __iter_category_t.
1169 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
1171 * include/bits/chrono.h (duration_cast): Do not use braces
1172 around statements for C++11 constexpr rules.
1173 * include/bits/stl_algobase.h (__lg): Rewrite as a single
1174 statement for C++11 constexpr rules.
1175 * include/experimental/bits/fs_path.h (path::string): Use
1176 _GLIBCXX17_CONSTEXPR not _GLIBCXX_CONSTEXPR for 'if constexpr'.
1177 * include/std/charconv (__to_chars_8): Initialize variable for
1178 C++17 constexpr rules.
1180 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
1182 * include/bits/list.tcc (list::sort(Cmp)): Fix -Wsign-compare
1183 warning for loop condition.
1185 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
1187 * include/std/complex: Add diagnostic pragma for clang.
1189 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
1191 * include/bits/shared_ptr_atomic.h (atomic): Change class-head
1193 * include/bits/stl_tree.h (_Rb_tree_merge_helper): Change
1194 class-head to struct in friend declaration.
1195 * include/std/chrono (tzdb_list::_Node): Likewise.
1196 * include/std/future (_Task_state_base, _Task_state): Likewise.
1197 * include/std/scoped_allocator (__inner_type_impl): Likewise.
1198 * include/std/valarray (_BinClos, _SClos, _GClos, _IClos)
1199 (_ValFunClos, _RefFunClos): Change class-head to struct.
1201 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
1203 * include/bits/alloc_traits.h (allocate): Add [[maybe_unused]]
1205 * include/bits/regex_executor.tcc: Remove name of unused
1207 * include/bits/shared_ptr_atomic.h (atomic_is_lock_free):
1209 * include/bits/stl_uninitialized.h: Likewise.
1210 * include/bits/streambuf_iterator.h (operator==): Likewise.
1211 * include/bits/uses_allocator.h: Likewise.
1212 * include/c_global/cmath (isfinite, isinf, isnan): Likewise.
1213 * include/std/chrono (zoned_time): Likewise.
1214 * include/std/future (__future_base::_S_allocate_result):
1216 (packaged_task): Likewise.
1217 * include/std/optional (_Optional_payload_base): Likewise.
1218 * include/std/scoped_allocator (__inner_type_impl): Likewise.
1219 * include/std/tuple (_Tuple_impl): Likewise.
1221 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
1223 * include/bits/new_allocator.h (__new_allocator): Define copy
1224 assignment operator as defaulted.
1225 * include/std/complex (complex<float>, complex<double>)
1226 (complex<long double>): Define copy constructor as defaulted.
1228 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
1230 * include/std/format: Fix some warnings.
1231 (__format::__write(Ctx&, basic_string_view<CharT>)): Remove
1232 unused function template.
1234 2023-08-07 Jonathan Wakely <jwakely@redhat.com>
1237 * include/std/format (__formatter_fp::format): Do not use
1238 __builtin_abs and __builtin_log10 with arbitrary floating-point
1241 2023-08-07 Jonathan Wakely <jwakely@redhat.com>
1244 * include/std/format (__format::_Iter_sink<CharT, OutIter>):
1245 Constrain partial specialization for contiguous iterators to
1246 require the value type to be CharT.
1247 * testsuite/std/format/functions/format_to.cc: New test.
1249 2023-08-07 Jonathan Wakely <jwakely@redhat.com>
1252 * include/std/format (_Scanner::_M_on_replacement_field):
1253 Check for expected '}' before incrementing iterator.
1254 * testsuite/std/format/string.cc: Check "{0:{0}" format string.
1256 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
1258 * configure: Regenerate.
1260 2023-08-07 Alan Modra <amodra@gmail.com>
1262 * configure: Regenerate.
1264 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
1266 * configure: Regenerate.
1268 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
1270 * configure: Regenerate.
1272 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
1274 * configure: Regenerate.
1276 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
1278 * configure: Regenerate.
1280 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
1282 * configure: Regenerate.
1284 2023-08-06 François Dumont <fdumont@gcc.gnu.org>
1286 * config/abi/pre/gnu-versioned-namespace.ver: Add __cxa_call_terminate
1289 2023-07-30 François Dumont <fdumont@gcc.gnu.org>
1291 * src/c++11/compatibility-ldbl-facets-aliases.h: Replace #define with
1293 * src/c++11/locale-inst-monetary.h: Likewise.
1294 * src/c++11/locale-inst-numeric.h: Likewise.
1296 2023-07-27 Jonathan Wakely <jwakely@redhat.com>
1299 * include/std/format (__formatter_fp::format): Ensure __expc is
1300 always set for all presentation types. Set __z correctly for
1302 * testsuite/std/format/functions/format.cc: Check problem cases.
1304 2023-07-26 Jonathan Wakely <jwakely@redhat.com>
1307 * testsuite/23_containers/vector/bool/110807.cc: Require c++11.
1309 2023-07-26 Jonathan Wakely <jwakely@redhat.com>
1312 * include/bits/stl_bvector.h (vector(const vector&)): Access
1313 iterators before allocating.
1314 * include/bits/vector.tcc (vector<bool>::_M_insert_range):
1316 * testsuite/23_containers/vector/bool/110807.cc: New test.
1318 2023-07-26 Jonathan Wakely <jwakely@redhat.com>
1320 * include/bits/algorithmfwd.h (random_shuffle): Add deprecated
1322 * include/bits/stl_algo.h (random_shuffle): Correct comments.
1323 * testsuite/25_algorithms/random_shuffle/1.cc: Disable
1324 deprecated warnings.
1325 * testsuite/25_algorithms/random_shuffle/59603.cc: Likewise.
1326 * testsuite/25_algorithms/random_shuffle/moveable.cc: Likewise.
1327 * testsuite/25_algorithms/random_shuffle/deprecated.cc: New
1330 2023-07-26 Nathaniel Shead <nathanieloshead@gmail.com>
1332 * testsuite/25_algorithms/equal/constexpr_neg.cc: Update diagnostic
1334 * testsuite/26_numerics/gcd/105844.cc: Likewise.
1335 * testsuite/26_numerics/lcm/105844.cc: Likewise.
1337 2023-07-24 Deev Patel <pateldeev@nevada.unr.edu>
1339 * include/std/format (_Formatting_scanner::_M_on_chars): Add
1340 missing constexpr specifier.
1341 (_Formatting_scanner::_M_format_arg): Likewise.
1343 2023-07-24 Jonathan Wakely <jwakely@redhat.com>
1346 * include/bits/basic_string.h [!HAVE_STOF] (stof): Do not
1347 throw an exception for zero result.
1348 [HAVE_BROKEN_STRTOLD] (stold): Do not use strtold.
1350 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1353 * src/c++17/floating_from_chars.cc (from_chars): Only define
1354 _Float128 overload when using __strfromf128.
1356 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1359 * include/bits/chrono.h (duration): Improve static assert
1361 (__is_ratio): Move to ...
1362 * include/std/ratio (__is_ratio): ... here.
1363 (__is_ratio_v): New variable template and partial
1365 (__are_both_ratios): New function template.
1366 (__ratio_multiply, ratio_equal, ratio_less, __ratio_add):
1367 Add static assertion.
1368 * testsuite/20_util/ratio/requirements/type_constraints.cc:
1370 * testsuite/20_util/duration/requirements/typedefs_neg1.cc:
1371 Adjust expected error.
1372 * testsuite/20_util/duration/requirements/typedefs_neg2.cc:
1375 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1377 * include/bits/chrono_io.h (__formatter_chrono::_M_format):
1378 Do not set __is_neg for hh_mm_ss before calling
1379 _M_format_to_ostream. Change __print_sign lambda to only check
1380 __is_neg for durations and hh_mm_ss types.
1381 (__formatter_chrono::_M_format_to_ostream): Only check __is_neg
1383 * testsuite/std/time/hh_mm_ss/io.cc: Check negative values.
1385 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1388 * include/bits/chrono_io.h (__formatter_chrono::_S_floor_seconds):
1389 Handle duration and hh_mm_ss.
1390 * testsuite/20_util/duration/io.cc: Check locale-specific
1392 * testsuite/std/time/hh_mm_ss/io.cc: Likewise.
1394 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1396 * include/std/format (__write_padded): Initialize first element
1397 of array to avoid a -Wmaybe-uninitialized warning.
1399 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1402 * include/bits/chrono_io.h (__formatter_chrono::_M_parse): Fix
1403 allowed modifiers for %z and %Z. Fix -Wparentheses and
1404 -Wnarrowing warnings.
1405 (__formatter_chrono::_M_format): Call new functions for %d, %e,
1407 (__formatter_chrono::_M_c): Use _S_floor_seconds to remove
1408 subsecond precision.
1409 (__formatter_chrono::_M_C_y_Y): Use _M_locale_fmt to handle
1411 (__formatter_chrono::_M_e): Replace with _M_d_e and use
1413 (__formatter_chrono::_M_I): Replace with _M_H_I and use
1415 (__formatter_chrono::_M_m): New function.
1416 (__formatter_chrono::_M_M): New function.
1417 (__formatter_chrono::_M_r): Use _M_locale_fmt.
1418 (__formatter_chrono::_M_S): Likewise.
1419 (__formatter_chrono::_M_u_w): Likewise.
1420 (__formatter_chrono::_M_U_V_W): Likewise.
1421 (__formatter_chrono::_M_X): Use _S_floor_seconds.
1422 (__formatter_chrono::_M_Z): Fix untested branch for wchar_t.
1423 (__formatter_chrono::_S_altnum): Remove function.
1424 (__formatter_chrono::_S_dd_zero_fill): Remove function.
1425 (__formatter_chrono::_S_floor_seconds): New function.
1426 (__formatter_chrono::_M_locale_fmt): New function.
1427 * testsuite/std/time/clock/system/io.cc: Adjust expected output
1428 for locale-specific formats and check modified formats.
1429 * testsuite/std/time/clock/utc/io.cc: Likewise.
1430 * testsuite/std/time/zoned_time/io.cc: New test.
1432 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1435 * include/bits/chrono_io.h (__formatter_chrono::_M_parse): Only
1436 allow a single modifier.
1437 * testsuite/std/time/format.cc: Check multiple modifiers.
1439 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1442 * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
1443 Remove dg-require-string-conversions.
1444 * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
1446 * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
1448 * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
1450 * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
1453 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1456 * include/bits/basic_string.h [!_GLIBCXX_HAVE_STRTOF] (stof):
1457 Define in terms of std::stod.
1459 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1462 * include/bits/basic_string.h [_GLIBCXX_HAVE_STRTOF] (stof):
1464 [_GLIBCXX_HAVE_STRTOLD] (stold): Define.
1465 * include/c_global/cstdlib [_GLIBCXX_HAVE_STRTOF] (strtof):
1466 Declare in namespace std.
1467 [_GLIBCXX_HAVE_STRTOLD] (strtold): Likewise.
1469 2023-07-13 Jonathan Wakely <jwakely@redhat.com>
1472 * include/bits/basic_string.h (stoi, stol, stoul, stod): Do not
1473 depend on _GLIBCXX_USE_C99_STDLIB.
1474 [__LONG_WIDTH__ == __LONG_LONG_WIDTH__] (stoll, stoull): Define
1475 in terms of stol and stoul respectively.
1476 [__DBL_MANT_DIG__ == __LDBL_MANT_DIG__] (stold): Define in terms
1479 2023-07-12 Jonathan Wakely <jwakely@redhat.com>
1482 * testsuite/27_io/filesystem/path/construct/95048.cc: Check
1483 conversions to wide strings.
1484 * testsuite/experimental/filesystem/path/construct/95048.cc:
1487 2023-07-12 Jonathan Wakely <jwakely@redhat.com>
1489 * config/io/basic_file_stdio.cc: Define LFS macros.
1490 (__basic_file<char>::open): Use fopen unconditionally.
1491 (get_file_offset): Use lseek unconditionally.
1492 (__basic_file<char>::seekoff): Likewise.
1493 (__basic_file<char>::showmanyc): Use fstat unconditionally.
1495 2023-07-12 Jonathan Wakely <jwakely@redhat.com>
1498 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fseeko and ftello
1499 and define _GLIBCXX_USE_FSEEKO_FTELLO.
1500 * config.h.in: Regenerate.
1501 * configure: Regenerate.
1502 * config/io/basic_file_stdio.cc (xwrite) [_GLIBCXX_USE_STDIO_PURE]:
1503 Check for fwrite error correctly.
1504 (__basic_file<char>::xsgetn) [_GLIBCXX_USE_STDIO_PURE]: Check for
1505 fread error correctly.
1506 (get_file_offset): New function.
1507 (__basic_file<char>::seekoff) [_GLIBCXX_USE_STDIO_PURE]: Use
1508 fseeko if available. Use get_file_offset instead of return value
1510 (__basic_file<char>::showmanyc): Use get_file_offset.
1512 2023-07-12 Ken Matsui <kmatsui@gcc.gnu.org>
1514 * include/std/type_traits (__make_unsigned_selector): Use
1515 __is_enum built-in trait.
1516 (__make_signed_selector): Likewise.
1517 (__underlying_type_impl): Likewise.
1519 2023-07-06 Tianqiang Shuai <1101282468@qq.com>
1521 * config/io/basic_file_stdio.cc (xwrite) [USE_STDIO_PURE]: Fix
1524 2023-07-06 Jonathan Wakely <jwakely@redhat.com>
1527 * doc/xml/manual/configure.xml: Describe stdio_pure argument to
1529 * doc/html/manual/configure.html: Regenerate.
1531 2023-07-05 Thomas Rodgers <trodgers@redhat.com>
1533 * testsuite/25_algorithms/pstl/alg_sorting/set.cc: Delete
1535 * testsuite/25_algorithms/pstl/alg_sorting/set_difference.cc:
1537 * testsuite/25_algorithms/pstl/alg_sorting/set_intersection.cc:
1539 * testsuite/25_algorithms/pstl/alg_sorting/set_symmetric_difference.cc:
1541 * testsuite/25_algorithms/pstl/alg_sorting/set_union.cc:
1543 * testsuite/25_algorithms/pstl/alg_sorting/set_util.h:
1546 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
1548 * testsuite/23_containers/forward_list/debug/iterator1_neg.cc:
1549 Skip as UNSUPPORTED for C++98 mode.
1550 * testsuite/23_containers/forward_list/debug/iterator3_neg.cc:
1553 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
1556 * include/bits/stl_uninitialized.h (__uninitialized_default_n):
1557 Do not use std::fill_n during constant evaluation.
1559 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
1561 * include/bits/vector.tcc (_M_default_append): Replace try-block
1564 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
1566 * include/bits/iterator_concepts.h (projected): Add typename.
1568 2023-07-03 Jonathan Wakely <jwakely@redhat.com>
1570 * testsuite/27_io/headers/iosfwd/synopsis.cc: Make wsyncbuf and
1571 wosyncstream depend on _GLIBCXX_USE_CXX11_ABI.
1573 2023-07-03 Jonathan Wakely <jwakely@redhat.com>
1575 * include/pstl/pstl_config.h (_PSTL_PRAGMA_SIMD_SCAN,
1576 _PSTL_PRAGMA_SIMD_INCLUSIVE_SCAN, _PSTL_PRAGMA_SIMD_EXCLUSIVE_SCAN):
1577 Define to OpenMP 5.0 pragmas even for GCC 10.0+.
1578 (_PSTL_UDS_PRESENT): Define to 1 for GCC 10.0+.
1580 2023-07-03 Jonathan Wakely <jwakely@redhat.com>
1582 * include/bits/alloc_traits.h (_Destroy): Qualify call.
1583 * include/bits/stl_construct.h (_Destroy, _Destroy_n): Likewise.
1584 * testsuite/23_containers/vector/cons/destroy-adl.cc: New test.
1586 2023-07-03 Iain Sandoe <iain@sandoe.co.uk>
1588 * testsuite/lib/libstdc++.exp: Remove additional flag handled
1591 2023-06-30 Jonathan Wakely <jwakely@redhat.com>
1594 * acinclude.m4 (GLIBCXX_CHECK_INIT_PRIORITY): New.
1595 * config.h.in: Regenerate.
1596 * configure: Regenerate.
1597 * configure.ac: Use GLIBCXX_CHECK_INIT_PRIORITY.
1598 * include/std/iostream: Use new autoconf macro as well as
1600 * src/c++98/ios_base_init.h: Use new autoconf macro instead of
1603 2023-06-30 Jonathan Wakely <jwakely@redhat.com>
1605 * src/c++11/random.cc (random_device::_M_init): Add maybe_unused
1608 2023-06-30 Jonathan Wakely <jwakely@redhat.com>
1611 * src/c++11/random.cc (random_device::_M_init): Throw
1612 std::system_error when the requested device is a valid token but
1613 not available at runtime.
1615 2023-06-30 Hans-Peter Nilsson <hp@axis.com>
1618 * include/pstl/unseq_backend_simd.h (__simd_or): Re-apply using
1619 __INT32_TYPE__ instead of int32_t.
1621 2023-06-29 Jonathan Wakely <jwakely@redhat.com>
1623 * src/c++20/tzdb.cc (USE_ATOMIC_SHARED_PTR): Define consistently
1624 with USE_ATOMIC_LIST_HEAD.
1625 (list_mutex): Replace global object with function. Use local
1626 static object when std::mutex constructor isn't constexpr.
1628 2023-06-29 Jonathan Wakely <jwakely@redhat.com>
1631 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check that
1632 copy_file_range can be called with loff_t* arguments.
1633 * configure: Regenerate.
1634 * src/filesystem/ops-common.h (copy_file_copy_file_range):
1635 Use loff_t for offsets.
1637 2023-06-29 Tom Tromey <tromey@adacore.com>
1639 * testsuite/lib/gdb-test.exp (gdb-test): Relax type-printer
1642 2023-06-28 Jan Hubicka <jh@suse.cz>
1644 PR middle-end/109849
1645 * include/bits/c++config (std::__terminate): Mark cold.
1646 * include/bits/functexcept.h: Mark everything as cold.
1647 * libsupc++/exception: Mark terminate and unexpected as cold.
1649 2023-06-26 Thomas Rodgers <trodgers@redhat.com>
1651 * include/pstl/algorithm_fwd.h: Synchronize with upstream.
1652 * include/pstl/algorithm_impl.h: Likewise.
1653 * include/pstl/execution_defs.h: Likewise.
1654 * include/pstl/execution_impl.h: Likewise.
1655 * include/pstl/glue_algorithm_impl.h: Likewise.
1656 * include/pstl/glue_execution_defs.h: Likewise.
1657 * include/pstl/glue_memory_impl.h: Likewise.
1658 * include/pstl/glue_numeric_impl.h: Likewise.
1659 * include/pstl/memory_impl.h: Likewise.
1660 * include/pstl/numeric_fwd.h: Likewise.
1661 * include/pstl/numeric_impl.h: Likewise.
1662 * include/pstl/parallel_backend.h: Likewise.
1663 * include/pstl/parallel_backend_serial.h: Likewise.
1664 * include/pstl/parallel_backend_tbb.h: Likewise.
1665 * include/pstl/parallel_impl.h: Likewise.
1666 * include/pstl/pstl_config.h: Likewise.
1667 * include/pstl/unseq_backend_simd.h: Likewise.
1668 * include/pstl/utils.h: Likewise.
1669 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc:
1671 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc:
1673 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc:
1675 * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc:
1677 * testsuite/25_algorithms/pstl/alg_merge/merge.cc: Likewise.
1678 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc:
1680 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc:
1682 * testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc:
1684 * testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc:
1686 * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc:
1688 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc:
1690 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc:
1692 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc:
1694 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc:
1696 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc:
1698 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc:
1700 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc:
1702 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc:
1704 * testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc:
1706 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc:
1708 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc:
1710 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc:
1712 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc:
1714 * testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc:
1716 * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc:
1718 * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc:
1720 * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc:
1722 * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc:
1724 * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc:
1726 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc:
1728 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc:
1730 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc:
1732 * testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc:
1734 * testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc:
1736 * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc:
1738 * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc:
1740 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc:
1742 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc:
1744 * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc:
1746 * testsuite/25_algorithms/pstl/alg_sorting/includes.cc:
1748 * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc:
1750 * testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc:
1752 * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc:
1754 * testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc:
1756 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc:
1758 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc:
1760 * testsuite/25_algorithms/pstl/alg_sorting/set.cc:
1762 * testsuite/25_algorithms/pstl/alg_sorting/sort.cc:
1764 * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc:
1766 * testsuite/26_numerics/pstl/numeric_ops/reduce.cc:
1768 * testsuite/26_numerics/pstl/numeric_ops/scan.cc:
1770 * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc:
1772 * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc:
1774 * testsuite/util/pstl/test_utils.h:
1777 2023-06-26 Jonathan Wakely <jwakely@redhat.com>
1780 * include/std/format (__format::__parse_integer): Fix buffer
1781 overflow for wide chars.
1782 (formatter<const void*, C>::format): Cast to uintptr_t instead
1784 * testsuite/std/format/string.cc: Test too-large widths.
1786 2023-06-26 Jonathan Wakely <jwakely@redhat.com>
1788 * include/bits/iterator_concepts.h (projected): Replace class
1789 template with alias template denoting an ADL-proofed helper.
1790 (incremental_traits<projected<Iter, Proj>>): Remove.
1791 * testsuite/24_iterators/indirect_callable/projected-adl.cc:
1794 2023-06-26 Jonathan Wakely <jwakely@redhat.com>
1796 * include/debug/helper_functions.h (__get_distance)
1797 (__check_singular, __valid_range_aux, __valid_range): Qualify
1798 calls to disable ADL.
1799 (__check_singular_aux(const _Safe_iterator_base*)): Declare
1800 overload that was previously found via ADL.
1802 2023-06-23 Jonathan Wakely <jwakely@redhat.com>
1804 * include/bits/vector.tcc (_M_realloc_insert): Replace try-block
1807 2023-06-20 Jonathan Wakely <jwakely@redhat.com>
1809 * include/std/array (to_array(T(&)[N])): Remove redundant
1811 (to_array(T(&&)[N])): Remove redundant std::move.
1813 2023-06-16 Alexandre Oliva <oliva@adacore.com>
1815 * testsuite/20_util/from_chars/4.cc: Skip long double on
1818 2023-06-16 Joel Brobecker <brobecker@adacore.com>
1820 * configure.ac ["x${with_newlib}" = "xyes"]: Define
1821 HAVE_HYPOTF. Add compile-checks for various long double
1822 math functions as well.
1823 * configure: Regenerate.
1825 2023-06-14 Jonny Grant <jg@jguk.org>
1827 * doc/xml/manual/extensions.xml: Remove demangle exception
1828 description and include.
1829 * doc/html/manual/ext_demangling.html: Regenerate.
1831 2023-06-10 Hans-Peter Nilsson <hp@axis.com>
1833 * testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc (main)
1834 [! SIMULATOR_TEST]: Also exclude running test05.
1835 * testsuite/27_io/basic_istream/ignore/char/94749.cc: Ditto.
1837 2023-06-09 Ken Matsui <kmatsui@cs.washington.edu>
1839 * include/std/type_traits: Use using instead of typedef
1841 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
1844 * src/c++17/floating_from_chars.cc (from_chars) <_Float128>:
1845 Only define if _Float128 and long double have different
1848 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
1851 * include/experimental/internet [IPPROTO_TCP || IPPROTO_UDP]
1852 (basic_endpoint, basic_resolver_entry, resolver_base)
1853 (basic_resolver_results, basic_resolver): Only define if the tcp
1854 or udp protocols will be defined.
1856 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
1858 * acinclude.m4 (libtool_VERSION): Update to 6.0.33.
1859 * configure: Regenerate.
1860 * doc/xml/manual/abi.xml: Add libstdc++.so.6.0.33.
1861 * doc/html/manual/abi.html: Regenerate.
1863 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
1866 * include/std/format (formatter<const void*, charT>::parse):
1867 Only alow 0 and P for C++26 and non-strict modes.
1868 (formatter<const void*, charT>::format): Use toupper for P
1869 type, and insert zero-fill characters for 0 option.
1870 * testsuite/std/format/functions/format.cc: Check pointer
1871 formatting. Only check P2510R3 extensions conditionally.
1872 * testsuite/std/format/parse_ctx.cc: Only check P2510R3
1873 extensions conditionally.
1875 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
1878 * include/std/array (to_array): Initialize arrays of trivial
1879 types using memcpy. For non-trivial types, use lambda
1880 expressions instead of a separate helper function.
1881 (__to_array): Remove.
1882 * testsuite/23_containers/array/creation/110167.cc: New test.
1884 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
1886 * testsuite/23_containers/deque/modifiers/emplace/52799.cc:
1888 * testsuite/23_containers/deque/modifiers/emplace/const_iterator.cc:
1890 * testsuite/23_containers/list/modifiers/emplace/52799.cc:
1892 * testsuite/23_containers/list/modifiers/emplace/const_iterator.cc:
1894 * testsuite/23_containers/vector/modifiers/emplace/52799.cc:
1896 * testsuite/23_containers/vector/modifiers/emplace/const_iterator.cc:
1898 * testsuite/23_containers/deque/modifiers/emplace/1.cc: New
1900 * testsuite/23_containers/list/modifiers/emplace/1.cc: New
1902 * testsuite/23_containers/vector/modifiers/emplace/1.cc: New
1905 2023-06-07 Jakub Jelinek <jakub@redhat.com>
1908 * testsuite/20_util/to_chars/double.cc: Include <cfloat>.
1909 (double_to_chars_test_cases,
1910 double_scientific_precision_to_chars_test_cases_2,
1911 double_fixed_precision_to_chars_test_cases_2): #if out 1e126, 4.91e-6
1912 and 5.547e-6 tests if FLT_EVAL_METHOD is negative or larger than 1.
1913 Add unconditional tests with corresponding double constants
1914 0x1.7a2ecc414a03fp+418, 0x1.4981285e98e79p-18 and
1915 0x1.7440bbff418b9p-18.
1917 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
1919 * testsuite/util/testsuite_abi.cc (check_version): Re-add
1922 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
1924 * testsuite/18_support/nested_exception/rethrow_if_nested-term.cc:
1925 Require effective target exceptions_enabled instead of using
1927 * testsuite/23_containers/vector/capacity/constexpr.cc: Expect
1928 shrink_to_fit() to be a no-op without exceptions enabled.
1929 * testsuite/23_containers/vector/capacity/shrink_to_fit.cc:
1931 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc:
1932 Require effective target exceptions_enabled.
1933 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc:
1935 * testsuite/ext/mt_allocator/check_allocate_max_size.cc:
1937 * testsuite/ext/new_allocator/check_allocate_max_size.cc:
1939 * testsuite/ext/pool_allocator/check_allocate_max_size.cc:
1941 * testsuite/ext/throw_allocator/check_allocate_max_size.cc:
1944 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
1946 * testsuite/20_util/duration/cons/2.cc: Use values that aren't
1947 affected by rounding.
1948 * testsuite/20_util/from_chars/5.cc: Cast arithmetic result to
1949 double before comparing for equality.
1950 * testsuite/20_util/from_chars/6.cc: Likewise.
1951 * testsuite/20_util/variant/86874.cc: Use values that aren't
1952 affected by rounding.
1953 * testsuite/25_algorithms/lower_bound/partitioned.cc: Compare to
1954 original value instead of to floating-point-literal.
1955 * testsuite/26_numerics/random/discrete_distribution/cons/range.cc:
1956 Cast arithmetic result to double before comparing for equality.
1957 * testsuite/26_numerics/random/piecewise_constant_distribution/cons/range.cc:
1959 * testsuite/26_numerics/random/piecewise_linear_distribution/cons/range.cc:
1961 * testsuite/26_numerics/valarray/transcend.cc (eq): Check that
1962 the absolute difference is less than 0.01 instead of comparing
1963 to two decimal places.
1964 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
1965 Cast arithmetic result to double before comparing for equality.
1966 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
1968 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1970 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/01.cc:
1972 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/09.cc:
1974 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/10.cc:
1976 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
1978 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
1981 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
1983 * configure.ac: Use AS_IF.
1984 * configure: Regenerate.
1986 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
1988 * testsuite/lib/prune.exp (libstdc++-dg-prune): Support
1989 'UNSUPPORTED: [...]: exception handling disabled'.
1991 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
1993 * testsuite/util/testsuite_abi.cc (check_version): Add
1994 CXXABI_1.3.15 symver and make it the latestp. Remove
1995 GLIBCXX_IEEE128_3.4.31 and GLIBCXX_LDBL_3.4.31 from latestp.
1997 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
1998 Jakub Jelinek <jakub@redhat.com>
2001 * include/std/limits: (numeric_limits<__float128>): Define
2002 for __STRICT_ANSI__ as well.
2003 * testsuite/18_support/numeric_limits/128bit.cc: Remove
2004 check for __STRICT_ANSI__.
2006 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
2008 * configure.ac: Use AS_IF.
2009 * configure: Regenerate.
2011 2023-06-06 Matthias Kretz <m.kretz@gsi.de>
2014 * include/experimental/bits/simd_builtin.h (_S_store): Rewrite
2015 to avoid casts to other vector types. Implement store as
2016 succession of power-of-2 sized memcpy to avoid PR90424.
2018 2023-06-06 Matthias Kretz <m.kretz@gsi.de>
2021 * include/experimental/bits/simd_builtin.h (_S_masked_store):
2022 Call into deduced ABI's SimdImpl after conversion.
2023 * include/experimental/bits/simd_x86.h (_S_masked_store_nocvt):
2024 Don't use _mm_maskmoveu_si128. Use the generic fall-back
2025 implementation. Also fix masked stores without SSE2, which
2026 were not doing anything before.
2028 2023-06-06 Matthias Kretz <m.kretz@gsi.de>
2030 * include/experimental/bits/simd.h (__bit_cast): Use
2031 __gnu__::__vector_size__ instead of gnu::vector_size.
2033 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
2036 * include/std/array (__array_traits<T, 0>::operator T*()): Make
2037 conversion operator explicit.
2038 (array::front): Use size_type as subscript operand.
2039 (array::data): Use static_cast to make conversion explicit.
2040 * testsuite/23_containers/array/element_access/110139.cc: New
2043 2023-06-06 Joseph Faulls <Joseph.Faulls@imgtec.com>
2045 * include/bits/locale_classes.tcc: Remove check for
2046 codecvt<char8_t, char, mbstate_t> facet.
2048 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
2050 * src/filesystem/ops-common.h (do_copy_file) [O_CLOEXEC]: Set
2051 close-on-exec flag on file descriptors.
2053 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
2056 * src/filesystem/ops-common.h (do_copy_file): Check for empty
2057 files by trying to read a character.
2058 * testsuite/27_io/filesystem/operations/copy_file_108178.cc:
2061 2023-06-06 Jannik Glückert <jannik.glueckert@gmail.com>
2063 * acinclude.m4 (_GLIBCXX_USE_COPY_FILE_RANGE): Define.
2064 * config.h.in: Regenerate.
2065 * configure: Regenerate.
2066 * src/filesystem/ops-common.h (copy_file_copy_file_range):
2067 Define new function.
2068 (do_copy_file): Use it.
2070 2023-06-06 Jannik Glückert <jannik.glueckert@gmail.com>
2072 * acinclude.m4 (_GLIBCXX_HAVE_LSEEK): Define.
2073 * config.h.in: Regenerate.
2074 * configure: Regenerate.
2075 * src/filesystem/ops-common.h (copy_file_sendfile): Define new
2076 function for sendfile logic. Loop to support large files. Skip
2078 (do_copy_file): Use it.
2080 2023-06-04 Jason Merrill <jason@redhat.com>
2083 * libsupc++/eh_call.cc (__cxa_call_terminate): Take void*.
2084 * config/abi/pre/gnu.ver: Add it.
2086 2023-06-02 François Dumont <fdumont@gcc.gnu.org>
2088 * include/parallel/algobase.h: Include <parallel/search.h>.
2090 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
2092 * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc:
2093 Add const to equality operator.
2095 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
2097 * include/std/expected (expected::and_then, expected::or_else)
2098 (expected::transform_error): Use _M_val and _M_unex instead of
2099 calling value() and error(), as per LWG 3938.
2100 (expected::transform): Likewise. Remove incorrect std::move
2101 calls from lvalue overloads.
2102 (expected<void, E>::and_then, expected<void, E>::or_else)
2103 (expected<void, E>::transform): Use _M_unex instead of calling
2105 * testsuite/20_util/expected/lwg3877.cc: Add checks for and_then
2106 and transform, and for std::expected<void, E>.
2107 * testsuite/20_util/expected/lwg3938.cc: New test.
2109 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
2112 * include/bits/stl_vector.h (_Vector_base::_M_invariant):
2114 (vector::size, vector::capacity): Remove calls to _M_invariant.
2115 * include/bits/vector.tcc (vector::_M_fill_assign): Add
2116 optimization hint to reallocating path.
2117 (vector::_M_assign_aux(FwdIter, FwdIter, forward_iterator_tag)):
2119 * testsuite/23_containers/vector/capacity/invariant.cc: Moved
2121 * testsuite/23_containers/vector/modifiers/assign/no_realloc.cc:
2122 ...here. Check assign(FwdIter, FwdIter) too.
2123 * testsuite/23_containers/vector/types/1.cc: Revert addition
2124 of -Wno-stringop-overread option.
2126 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
2128 * doc/xml/manual/evolution.xml: Document removal of implicit
2129 allocator rebinding extensions in strict mode and for C++20.
2130 * doc/html/*: Regenerate.
2132 2023-06-01 Jason Merrill <jason@redhat.com>
2134 * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Don't check
2135 handlers in the cleanup phase.
2137 2023-06-01 Matthias Kretz <m.kretz@gsi.de>
2140 * include/experimental/bits/simd.h (__vectorized_sizeof): With
2141 __have_neon_a32 only single-precision float works (in addition
2144 2023-06-01 François Dumont <fdumont@gcc.gnu.org>
2146 * include/bits/stl_algo.h
2147 (std::__search, std::search(_FwdIt1, _FwdIt1, _FwdIt2, _FwdIt2, _BinPred)): Move...
2148 * include/bits/stl_algobase.h: ...here.
2149 * include/std/functional: Replace <stl_algo.h> include by <stl_algobase.h>.
2150 * include/parallel/algo.h (std::__parallel::search<_FIt1, _FIt2, _BinaryPred>)
2151 (std::__parallel::__search_switch<_FIt1, _FIt2, _BinaryPred, _ItTag1, _ItTag2>):
2153 * include/parallel/algobase.h: ...here.
2154 * include/experimental/functional: Remove <bits/stl_algo.h> and <parallel/algorithm>
2155 includes. Include <bits/stl_algobase.h>.
2157 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2160 * acinclude.m4 (GLIBCXX_ENABLE_C99): Add separate check for
2161 float_t and double_t and define HAVE_C99_FLT_EVAL_TYPES.
2162 * config.h.in: Regenerate.
2163 * configure: Regenerate.
2164 * include/c_global/cmath (float_t, double_t): Guard using new
2165 _GLIBCXX_HAVE_C99_FLT_EVAL_TYPES macro.
2167 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2169 * acinclude.m4 (GLIBCXX_ENABLE_C99): Add checks for C99 math
2170 functions and define _GLIBCXX_USE_C99_MATH_FUNCS. Move checks
2171 for C99 rounding functions to here.
2172 (GLIBCXX_CHECK_C99_TR1): Remove checks for C99 rounding
2173 functions from here.
2174 * config.h.in: Regenerate.
2175 * configure: Regenerate.
2176 * include/bits/random.h: Use _GLIBCXX_USE_C99_MATH_FUNCS instead
2177 of _GLIBCXX_USE_C99_MATH_TR1.
2178 * include/bits/random.tcc: Likewise.
2179 * include/c_compatibility/math.h: Likewise.
2180 * include/c_global/cmath: Likewise.
2181 * include/ext/random: Likewise.
2182 * include/ext/random.tcc: Likewise.
2183 * include/std/complex: Likewise.
2184 * testsuite/20_util/from_chars/4.cc: Likewise.
2185 * testsuite/20_util/from_chars/8.cc: Likewise.
2186 * testsuite/26_numerics/complex/proj.cc: Likewise.
2187 * testsuite/26_numerics/headers/cmath/60401.cc: Likewise.
2188 * testsuite/26_numerics/headers/cmath/types_std_c++0x.cc:
2190 * testsuite/lib/libstdc++.exp (check_v3_target_cstdint):
2192 * testsuite/util/testsuite_random.h: Likewise.
2194 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2196 * include/bits/stl_vector.h (_Vector_base::_M_invariant()): New
2198 (vector::size(), vector::capacity()): Call _M_invariant().
2199 * testsuite/23_containers/vector/capacity/invariant.cc: New test.
2200 * testsuite/23_containers/vector/types/1.cc: Add suppression for
2201 false positive warning (PR110060).
2203 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2206 * src/c++17/floating_from_chars.cc: Check __FLT128_MANT_DIG__ is
2207 defined before trying to use _Float128.
2209 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2211 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Fix for 32-bit pointers
2212 to check __INT_PTR_WIDTH__ instead of sizeof(void*).
2213 * configure: Regenerate.
2215 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2217 * include/bits/unique_lock.h: Include <bits/error_constants.h>
2218 here for std::errc constants.
2219 * include/std/mutex: Do not include <bits/error_constants.h> and
2222 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2224 * configure.ac: Replace use of -o operator for test.
2225 * configure: Regenerate.
2227 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2229 * include/std/scoped_allocator (scoped_allocator_adaptor): Add
2230 noexcept to all constructors except the default constructor.
2231 (scoped_allocator_adaptor::inner_allocator): Add noexcept.
2232 (scoped_allocator_adaptor::outer_allocator): Likewise.
2233 * testsuite/20_util/scoped_allocator/noexcept.cc: New test.
2235 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2238 * include/std/limits (numeric_limits<__float128>): Define.
2239 * testsuite/18_support/numeric_limits/128bit.cc: New test.
2241 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2243 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Extend logic for avr and
2244 msp430 to all 16-bit targets.
2245 * configure: Regenerate.
2247 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2250 * src/c++17/floating_from_chars.cc (USE_STRTOF128_FOR_FROM_CHARS):
2251 Only define when USE_STRTOD_FOR_FROM_CHARS is also defined.
2252 (USE_STRTOD_FOR_FROM_CHARS): Do not undefine when long double is
2254 (from_chars(const char*, const char*, double&, chars_format)):
2255 Check __LDBL_MANT_DIG__ == __DBL_MANT_DIG__ here.
2256 (from_chars(const char*, const char*, _Float128&, chars_format))
2257 Only use from_chars_strtod when USE_STRTOD_FOR_FROM_CHARS is
2258 defined, otherwise parse a long double and convert to _Float128.
2260 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2263 * include/std/iomanip (operator>>(basic_istream&, _Setfill)):
2264 Add deprecated attribute to non-standard overload.
2265 * doc/xml/manual/evolution.xml: Document deprecation.
2266 * doc/html/*: Regenerate.
2267 * testsuite/27_io/manipulators/standard/char/1.cc: Add
2268 dg-warning for expected deprecated warning.
2269 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
2270 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
2271 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
2273 2023-05-30 Alexandre Oliva <oliva@adacore.com>
2275 * testsuite/20_util/from_chars/4.cc: Skip long double test06
2277 * testsuite/20_util/to_chars/long_double.cc: Xfail run on
2280 2023-05-30 Matthias Kretz <m.kretz@gsi.de>
2283 * include/experimental/bits/simd.h (to_native): Use int NTTP
2284 as specified in PTS2.
2285 (to_compatible): Likewise. Add missing tag to call mask
2287 * testsuite/experimental/simd/pr109822_cast_functions.cc: New
2290 2023-05-30 Matthias Kretz <m.kretz@gsi.de>
2292 * testsuite/experimental/simd/tests/integer_operators.cc:
2293 Compute expected value differently to avoid getting turned into
2296 2023-05-30 Matthias Kretz <m.kretz@gsi.de>
2298 * testsuite/experimental/simd/tests/operator_cvt.cc: Make long
2299 double <-> (u)long conversion tests conditional on sizeof(long
2300 double) and sizeof(long).
2302 2023-05-26 Matthias Kretz <m.kretz@gsi.de>
2304 * include/experimental/bits/simd_ppc.h (_S_bit_shift_left):
2305 Negative __y is UB, so prefer signed compare.
2307 2023-05-25 Jonathan Wakely <jwakely@redhat.com>
2309 * testsuite/util/testsuite_allocator.h (PointerBase): Add
2310 relational operators.
2312 2023-05-25 Alexandre Oliva <oliva@adacore.com>
2314 * testsuite/20_util/to_chars/long_double.cc: Expect execution
2315 fail on x86-vxworks.
2317 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
2320 * include/experimental/bits/simd.h (__intrinsic_type): If
2321 __ALTIVEC__ is defined, map gnu::vector_size types to their
2322 corresponding __vector T types without losing unsignedness of
2323 integer types. Also prefer long long over long.
2324 * include/experimental/bits/simd_ppc.h (_S_popcount): Cast mask
2325 object to the expected unsigned vector type.
2327 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
2330 * include/experimental/bits/simd.h (__intrinsic_type):
2331 Specialize __intrinsic_type<double, 8> and
2332 __intrinsic_type<double, 16> in any case, but provide the member
2333 type only with __aarch64__.
2335 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
2338 * include/experimental/bits/simd_neon.h (_S_reduce): Add
2339 constexpr and make NEON implementation conditional on
2340 not __builtin_is_constant_evaluated.
2342 2023-05-23 Matthias Kretz <m.kretz@gsi.de>
2345 * include/experimental/bits/simd.h (_SimdWrapper::_M_set):
2346 Avoid vector builtin subscripting in constant expressions.
2347 (resizing_simd_cast): Avoid memcpy if constant_evaluated.
2348 (const_where_expression, where_expression, where)
2349 (__extract_part, simd_mask, _SimdIntOperators, simd): Add either
2350 _GLIBCXX_SIMD_CONSTEXPR (on public APIs), or constexpr (on
2352 * include/experimental/bits/simd_builtin.h (__vector_permute)
2353 (__vector_shuffle, __extract_part, _GnuTraits::_SimdCastType1)
2354 (_GnuTraits::_SimdCastType2, _SimdImplBuiltin)
2355 (_MaskImplBuiltin::_S_store): Add constexpr.
2356 (_CommonImplBuiltin::_S_store_bool_array)
2357 (_SimdImplBuiltin::_S_load, _SimdImplBuiltin::_S_store)
2358 (_SimdImplBuiltin::_S_reduce, _MaskImplBuiltin::_S_load): Add
2359 constant_evaluated case.
2360 * include/experimental/bits/simd_fixed_size.h
2361 (_S_masked_load): Reword comment.
2362 (__tuple_element_meta, __make_meta, _SimdTuple::_M_apply_r)
2363 (_SimdTuple::_M_subscript_read, _SimdTuple::_M_subscript_write)
2364 (__make_simd_tuple, __optimize_simd_tuple, __extract_part)
2365 (__autocvt_to_simd, _Fixed::__traits::_SimdBase)
2366 (_Fixed::__traits::_SimdCastType, _SimdImplFixedSize): Add
2368 (_SimdTuple::operator[], _M_set): Add constexpr and add
2369 constant_evaluated case.
2370 (_MaskImplFixedSize::_S_load): Add constant_evaluated case.
2371 * include/experimental/bits/simd_scalar.h: Add constexpr.
2372 * include/experimental/bits/simd_x86.h (_CommonImplX86): Add
2373 constexpr and add constant_evaluated case.
2374 (_SimdImplX86::_S_equal_to, _S_not_equal_to, _S_less)
2375 (_S_less_equal): Value-initialize to satisfy constexpr
2377 (_MaskImplX86::_S_load): Add constant_evaluated case.
2378 (_MaskImplX86::_S_store): Add constexpr and constant_evaluated
2379 case. Value-initialize local variables.
2380 (_MaskImplX86::_S_logical_and, _S_logical_or, _S_bit_not)
2381 (_S_bit_and, _S_bit_or, _S_bit_xor): Add constant_evaluated
2383 * testsuite/experimental/simd/pr109261_constexpr_simd.cc: New
2386 2023-05-22 Matthias Kretz <m.kretz@gsi.de>
2388 * include/experimental/bits/simd_builtin.h (_S_fpclassify): Move
2389 __infn into #ifdef'ed block.
2390 * testsuite/experimental/simd/tests/fpclassify.cc: Declare
2391 constants only when used.
2392 * testsuite/experimental/simd/tests/frexp.cc: Likewise.
2393 * testsuite/experimental/simd/tests/logarithm.cc: Likewise.
2394 * testsuite/experimental/simd/tests/trunc_ceil_floor.cc:
2396 * testsuite/experimental/simd/tests/ldexp_scalbn_scalbln_modf.cc:
2397 Move totest and expect1 into #ifdef'ed block.
2399 2023-05-19 Gerald Pfeifer <gerald@pfeifer.com>
2401 * doc/xml/manual/strings.xml: Move lafstern.org reference to https.
2402 * doc/html/manual/strings.html: Regenerate.
2404 2023-05-17 Jakub Jelinek <jakub@redhat.com>
2407 * testsuite/26_numerics/headers/cmath/constexpr_std_c++23.cc: New test.
2409 2023-05-17 Jakub Jelinek <jakub@redhat.com>
2412 * include/c_global/cmath (atan2, fmod, pow): Move
2413 __gnu_cxx::__promote_2 using templates after _Float{16,32,64,128} and
2414 __gnu_cxx::__bfloat16_t overloads.
2415 (copysign, fdim, fmax, fmin, hypot, nextafter, remainder, remquo):
2417 (fma): Move __gnu_cxx::__promote_3 using template after
2418 _Float{16,32,64,128} and __gnu_cxx::__bfloat16_t overloads.
2420 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
2422 * testsuite/18_support/headers/limits/synopsis.cc: Uncomment
2423 checks for float_round_style and float_denorm_style.
2425 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
2427 * include/bits/c++config: Add system_header pragma.
2429 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
2431 * include/std/expected (expected::and_then, expected::or_else)
2432 (expected::transform, expected::transform_error): Fix exception
2433 specifications as per LWG 3877.
2434 (expected<void, E>::and_then, expected<void, E>::transform):
2436 * testsuite/20_util/expected/lwg3877.cc: New test.
2438 2023-05-17 Ken Matsui <kmatsui@cs.washington.edu>
2440 * include/std/type_traits: Use __bool_constant instead of
2443 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
2445 * configure: Regenerate.
2447 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2450 * acinclude.m4 (GLIBCXX_CHECK_ALIGNAS_CACHELINE): Define.
2451 * config.h.in: Regenerate.
2452 * configure: Regenerate.
2453 * configure.ac: Use GLIBCXX_CHECK_ALIGNAS_CACHELINE.
2454 * src/c++11/shared_ptr.cc (__gnu_internal::get_mutex): Do not
2455 align lock table if not supported. use __GCC_DESTRUCTIVE_SIZE
2456 instead of hardcoded 64.
2458 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2460 * acinclude.m4 (GLIBCXX_USE_C99): Check for isblank in C++11
2461 mode and define _GLIBCXX_USE_C99_CTYPE. Check for <fenv.h>
2462 functions in C++11 mode and define _GLIBCXX_USE_C99_FENV.
2463 * config.h.in: Regenerate.
2464 * configure: Regenerate.
2465 * include/c_compatibility/fenv.h: Check _GLIBCXX_USE_C99_FENV
2466 instead of _GLIBCXX_USE_C99_FENV_TR1.
2467 * include/c_global/cfenv: Likewise.
2468 * include/c_global/cctype: Check _GLIBCXX_USE_C99_CTYPE instead
2469 of _GLIBCXX_USE_C99_CTYPE_TR1.
2471 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2473 * acinclude.m4 (GLIBCXX_USE_C99): Check for <stdint.h> types in
2474 C++11 mode and define _GLIBCXX_USE_C99_STDINT. Check for
2475 <inttypes.h> features in C++11 mode and define
2476 _GLIBCXX_USE_C99_INTTYPES and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T.
2477 * config.h.in: Regenerate.
2478 * configure: Regenerate.
2479 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macros.
2480 * include/bits/chrono.h: Check _GLIBCXX_USE_C99_STDINT instead
2481 of _GLIBCXX_USE_C99_STDINT_TR1.
2482 * include/c_compatibility/inttypes.h: Check
2483 _GLIBCXX_USE_C99_INTTYPES and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T
2484 instead of _GLIBCXX_USE_C99_INTTYPES_TR1 and
2485 _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
2486 * include/c_compatibility/stdatomic.h: Check
2487 _GLIBCXX_USE_C99_STDINT instead of _GLIBCXX_USE_C99_STDINT_TR1.
2488 * include/c_compatibility/stdint.h: Likewise.
2489 * include/c_global/cinttypes: Check _GLIBCXX_USE_C99_INTTYPES
2490 and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T instead of
2491 _GLIBCXX_USE_C99_INTTYPES_TR1 and
2492 _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
2493 * include/c_global/cstdint: Check _GLIBCXX_USE_C99_STDINT
2494 instead of _GLIBCXX_USE_C99_STDINT_TR1.
2495 * include/std/atomic: Likewise.
2496 * src/c++11/cow-stdexcept.cc: Likewise.
2497 * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc:
2499 * testsuite/lib/libstdc++.exp (check_v3_target_cstdint):
2502 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2504 * acinclude.m4 (GLIBCXX_USE_C99): Check for complex inverse trig
2505 functions in C++11 mode and define _GLIBCXX_USE_C99_COMPLEX_ARC.
2506 * config.h.in: Regenerate.
2507 * configure: Regenerate.
2508 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macro.
2509 * include/std/complex: Check _GLIBCXX_USE_C99_COMPLEX_ARC
2510 instead of _GLIBCXX_USE_C99_COMPLEX_TR1.
2512 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2514 * testsuite/ext/debug_allocator/check_deallocate_null.cc: Add
2515 assertion to ensure expected exception is throw.
2517 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2519 * testsuite/libstdc++-prettyprinters/chrono.cc: Only test
2520 printer for chrono::zoned_time for cx11 ABI and tzdb effective
2523 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2525 * acinclude.m4 (GLIBCXX_CHECK_PTHREAD_MUTEX_CLOCKLOCK): Define
2526 _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK in terms of _GLIBCXX_TSAN.
2527 * configure: Regenerate.
2529 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2531 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Use a non-null pointer
2532 to check for nan, nanf, and nanl.
2533 * configure: Regenerate.
2535 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2537 * include/bits/char_traits.h (char_traits<char16_t>): Do not
2538 depend on _GLIBCXX_USE_C99_STDINT_TR1.
2539 (char_traits<char32_t>): Likewise.
2540 * include/experimental/source_location: Likewise.
2542 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2544 * include/std/atomic (atomic_int_least8_t, atomic_uint_least8_t)
2545 (atomic_int_least16_t, atomic_uint_least16_t)
2546 (atomic_int_least32_t, atomic_uint_least32_t)
2547 (atomic_int_least64_t, atomic_uint_least64_t)
2548 (atomic_int_fast16_t, atomic_uint_fast16_t)
2549 (atomic_int_fast32_t, atomic_uint_fast32_t)
2550 (atomic_int_fast64_t, atomic_uint_fast64_t)
2551 (atomic_intmax_t, atomic_uintmax_t): Define unconditionally.
2552 * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc: Adjust.
2554 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2556 * include/bits/algorithmfwd.h (shuffle): Do not depend on
2557 _GLIBCXX_USE_C99_STDINT_TR1.
2558 * include/bits/ranges_algo.h (shuffle): Likewise.
2559 * include/bits/stl_algo.h (shuffle): Likewise.
2560 * include/ext/random: Likewise.
2561 * include/ext/throw_allocator.h (random_condition): Likewise.
2562 * include/std/random: Likewise.
2563 * src/c++11/cow-string-inst.cc: Likewise.
2564 * src/c++11/random.cc: Likewise.
2566 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2568 * testsuite/experimental/feat-cxx14.cc: Remove dependency on
2569 _GLIBCXX_USE_C99_STDINT_TR1.
2571 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2573 * testsuite/22_locale/locale/cons/unicode.cc: Remove dependency
2574 on _GLIBCXX_USE_C99_STDINT_TR1.
2576 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2578 * testsuite/21_strings/basic_string_view/typedefs.cc: Remove
2579 dependency on _GLIBCXX_USE_C99_STDINT_TR1.
2580 * testsuite/experimental/string_view/typedefs.cc: Likewise.
2582 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
2584 * src/c++17/floating_from_chars.cc [USE_STRTOD_FOR_FROM_CHARS]
2585 (auto_locale, auto_ferounding): New class types.
2586 (from_chars_impl): Use auto_locale and auto_ferounding.
2588 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
2591 * include/std/chrono (hh_mm_ss::__fits): Remove variable
2593 (hh_mm_ss::__subseconds): Remove __fits from constraints.
2594 * testsuite/std/time/hh_mm_ss/109772.cc: New test.
2595 * testsuite/std/time/hh_mm_ss/1.cc: Adjust expected size for
2596 hh_mm_ss<duration<int, std::pico>>.
2598 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
2600 * config/abi/pre/gnu.ver: Export basic_string::_S_allocate.
2601 * include/bits/basic_ios.h: Add static assertion checking
2602 traits_type::value_type.
2603 * include/bits/basic_string.h: Likewise. Do not rebind
2604 allocator, and add static assertion checking its value_type.
2605 (basic_string::_Alloc_traits_impl): Remove class template.
2606 (basic_string::_S_allocate): New static member function.
2607 (basic_string::assign): Use _S_allocate.
2608 * include/bits/basic_string.tcc (basic_string::_M_create)
2609 (basic_string::reserve, basic_string::_M_replace): Likewise.
2610 * testsuite/21_strings/basic_string/requirements/explicit_instantiation/debug.cc:
2611 Disable for C++20 and later.
2612 * testsuite/21_strings/basic_string/requirements/explicit_instantiation/int.cc:
2615 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
2618 * include/bits/std_abs.h (abs(__float128)): Handle negative NaN
2619 and negative zero correctly.
2620 * testsuite/26_numerics/headers/cmath/109758.cc: New test.
2622 2023-05-10 François Dumont <fdumont@gcc.gnu.org>
2624 * include/bits/hashtable_policy.h
2625 (_NodeBuilder<>::_S_build): Use __node_ptr.
2626 (_ReuseOrAllocNode<>): Use __node_ptr in place of __node_type*.
2627 (_AllocNode<>): Likewise.
2628 (_Equality<>::_M_equal): Remove const_iterator usages. Only preserved
2629 to call std::is_permutation in the non-unique key implementation.
2630 * include/bits/hashtable.h (_Hashtable<>::_M_update_begin()): Capture
2632 (_Hashtable<>::_M_bucket_begin(size_type)): Implement implicitly inline.
2633 (_Hashtable<>::_M_insert_bucket_begin): Likewise.
2634 (_Hashtable<>::_M_remove_bucket_begin): Likewise.
2635 (_Hashtable<>::_M_compute_hash_code): Use __node_ptr rather than
2637 (_Hashtable<>::find): Likewise.
2638 (_Hashtable<>::_M_emplace): Likewise.
2639 (_Hashtable<>::_M_insert_unique): Likewise.
2641 2023-05-09 Jonathan Wakely <jwakely@redhat.com>
2643 * python/libstdcxx/v6/printers.py (StdChronoDurationPrinter):
2644 Print floating-point durations correctly.
2645 (StdChronoTimePointPrinter): Support printing only the value,
2646 not the type name. Uncomment handling for known clocks.
2647 (StdChronoZonedTimePrinter): Remove type names from output.
2648 (StdChronoCalendarPrinter): Fix hh_mm_ss member access.
2649 (StdChronoTimeZonePrinter): Add equals sign to output.
2650 * testsuite/libstdc++-prettyprinters/chrono.cc: New test.
2652 2023-05-05 Alexandre Oliva <oliva@adacore.com>
2654 * testsuite/20_util/from_chars/4.cc: Skip long double test06
2656 * testsuite/20_util/to_chars/long_double.cc: Xfail run on
2659 2023-05-04 Jonathan Wakely <jwakely@redhat.com>
2661 * doc/xml/manual/abi.xml (abi.versioning.history): Document
2662 libstdc++.so.6.0.32 and GLIBCXX_3.4.32 version.
2663 * doc/html/manual/abi.html: Regenerate.
2665 2023-05-04 Florian Weimer <fweimer@redhat.com>
2667 * doc/xml/manual/abi.xml (abi.versioning.history): Add
2668 GCC_7.0.0, GCC_9.0.0, GCC_11.0, GCC_12.0.0, GCC_13.0.0 for
2671 2023-05-03 Jakub Jelinek <jakub@redhat.com>
2673 * src/c++17/floating_from_chars.cc
2674 (_ZSt10from_charsPKcS0_RDF128_St12chars_format): New alias to
2675 _ZSt10from_charsPKcS0_Ru9__ieee128St12chars_format.
2676 * src/c++17/floating_to_chars.cc (_ZSt8to_charsPcS_DF128_): New alias to
2677 _ZSt8to_charsPcS_u9__ieee128.
2678 (_ZSt8to_charsPcS_DF128_St12chars_format): New alias to
2679 _ZSt8to_charsPcS_u9__ieee128St12chars_format.
2680 (_ZSt8to_charsPcS_DF128_St12chars_formati): New alias to
2681 _ZSt8to_charsPcS_u9__ieee128St12chars_formati.
2682 * config/abi/post/powerpc64le-linux-gnu/baseline_symbols.txt: Updated.
2684 2023-05-03 Jakub Jelinek <jakub@redhat.com>
2686 * configure.host (abi_baseline_pair): Use powerpc64le-linux-gnu
2687 rather than powerpc64-linux-gnu for powerpc64le*-linux*.
2688 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Remove
2689 _ZTI*DF128_, _ZTI*DF64x symbols and symbols in
2690 GLIBCXX_IEEE128_3.4.{29,30,31} and CXXABI_IEEE128_1.3.13 symbol
2692 * config/abi/post/powerpc64le-linux-gnu/baseline_symbols.txt: New
2695 2023-05-03 Kefu Chai <kefu.chai@scylladb.com>
2696 Jonathan Wakely <jwakely@redhat.com>
2699 * include/bits/basic_string.h (basic_string(Iter, Iter, Alloc)):
2700 Initialize _M_string_length.
2702 2023-05-02 Jakub Jelinek <jakub@redhat.com>
2704 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
2705 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
2706 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
2707 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
2708 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
2709 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
2710 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
2711 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
2713 2023-05-02 Jakub Jelinek <jakub@redhat.com>
2716 * src/c++98/ios_init.cc: Add #pragma GCC diagnostic ignored for
2719 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
2721 * include/bits/random.h (gamma_distribution): Add to the right
2723 (discrete_distribution, piecewise_constant_distribution)
2724 (piecewise_linear_distribution): Create a new doxygen group and
2725 fix the incomplete doxygen comments.
2726 * include/bits/uniform_int_dist.h (uniform_int_distribution):
2727 Add to doxygen group.
2729 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
2731 * include/bits/uses_allocator.h: Add missing @file comment.
2732 * include/bits/regex.tcc: Remove stray doxygen comments.
2733 * include/experimental/memory_resource: Likewise.
2734 * include/std/bit: Tweak doxygen @cond comments.
2735 * include/std/expected: Likewise.
2736 * include/std/numbers: Likewise.
2738 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
2740 * doc/doxygen/user.cfg.in (STRIP_FROM_PATH): Remove prefixes
2743 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
2745 * include/bits/move.h: Simplify opening/closing namespace std.
2747 2023-04-28 Jakub Jelinek <jakub@redhat.com>
2750 * config/abi/pre/gnu.ver (GLIBCXX_3.4.32): Export
2751 _ZSt21ios_base_library_initv.
2752 * testsuite/util/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.32
2753 symver and make it the latestp.
2754 * src/c++98/ios_init.cc (ios_base_library_init): New alias.
2755 * acinclude.m4 (libtool_VERSION): Change to 6:32:0.
2756 * include/std/iostream: If init_priority attribute is supported
2757 and _GLIBCXX_SYMVER_GNU, force undefined _ZSt21ios_base_library_initv
2758 symbol into the object.
2759 * configure: Regenerated.
2761 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
2763 * include/bits/mofunc_impl.h: Fix typo in doxygen comment.
2764 * include/std/format: Likewise.
2766 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
2768 * doc/doxygen/user.cfg.in (FORMULA_TRANSPARENT, DOT_FONTNAME)
2769 (DOT_FONTSIZE, DOT_TRANSPARENT): Remove obsolete options.
2771 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
2773 * doc/doxygen/user.cfg.in (SOURCE_BROWSER): Only set to YES for
2775 * include/bits/gslice_array.h (_DEFINE_VALARRAY_OPERATOR): Omit
2777 * include/bits/indirect_array.h (_DEFINE_VALARRAY_OPERATOR):
2779 * include/bits/mask_array.h (_DEFINE_VALARRAY_OPERATOR):
2781 * include/bits/slice_array.h (_DEFINE_VALARRAY_OPERATOR):
2783 * include/std/valarray (_DEFINE_VALARRAY_UNARY_OPERATOR)
2784 (_DEFINE_VALARRAY_AUGMENTED_ASSIGNMENT)
2785 (_DEFINE_VALARRAY_EXPR_AUGMENTED_ASSIGNMENT)
2786 (_DEFINE_BINARY_OPERATOR): Likewise.
2788 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
2790 * include/bits/memory_resource.h: Improve doxygen comments.
2791 * include/std/memory_resource: Likewise.
2793 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
2796 * include/bits/basic_string.h: Improve doxygen comments.
2797 * include/bits/cow_string.h: Likewise.
2798 * include/bits/forward_list.h: Likewise.
2799 * include/bits/fs_dir.h: Likewise.
2800 * include/bits/fs_path.h: Likewise.
2801 * include/bits/quoted_string.h: Likewise.
2802 * include/bits/stl_bvector.h: Likewise.
2803 * include/bits/stl_map.h: Likewise.
2804 * include/bits/stl_multimap.h: Likewise.
2805 * include/bits/stl_multiset.h: Likewise.
2806 * include/bits/stl_set.h: Likewise.
2807 * include/bits/stl_vector.h: Likewise.
2808 * include/bits/unordered_map.h: Likewise.
2809 * include/bits/unordered_set.h: Likewise.
2810 * include/std/filesystem: Likewise.
2811 * include/std/iomanip: Likewise.
2813 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
2816 * src/c++11/random.cc (__throw_syserr): New function.
2817 (random_device::_M_init, random_device::_M_init_pretr1): Use new
2818 function for bad tokens.
2819 (random_device::_M_getval): Use new function for read errors.
2820 * testsuite/util/testsuite_random.h (random_device_available):
2821 Change catch handler to use std::system_error.
2823 2023-04-24 Patrick Palka <ppalka@redhat.com>
2825 * include/bits/max_size_type.h (__max_diff_type::operator>>=):
2826 Fix propagation of sign bit.
2827 * testsuite/std/ranges/iota/max_size_type.cc: Avoid using the
2828 non-standard 'signed typedef-name'. Add some compile-time tests
2829 for right-shifting a negative __max_diff_type value by more than
2832 2023-04-19 Patrick Palka <ppalka@redhat.com>
2833 Jonathan Wakely <jwakely@redhat.com>
2836 * include/bits/utility.h (_Nth_type): Conditionally define in
2837 terms of __type_pack_element if available.
2838 * testsuite/20_util/tuple/element_access/get_neg.cc: Prune
2839 additional errors from the new built-in.
2841 2023-04-19 Jonathan Wakely <jwakely@redhat.com>
2844 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
2847 * src/Makefile.am: Move globals_io.cc to here.
2848 * src/Makefile.in: Regenerate.
2849 * src/c++98/Makefile.am: Remove globals_io.cc from here.
2850 * src/c++98/Makefile.in: Regenerate.
2851 * src/c++98/globals_io.cc [_GLIBCXX_SYMVER_GNU] (cin): Adjust
2852 symbol name and then export with GLIBCXX_3.4.31 symver.
2853 (cout, cerr, clog, wcin, wcout, wcerr, wclog): Likewise.
2854 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt:
2856 * config/abi/post/i486-linux-gnu/baseline_symbols.txt:
2858 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt:
2860 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
2862 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
2864 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
2866 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt:
2868 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt:
2870 * config/abi/pre/gnu.ver: Add iostream objects to new symver.
2872 2023-04-19 Jonathan Wakely <jwakely@redhat.com>
2875 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
2878 * config/abi/pre/gnu.ver: Fix preprocessor condition.
2880 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
2882 * doc/xml/manual/extensions.xml: Fix example to declare and
2883 qualify std::free, and use NULL instead of 0.
2884 * doc/html/manual/ext_demangling.html: Regenerate.
2885 * libsupc++/cxxabi.h: Adjust doxygen comments.
2887 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
2890 * config/abi/pre/gnu.ver: Fix preprocessor condition.
2892 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
2895 * src/Makefile.am: Move globals_io.cc to here.
2896 * src/Makefile.in: Regenerate.
2897 * src/c++98/Makefile.am: Remove globals_io.cc from here.
2898 * src/c++98/Makefile.in: Regenerate.
2899 * src/c++98/globals_io.cc [_GLIBCXX_SYMVER_GNU] (cin): Adjust
2900 symbol name and then export with GLIBCXX_3.4.31 symver.
2901 (cout, cerr, clog, wcin, wcout, wcerr, wclog): Likewise.
2902 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt:
2904 * config/abi/post/i486-linux-gnu/baseline_symbols.txt:
2906 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt:
2908 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
2910 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
2912 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
2914 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt:
2916 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt:
2918 * config/abi/pre/gnu.ver: Add iostream objects to new symver.
2920 2023-04-18 Patrick Palka <ppalka@redhat.com>
2923 * include/bits/ranges_cmp.h (__cpp_lib_ranges): Bump value
2925 * include/std/ranges (range_adaptor_closure): Define for C++23.
2926 * include/std/version (__cpp_lib_ranges): Bump value for
2928 * testsuite/std/ranges/version_c++23.cc: Bump expected value
2929 of __cpp_lib_ranges.
2930 * testsuite/std/ranges/range_adaptor_closure.cc: New test.
2932 2023-04-18 Patrick Palka <ppalka@redhat.com>
2934 * include/bits/ranges_algo.h (__cpp_lib_ranges_contains):
2936 (__cpp_lib_ranges_iota): Likewise.
2937 (__cpp_lib_ranges_find_last): Likewise.
2938 (__cpp_lib_fold): Rename to ...
2939 (__cpp_lib_ranges_fold): ... this.
2940 * include/std/version: As above.
2941 * testsuite/25_algorithms/fold_left/1.cc: Adjust after
2942 renaming __cpp_lib_fold.
2943 * testsuite/std/ranges/version_c++23.cc: Verify values
2944 of the above feature-test macros.
2946 2023-04-18 Patrick Palka <ppalka@redhat.com>
2949 * include/std/ranges (views::_AsConst::operator()): Add
2950 missing const to constant_range test.
2951 * testsuite/std/ranges/adaptors/as_const/1.cc (test02):
2952 Improve formatting. Adjust expected type of v2.
2955 2023-04-14 Patrick Palka <ppalka@redhat.com>
2957 * include/bits/ranges_base.h (const_iterator_t): Define for C++23.
2958 (const_sentinel_t): Likewise.
2959 (range_const_reference_t): Likewise.
2960 (constant_range): Likewise.
2961 (__cust_access::__possibly_const_range): Likewise, replacing ...
2962 (__cust_access::__as_const): ... this.
2963 (__cust_access::_CBegin::operator()): Redefine for C++23 as per P2278R4.
2964 (__cust_access::_CEnd::operator()): Likewise.
2965 (__cust_access::_CRBegin::operator()): Likewise.
2966 (__cust_access::_CREnd::operator()): Likewise.
2967 (__cust_access::_CData::operator()): Likewise.
2968 * include/bits/ranges_util.h (ranges::__detail::__different_from):
2969 Make it an alias of std::__detail::__different_from.
2970 (view_interface::cbegin): Define for C++23.
2971 (view_interface::cend): Likewise.
2972 * include/bits/stl_iterator.h (__detail::__different_from): Define.
2973 (iter_const_reference_t): Define for C++23.
2974 (__detail::__constant_iterator): Likewise.
2975 (__detail::__is_const_iterator): Likewise.
2976 (__detail::__not_a_const_iterator): Likewise.
2977 (__detail::__iter_const_rvalue_reference_t): Likewise.
2978 (__detail::__basic_const_iter_cat):: Likewise.
2979 (const_iterator): Likewise.
2980 (__detail::__const_sentinel): Likewise.
2981 (const_sentinel): Likewise.
2982 (basic_const_iterator): Likewise.
2983 (common_type<basic_const_iterator<_Tp>, _Up>): Likewise.
2984 (common_type<_Up, basic_const_iterator<_Tp>>): Likewise.
2985 (common_type<basic_const_iterator<_Tp>, basic_const_iterator<Up>>):
2987 (make_const_iterator): Define for C++23.
2988 (make_const_sentinel): Likewise.
2989 * include/std/ranges (__cpp_lib_ranges_as_const): Likewise.
2990 (as_const_view): Likewise.
2991 (enable_borrowed_range<as_const_view>): Likewise.
2992 (views::__detail::__is_ref_view): Likewise.
2993 (views::__detail::__can_is_const_view): Likewise.
2994 (views::_AsConst, views::as_const): Likewise.
2995 * include/std/span (span::const_iterator): Likewise.
2996 (span::const_reverse_iterator): Likewise.
2997 (span::cbegin): Likewise.
2998 (span::cend): Likewise.
2999 (span::crbegin): Likewise.
3000 (span::crend): Likewise.
3001 * include/std/version (__cpp_lib_ranges_as_const): Likewise.
3002 * testsuite/std/ranges/adaptors/join.cc (test06): Adjust to
3003 behave independently of C++20 vs C++23.
3004 * testsuite/std/ranges/version_c++23.cc: Verify value of
3005 __cpp_lib_ranges_as_const macro.
3006 * testsuite/24_iterators/const_iterator/1.cc: New test.
3007 * testsuite/std/ranges/adaptors/as_const/1.cc: New test.
3009 2023-04-14 Patrick Palka <ppalka@redhat.com>
3011 * include/bits/ranges_base.h (__cust_access::__as_const)
3012 (__cust_access::_CBegin, __cust::cbegin)
3013 (__cust_access::_CEnd, __cust::cend)
3014 (__cust_access::_CRBegin, __cust::crbegin)
3015 (__cust_access::_CREnd, __cust::crend)
3016 (__cust_access::_CData, __cust::cdata): Move down definitions to
3017 shortly after the definition of input_range.
3019 2023-04-14 Patrick Palka <ppalka@redhat.com>
3021 * include/bits/ranges_algo.h: Include <optional> for C++23.
3022 (__cpp_lib_fold): Define for C++23.
3023 (in_value_result): Likewise.
3024 (__detail::__flipped): Likewise.
3025 (__detail::__indirectly_binary_left_foldable_impl): Likewise.
3026 (__detail::__indirectly_binary_left_foldable): Likewise.
3027 (___detail:__indirectly_binary_right_foldable): Likewise.
3028 (fold_left_with_iter_result): Likewise.
3029 (__fold_left_with_iter_fn, fold_left_with_iter): Likewise.
3030 (__fold_left_fn, fold_left): Likewise.
3031 (__fold_left_first_with_iter_fn, fold_left_first_with_iter):
3033 (__fold_left_first_fn, fold_left_first): Likewise.
3034 (__fold_right_fn, fold_right): Likewise.
3035 (__fold_right_last_fn, fold_right_last): Likewise.
3036 * include/std/version (__cpp_lib_fold): Likewise.
3037 * testsuite/25_algorithms/fold_left/1.cc: New test.
3038 * testsuite/25_algorithms/fold_right/1.cc: New test.
3040 2023-04-14 Jonathan Wakely <jwakely@redhat.com>
3042 * include/std/format (formatter): Add comment to deleted default
3043 constructor of primary template.
3044 (_Checking_scanner): Add static_assert.
3046 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
3048 * doc/xml/manual/using.xml: Document libstdc++exp.a library.
3049 * doc/html/*: Regenerate.
3051 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
3053 * testsuite/17_intro/names.cc [_AIX]: Do not define policy.
3054 * testsuite/19_diagnostics/error_code/cons/lwg3629.cc: Rename
3055 namespace to avoid clashing with libc struct.
3056 * testsuite/19_diagnostics/error_condition/cons/lwg3629.cc:
3058 * testsuite/23_containers/unordered_map/96088.cc: Skip on AIX.
3059 * testsuite/23_containers/unordered_multimap/96088.cc: Likewise.
3060 * testsuite/23_containers/unordered_multiset/96088.cc: Likewise.
3061 * testsuite/23_containers/unordered_set/96088.cc: Likewise.
3062 * testsuite/experimental/synchronized_value.cc: Require gthreads
3063 and add missing option for pthreads targets.
3065 2023-04-12 Patrick Palka <ppalka@redhat.com>
3067 * include/std/ranges (__cpp_lib_ranges_enumerate): Define
3069 (__detail::__range_with_movable_reference): Likewise.
3070 (enumerate_view): Likewise.
3071 (enumerate_view::_Iterator): Likewise.
3072 (enumerate_view::_Sentinel): Likewise.
3073 (views::__detail::__can_enumerate_view): Likewise.
3074 (views::_Enumerate, views::enumerate): Likewise.
3075 * include/std/version (__cpp_lib_ranges_enumerate): Likewise.
3076 * testsuite/std/ranges/version_c++23.cc: Verify value of
3077 __cpp_lib_ranges_enumerate.
3078 * testsuite/std/ranges/adaptors/enumerate/1.cc: New test.
3080 2023-04-12 Patrick Palka <ppalka@redhat.com>
3082 * include/std/ranges (lazy_split_view::_OuterIter::_OuterIter):
3083 Propagate _M_trailing_empty in the const-converting constructor
3085 * testsuite/std/ranges/adaptors/adjacent/1.cc (test04): Correct
3087 * testsuite/std/ranges/adaptors/lazy_split.cc (test12): New test.
3089 2023-04-12 Patrick Palka <ppalka@redhat.com>
3091 * src/c++17/floating_from_chars.cc: Include <algorithm>,
3092 <iterator>, <limits> and <cstdint>.
3094 2023-04-12 Patrick Palka <ppalka@redhat.com>
3097 * include/std/ranges (chunk_by_view::_M_find_next): Generalize
3098 parameter types of the lambda wrapper passed to adjacent_find.
3099 (chunk_by_view::_M_find_prev): Likewise.
3100 * testsuite/std/ranges/adaptors/chunk_by/1.cc (test04, test05):
3103 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
3106 * include/experimental/internet (basic_endpoint::basic_endpoint()):
3107 Ensure that the required union members are active. Only define
3108 as constexpr for C++20 and later.
3109 (basic_endpoint::basic_endpoint(const protocol_type&, port_type)):
3111 * testsuite/experimental/net/internet/endpoint/cons.cc: Only
3112 check constexpr default constructor for C++20 and later.
3113 * testsuite/experimental/net/internet/endpoint/extensible.cc:
3116 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
3118 * src/c++20/tzdata.zi: Import new file from 2023c release.
3120 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
3122 * include/precompiled/stdc++.h (C++17): Don't double-include
3123 <charconv>, once with wrong conditions.
3124 * testsuite/18_support/96817.cc: Require hosted.
3125 * testsuite/18_support/bad_exception/59392.cc: Ditto.
3126 * testsuite/20_util/scoped_allocator/108952.cc: Ditto.
3127 * testsuite/20_util/uses_allocator/lwg3527.cc: Ditto.
3128 * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
3131 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
3133 * include/bits/c++config: When __STDC_HOSTED__ is zero,
3134 disable _GLIBCXX_DEBUG and, if it was set, enable
3135 _GLIBCXX_ASSERTIONS.
3136 * testsuite/lib/libstdc++.exp (check_v3_target_debug_mode):
3137 Include <bits/c++config.h> when determining whether debug is
3138 set, in order to inherit the logic from above
3140 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
3142 * testsuite/17_intro/versionconflict.cc: New test.
3143 * include/std/version: Allow disabling the system_header pragma
3144 via _GLIBCXX_TESTING_SYSHDR.
3146 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
3148 * include/bits/unique_ptr.h (__cpp_lib_constexpr_memory):
3149 Synchronize the definition block with...
3150 * include/bits/ptr_traits.h (__cpp_lib_constexpr_memory):
3151 ... this one here. Also define the 202202L value, rather than
3152 leaving it up to purely unique_ptr.h, so that the value is
3153 synchronized across all headers.
3154 (__gnu_debug::_Safe_iterator_base): Move into new conditional
3156 * include/std/memory (__cpp_lib_atomic_value_initialization):
3157 Define on freestanding under the same conditions as in
3159 * include/std/version (__cpp_lib_robust_nonmodifying_seq_ops):
3160 Also define on freestanding.
3161 (__cpp_lib_to_chars): Ditto.
3162 (__cpp_lib_gcd): Ditto.
3163 (__cpp_lib_gcd_lcm): Ditto.
3164 (__cpp_lib_raw_memory_algorithms): Ditto.
3165 (__cpp_lib_array_constexpr): Ditto.
3166 (__cpp_lib_nonmember_container_access): Ditto.
3167 (__cpp_lib_clamp): Ditto.
3168 (__cpp_lib_constexpr_char_traits): Ditto.
3169 (__cpp_lib_constexpr_string): Ditto.
3170 (__cpp_lib_sample): Ditto.
3171 (__cpp_lib_lcm): Ditto.
3172 (__cpp_lib_constexpr_iterator): Ditto.
3173 (__cpp_lib_constexpr_char_traits): Ditto.
3174 (__cpp_lib_interpolate): Ditto.
3175 (__cpp_lib_constexpr_utility): Ditto.
3176 (__cpp_lib_shift): Ditto.
3177 (__cpp_lib_ranges): Ditto.
3178 (__cpp_lib_move_iterator_concept): Ditto.
3179 (__cpp_lib_constexpr_numeric): Ditto.
3180 (__cpp_lib_constexpr_functional): Ditto.
3181 (__cpp_lib_constexpr_algorithms): Ditto.
3182 (__cpp_lib_constexpr_tuple): Ditto.
3183 (__cpp_lib_constexpr_memory): Ditto.
3185 2023-04-05 John David Anglin <danglin@gcc.gnu.org>
3187 * testsuite/22_locale/locale/cons/12658_thread-2.cc: Double
3188 timeout factor on hppa*-*-*.
3190 2023-04-05 Jonathan Wakely <jwakely@redhat.com>
3192 * include/bits/regex.h (sub_match::swap): New function.
3193 * testsuite/28_regex/sub_match/lwg3204.cc: New test.
3195 2023-04-04 Jonathan Wakely <jwakely@redhat.com>
3197 * doc/xml/manual/extensions.xml: Remove std::bad_exception from
3199 * doc/html/manual/ext_demangling.html: Regenerate.
3201 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
3203 PR tree-optimization/107087
3204 * include/bits/cow_string.h (basic_string::size()): Add
3205 optimizer hint that _S_empty_rep()._M_length is always zero.
3206 (basic_string::length()): Call size().
3208 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
3211 * include/std/stop_token (_Stop_state_ptr(const stop_source&)):
3212 Add attribute access with access-mode 'none'.
3213 * testsuite/30_threads/stop_token/stop_source/109339.cc: New test.
3215 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
3217 * include/experimental/internet (ip::basic_endpoint::_M_if_v6):
3218 Revert change from member function to data member. Fix for
3219 constant evaluation by detecting which union member is active.
3220 (ip::basic_endpoint::resize): Revert changes to update _M_is_v6
3223 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
3226 * testsuite/20_util/optional/monadic/pr109340.cc: Moved to...
3227 * testsuite/20_util/optional/monadic/pr109242.cc: ...here.
3229 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
3231 * include/experimental/internet (ip::make_address): Implement
3233 (ip::address_v4::broadcast()): Avoid undefined shift.
3234 (ip::basic_endpoint): Fix member functions for constexpr.
3235 (ip::basic_endpoint::_M_is_v6): Replace member function with
3236 data member, adjust member functions using it.
3237 (ip::basic_endpoint::resize): Update _M_is_v6 based on sockaddr
3239 * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
3240 constexpr checks to work in C++14.
3241 * testsuite/experimental/net/internet/address/v4/creation.cc:
3243 * testsuite/experimental/net/internet/endpoint/cons.cc:
3245 * testsuite/experimental/net/internet/network/v4/cons.cc:
3247 * testsuite/experimental/net/internet/network/v4/members.cc:
3249 * testsuite/experimental/net/internet/endpoint/extensible.cc: New test.
3251 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
3253 * include/std/expected (expected::value() &): Use const lvalue
3254 for unex member passed to bad_expected_access constructor, as
3257 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
3260 * include/std/expected (expected::transform): Use
3261 std::remove_cv_t instead of std::remove_cvref_t.
3262 (expected::transform_error): Likewise.
3263 (expected<cv void, E>::transform): Likewise.
3264 (expected<cv void, E>::transform_error): Likewise.
3265 * include/std/optional (transform): Use std::remove_cv_t.
3266 * testsuite/20_util/optional/monadic/pr109340.cc: New test.
3268 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
3270 * include/std/optional (optional): Adjust static assertion to
3271 reject arrays and functions as well as references.
3272 * testsuite/20_util/optional/requirements_neg.cc: New test.
3274 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
3277 * include/bits/istream.tcc (istream::_M_extract(ValueT&)): Use
3278 std::use_facet instead of cached _M_num_get facet.
3279 (istream::operator>>(short&)): Likewise.
3280 (istream::operator>>(int&)): Likewise.
3281 * include/bits/ostream.tcc (ostream::_M_insert(ValueT)): Use
3282 std::use_facet instead of cached _M_num_put facet.
3284 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
3286 * include/bits/char_traits.h (char_traits::copy): Return without
3287 using memcpy if n==0.
3288 (char_traits::assign): Likewise for memset.
3290 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
3293 * include/bits/basic_string.h (basic_string::_M_is_local()): Add
3294 hint for compiler that local strings fit in the local buffer.
3296 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
3299 * include/std/chrono (__detail::__get_leap_second_info): Update
3300 expiry date of hardcoded leapseconds list.
3301 * src/c++20/tzdb.cc (tzdb_list::_Node::_S_read_leap_seconds()):
3303 * src/c++20/tzdata.zi: Import new file from 2023a release.
3304 * testsuite/std/time/time_zone/get_info_local.cc: Only check
3305 transitions for Egypt up to 2014.
3307 2023-03-28 Matthias Kretz <m.kretz@gsi.de>
3309 * include/experimental/bits/simd.h (is_simd_flag_type): New.
3310 (_IsSimdFlagType): New.
3311 (copy_from, copy_to, load ctors): Constrain _Flags using
3314 2023-03-28 Matthias Kretz <m.kretz@gsi.de>
3316 * include/experimental/bits/simd_x86.h (_SimdImplX86): Use
3317 _Base::_S_divides if the optimized _S_divides function is hidden
3318 via the preprocessor.
3320 2023-03-27 Jakub Jelinek <jakub@redhat.com>
3322 * testsuite/experimental/net/timer/waitable/dest.cc: Avoid -Wformat
3323 warning if size_t is not unsigned long.
3325 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3327 * include/bits/shared_ptr_atomic.h (atomic::operator=(nullptr_t)):
3328 Add overload, as per LWG 3893.
3329 * testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc:
3330 Check assignment from nullptr.
3332 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3334 * include/std/format (formatter<const charT[N], charT>): Do not
3335 define partial speclialization, as per LWG 3833.
3336 * testsuite/std/format/formatter/requirements.cc: Check it.
3338 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3340 * include/std/utility (__cpp_lib_constexpr_algorithms): Define,
3342 * testsuite/20_util/exchange/constexpr.cc: Check for it.
3344 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3346 * include/std/version (__cpp_lib_format): Define.
3347 * testsuite/std/format/functions/format.cc: Check it.
3349 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3351 * include/bits/basic_string.tcc (basic_string::resize_and_overwrite):
3352 Pass rvalues to the callback, as now allowed by LWG 3645.
3353 Enforce preconditions on the return value.
3354 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
3357 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3359 * include/std/format: Add a comment noting that the resolution
3360 of LWG 3720 has been applied..
3362 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3364 * include/bits/regex.h (match_results): Add allocator-extended
3365 copy and move constructors, as per LWG 2195.
3366 * testsuite/28_regex/match_results/ctors/char/alloc.cc: New test.
3368 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3370 * include/bits/stream_iterator.h (istream_iterator): Add
3371 constexpr to copy constructor, as per LWG 3600.
3372 * testsuite/24_iterators/istream_iterator/cons/constexpr.cc:
3373 Check copy construction.
3375 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
3377 * include/experimental/bits/simd_x86.h
3378 (_SimdImplX86::_S_divides): Replace test for __GCC_IEC_559 == 0
3379 with __RECIPROCAL_MATH__.
3381 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
3383 * include/experimental/bits/simd_detail.h: Don't define
3384 _GLIBCXX_SIMD_WORKAROUND_PR90993 for Clang.
3385 * include/experimental/bits/simd_x86.h (_S_divides): Remove
3386 check for __clang__.
3388 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
3390 * include/experimental/bits/simd_detail.h: Don't declare the
3391 simd API as constexpr with Clang.
3392 * include/experimental/bits/simd_x86.h (__movm): New.
3393 (_S_blend_avx512): Resolve FIXME. Implement blend using __movm
3395 (_SimdImplX86::_S_masked_unary): Clang does not implement the
3396 same builtins. Implement the function using __movm, ?:, and -
3397 operators on vector_size types instead.
3399 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
3401 * testsuite/experimental/simd/tests/operators.cc: Clang doesn't
3402 define __GCC_IEC_559. Use __STDC_IEC_559__ instead.
3404 2023-03-20 Jonathan Wakely <jwakely@redhat.com>
3406 * src/filesystem/ops-common.h (get_temp_directory_from_env): Fix
3409 2023-03-20 Marek Polacek <polacek@redhat.com>
3412 * testsuite/20_util/pair/cons/explicit_construct.cc: Adjust dg-error.
3413 * testsuite/20_util/tuple/cons/explicit_construct.cc: Likewise.
3414 * testsuite/23_containers/span/explicit.cc: Likewise.
3416 2023-03-20 Jonathan Wakely <jwakely@redhat.com>
3419 * include/std/expected (expected<void>::expected(in_place_t)):
3420 Remove template-head.
3422 2023-03-18 Jonathan Wakely <jwakely@redhat.com>
3425 * testsuite/18_support/coroutines/hash.cc: Use const object
3428 2023-03-17 Jonathan Wakely <jwakely@redhat.com>
3431 * include/std/coroutine (hash<>::operator()): Add const.
3432 * testsuite/18_support/coroutines/hash.cc: New test.
3434 2023-03-14 Patrick Palka <ppalka@redhat.com>
3437 * include/std/ranges (repeat_view): Remove redundant parentheses
3439 (repeat_view::_Iterator): Correct the requires-clause.
3441 2023-03-14 Patrick Palka <ppalka@redhat.com>
3443 * include/bits/stl_iterator.h (move_iterator::_S_iter_concept):
3445 (__cpp_lib_move_iterator_concept): Define for C++20.
3446 (move_iterator::iterator_concept): Strengthen as per P2520R0.
3447 * include/std/version (__cpp_lib_move_iterator_concept): Define
3449 * testsuite/24_iterators/move_iterator/p2520r0.cc: New test.
3451 2023-03-14 Patrick Palka <ppalka@redhat.com>
3453 * include/bits/ranges_util.h (view_interface::empty): Add
3454 preferred overloads that use ranges::size when the range is
3455 sized as per LWG 3715.
3456 * testsuite/std/ranges/adaptors/lwg3715.cc: New test.
3458 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
3460 * include/bits/chrono.h (__is_duration_v, __is_time_point_v):
3461 Only define for C++17 and later.
3463 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
3465 * src/Makefile.am: Add comment about linker script fragments.
3466 * src/Makefile.in: Regenerate.
3468 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
3471 * include/bits/mask_array.h (mask_array): Add assertions to
3472 assignment operators.
3473 * include/std/valarray (valarray::operator[](valarray<bool>)):
3475 * testsuite/26_numerics/valarray/mask-1_neg.cc: New test.
3476 * testsuite/26_numerics/valarray/mask-2_neg.cc: New test.
3477 * testsuite/26_numerics/valarray/mask-3_neg.cc: New test.
3478 * testsuite/26_numerics/valarray/mask-4_neg.cc: New test.
3479 * testsuite/26_numerics/valarray/mask-5_neg.cc: New test.
3480 * testsuite/26_numerics/valarray/mask-6_neg.cc: New test.
3481 * testsuite/26_numerics/valarray/mask-7_neg.cc: New test.
3482 * testsuite/26_numerics/valarray/mask-8_neg.cc: New test.
3483 * testsuite/26_numerics/valarray/mask.cc: New test.
3485 2023-03-13 Jakub Jelinek <jakub@redhat.com>
3487 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
3488 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
3490 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
3492 * doc/Makefile.am: Add comment referring to documentation.
3493 * doc/Makefile.in: Regenerate.
3495 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
3497 * doc/html/*: Regenerate.
3499 2023-03-13 Jonny Grant <jg@jguk.org>
3501 * doc/xml/faq.xml: Update copyright year.
3503 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
3505 * include/bits/allocator.h: Fix typo in comment.
3507 2023-03-12 Jakub Jelinek <jakub@redhat.com>
3509 * config/abi/pre/gnu.ver (CXXABI_1.3.14): Also export __bf16 tinfos
3510 if it isn't mangled as DF16b but u6__bf16.
3512 2023-03-12 Gerald Pfeifer <gerald@pfeifer.com>
3514 * doc/xml/manual/documentation_hacking.xml: Move www.graphviz.org
3516 * doc/html/manual/documentation_hacking.html: Regenerate.
3518 2023-03-10 Jonathan Wakely <jwakely@redhat.com>
3521 * python/libstdcxx/v6/xmethods.py (SharedPtrUseCountWorker):
3522 Remove self-recursion in __init__. Add missing _supports.
3523 * testsuite/libstdc++-xmethods/shared_ptr.cc: Check use_count()
3526 2023-03-09 Patrick Palka <ppalka@redhat.com>
3528 * include/std/ranges
3529 (cartesian_product_view::_Iterator::_Iterator): Remove
3530 constraint on default constructor as per LWG 3849.
3531 (cartesian_product_view::_Iterator::_M_prev): Adjust position
3532 of _Nm > 0 test as per LWG 3820.
3533 (cartesian_product_view::_Iterator::_M_advance): Perform bounds
3534 checking only on sized cartesian products.
3535 * testsuite/std/ranges/cartesian_product/1.cc (test08): New test.
3537 2023-03-09 Patrick Palka <ppalka@redhat.com>
3540 * include/std/ranges (chunk_by_view::_M_pred): Remove DMI as per
3542 (repeat_view::_M_pred): Likewise.
3543 * testsuite/std/ranges/adaptors/chunk_by/1.cc (test03): New test.
3544 * testsuite/std/ranges/repeat/1.cc (test05): New test.
3546 2023-03-09 Patrick Palka <ppalka@redhat.com>
3549 * include/std/ranges (__detail::__can_single_view): New concept.
3550 (_Single::operator()): Constrain it. Move [[nodiscard]] to the
3551 end of the function declarator.
3552 (__detail::__can_iota_view): New concept.
3553 (_Iota::operator()): Constrain it. Move [[nodiscard]] to the
3554 end of the function declarator.
3555 (__detail::__can_istream_view): New concept.
3556 (_Istream::operator()): Constrain it. Move [[nodiscard]] to the
3557 end of the function declarator.
3558 * testsuite/std/ranges/iota/iota_view.cc (test07): New test.
3559 * testsuite/std/ranges/istream_view.cc (test08): New test.
3560 * testsuite/std/ranges/single_view.cc (test07): New test.
3562 2023-03-09 Patrick Palka <ppalka@redhat.com>
3565 * include/std/ranges (cartesian_product_view::end): When
3566 building the tuple of iterators, avoid calling ranges::begin on
3567 the first range if __empty_tail is false.
3568 * testsuite/std/ranges/cartesian_product/1.cc (test07): New test.
3570 2023-03-09 Jonathan Wakely <jwakely@redhat.com>
3573 * config/os/gnu-linux/ldbl-ieee128-extra.ver: Fix incorrect
3576 2023-03-07 Jakub Jelinek <jakub@redhat.com>
3578 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
3579 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
3580 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
3581 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
3582 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
3584 2023-03-07 Jonathan Wakely <jwakely@redhat.com>
3587 * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Adjust patterns to
3588 not match symbols in namespace std::__gnu_cxx11_ieee128.
3589 * config/os/gnu-linux/ldbl-ieee128-extra.ver: Add patterns for
3590 std::__gnu_cxx11_ieee128::money_{get,put}.
3592 2023-03-07 Jonathan Wakely <jwakely@redhat.com>
3594 * libsupc++/eh_personality.cc: Fix spelling in comment.
3596 2023-03-03 Alexandre Oliva <oliva@adacore.com>
3598 * testsuite/30_threads/async/async.cc (test04): Initialize
3599 steady_start, renamed from steady_begin, next to slow_start.
3600 Increase tolerance for final wait.
3602 2023-03-03 Alexandre Oliva <oliva@adacore.com>
3604 * testsuite/libstdc++-prettyprinters/80276.cc: Add
3605 std::string to debug info.
3606 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
3608 2023-03-03 Alexandre Oliva <oliva@adacore.com>
3613 * include/bits/std_thread.h (thread::_M_thread_deps): New
3614 static implicitly-inline member function.
3615 (std::thread template ctor): Pass it to _M_start_thread.
3616 * src/c++11/thread.cc (thread::_M_start_thread): Name depend
3617 parameter, force it live on entry.
3619 2023-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3621 * config/abi/post/i386-solaris/baseline_symbols.txt: Regenerate.
3622 * config/abi/post/i386-solaris/amd64/baseline_symbols.txt:
3624 * config/abi/post/sparc-solaris/baseline_symbols.txt: Likewise.
3625 * config/abi/post/sparc-solaris/sparcv9/baseline_symbols.txt:
3628 2023-03-01 Jonathan Wakely <jwakely@redhat.com>
3630 * include/bits/cow_string.h: Fix typo in comment.
3632 2023-03-01 Jonathan Wakely <jwakely@redhat.com>
3634 * src/c++20/tzdb.cc (chrono::tzdb::current_zone()) Use "UTC" if
3635 current time zone cannot be determined.
3636 * testsuite/std/time/tzdb/1.cc: Remove conditions based on
3637 HAVE_TZDB macro and test all members unconditionally.
3639 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
3642 * include/bits/uses_allocator_args.h
3643 (uses_allocator_construction_args): Implement LWG 3527.
3644 * testsuite/20_util/pair/astuple/get-2.cc: New test.
3645 * testsuite/20_util/scoped_allocator/108952.cc: New test.
3646 * testsuite/20_util/uses_allocator/lwg3527.cc: New test.
3648 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
3651 * include/bits/stl_algobase.h (__copy_move<false, false, RA>)
3652 Add __assign_one static member function.
3653 (__copy_move<true, false, RA>): Likewise.
3654 (__copy_move<IsMove, true, RA>): Do not use memmove for a single
3656 (__copy_move_backward<IsMove, true, RA>): Likewise.
3657 * testsuite/25_algorithms/copy/108846.cc: New test.
3658 * testsuite/25_algorithms/copy_backward/108846.cc: New test.
3659 * testsuite/25_algorithms/copy_n/108846.cc: New test.
3660 * testsuite/25_algorithms/move/108846.cc: New test.
3661 * testsuite/25_algorithms/move_backward/108846.cc: New test.
3663 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
3665 * src/c++11/codecvt.cc: Add [[likely]] and [[unlikely]]
3668 2023-02-27 Jonathan Wakely <jwakely@redhat.com>
3670 * include/bits/basic_ios.h (basic_ios::_M_setstate): Add
3672 * include/bits/basic_string.h (resize_and_overwrite): Add
3675 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
3677 * include/experimental/bits/simd.h: Line breaks and indenting
3678 fixed to follow the libstdc++ standard.
3679 * include/experimental/bits/simd_builtin.h: Likewise.
3680 * include/experimental/bits/simd_fixed_size.h: Likewise.
3681 * include/experimental/bits/simd_neon.h: Likewise.
3682 * include/experimental/bits/simd_ppc.h: Likewise.
3683 * include/experimental/bits/simd_scalar.h: Likewise.
3684 * include/experimental/bits/simd_x86.h: Likewise.
3686 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
3689 * include/experimental/bits/simd_fixed_size.h
3690 (_SimdImplFixedSize::_S_broadcast): Replace inline with
3691 _GLIBCXX_SIMD_INTRINSIC.
3692 (_SimdImplFixedSize::_S_generate): Likewise.
3693 (_SimdImplFixedSize::_S_load): Likewise.
3694 (_SimdImplFixedSize::_S_masked_load): Likewise.
3695 (_SimdImplFixedSize::_S_store): Likewise.
3696 (_SimdImplFixedSize::_S_masked_store): Likewise.
3697 (_SimdImplFixedSize::_S_min): Likewise.
3698 (_SimdImplFixedSize::_S_max): Likewise.
3699 (_SimdImplFixedSize::_S_complement): Likewise.
3700 (_SimdImplFixedSize::_S_unary_minus): Likewise.
3701 (_SimdImplFixedSize::_S_plus): Likewise.
3702 (_SimdImplFixedSize::_S_minus): Likewise.
3703 (_SimdImplFixedSize::_S_multiplies): Likewise.
3704 (_SimdImplFixedSize::_S_divides): Likewise.
3705 (_SimdImplFixedSize::_S_modulus): Likewise.
3706 (_SimdImplFixedSize::_S_bit_and): Likewise.
3707 (_SimdImplFixedSize::_S_bit_or): Likewise.
3708 (_SimdImplFixedSize::_S_bit_xor): Likewise.
3709 (_SimdImplFixedSize::_S_bit_shift_left): Likewise.
3710 (_SimdImplFixedSize::_S_bit_shift_right): Likewise.
3711 (_SimdImplFixedSize::_S_remquo): Add inline keyword (to be
3712 explicit about not always-inline, yet).
3713 (_SimdImplFixedSize::_S_isinf): Likewise.
3714 (_SimdImplFixedSize::_S_isfinite): Likewise.
3715 (_SimdImplFixedSize::_S_isnan): Likewise.
3716 (_SimdImplFixedSize::_S_isnormal): Likewise.
3717 (_SimdImplFixedSize::_S_signbit): Likewise.
3719 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
3722 * include/experimental/bits/simd_builtin.h
3723 (_SimdImplBuiltin::_S_masked_unary): More efficient
3724 implementation of masked inc-/decrement for integers and floats
3726 * include/experimental/bits/simd_x86.h
3727 (_SimdImplX86::_S_masked_unary): New. Use AVX512 masked subtract
3728 builtins for masked inc-/decrement.
3730 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3732 * include/experimental/executor (executor): Constrain template
3735 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3737 * include/experimental/internet (basic_endpoint): Add missing
3738 constexpr to comparison operators.
3739 * testsuite/experimental/net/internet/endpoint/cons.cc: New test.
3741 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3743 * include/experimental/internet (network_v4::netmask()): Avoid
3745 (network_v4::broadcast()): Optimize and fix for targets with
3746 uint_least32_t wider than 32 bits.
3747 (network_v4::to_string(const Allocator&)): Fix for custom
3748 allocators and optimize using to_chars.
3749 (operator==(const network_v4&, const network_v4&)): Add missing
3751 (operator==(const network_v6&, const network_v6&)): Likewise.
3752 * testsuite/experimental/net/internet/network/v4/cons.cc: New test.
3753 * testsuite/experimental/net/internet/network/v4/members.cc: New test.
3755 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3757 * include/experimental/internet (address_4(const bytes_type&)):
3758 Use __builtin_bit_cast if available, otherwise convert to
3760 (address_v4::to_bytes()): Likewise, but convert from network
3762 * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
3763 incorrect tests. Check for constexpr too.
3764 * testsuite/experimental/net/internet/address/v4/creation.cc:
3766 * testsuite/experimental/net/internet/address/v4/members.cc:
3767 Check that bytes_type is a standard-layout type.
3769 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3771 * include/experimental/internet (address_v4::to_string):
3773 * testsuite/experimental/net/internet/address/v4/members.cc:
3774 Check more addresses.
3776 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3778 * include/ext/aligned_buffer.h (__aligned_buffer): Add
3781 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3783 * testsuite/std/format/arguments/lwg3810.cc: Move dg-options
3786 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
3788 * testsuite/experimental/simd/tests/reductions.cc: Introduce
3789 max_distance as the type-dependent max error.
3791 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
3793 * include/experimental/bits/simd_builtin.h (_S_set): Compare as
3794 int. The actual range of these indexes is very small.
3796 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
3798 * include/experimental/bits/simd_x86.h (_S_bit_shift_left)
3799 (_S_bit_shift_right): Declare constexpr. The implementation was
3800 already expecting constexpr evaluation.
3802 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
3805 * include/experimental/bits/simd_detail.h
3806 (_GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA): Define as empty for
3809 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
3812 * include/experimental/bits/simd.h (__vector_broadcast):
3813 Implement via __vector_broadcast_impl instead of
3814 __call_with_n_evaluations + 2 lambdas.
3815 (__vector_broadcast_impl): New.
3817 2023-02-22 Alexandre Oliva <oliva@adacore.com>
3819 * src/c++11/shared_ptr.cc (__gnu_internal::get_mutex):
3820 Avoid destruction of the mutex pool.
3822 2023-02-22 Alexandre Oliva <oliva@adacore.com>
3824 * testsuite/27_io/basic_ofstream/open/char/noreplace.cc: xfail
3826 * testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc:
3829 2023-02-22 Alexandre Oliva <oliva@adacore.com>
3831 * testsuite/17_intro/names.cc: Undef func on vxworks >= 7 in
3834 2023-02-20 Andreas Schwab <schwab@linux-m68k.org>
3836 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
3838 2023-02-20 Matthias Kretz <m.kretz@gsi.de>
3840 * include/experimental/bits/simd.h (__extract_part, split):
3841 Use reserved name for template parameter.
3843 2023-02-20 Andreas Schwab <schwab@suse.de>
3845 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
3847 2023-02-18 Gerald Pfeifer <gerald@pfeifer.com>
3849 * doc/xml/faq.xml: Switch two links to www.open-std.org to https.
3850 * doc/html/faq.html: Regenerate.
3852 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
3854 * include/experimental/bits/simd_math.h (__hypot): Bitcasting
3855 between scalars requires the __bit_cast helper function instead
3858 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
3860 * include/experimental/bits/simd_x86.h
3861 (_SimdImplX86::_S_not_equal_to, _SimdImplX86::_S_less)
3862 (_SimdImplX86::_S_less_equal): Do not call
3863 __builtin_is_constant_evaluated in constexpr-if.
3865 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
3867 * testsuite/experimental/simd/tests/bits/verify.h
3868 (verify::verify): Use %zx for size_t in format string.
3870 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
3872 * testsuite/experimental/simd/generate_makefile.sh: Generate and
3873 pre-compile pch.h, which includes all headers that do not depend
3874 on command-line macros.
3875 * testsuite/experimental/simd/tests/bits/main.h: New file.
3876 (iterate_abis, main): Moved from verify.h.
3877 * testsuite/experimental/simd/tests/bits/verify.h
3878 (iterate_abis, main): Moved to main.h.
3879 * testsuite/experimental/simd/tests/bits/conversions.h: Add
3881 (genHalfBits): Simplify.
3882 * testsuite/experimental/simd/tests/bits/make_vec.h: Add include
3884 (make_alternating_mask): Moved from mask_loadstore.
3885 * testsuite/experimental/simd/tests/bits/mathreference.h: Add
3887 * testsuite/experimental/simd/tests/bits/test_values.h: Ditto.
3888 * testsuite/experimental/simd/tests/mask_loadstore.cc
3889 (make_mask, make_alternating_mask): Removed.
3890 * testsuite/experimental/simd/tests/mask_reductions.cc: Ditto.
3891 * testsuite/experimental/simd/tests/operators.cc (genHalfBits):
3893 * testsuite/experimental/simd/tests/abs.cc: Only include
3896 * testsuite/experimental/simd/tests/algorithms.cc: Ditto.
3897 * testsuite/experimental/simd/tests/broadcast.cc: Ditto.
3898 * testsuite/experimental/simd/tests/casts.cc: Ditto.
3899 * testsuite/experimental/simd/tests/fpclassify.cc: Ditto.
3900 * testsuite/experimental/simd/tests/frexp.cc: Ditto.
3901 * testsuite/experimental/simd/tests/generator.cc: Ditto.
3902 * testsuite/experimental/simd/tests/hypot3_fma.cc: Ditto.
3903 * testsuite/experimental/simd/tests/integer_operators.cc: Ditto.
3904 * testsuite/experimental/simd/tests/ldexp_scalbn_scalbln_modf.cc:
3905 * testsuite/experimental/simd/tests/loadstore.cc: Ditto.
3906 * testsuite/experimental/simd/tests/logarithm.cc: Ditto.
3907 * testsuite/experimental/simd/tests/mask_broadcast.cc: Ditto.
3908 * testsuite/experimental/simd/tests/mask_conversions.cc: Ditto.
3909 * testsuite/experimental/simd/tests/mask_implicit_cvt.cc: Ditto.
3910 * testsuite/experimental/simd/tests/mask_operator_cvt.cc: Ditto.
3911 * testsuite/experimental/simd/tests/mask_operators.cc: Ditto.
3912 * testsuite/experimental/simd/tests/math_1arg.cc: Ditto.
3913 * testsuite/experimental/simd/tests/math_2arg.cc: Ditto.
3914 * testsuite/experimental/simd/tests/operator_cvt.cc: Ditto.
3915 * testsuite/experimental/simd/tests/reductions.cc: Ditto.
3916 * testsuite/experimental/simd/tests/remqo.cc: Ditto.
3917 * testsuite/experimental/simd/tests/simd.cc: Ditto.
3918 * testsuite/experimental/simd/tests/sincos.cc: Ditto.
3919 * testsuite/experimental/simd/tests/split_concat.cc: Ditto.
3920 * testsuite/experimental/simd/tests/splits.cc: Ditto.
3921 * testsuite/experimental/simd/tests/trigonometric.cc: Ditto.
3922 * testsuite/experimental/simd/tests/trunc_ceil_floor.cc: Ditto.
3923 * testsuite/experimental/simd/tests/where.cc: Ditto.
3925 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
3927 * testsuite/experimental/simd/README.md: Document the timeout
3928 and timeout-factor directives. Minor typo fixed.
3930 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
3933 * include/experimental/bits/simd_detail.h: Define
3934 _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
3935 * include/experimental/bits/simd.h: Annotate lambdas with
3936 _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
3937 * include/experimental/bits/simd_builtin.h: Ditto.
3938 * include/experimental/bits/simd_converter.h: Ditto.
3939 * include/experimental/bits/simd_fixed_size.h: Ditto.
3940 * include/experimental/bits/simd_math.h: Ditto.
3941 * include/experimental/bits/simd_neon.h: Ditto.
3942 * include/experimental/bits/simd_x86.h: Ditto.
3944 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
3946 * include/experimental/bits/simd.h
3947 (_SimdWrapper::_M_is_constprop_none_of)
3948 (_SimdWrapper::_M_is_constprop_all_of): Return false unless the
3949 computed result still satisfies __builtin_constant_p.
3951 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
3953 * testsuite/std/format/arguments/lwg3810.cc: Replace UTF-8
3956 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
3958 * include/Makefile.am: Add new header.
3959 * include/Makefile.in: Regenerate.
3960 * include/experimental/synchronized_value: New file.
3961 * testsuite/experimental/synchronized_value.cc: New test.
3963 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
3965 * include/experimental/optional: Fix header name in comment.
3967 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
3969 * include/std/format (__format::_Arg_store): New class template.
3970 (basic_format_args): Remove nested type _Store and add deduction
3971 guide from _Arg_store.
3972 (basic_format_arg, make_format_args): Adjust.
3973 * testsuite/std/format/arguments/lwg3810.cc: New test.
3975 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
3977 * include/bits/stl_pair.h (pair) [C++20]: Add non-dangling
3978 constraints to constructors and add deleted overloads for the
3979 dangling cases, as per P2255R2.
3980 (pair) [!C++20 && _GLIBCXX_DEBUG]: Add static assertions to
3981 make dangling cases ill-formed.
3982 * testsuite/20_util/pair/dangling_ref.cc: New test.
3984 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
3986 * testsuite/17_intro/names_pstl.cc: Require et tbb_backend.
3988 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
3990 * include/ext/throw_allocator.h: Use reserved names for
3993 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
3995 * testsuite/17_intro/names_pstl.cc: Add space after effective
3998 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
4000 * include/pstl/algorithm_fwd.h (__pattern_search_n)
4001 (__brick_unique_copy, __brick_adjacent_find)
4002 (__brick_generate_n, __pattern_generate_n): Use reserved names
4004 * include/pstl/algorithm_impl.h (__brick_unique_copy)
4005 (__pattern_reverse, __brick_generate_n): Likewise.
4006 * include/pstl/execution_impl.h (__prefer_unsequenced_tag)
4007 (__prefer_parallel_tag): Likewise.
4008 * include/pstl/glue_algorithm_impl.h (transform): Likewise.
4009 * include/pstl/glue_numeric_defs.h (adjacent_difference):
4011 * include/pstl/numeric_impl.h (__brick_adjacent_difference):
4013 * include/pstl/parallel_backend_tbb.h (__merge_func): Likewise.
4014 * include/pstl/unseq_backend_simd.h (_Combiner)
4015 (__simd_min_element, __simd_minmax_element): Likewise.
4016 * testsuite/17_intro/names_pstl.cc: New test.
4018 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
4020 * include/bits/fs_ops.h (create_directory): Use reserved name
4022 * include/bits/ranges_algo.h (__contains_subrange_fn):
4024 * include/bits/regex_automaton.h (_State_base::_M_print):
4026 * include/bits/regex_automaton.tcc(_State_base::_M_print):
4028 * include/bits/regex_scanner.tcc(_Scanner::_M_print): Likewise.
4029 * include/experimental/bits/fs_ops.h (create_directory):
4031 * include/std/mutex (timed_mutex::_M_clocklock): Likewise.
4032 (recursive_timed_mutex:_M_clocklock): Likewise.
4033 * include/std/tuple (basic_common_reference): Likewise.
4034 * libsupc++/cxxabi_init_exception.h
4035 (__cxa_init_primary_exception): Likewise.
4036 * testsuite/17_intro/names.cc: Add checks.
4038 2023-02-14 Gerald Pfeifer <gerald@pfeifer.com>
4040 * doc/xml/manual/status_cxx2017.xml: Update an open-std.org link
4041 to www.open-std.org and https.
4042 * doc/html/manual/status.html: Regenerate.
4044 2023-02-14 Thomas W Rodgers <rodgert@twrodgers.com>
4047 * include/std/atomic (atomic_flag_wait): Add.
4048 (atomic_flag_wait_explicit): Add.
4049 (atomic_flag_notify): Add.
4050 (atomic_flag_notify_explicit): Add.
4051 * testsuite/29_atomics/atomic_flag/wait_notify/1.cc:
4052 Add test case to cover missing atomic_flag free functions.
4054 2023-02-14 Thomas W Rodgers <rodgert@twrodgers.com>
4057 * include/std/atomic (atomic_flag_test): Add.
4058 (atomic_flag_test_explicit): Add.
4059 * testsuite/29_atomics/atomic_flag/test/explicit.cc: Add
4060 test case to cover missing atomic_flag free functions.
4061 * testsuite/29_atomics/atomic_flag/test/implicit.cc:
4064 2023-02-13 Gerald Pfeifer <gerald@pfeifer.com>
4066 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust
4067 "The Component Object Model" reference.
4068 * doc/html/manual/policy_data_structures.html: Regenerate.
4070 2023-02-12 Gerald Pfeifer <gerald@pfeifer.com>
4072 * doc/xml/manual/containers.xml: Tweak a link to N1780
4074 * doc/html/manual/associative.html: Regenerate.
4076 2023-02-12 Gerald Pfeifer <gerald@pfeifer.com>
4078 * doc/xml/manual/ctype.xml: Change www.unix.org to unix.org.
4079 * doc/html/manual/facets.html: Regenerate.
4081 2023-02-11 Gerald Pfeifer <gerald@pfeifer.com>
4083 * doc/xml/manual/policy_data_structures_biblio.xml: Update
4084 link to "Worst-case efficient priority queues".
4085 * doc/html/manual/policy_data_structures.html: Regenerate.
4087 2023-02-06 Arsen Arsenović <arsen@aarsen.me>
4089 * doc/xml/manual/using.xml: Document newly-freestanding
4090 headers and the effect of the -ffreestanding flag.
4091 * doc/xml/manual/status_cxx2023.xml: Document P1642R11 as
4093 * doc/xml/manual/configure.xml: Document that hosted installs
4094 respect __STDC_HOSTED__.
4095 * doc/xml/manual/test.xml: Document how to run tests in
4097 * doc/html/*: Regenerate.
4099 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
4101 * include/bits/ranges_algo.h (__find_last_fn): Rename T to _Tp.
4102 (__find_last_if_fn): Likewise.
4104 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
4106 * include/std/type_traits: Add diagnostic pragmas around
4107 references to deprecated std::aligned_storage and
4108 std::aligned_union traits.
4109 * testsuite/20_util/aligned_storage/requirements/alias_decl.cc:
4110 Add dg-warning for et c++23.
4111 * testsuite/20_util/aligned_storage/requirements/explicit_instantiation.cc:
4113 * testsuite/20_util/aligned_storage/value.cc: Likewise.
4114 * testsuite/20_util/aligned_union/1.cc: Likewise.
4115 * testsuite/20_util/aligned_union/requirements/alias_decl.cc:
4118 2023-02-06 Nathaniel Shead <nathanieloshead@gmail.com>
4120 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macros.
4121 * include/bits/c++config (_GLIBCXX23_DEPRECATED)
4122 (_GLIBCXX23_DEPRECATED_SUGGEST): New macros.
4123 * include/std/type_traits (aligned_storage, aligned_union)
4124 (aligned_storage_t, aligned_union_t): Deprecate for C++23.
4125 * testsuite/20_util/aligned_storage/deprecated-2b.cc: New test.
4126 * testsuite/20_util/aligned_union/deprecated-2b.cc: New test.
4128 2023-02-06 Nathaniel Shead <nathanieloshead@gmail.com>
4130 * doc/doxygen/user.cfg.in (PREDEFINED): Update macros.
4131 * include/bits/c++config (_GLIBCXX20_DEPRECATED): Make
4132 consistent with other 'deprecated' macros.
4133 * include/std/type_traits (is_pod, is_pod_v): Use
4134 _GLIBCXX20_DEPRECATED_SUGGEST instead.
4136 2023-02-06 Arsen Arsenović <arsen@aarsen.me>
4138 * Makefile.am [!_GLIBCXX_HOSTED]: Enable src/ subdirectory.
4139 * Makefile.in: Regenerate.
4140 * src/Makefile.am [!_GLIBCXX_HOSTED]: Omit compatibility files.
4141 There's no history to be compatible with.
4142 * src/c++11/Makefile.am [!_GLIBCXX_HOSTED]: Omit hosted-only
4143 source files from the build.
4144 * src/c++17/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
4145 * src/c++20/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
4146 * src/c++98/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
4147 * src/Makefile.in: Regenerate.
4148 * src/c++11/Makefile.in: Regenerate.
4149 * src/c++17/Makefile.in: Regenerate.
4150 * src/c++20/Makefile.in: Regenerate.
4151 * src/c++98/Makefile.in: Regenerate.
4153 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
4155 * src/Makefile.am [GLIBCXX_HOSTED] (SUBDIRS): Do not add
4156 filesystem, libbacktrace and experimental.
4157 * src/Makefile.in: Regenerate.
4159 2023-02-04 Hans-Peter Nilsson <hp@axis.com>
4162 * include/pstl/unseq_backend_simd.h (__simd_or): Use __INT32_TYPE__
4165 2023-02-04 Gerald Pfeifer <gerald@pfeifer.com>
4167 * doc/xml/manual/documentation_hacking.xml: Adjust link to pdftex.
4168 * doc/html/manual/documentation_hacking.html: Regenerate.
4170 2023-02-04 François Dumont <fdumont@gcc.gnu.org>
4172 * include/bits/basic_string.h (operator=(basic_string&&)): Transfer move-to
4173 storage to the move-from instance when allocators are equal.
4174 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc (test04):
4177 2023-02-03 Samuel Thibault <samuel.thibault@gnu.org>
4179 * config/os/gnu-linux/os_defines.h [!__linux__]
4180 (_GLIBCXX_NATIVE_THREAD_ID, _GLIBCXX_GTHREAD_USE_WEAK): Do not define.
4182 2023-02-03 Patrick Palka <ppalka@redhat.com>
4184 * include/bits/ranges_algo.h (__find_last_fn, find_last):
4186 (__find_last_if_fn, find_last_if): Define.
4187 (__find_last_if_not_fn, find_last_if_not): Define.
4188 * testsuite/25_algorithms/find_last/1.cc: New test.
4189 * testsuite/25_algorithms/find_last_if/1.cc: New test.
4190 * testsuite/25_algorithms/find_last_if_not/1.cc: New test.
4192 2023-02-03 Patrick Palka <ppalka@redhat.com>
4194 * include/bits/ranges_algo.h (out_value_result): Define.
4195 (iota_result): Define.
4196 (__iota_fn, iota): Define.
4197 * testsuite/25_algorithms/iota/1.cc: New test.
4199 2023-02-03 Patrick Palka <ppalka@redhat.com>
4201 * include/bits/ranges_algo.h (__contains_fn, contains): Define.
4202 (__contains_subrange_fn, contains_subrange): Define.
4203 * testsuite/25_algorithms/contains/1.cc: New test.
4204 * testsuite/25_algorithms/contains_subrange/1.cc: New test.
4206 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
4208 * doc/xml/manual/abi.xml: Tweak link to ABIcheck project.
4209 * doc/html/manual/abi.html: Regenerate.
4211 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
4213 * src/filesystem/ops-common.h [AVR] (__unsupported): Always use
4214 errc::function_not_supported instead of errc::not_supported.
4216 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
4218 * include/std/sstream (basic_stringbuf::view): Define for old
4220 (basic_istringstream::view, basic_0stringstream::view)
4221 (basic_stringstream::view): Likewise.
4222 * testsuite/27_io/basic_istringstream/view/char/1.cc: Remove
4223 { dg-require-effective-target cxx11_abi }.
4224 * testsuite/27_io/basic_istringstream/view/wchar_t/1.cc:
4226 * testsuite/27_io/basic_ostringstream/view/char/1.cc: Likewise.
4227 * testsuite/27_io/basic_ostringstream/view/wchar_t/1.cc:
4229 * testsuite/27_io/basic_stringbuf/view/char/1.cc: Likewise.
4230 * testsuite/27_io/basic_stringbuf/view/wchar_t/1.cc: Likewise.
4231 * testsuite/27_io/basic_stringstream/view/char/1.cc: Likewise.
4232 * testsuite/27_io/basic_stringstream/view/wchar_t/1.cc:
4235 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
4238 * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Export shared_ptr
4239 conversion operators for directory iterator comparisons with
4240 std::default_sentinel_t.
4241 * include/bits/fs_path.h (path::path(string_view, _Type))
4242 (path::_Cmpt::_Cmpt(string_view, _Type, size_t)): Move inline
4244 * src/c++17/fs_path.cc: ... here.
4245 * testsuite/27_io/filesystem/path/108636.cc: New test.
4247 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
4249 * include/std/variant (variant::operator=): Implement resolution
4251 * testsuite/20_util/variant/lwg3585.cc: New test.
4253 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
4255 * doc/xml/manual/using_exceptions.xml: Update a www.open-std.org
4257 * doc/html/manual/using_exceptions.html: Regenerate.
4259 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
4261 * doc/xml/manual/debug.xml: Fix link to online GDB manual.
4262 * doc/html/manual/debug.html: Regenerate.
4264 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
4266 * src/c++11/random.cc (random_device::_M_fini): Do not try to
4267 close the file handle if the target doesn't support the
4268 /dev/random and /dev/urandom files.
4270 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
4272 * config/os/generic/error_constants.h (errc::value_too_large)
4274 * src/c++11/system_error.cc
4275 (system_category::default_error_condition) [__AVR__]: Only match
4276 recognize values equal to EDOM, ERANGE, ENOSYS and EINTR.
4277 * src/c++17/fs_ops.cc (fs::current_path) [__AVR__]: Do not check
4278 for ENOENT etc. in switch.
4279 (fs::remove_all) [__AVR__]: Likewise.
4280 * src/filesystem/ops-common.h [__AVR__]: Do not use POSIX open,
4283 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
4285 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR) [avr-*-*, msp430-*-*]: Set
4287 * configure: Regenerate.
4289 2023-02-01 Hans-Peter Nilsson <hp@axis.com>
4292 * testsuite/std/time/hh_mm_ss/1.cc (size): Add empty
4293 struct at end of S0.
4295 2023-01-30 Gerald Pfeifer <gerald@pfeifer.com>
4297 * doc/xml/manual/shared_ptr.xml: Move links from both
4298 http://open-std.org and http://www.open-std.org to
4299 https://www.open-std.org.
4300 * doc/html/manual/memory.html: Regenerate.
4302 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
4304 * doc/xml/manual/appendix_contributing.xml: Adjust link to
4305 ISO C++ standard at ANSI.
4306 Move link to www.open-std.org to https.
4307 * doc/html/manual/appendix_contributing.html: Regenerate.
4309 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
4311 * doc/xml/manual/documentation_hacking.xml: Move sourceforge.net
4313 * doc/html/manual/documentation_hacking.html: Regenerate.
4315 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
4317 * doc/xml/manual/abi.xml: Update www.open-std.org link to https.
4318 * doc/html/manual/abi.html: Regenerate.
4320 2023-01-27 Jakub Jelinek <jakub@redhat.com>
4323 * testsuite/17_intro/names.cc (__unused): For linux or GNU hurd
4324 include features.h if present and then check __GLIBC__ and
4325 __GLIBC_MINOR__ macros for glibc prior to 2.19, instead of testing
4326 __GLIBC_PREREQ which isn't defined yet.
4328 2023-01-27 Jonathan Wakely <jwakely@redhat.com>
4330 * src/c++20/tzdb.cc (tzdata_stream): Use constant instead of
4333 2023-01-27 Jonathan Wakely <jwakely@redhat.com>
4336 * testsuite/23_containers/map/modifiers/108554.cc: Use dg-bogus.
4338 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
4340 * src/c++20/tzdb.cc (operator>>(istream&, ZoneInfo&)): Allow
4341 rules named "+" for compatibility with older tzdata.zi files.
4343 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
4346 * include/bits/stl_tree.h (_Rb_tree_insert_and_rebalance): Add
4348 (_Rb_tree_rebalance_for_erase): Add nonnull and returns_nonnull
4350 * testsuite/23_containers/map/modifiers/108554.cc: New test.
4352 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
4355 * src/c++20/tzdb.cc (current_zone): Look for TIMEZONE or ZONE in
4356 /etc/sysconfig/clock, not DEFAULT_TIMEZONE.
4358 2023-01-26 Gerald Pfeifer <gerald@pfeifer.com>
4360 * doc/xml/manual/intro.xml: Update links to www.open-std.org to
4362 * doc/html/manual/bugs.html: Regenerate.
4364 2023-01-24 Jonathan Wakely <jwakely@redhat.com>
4367 * src/c++20/tzdb.cc (current_zone): Look for DEFAULT_TIMEZONE in
4368 /etc/sysconfig/clock.
4370 2023-01-24 Jonathan Wakely <jwakely@redhat.com>
4373 * include/bits/ranges_base.h: Include <bits/stl_iterator.h> for
4374 std::make_reverse_iterator.
4375 * include/std/tuple: Include <bits/ranges_util.h> for subrange.
4376 (make_from_tuple): Add static assertion from P2255 to diagnose
4377 dangling references.
4378 * testsuite/20_util/tuple/make_from_tuple/dangling_ref.cc: New test.
4379 * testsuite/20_util/tuple/make_from_tuple/tuple_like.cc: New test.
4381 2023-01-23 François Dumont <fdumont@gcc.gnu.org>
4383 * include/debug/safe_iterator.h (_Safe_iterator<>::_Unchecked): New.
4384 (_Safe_iterator(const _Safe_iterator&, _Unchecked)): New.
4385 (_Safe_iterator::operator++(int)): Use latter.
4386 (_Safe_iterator::operator--(int)): Likewise.
4387 (_Safe_iterator(_Iterator, const _Safe_sequence_base*)): Remove !_M_insular()
4389 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::_Unchecked):
4391 (_Safe_local_iterator(const _Safe_local_iterator&, _Unchecked)): New.
4392 (_Safe_local_iterator::operator++(int)): Use latter.
4393 * src/c++11/debug.cc (_S_debug_messages): Add as comment the _Debug_msg_id
4394 entry associated to the array entry.
4396 2023-01-18 Jonathan Wakely <jwakely@redhat.com>
4398 * include/bits/fs_path.h (u8path): Add deprecated attribute.
4399 * testsuite/27_io/filesystem/path/construct/90281.cc: Add
4400 -Wno-deprecated-declarations for C++20 and later.
4401 * testsuite/27_io/filesystem/path/factory/u8path-char8_t.cc:
4403 * testsuite/27_io/filesystem/path/factory/u8path.cc: Likewise.
4404 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
4405 * testsuite/27_io/filesystem/path/factory/u8path-depr.cc: New test.
4407 2023-01-18 Jonathan Wakely <jwakely@redhat.com>
4409 * include/bits/random.h (random_device) [!_GLIBCXX_USE_DEV_RANDOM]:
4410 Always call _M_fini and _M_getentropy.
4412 2023-01-18 Gerald Pfeifer <gerald@pfeifer.com>
4414 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust links
4415 to www.open-std.org to use https.
4416 (COM: Component Model Object Technologies): Rename from...
4417 (The Component Object Model): ...to.
4418 * doc/html/manual/policy_data_structures.html: Regenerate.
4420 2023-01-18 Dimitrij Mijoski <dmjpp@hotmail.com>
4422 * testsuite/22_locale/codecvt/codecvt_unicode.cc: Simplify.
4423 * testsuite/22_locale/codecvt/codecvt_unicode.h: Simplify.
4424 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: Simplify.
4426 2023-01-17 Jonathan Wakely <jwakely@redhat.com>
4428 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Check $target_os instead
4429 of $host. Fix check for file being present during native build.
4430 * configure: Regenerate.
4432 2023-01-17 Martin Liska <mliska@suse.cz>
4434 * src/libbacktrace/Makefile.in: Regenerate.
4436 2023-01-16 Jonathan Wakely <jwakely@redhat.com>
4438 * src/c++20/tzdb.cc (_GLIBCXX_USE_CXX11_ABI): Define to 1.
4440 2023-01-16 Jonathan Wakely <jwakely@redhat.com>
4443 * include/c_compatibility/stdatomic.h: Change copyright line to
4444 be consistent with other headers contributed under DCO terms.
4445 * include/std/expected: Add full stop to copyright line.
4446 * src/c++20/tzdb.cc: Likewise.
4448 2023-01-15 Gerald Pfeifer <gerald@pfeifer.com>
4450 * doc/xml/manual/status_cxx2014.xml: Switch www.open-std.org to
4452 * doc/xml/manual/status_cxx2017.xml: Ditto.
4453 * doc/xml/manual/status_cxx2020.xml: Ditto.
4454 * doc/xml/manual/status_cxx2023.xml: Ditto.
4455 * doc/html/manual/status.html: Regenerate.
4457 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
4459 * testsuite/std/time/tzdb_list/1.cc: Remove dg-xfail-run-if
4460 and fail gracefully if defining the weak symbol doesn't work.
4462 2023-01-15 François Dumont <fdumont@gcc.gnu.org>
4465 * include/debug/safe_iterator.h (_Safe_iterator<>::operator++(int)): Extend deadlock
4466 fix to other iterator category.
4467 (_Safe_iterator<>::operator--(int)): Likewise.
4468 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::operator++(int)):
4470 * testsuite/util/debug/unordered_checks.h (invalid_local_iterator_pre_increment): New.
4471 (invalid_local_iterator_post_increment): New.
4472 * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_post_increment_neg.cc:
4474 * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_pre_increment_neg.cc:
4477 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
4479 * testsuite/30_threads/jthread/jthread.cc: Remove -pthread from
4482 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
4484 * testsuite/std/time/clock/utc/io.cc: Use ctype to widen char.
4486 2023-01-14 Björn Schäpers <bjoern@hazardy.de>
4488 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Add check for
4489 windows.h. Add pecoff as FORMAT_FILE.
4490 * config.h.in: Regenerate.
4491 * configure: Regenerate.
4492 * src/libbacktrace/Makefile.am: Regenerate.
4493 * src/libbacktrace/Makefile.in: Add pecoff.c as FORMAT_FILE.
4495 2023-01-14 Björn Schäpers <bjoern@hazardy.de>
4497 * include/std/stacktrace (stacktrace_entry::_S_demangle): Use
4498 raw __name if __cxa_demangle could not demangle it.
4500 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
4503 * src/c++20/tzdb.cc (current_zone()) [_AIX]: Use TZ environment
4506 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
4508 * src/c++20/tzdb.cc (TZDB_DISABLED): Disable all code for
4510 * testsuite/std/time/tzdb/leap_seconds.cc: Require tzdb
4512 * testsuite/std/time/tzdb_list/1.cc: Likewise.
4514 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
4516 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Replace the
4517 --with-libstdcxx-zoneinfo-dir configure option with
4518 --with-libstdcxx-zoneinfo with yes/no/static choices as well as
4520 * config.h.in: Regenerate.
4521 * configure: Regenerate.
4522 * doc/xml/manual/configure.xml: Document configure option.
4523 * doc/html/manual/configure.html: Regenerate.
4524 * src/c++20/Makefile.am: Generate tzdata.zi.h header.
4525 * src/c++20/Makefile.in: Regenerate.
4526 * src/c++20/tzdb.cc (__gnu_cxx::zoneinfo_dir_override): Return a
4527 null pointer if no directory is configured.
4528 (zoneinfo_dir): Replace with ...
4529 (zoneinfo_file): New function.
4530 (tzdata_stream): New istream class.
4531 (remote_version, reload_tzdb): Use tzdata_stream.
4532 * testsuite/lib/libstdc++.exp (check_effective_target_tzdb):
4533 Check new _GLIBCXX_STATIC_TZDATA macro and ignore presence of
4534 tzdata.zi file in default location.
4535 * src/c++20/tzdata.zi: New file.
4537 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
4539 * include/bits/chrono_io.h (operator<<): Fix syntax errors.
4540 * testsuite/std/time/month_day/io.cc: New test.
4541 * testsuite/std/time/month_day_last/io.cc: New test.
4542 * testsuite/std/time/month_weekday/io.cc: New test.
4543 * testsuite/std/time/month_weekday_last/io.cc: New test.
4544 * testsuite/std/time/weekday_indexed/io.cc: New test.
4545 * testsuite/std/time/weekday_last/io.cc: New test.
4546 * testsuite/std/time/year_month/io.cc: New test.
4547 * testsuite/std/time/year_month_day_last/io.cc: New test.
4548 * testsuite/std/time/year_month_weekday/io.cc: New test.
4549 * testsuite/std/time/year_month_weekday_last/io.cc: New test.
4551 2023-01-14 François Dumont <fdumont@gcc.gnu.org>
4553 * include/std/format [_GLIBCXX_INLINE_VERSION](to_chars): Adapt __asm symbol
4555 * config/abi/pre/gnu-versioned-namespace.ver: Add to_chars/from_chars symbols
4558 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
4560 * include/bits/std_mutex.h: Include <errno.h>.
4562 2023-01-13 Arsen Arsenović <arsen@aarsen.me>
4564 * testsuite/20_util/to_chars/version.cc: Mark hosted-only.
4565 * testsuite/20_util/uses_allocator/lwg3677.cc: Ditto.
4566 * testsuite/20_util/weak_ptr/cons/self_move.cc: Ditto.
4567 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Replace usage of
4568 std::make_unique with a freestanding-compatible wrapper around
4570 * testsuite/21_strings/basic_string_view/operations/contains/char.cc:
4571 Don't test for presence of __cpp_lib_string_contains on !HOSTED.
4572 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
4574 * testsuite/std/ranges/version_c++23.cc: Don't test for presence
4575 of __cpp_lib_ranges in !HOSTED.
4577 2023-01-13 Arsen Arsenović <arsen@aarsen.me>
4579 * include/Makefile.am: Install bits/char_traits.h,
4581 * include/Makefile.in: Regenerate.
4582 * include/bits/char_traits.h: Gate hosted-only, wchar-only and
4583 mbstate-only bits behind appropriate #ifs.
4584 * include/std/string_view: Gate <iostream> functionality behind
4586 * include/std/version: Enable __cpp_lib_constexpr_string_view
4587 and __cpp_lib_starts_ends_with in !HOSTED.
4588 * include/std/ranges: Re-enable __is_basic_string_view on
4589 freestanding, include <string_view> directly.
4590 * include/precompiled/stdc++.h: Include <string_view> when
4592 * testsuite/20_util/function_objects/searchers.cc: Skip testing
4593 boyer_moore searchers on freestanding
4594 * testsuite/21_strings/basic_string_view/capacity/1.cc: Guard
4595 <string>-related tests behind __STDC_HOSTED__.
4596 * testsuite/21_strings/basic_string_view/cons/char/1.cc: Ditto.
4597 * testsuite/21_strings/basic_string_view/cons/char/2.cc: Remove
4598 unused <stdexcept> include.
4599 * testsuite/21_strings/basic_string_view/cons/char/3.cc: Remove
4600 unused <vector> include.
4601 * testsuite/21_strings/basic_string_view/cons/char/range.cc:
4602 Guard <string> related testing behind __STDC_HOSTED__.
4603 * testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc:
4604 Guard <stdexcept> related tests behind __STDC_HOSTED__.
4605 * testsuite/21_strings/basic_string_view/element_access/char/1.cc:
4607 * testsuite/21_strings/basic_string_view/element_access/wchar_t/1.cc:
4608 Guard <stdexcept> tests behind __STDC_HOSTED__.
4609 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
4610 Enable test on freestanding, guard <stdexcept> bits behind
4612 * testsuite/21_strings/basic_string_view/operations/substr/char.cc:
4613 Guard <stdexcept> bits behind __STDC_HOSTED__.
4614 * testsuite/21_strings/basic_string_view/operations/substr/wchar_t.cc:
4617 2023-01-13 Dimitrij Mijoski <dmjpp@hotmail.com>
4620 * src/c++11/codecvt.cc (read_utf8_code_point): Correctly detect
4621 errors in incomplete multibyte sequences.
4622 (utf16_in): Remove surrogates parameter. Fix conditions for
4624 (utf16_out): Fix condition for returning partial.
4625 (ucs2_in): Do not pass surrogates argument to utf16_in.
4626 * testsuite/22_locale/codecvt/codecvt_unicode.cc: New test.
4627 * testsuite/22_locale/codecvt/codecvt_unicode.h: New header for
4629 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: New
4632 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
4635 * config/io/c_io_stdio.h (__c_lock): Define as a typedef for
4636 __GTHREAD_LEGACY_MUTEX_T if defined.
4638 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
4641 * config/os/gnu-linux/ldbl-extra.ver (GLIBCXX_LDBL_3.4.31):
4642 Export __try_use_facet specializations for facets in namespace
4644 * config/os/gnu-linux/ldbl-ieee128-extra.ver
4645 (GLIBCXX_IEEE128_3.4.31): Likewise for facets in namespace
4647 * testsuite/util/testsuite_abi.cc: Add to lists of known and
4650 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
4652 * include/bits/std_mutex.h: Remove <system_error> include.
4653 * include/std/condition_variable: Add <bits/error_constants.h>
4655 * include/std/mutex: Likewise.
4656 * include/std/shared_mutex: Likewise.
4658 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
4661 * include/experimental/memory_resource
4662 (_GLIBCXX_MAX_ALIGN_MATCHES_MALLOC): Define.
4663 (do_allocate, do_deallocate): Check it.
4664 * testsuite/experimental/memory_resource/new_delete_resource.cc:
4665 Relax expected behaviour for 64-bit hppa-hp-hpux11.11.
4667 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
4669 * doc/xml/manual/abi.xml: Add latest library versions.
4670 * doc/html/manual/abi.html: Regenerate.
4672 2023-01-12 François Dumont <fdumont@gcc.gnu.org>
4675 * include/bits/stl_tree.h (_Rb_tree<>::_M_insert_range_equal): Remove
4676 unused _Alloc_node instance.
4678 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
4680 * include/bits/atomic_wait.h (__detail::__platform_wait_t):
4681 Define as unsigned long if always lock-free, and unsigned int
4684 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
4686 * src/c++20/tzdb.cc (tzdb_list::_S_init_tzdb): Use __try and
4687 __catch macros for exception handling.
4689 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
4692 * include/bits/stl_algobase.h (__lg): Replace six overloads with
4693 a single function template for all integer types.
4694 * include/bits/stl_algo.h (__merge_adaptive_resize): Cast
4695 arithmetic results back to _Distance.
4697 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
4700 * include/std/span (span::span()): Un-simplify constraint to
4701 work for size_t of lesser rank than int.
4703 2023-01-07 LIU Hao <lh_mouse@126.com>
4705 PR middle-end/108300
4706 * src/c++11/system_error.cc: Define `WIN32_LEAN_AND_MEAN` before
4708 * src/c++11/thread.cc: Likewise.
4709 * src/c++17/fs_ops.cc: Likewise.
4710 * src/filesystem/ops.cc: Likewise.
4712 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
4715 * src/c++20/tzdb.cc (zoneinfo_dir): Add diagnostic pragma.
4717 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
4720 * src/c++20/tzdb.cc (time_zone::_Impl::RulesCounter): New class
4721 template and partial specialization for synchronizing access to
4722 time_zone::_Impl::infos.
4723 (time_zone::_M_get_sys_info, reload_tzdb): Adjust uses of
4726 2023-01-06 Patrick Palka <ppalka@redhat.com>
4729 * include/bits/utility.h (__cpp_lib_ranges_zip): Define for C++23.
4730 * include/std/ranges (__cpp_lib_ranges_zip): Likewise.
4731 (__cpp_lib_ranges_chunk): Likewise.
4732 (__cpp_lib_ranges_slide): Likewise.
4733 (__cpp_lib_ranges_chunk_by): Likewise.
4734 (__cpp_lib_ranges_join_with): Likewise.
4735 (__cpp_lib_ranges_repeat): Likewise.
4736 (__cpp_lib_ranges_stride): Likewise.
4737 (__cpp_lib_ranges_cartesian_product): Likewise.
4738 (__cpp_lib_ranges_as_rvalue): Likewise.
4739 * include/std/version: Ditto.
4740 * testsuite/20_util/tuple/p2321r2.cc: Verify value of
4742 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Likewise.
4743 * testsuite/std/ranges/adaptors/chunk/1.cc: Likewise.
4744 * testsuite/std/ranges/adaptors/chunk_by/1.cc: Likewise.
4745 * testsuite/std/ranges/adaptors/join_with/1.cc: Likewise.
4746 * testsuite/std/ranges/adaptors/slide/1.cc: Likewise.
4747 * testsuite/std/ranges/adaptors/stride/1.cc: Likewise.
4748 * testsuite/std/ranges/cartesian_product/1.cc: Likewise.
4749 * testsuite/std/ranges/repeat/1.cc: Likewise.
4750 * testsuite/std/ranges/zip/1.cc: Likewise.
4751 * testsuite/std/ranges/version_c++23.cc: New test.
4753 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
4756 * include/std/bitset (operator>>): Use alloca in the right
4757 scope, not in a constructor.
4758 * testsuite/20_util/bitset/io/input.cc: Check case from PR.
4760 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
4763 * include/std/format (basic_format_arg) [!__cpp_lib_to_chars]:
4764 Disable visiting floating-point types.
4766 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
4769 * include/debug/safe_iterator.h (_Safe_iterator::operator++(int))
4770 (_Safe_iterator::operator--(int)): Do not hold lock around
4771 construction of return value.
4773 2023-01-05 John David Anglin <danglin@gcc.gnu.org>
4775 * config/cpu/hppa/atomicity.h (_PA_LDCW_INSN): Define.
4776 (__exchange_and_add): Use _PA_LDCW_INSN. Use ordered store for
4777 lock release. Revise loop.
4778 (__atomic_add): Likewise.
4780 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
4783 * python/libstdcxx/v6/printers.py (_utc_timezone): New global
4785 (StdChronoTimePointPrinter::to_string): Use it.
4787 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
4790 * include/std/functional (_Bind_front): Add no_unique_address
4791 attribute to data members.
4792 * testsuite/20_util/function_objects/bind_front/107784.cc: Check
4793 size of call wrappers with empty types for targets and bound
4796 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
4799 * src/c++20/tzdb.cc (chrono::current_zone()): Check for zone
4800 using only last component of the name.
4802 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
4806 * config/abi/pre/gnu.ver: Move zoneinfo_dir_override export to
4807 the latest symbol version.
4808 * src/c++20/tzdb.cc (USE_ATOMIC_SHARED_PTR): Define to 0 if
4809 atomic<_Node*> is not always lock free.
4810 (USE_ATOMIC_LIST_HEAD): New macro.
4811 [__hpux__] (__gnu_cxx::zoneinfo_dir_override()): Provide
4812 definition of weak symbol.
4813 (tzdb_list::_Node::_S_head): Rename to _S_head_cache.
4814 (tzdb_list::_Node::_S_list_head): New function for accessing
4815 list head efficiently.
4816 (tzdb_list::_Node::_S_cache_list_head): New function for
4817 updating _S_list_head.
4819 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
4822 * include/std/chrono (hh_mm_ss): Do not use chrono::abs if
4823 duration rep is unsigned.
4824 * testsuite/std/time/hh_mm_ss/1.cc: Check unsigned rep.
4826 2023-01-04 Iain Sandoe <iain@sandoe.co.uk>
4829 * config/abi/pre/gnu.ver (GLIBCXX_3.4):
4830 Add __gnu_cxx::zoneinfo_dir_override().
4832 2023-01-04 Jonathan Wakely <jwakely@redhat.com>
4835 * include/std/array (__array_traits<T, 0>::operator T*()): Add
4837 * testsuite/23_containers/array/element_access/constexpr_c++17.cc: Check
4838 std::array<T, 0>::data().
4841 Copyright (C) 2023 Free Software Foundation, Inc.
4843 Copying and distribution of this file, with or without modification,
4844 are permitted in any medium without royalty provided the copyright
4845 notice and this notice are preserved.