1 2023-09-12 Patrick Palka <ppalka@redhat.com>
4 * include/std/functional (_GLIBCXX_NOT_FN_CALL_OP): Also define
5 a deleted fallback operator() overload. Constrain both the
6 enabled and deleted overloads accordingly.
7 * testsuite/20_util/function_objects/not_fn/111327.cc: New test.
9 2023-09-12 Patrick Palka <ppalka@redhat.com>
12 * include/std/functional (_Bind_front::operator()): Add deleted
13 fallback overloads for each const/ref qualifier pair. Give the
14 enabled overloads dummy constraints to make each one more
15 specialized than the corresponding deleted overload.
16 * testsuite/20_util/function_objects/bind_front/111327.cc: New test.
18 2023-09-12 Patrick Palka <ppalka@redhat.com>
20 * include/std/functional (_Bind_front0): Remove.
21 (_Bind_front_t): Adjust.
23 2023-09-12 Jonathan Wakely <jwakely@redhat.com>
25 * python/libstdcxx/v6/printers.py: Reformat.
26 * python/libstdcxx/v6/xmethods.py: Likewise.
28 2023-09-11 Jonathan Wakely <jwakely@redhat.com>
30 * src/c++11/debug.cc (acquire_sequence_ptr_for_lock): New
32 (reset_sequence_ptr): New function.
33 (_Safe_iterator_base::_M_detach)
34 (_Safe_local_iterator_base::_M_detach): Replace bare atomic_load
35 with acquire_sequence_ptr_for_lock.
36 (_Safe_iterator_base::_M_reset): Replace bare atomic_store with
39 2023-09-11 Jonathan Wakely <jwakely@redhat.com>
41 * src/c++11/Makefile.am: Add new file.
42 * src/c++11/Makefile.in: Regenerate.
43 * src/c++11/debug.cc (__glibcxx_assert_fail): Move to ...
44 * src/c++11/assert_fail.cc: New file.
46 2023-09-11 Ken Matsui <kmatsui@gcc.gnu.org>
48 * include/bits/c++config (_GLIBCXX_HAS_BUILTIN): Do not undef.
49 (_GLIBCXX_USE_BUILTIN_TRAIT): Define.
51 2023-09-11 Jonathan Wakely <jwakely@redhat.com>
53 * include/bits/version.def (__cpp_lib_formatters): Define.
54 * include/bits/version.h: Regenerate.
55 * include/std/stacktrace (formatter<stacktrace_entry>)
56 (formatter<basic_stacktrace<Alloc>>): Define.
57 * include/std/thread (formatter<thread::id, charT>): Define.
58 * testsuite/19_diagnostics/stacktrace/output.cc: New test.
59 * testsuite/19_diagnostics/stacktrace/synopsis.cc: Add
60 std::formatter specializations.
61 * testsuite/19_diagnostics/stacktrace/version.cc: Check
62 __cpp_lib_formatters macro.
63 * testsuite/30_threads/thread/id/hash.cc: Remove gthreads
65 * testsuite/30_threads/thread/id/operators.cc: Likewise.
66 * testsuite/30_threads/thread/id/operators_c++20.cc: Likewise.
67 * testsuite/30_threads/thread/id/output.cc: New test.
69 2023-09-11 Pekka Seppänen <pexu@gcc.mail.kapsi.fi>
71 * src/c++11/cow-locale_init.cc: Add [[maybe_unused]] attribute.
72 * src/c++17/fs_path.cc (path::_S_convert_loc): Likewise.
73 * src/filesystem/path.cc (path::_S_convert_loc): Likewise.
75 2023-09-08 Jonathan Wakely <jwakely@redhat.com>
77 * acinclude.m4 (GLIBCXX_CONFIGURE): Add c++23 directory.
78 * configure: Regenerate.
79 * doc/html/manual/*: Regenerate.
80 * doc/xml/manual/using.xml: Update documentation on linking.
81 * include/std/stacktrace: Remove declarations of libbacktrace
83 (stacktrace_entry::_S_err_handler, stacktrace_entry::_S_init):
85 (stacktrace_entry::_Info): New class.
86 (stacktrace_entry::_M_get_info): Use _Info.
87 (__stacktrace_impl): New class.
88 (basic_stacktrace): Derive from __stacktrace_impl.
89 (basic_stacktrace::current): Use __stacktrace_impl::_S_current.
90 * scripts/testsuite_flags.in: Adjust LDFLAGS to find
91 libstdc++exp instead of libstdc++_libbacktrace.
92 * src/Makefile.am (SUBDIRS): Add c++23 directory.
93 * src/Makefile.in: Regenerate.
94 * src/c++20/Makefile.am: Fix comment.
95 * src/c++20/Makefile.in: Regenerate.
96 * src/c++23/Makefile.am: New file.
97 * src/c++23/Makefile.in: New file.
98 * src/c++23/stacktrace.cc: New file with definitions of
99 stacktrace_entry::_Info and __stacktrace_impl members.
100 * src/experimental/Makefile.am: Use LIBADD to include other
102 * src/experimental/Makefile.in: Regenerate.
103 * src/libbacktrace/Makefile.am: Use noinst_LTLIBRARIES.
104 * src/libbacktrace/Makefile.in: Regenerate.
105 * testsuite/19_diagnostics/stacktrace/current.cc: Adjust
106 dg-options to use -lstdc++exp.
107 * testsuite/19_diagnostics/stacktrace/entry.cc: Likewise.
108 * testsuite/19_diagnostics/stacktrace/stacktrace.cc: Likewise.
109 * testsuite/23_containers/vector/debug/assign4_backtrace_neg.cc:
112 2023-09-08 Alexey Lapshin <alexey.lapshin@espressif.com>
114 * src/libbacktrace/Makefile.am: Remove -Werror.
115 * src/libbacktrace/Makefile.in: Regenerate.
117 2023-09-08 Jonathan Wakely <jwakely@redhat.com>
119 * testsuite/Makefile.am (check-DEJAGNU): Use @ in recipe.
120 * testsuite/Makefile.in: Regenerate.
122 2023-09-08 Yang Yujie <yangyujie@loongson.cn>
124 * configure.host: Register t-loongarch in tmake_file.
125 * config/cpu/loongarch/t-loongarch: New file. Manually refresh
126 MULTISUBDIR with $(shell $(CXX) --print-multi-directory).
128 2023-09-07 Bruno Victal <mirai@makinata.eu>
130 * acinclude.m4: Update docbook xsl URI.
131 * configure: Regenerate.
133 2023-09-07 Bruno Victal <mirai@makinata.eu>
135 * doc/Makefile.am: Fix 'doc-install-info' rule.
136 Fix typo in commment.
137 * doc/Makefile.in: Regenerate.
139 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
141 * testsuite/27_io/filesystem/path/concat/94063.cc: Simplify
142 dg-do target selector.
144 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
146 * testsuite/config/default.exp: Remove trailing whitespace.
147 * testsuite/lib/dg-options.exp: Likewise.
148 * testsuite/lib/prune.exp: Likewise.
149 * testsuite/libstdc++-abi/abi.exp: Likewise.
150 * testsuite/libstdc++-dg/conformance.exp: Likewise.
151 * testsuite/libstdc++-prettyprinters/prettyprinters.exp:
153 * testsuite/libstdc++-xmethods/xmethods.exp: Likewise.
154 * testsuite/lib/libstdc++.exp: Likewise.
155 (check_v3_target_c_std): Fix filename for temporary source file.
157 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
159 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for mkdir,
160 chmod, chdir, and getcwd.
161 * config.h.in: Regenerate.
162 * configure: Regenerate.
163 * src/c++17/fs_ops.cc (create_dir): Use USE_MKDIR macro.
164 (fs::current_path): Use USE_GETCWD and USE_CHDIR macros.
165 (fs::permissions): Use USE_CHMOD macro.
166 * src/filesystem/ops-common.h [FILESYSTEM_IS_WINDOWS]
167 (chmod, mkdir, getcwd, chdir): Define new macros.
168 [FILESYSTEM_IS_WINDOWS] (chmod, mkdir, getcwd, chdir): Use
170 * src/filesystem/ops.cc (create_dir): Use USE_MKDIR macro.
171 (fs::current_path): Use USE_GETCWD and USE_CHDIR macros.
172 (fs::permissions): Use USE_CHMOD macro.
174 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
176 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Disable by default
178 * configure: Regenerate.
180 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
182 * testsuite/23_containers/unordered_map/operations/1.cc: Add
183 dg-options for C++20 mode.
184 * testsuite/23_containers/unordered_multimap/operations/1.cc:
186 * testsuite/23_containers/unordered_multiset/operations/1.cc:
188 * testsuite/23_containers/unordered_set/operations/1.cc:
190 * testsuite/std/time/parse.cc: Move dg-options before dg-do.
192 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
194 * testsuite/std/ranges/access/cbegin.cc: Adjust for C++23
196 * testsuite/std/ranges/access/cdata.cc: Likewise.
197 * testsuite/std/ranges/access/cend.cc: Likewise.
198 * testsuite/std/ranges/access/crbegin.cc: Likewise.
199 * testsuite/std/ranges/access/crend.cc: Likewise.
200 * testsuite/std/ranges/adaptors/take.cc: Likewise.
201 * testsuite/std/ranges/adaptors/take_while.cc: Likewise.
202 * testsuite/std/ranges/adaptors/transform.cc: Likewise.
204 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
206 * include/bits/iterator_concepts.h (__imove::iter_move): Define
207 poison pill as deleted for consistency.
208 (__access::begin): Replace with a single declaration.
209 * include/bits/ranges_base.h (__access::end, __access::rbegin)
210 (__access::rend, __access::size): Likewise.
211 * include/bits/version.def (ranges): Update value for C++23.
212 * include/bits/version.h: Regenerate.
213 * libsupc++/compare (__compare): Add missing poison pill
215 * testsuite/std/ranges/version_c++23.cc: Adjust expected value
217 * testsuite/std/ranges/access/p2602.cc: New test.
219 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
221 * include/bits/iterator_concepts.h (ranges::__cust_imove):
222 Rename to ranges::__imove.
223 (_IMove): Rename to _IterMove.
224 (ranges::__cust_iswap): Rename to ranges::__iswap.
225 (ranges::__cust): Rename to ranges::_Cpo.
226 (ranges::__cust_access): Rename to ranges::__access.
227 * include/bits/ranges_base.h (ranges::__cust_access): Rename to
229 (ranges::__cust): Rename to ranges::_Cpo.
230 * include/std/concepts (ranges::__cust_swap): Rename to
232 (ranges::__cust): Rename to ranges::_Cpo.
233 * libsupc++/compare (__cmp_cust): Rename to __compare.
234 (__cmp_algo): Rename to _Cpo.
236 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
238 * include/bits/version.def (ranges): Update value.
239 * include/bits/version.h: Regenerate.
240 * include/std/ranges (__detail::__boxable): Use
241 move_constructible instead of copy_constructible for C++23.
242 (__detail::__box<T>): Adjust constraints for partial
244 (single_view, transform_view): Use __box_constructible instead
245 of copy_constructible in constraints.
246 (zip_transform_view, adjacent_transform_view, repeat_view): Use
247 move_constructible instead of copy_constructible in constraints.
248 * testsuite/std/ranges/adaptors/adjacent_transform/1.cc: Check
249 construction from move-only argument.
250 * testsuite/std/ranges/adaptors/transform.cc: Likewise.
251 * testsuite/std/ranges/repeat/1.cc: Likewise.
252 * testsuite/std/ranges/single_view.cc: Likewise.
253 * testsuite/std/ranges/zip_transform/1.cc: Likewise.
254 * testsuite/std/ranges/version_c++23.cc: Adjust expected value
257 2023-09-07 Jonathan Wakely <jwakely@redhat.com>
259 * testsuite/util/testsuite_iterators.h (is_customization_point_object):
260 Remove parameter name.
262 2023-09-06 Jonathan Wakely <jwakely@redhat.com>
264 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Disable by default
266 * configure: Regenerate.
268 2023-09-04 Christophe Lyon <christophe.lyon@linaro.org>
271 2023-09-04 Christophe Lyon <christophe.lyon@linaro.org>
274 * configure: Regenerate.
275 * configure.ac: Call GLIBCXX_CHECK_LINKER_FEATURES in cross,
278 2023-09-04 Christophe Lyon <christophe.lyon@linaro.org>
281 * configure: Regenerate.
282 * configure.ac: Call GLIBCXX_CHECK_LINKER_FEATURES in cross,
285 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
287 * testsuite/26_numerics/complex/literals/types.cc: Remove
288 dg-options and add target selector instead.
290 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
292 * testsuite/tr1/6_containers/utility/pair.cc: Remove dg-options
293 and qualify ambiguous calls to get.
294 * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Adjust
295 expected result for std::pow(float, int) as per DR 550.
297 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
299 * testsuite/20_util/auto_ptr/1.cc: Remove dg-options -std=c++03
300 and add dg-warning for deprecation warnings.
301 * testsuite/20_util/auto_ptr/2.cc: Likewise.
302 * testsuite/20_util/auto_ptr/3.cc: Likewise.
303 * testsuite/20_util/auto_ptr/3946.cc: Likewise.
304 * testsuite/20_util/auto_ptr/4.cc: Likewise.
305 * testsuite/20_util/auto_ptr/5.cc: Likewise.
306 * testsuite/20_util/auto_ptr/6.cc: Likewise.
307 * testsuite/20_util/auto_ptr/7.cc: Likewise.
308 * testsuite/20_util/auto_ptr/assign_neg.cc: Likewise.
309 * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc:
311 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc:
313 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc:
315 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc:
317 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
319 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc:
321 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc:
324 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
327 * testsuite/23_containers/vector/26412-1.cc: Moved to...
328 * testsuite/23_containers/vector/26142-1.cc: ...here.
329 * testsuite/23_containers/vector/26412-2.cc: Moved to...
330 * testsuite/23_containers/vector/26142-2.cc: ...here.
332 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
334 * testsuite/20_util/bitset/107037.cc: Add c++98_only selector.
335 * testsuite/26_numerics/complex/56111.cc: Likewise.
337 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
339 * testsuite/23_containers/deque/requirements/explicit_instantiation/2.cc:
340 Add dg-options to restrict the test to C++98 mode.
341 * testsuite/23_containers/list/requirements/explicit_instantiation/2.cc:
344 2023-09-04 Jonathan Wakely <jwakely@redhat.com>
346 * testsuite/20_util/expected/bad.cc: Add missing target
349 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
351 * testsuite/25_algorithms/copy/debug/constexpr_neg.cc: Adjust
353 * testsuite/25_algorithms/equal/debug/constexpr_neg.cc:
356 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
358 * testsuite/27_io/filesystem/iterators/91067.cc: Add
359 -Wno-self-move to options.
360 * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise.
362 2023-09-01 Vladimir Palevich <palevichva@gmail.com>
365 * include/bits/vector.tcc (_M_realloc_insert): End guard
366 lifetime just before assignment to class members.
367 (_M_default_append): Likewise.
369 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
371 * src/c++17/fs_ops.cc (fs::absolute) [FILESYSTEM_IS_WINDOWS]:
372 Use __resize_and_overwrite to fill buffer.
373 (fs::read_symlink) [HAVE_READLINK]: Likewise.
374 * src/filesystem/ops-common.h (get_temp_directory_from_env)
375 [FILESYSTEM_IS_WINDOWS]: Likewise.
377 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
380 * include/bits/atomic_base.h (__atomic_impl::__compare_exchange):
381 Add _AtomicRef non-type template parameter and use a loop if it
383 (__atomic_impl::compare_exchange_weak): Add _AtomicRef NTTP.
384 (__atomic_impl::compare_exchange_strong): Likewise.
385 (atomic_ref::compare_exchange_weak): Use true for NTTP.
386 (atomic_ref::compare_exchange_strong): Use true for NTTP.
387 * testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc:
388 Fix test to not rely on atomic_ref::load() to return an object
389 with padding preserved.
391 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
393 * testsuite/27_io/filesystem/path/108636.cc: Add dg-require for
396 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
398 * src/c++20/tzdb.cc (tzdb::current_zone): Check configure macros
399 for POSIX readlink before using filesystem::read_symlink.
401 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
403 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Default to yes.
404 * configure: Regenerate.
406 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
408 * include/bits/chrono_io.h (_Parser::operator()): Set failbit
409 early if invalid values are read when _M_need & _TimeOfDay is
411 * testsuite/std/time/parse.cc: Check that "25:59" cannot be
414 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
417 * include/bits/chrono_io.h (_Parser::Operator()): Check %C
418 values are in range of year::min() to year::max().
419 * testsuite/std/time/parse.cc: Check out of range centuries.
421 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
423 * include/std/format (__format::_Sink::_M_reset): Change second
424 argument from iterator to offset.
426 2023-08-24 Paul Dreik <gccpatches@pauldreik.se>
429 * testsuite/std/format/string.cc: Check wide character format
430 strings with out-of-range widths.
432 2023-08-24 Paul Dreik <gccpatches@pauldreik.se>
435 * include/std/format (__format::__parse_integer): Check for
438 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
440 * testsuite/std/format/functions/format_to.cc: Avoid warning for
443 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
445 * include/std/atomic: Add comment to #ifdef and fix indentation.
446 * include/std/ostream: Check __glibcxx_syncbuf instead of
447 __cplusplus and _GLIBCXX_HOSTED.
448 * include/std/thread: Add comment to #ifdef.
450 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
452 * include/bits/version.def (__cpp_lib_ratio): Define.
453 * include/bits/version.h: Regenerate.
454 * include/std/ratio (quecto, ronto, yocto, zepto)
455 (zetta, yotta, ronna, quetta): Define.
456 * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Adjust
457 dg-error line numbers.
459 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
461 * python/libstdcxx/v6/printers.py (StdLocalePrinter): New
463 * testsuite/libstdc++-prettyprinters/locale.cc: New test.
465 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
468 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Do
469 not show template arguments.
470 (StdVariantPrinter): Likewise.
471 * testsuite/libstdc++-prettyprinters/compat.cc: Adjust expected
473 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
474 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
476 2023-08-23 François Dumont <fdumont@gcc.gnu.org>
478 * testsuite/util/replacement_memory_operators.h
479 (counter::scope): New, capture and reset counter count at construction and
480 restore it at destruction.
481 (counter::check_new): Add scope instantiation.
482 * testsuite/23_containers/unordered_map/96088.cc (main):
483 Add counter::scope instantiation.
484 * testsuite/23_containers/unordered_multimap/96088.cc (main): Likewise.
485 * testsuite/23_containers/unordered_multiset/96088.cc (main): Likewise.
486 * testsuite/23_containers/unordered_set/96088.cc (main): Likewise.
487 * testsuite/ext/malloc_allocator/deallocate_local.cc (main): Likewise.
488 * testsuite/ext/new_allocator/deallocate_local.cc (main): Likewise.
489 * testsuite/ext/throw_allocator/deallocate_local.cc (main): Likewise.
490 * testsuite/ext/pool_allocator/allocate_chunk.cc (started): New global.
491 (operator new(size_t)): Check started.
492 (main): Set/Unset started.
493 * testsuite/17_intro/no_library_allocation.cc: New test case.
495 2023-08-21 Jonathan Wakely <jwakely@redhat.com>
497 * testsuite/18_support/nested_exception/rethrow_if_nested-term.cc:
498 Call std::set_terminate before throwing the nested exception.
500 2023-08-18 Jonathan Wakely <jwakely@redhat.com>
503 * include/std/format (formatter): Only define specializations
504 for 16-bit floating-point types for C++23.
505 * include/std/limits (numeric_limits): Likewise.
507 2023-08-18 Jonathan Wakely <jwakely@redhat.com>
509 * include/bits/chrono_io.h (operator<<): Make uses of wide
510 strings with streams and std::format type-dependent on _CharT.
511 * include/std/format [!_GLIBCXX_USE_WCHAR_T] Do not use
512 __to_wstring_numeric.
514 2023-08-18 Jonathan Wakely <jwakely@redhat.com>
516 * include/bits/chrono_io.h (operator<<): Use __format_context.
517 * include/std/format (__format::__format_context): New alias
519 [!_GLIBCXX_USE_WCHAR_T] (wformat_args, make_wformat_arg):
522 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
525 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
527 * config/locale/generic/c_locale.cc (__convert_to_v): Reuse
528 double overload for long double if possible.
530 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
532 * src/c++20/tzdb.cc (tzdata_file, leaps_file): Change type to
535 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
537 * config/locale/generic/c_locale.cc (__convert_to_v): Reuse
538 double overload for long double if possible.
540 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
542 * src/c++98/localename.cc (is_C_locale): New function.
543 (locale::locale(const char*)): Use is_C_locale.
545 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
548 * include/bits/basic_string.h (basic_string::assign(Iter, Iter)):
549 Dispatch to _M_replace or move assignment from a temporary,
550 based on the iterator type.
552 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
554 * include/std/format (formatter): Add partial specializations
555 for extended floating-point types.
556 * testsuite/std/format/functions/format.cc: Move test_float128()
558 * testsuite/std/format/formatter/ext_float.cc: New test.
560 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
562 * include/bits/c++config (__gnu_cxx::__bfloat16_t): Define
563 whenever __BFLT16_DIG__ is defined, not only for C++23.
564 * include/std/limits (numeric_limits<bfloat16_t>): Likewise.
565 (numeric_limits<_Float16>, numeric_limits<_Float32>)
566 (numeric_limits<_Float64>): Likewise for other extended
567 floating-point types.
569 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
571 * include/experimental/internet (address_v4::to_string): Remove
572 unused parameter name.
574 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
576 * libsupc++/compare (__cmp_cat::__unseq): Make ctor consteval.
577 * testsuite/18_support/comparisons/categories/zero_neg.cc: Prune
578 excess errors caused by invalid consteval calls.
580 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
582 * include/bits/chrono_io.h (__units_suffix_misc): Remove.
583 (__units_suffix): Return a known suffix as string view, do not
584 write unknown suffixes to a buffer.
585 (__fmt_units_suffix): New function that formats the suffix using
587 (operator<<, __chrono_formatter::_M_q): Use __fmt_units_suffix.
588 (__chrono_formatter::_M_Z): Correct lifetime of wstring.
590 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
592 * include/std/format [_GLIBCXX_USE_WCHAR_T]: Guard all wide
593 string formatters with this macro.
594 (__formatter_int::_M_format_int, __formatter_fp::format)
595 (formatter<const void*, C>::format): Use __to_wstring_numeric
596 instead of std::ctype::widen.
597 (__formatter_fp::_M_localize): Use hardcoded wchar_t values
598 instead of std::ctype::widen.
599 * testsuite/std/format/functions/format.cc: Add more checks for
600 wstring formatting of arithmetic types.
602 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
604 * include/bits/basic_string.h (to_string(floating-point-type)):
605 Implement using std::to_chars for C++26.
606 * include/bits/version.def (__cpp_lib_to_string): Define.
607 * include/bits/version.h: Regenerate.
608 * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
609 Adjust expected result in C++26 mode.
610 * testsuite/21_strings/basic_string/numeric_conversions/char/to_string.cc:
612 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/dr1261.cc:
614 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/to_wstring.cc:
616 * testsuite/21_strings/basic_string/numeric_conversions/char/to_string_float.cc:
618 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/to_wstring_float.cc:
620 * testsuite/21_strings/basic_string/numeric_conversions/version.cc:
623 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
625 * include/bits/basic_string.h (to_string(integral-type)): Use
626 resize_and_overwrite when available.
627 (__to_wstring_numeric): New helper functions.
628 (to_wstring): Use std::to_string then __to_wstring_numeric.
629 * testsuite/21_strings/basic_string/numeric_conversions/char/to_string_int.cc:
630 Remove check for no excess capacity.
632 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
634 * include/bits/basic_string.h (__resize_and_overwrite): New
636 * include/bits/basic_string.tcc (__resize_and_overwrite): New
638 (resize_and_overwrite): Simplify by using reserve instead of
639 growing the string manually. Adjust for C++11 compatibility.
640 * include/bits/cow_string.h (resize_and_overwrite): New
642 (__resize_and_overwrite): New function.
643 * include/bits/version.def (__cpp_lib_string_resize_and_overwrite):
644 Do not depend on cxx11abi.
645 * include/bits/version.h: Regenerate.
646 * include/std/format (__formatter_fp::_S_resize_and_overwrite):
648 (__formatter_fp::format, __formatter_fp::_M_localize): Use
649 __resize_and_overwrite instead of _S_resize_and_overwrite.
650 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
651 Adjust for C++11 compatibility when included by ...
652 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite_ext.cc:
655 2023-08-17 Patrick Palka <ppalka@redhat.com>
657 * include/bits/regex.h (regex_iterator::iterator_concept):
658 Define for C++20 as per P2770R0.
659 (regex_token_iterator::iterator_concept): Likewise.
660 * include/std/ranges (__detail::__as_lvalue): Define.
661 (join_view::_Iterator): Befriend join_view.
662 (join_view::_Iterator::_M_satisfy): Use _M_get_outer
664 (join_view::_Iterator::_M_get_outer): Define.
665 (join_view::_Iterator::_Iterator): Split constructor taking
666 _Parent argument into two as per P2770R0. Remove constraint on
668 (join_view::_Iterator::_M_outer): Make this data member present
669 only when the underlying range is forward.
670 (join_view::_Iterator::operator++): Use _M_get_outer instead of
672 (join_view::_Iterator::operator--): Use __as_lvalue helper.
673 (join_view::_Iterator::operator==): Adjust constraints as per
675 (join_view::_Sentinel::__equal): Use _M_get_outer instead of
677 (join_view::_M_outer): New data member when the underlying range
679 (join_view::begin): Adjust definition as per P2770R0.
680 (join_view::end): Likewise.
681 (join_with_view::_M_outer_it): New data member when the
682 underlying range is non-forward.
683 (join_with_view::begin): Adjust definition as per P2770R0.
684 (join_with_view::end): Likewise.
685 (join_with_view::_Iterator::_M_outer_it): Make this data member
686 present only when the underlying range is forward.
687 (join_with_view::_Iterator::_M_get_outer): Define.
688 (join_with_view::_Iterator::_Iterator): Split constructor
689 taking _Parent argument into two as per P2770R0. Remove
690 constraint on default constructor.
691 (join_with_view::_Iterator::_M_update_inner): Adjust definition
693 (join_with_view::_Iterator::_M_get_inner): Likewise.
694 (join_with_view::_Iterator::_M_satisfy): Adjust calls to
695 _M_get_inner. Use _M_get_outer instead of _M_outer_it.
696 (join_with_view::_Iterator::operator==): Adjust constraints
698 (join_with_view::_Sentinel::operator==): Use _M_get_outer
699 instead of _M_outer_it.
700 * testsuite/std/ranges/adaptors/p2770r0.cc: New test.
702 2023-08-17 Patrick Palka <ppalka@redhat.com>
705 * include/std/ranges (__adaptor::_RangeAdaptorClosure):
706 Convert into a CRTP class template. Move hidden operator|
707 friends into namespace scope and adjust their constraints.
708 (__closure::__is_range_adaptor_closure_fn): Define.
709 (__closure::__is_range_adaptor_closure): Define.
710 (__adaptor::_Partial): Adjust use of _RangeAdaptorClosure.
711 (__adaptor::_Pipe): Likewise.
712 (views::_All): Likewise.
713 (views::_Join): Likewise.
714 (views::_Common): Likewise.
715 (views::_Reverse): Likewise.
716 (views::_Elements): Likewise.
717 (views::_Adjacent): Likewise.
718 (views::_AsRvalue): Likewise.
719 (views::_Enumerate): Likewise.
720 (views::_AsConst): Likewise.
721 * testsuite/std/ranges/adaptors/all.cc: Reinstate assertion
722 expecting that adding empty range adaptor closure objects to a
723 pipeline doesn't increase the size of a pipeline.
725 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
727 * include/std/format (__format::_Pres_type): Add _Pres_F.
728 (__formatter_fp::parse): Use _Pres_F for 'F'.
729 (__formatter_fp::format): Set __upper for _Pres_F.
730 * testsuite/std/format/functions/format.cc: Check formatting of
731 infinity and NaN for each presentation type.
733 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
735 * include/Makefile.in: Regenerate.
737 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
739 * testsuite/24_iterators/move_iterator/p2520r0.cc: Add no_pch.
740 * testsuite/std/format/functions/format.cc: Likewise.
741 * testsuite/std/format/functions/format_c++23.cc: Likewise.
743 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
745 * testsuite/lib/dg-options.exp (add_options_for_no_pch): Remove
746 any "-include bits/stdc++.h" from options and add the macro to
747 the existing options instead of replacing them.
749 2023-08-16 Jonathan Wakely <jwakely@redhat.com>
751 * include/bits/basic_string.tcc (resize_and_overwrite): Invoke
752 the callable with the same size as resize_and_overwrite was
754 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
755 Check with small values for the new size.
756 * testsuite/std/format/functions/format.cc: Check wide
757 formatting of double values that produce small strings.
758 * testsuite/std/format/functions/format_c++23.cc: New test.
760 2023-08-16 Jonathan Wakely <jwakely@redhat.com>
762 * include/bits/version.def (stds): Update value for C++23.
763 * include/bits/version.h: Regenerate.
765 2023-08-16 Jonathan Wakely <jwakely@redhat.com>
767 * testsuite/25_algorithms/pstl/alg_sorting/set_difference.cc:
768 Fix name of upstream file this was derived from.
769 * testsuite/25_algorithms/pstl/alg_sorting/set_intersection.cc:
771 * testsuite/25_algorithms/pstl/alg_sorting/set_symmetric_difference.cc:
773 * testsuite/25_algorithms/pstl/alg_sorting/set_union.cc:
775 * testsuite/25_algorithms/pstl/alg_sorting/set_util.h: Likewise.
777 2023-08-16 Arsen Arsenović <arsen@aarsen.me>
779 * libsupc++/typeinfo: Switch to bits/version.h for
780 __cpp_lib_constexpr_typeinfo.
781 * libsupc++/new: Switch to bits/version.h for
782 __cpp_lib_{launder,hardware_interference_size,destroying_delete}.
783 (launder): Guard behind __cpp_lib_launder.
784 (hardware_destructive_interference_size)
785 (hardware_constructive_interference_size): Guard behind
786 __cpp_lib_hardware_interference_size.
787 * libsupc++/exception: Switch to bits/version.h for
788 __cpp_lib_uncaught_exceptions.
789 (uncaught_exceptions): Guard behind __cpp_lib_uncaught_exceptions.
790 * libsupc++/compare: Switch to bits/version.h for
791 __cpp_lib_three_way_comparison.
792 (three_way_comparable, three_way_comparable_with)
793 (compare_three_way, weak_order, strong_order, partial_order):
794 Guard behind __cpp_lib_three_way_comparison >= 201907L.
795 * include/std/chrono: Drop __cpp_lib_chrono definition.
796 * include/std/vector: Switch to bits/version.h for
798 (erase, erase_if): Guard behind __cpp_lib_erase_if.
799 * include/std/variant: Switch to bits/version.h for
800 __cpp_lib_variant. Guard whole header behind that FTM.
801 * include/std/utility: Switch to bits/version.h for
802 __cpp_lib_{exchange_function,constexpr_algorithms,as_const},
803 __cpp_lib_{integer_comparison_functions,to_underlying}, and
804 __cpp_lib_unreachable.
805 (exchange): Guard behind __cpp_lib_exchange_function.
806 (cmp_equal, cmp_not_equal, cmp_less, cmp_greater, cmp_less_equal)
807 (cmp_greater_equal, in_range): Guard behind
808 __cpp_lib_integer_comparison_functions.
809 (to_underlying): Guard behind __cpp_lib_to_underlying.
810 (unreachable): Guard behind __cpp_lib_unreachable.
811 * include/std/type_traits: Switch to bits/version.h for
812 __cpp_lib_is_{null_pointer,final,nothrow_convertible,aggregate},
813 __cpp_lib_is_{constant_evaluated,invocable,layout_compatible},
814 __cpp_lib_is_{pointer_interconvertible,scoped_enum,swappable},
815 __cpp_lib_{logical_traits,reference_from_temporary,remove_cvref},
816 __cpp_lib_{result_of_sfinae,transformation_trait_aliases},
817 __cpp_lib_{type_identity,type_trait_variable_templates},
818 __cpp_lib_{unwrap_ref,void_t,integral_constant_callable},
819 __cpp_lib_{bool_constant,bounded_array_traits}, and
820 __cpp_lib_has_unique_object_representations.
821 (integral_constant::operator()): Guard behind
822 __cpp_lib_integral_constant_callable.
823 (bool_constant): Guard behind __cpp_lib_bool_constant.
824 (conjunction, disjunction, negation, conjunction_v, disjunction_v)
825 (negation_v): Guard behind __cpp_lib_logical_traits.
826 (is_null_pointer): Guard behind __cpp_lib_is_null_pointer.
827 (is_final): Guard behind __cpp_lib_is_final.
828 (is_nothrow_convertible, is_nothrow_convertible_v): Guard behind
829 __cpp_lib_is_nothrow_convertible.
830 (remove_const_t, remove_volatile_t, remove_cv_t)
831 (add_const_t, add_volatile_t, add_cv_t): Guard behind
832 __cpp_lib_transformation_trait_aliases.
833 (void_t): Guard behind __cpp_lib_void_t.
834 (is_swappable_with_v, is_nothrow_swappable_with_v)
835 (is_swappable_with, is_nothrow_swappable_with): Guard behind
836 __cpp_lib_is_swappable.
837 (is_nothrow_invocable_r, is_invocable_r, invoke_result)
838 (is_invocable, invoke_result_t): Guard behind
839 __cpp_lib_is_invocable.
840 (alignment_of_v, extent_v, has_virtual_destructor_v)
841 (is_abstract_v, is_arithmetic_v, is_array_v)
842 (is_assignable_v, is_base_of_v, is_class_v, is_compound_v)
843 (is_constructible_v, is_const_v, is_convertible_v)
844 (is_copy_assignable_v, is_copy_constructible_v)
845 (is_default_constructible_v, is_destructible_v)
846 (is_empty_v, is_enum_v, is_final_v, is_floating_point_v)
847 (is_function_v, is_fundamental_v, is_integral_v)
848 (is_invocable_r_v, is_invocable_v, is_literal_type_v)
849 (is_lvalue_reference_v, is_member_function_pointer_v)
850 (is_member_object_pointer_v, is_member_pointer_v)
851 (is_move_assignable_v, is_move_constructible_v)
852 (is_nothrow_assignable_v, is_nothrow_constructible_v)
853 (is_nothrow_copy_assignable_v, is_nothrow_copy_constructible_v)
854 (is_nothrow_default_constructible_v, is_nothrow_destructible_v)
855 (is_nothrow_invocable_r_v, is_nothrow_invocable_v)
856 (is_nothrow_move_assignable_v, is_nothrow_move_constructible_v)
857 (is_null_pointer_v, is_object_v, is_pod_v, is_pointer_v)
858 (is_polymorphic_v, is_reference_v, is_rvalue_reference_v)
859 (is_same_v, is_scalar_v, is_signed_v, is_standard_layout_v)
860 (is_trivially_assignable_v, is_trivially_constructible_v)
861 (is_trivially_copyable_v, is_trivially_copy_assignable_v)
862 (is_trivially_copy_constructible_v)
863 (is_trivially_default_constructible_v)
864 (is_trivially_destructible_v, is_trivially_move_assignable_v)
865 (is_trivially_move_constructible_v, is_trivial_v, is_union_v)
866 (is_unsigned_v, is_void_v, is_volatile_v, rank_v, as variadic):
867 Guard behind __cpp_lib_type_trait_variable_templates.
868 (has_unique_object_representations)
869 (has_unique_object_representations_v): Guard behind
870 __cpp_lib_has_unique_object_representation.
871 (is_aggregate): Guard behind __cpp_lib_is_aggregate.
872 (remove_cvref, remove_cvref_t): Guard behind
873 __cpp_lib_remove_cvref.
874 (type_identity, type_identity_t): Guard behind
875 __cpp_lib_type_identity.
876 (unwrap_reference, unwrap_reference_t, unwrap_ref_decay)
877 (unwrap_ref_decay_t): Guard behind __cpp_lib_unwrap_ref.
878 (is_bounded_array_v, is_unbounded_array_v, is_bounded_array)
879 (is_unbounded_array): Guard behind __cpp_lib_bounded_array_traits.
880 (is_scoped_enum, is_scoped_enum_v): Guard behind
881 __cpp_lib_is_scoped_enum.
882 (reference_constructs_from_temporary)
883 (reference_constructs_from_temporary_v): Guard behind
884 __cpp_lib_reference_from_temporary.
885 * include/std/tuple: Switch to bits/version.h for
886 __cpp_lib_{constexpr_tuple,tuple_by_type,apply_make_from_tuple}.
887 (get<T>): Guard behind __cpp_lib_tuple_by_type.
888 (apply): Guard behind __cpp_lib_apply.
889 (make_from_tuple): Guard behind __cpp_lib_make_from_tuple.
890 * include/std/syncstream: Switch to bits/version.h for
891 __cpp_lib_syncbuf. Guard header behind that FTM.
892 * include/std/string_view: Switch to bits/version.h for
893 __cpp_lib_{string_{view,contains},constexpr_string_view} and
894 __cpp_lib_starts_ends_with.
895 (basic_string_view::starts_with, basic_string_view::ends_with):
896 Guard behind __cpp_lib_starts_ends_with.
897 [C++23 && _GLIBCXX_HOSTED && !defined(__cpp_lib_string_contains)]:
898 Assert as impossible ithout a bug in C++23.
899 * include/std/string: Switch to bits/version.h for
901 (erase, erase_if): Guard behind __cpp_lib_erase_if.
902 * include/std/thread: Switch to bits/version.h for
904 * include/std/stop_token: Switch to bits/version.h for
906 * include/std/spanstream: Switch to bits/version.h for
907 __cpp_lib_spanstream. Guard header behind that FTM.
908 * include/std/span: Switch to bits/version.h for __cpp_lib_span.
909 Guard header behind that FTM.
910 * include/std/source_location: Switch to bits/version.h for
911 __cpp_lib_source_location. Guard header with that FTM.
912 * include/std/shared_mutex: Switch to bits/version.h for
913 __cpp_lib_shared{,_timed}_mutex.
914 (shared_mutex): Guard behind __cpp_lib_shared_mutex.
915 * include/std/semaphore: Switch to bits/version.h for
916 __cpp_lib_semaphore. Guard header behind that FTM.
917 * include/std/ranges: Switch to bits/version.h for
918 __cpp_lib_ranges_{zip,chunk{,_by},slide,join_with},
919 __cpp_lib_ranges_{repeat_stride,cartesian_product,as_rvalue},
920 and __cpp_lib_ranges_{as_const,enumerate,iota}.
921 (ranges::zip et al, ranges::chunk et al, ranges::slide et al)
922 (ranges::chunk_by et al, ranges::join_with et al)
923 (ranges::stride et al, ranges::cartesian_product et al)
924 (ranges::as_rvalue et al, ranges::as_const et al)
925 (ranges::enumerate et al): Guard behind appropriate FTM.
926 * include/std/optional: Switch to bits/version.h for
927 __cpp_lib_optional. Guard header behind that FTM.
928 * include/std/numeric: Switch to bits/version.h for
929 __cpp_lib_{gcd{,_lcm},lcm,constexpr_numeric,interpolate}
930 and __cpp_lib_parallel_algorithm.
931 (gcd, lcm): Guard behind __cpp_lib_gcd_lcm.
932 (midpoint): Guard behind __cpp_lib_interpolate.
933 * include/std/numbers: Switch to bits/version.h for
934 __cpp_lib_math_constants. Guard header behind that FTM.
935 * include/std/mutex: Switch to bits/version.h for
936 __cpp_lib_scoped_lock.
937 (scoped_Lock): Guard behind __cpp_lib_scoped_lock.
938 * include/std/memory_resource: Switch to bits/version.h for
939 __cpp_lib_{polymorphic_allocator,memory_resource}.
940 (synchronized_pool_resource): Guard behind
941 __cpp_lib_memory_resource >= 201603L.
942 (polymorphic_allocator): Guard behind
943 __cpp_lib_polymorphic_allocator.
944 * include/std/memory: Switch to bits/version.h for
945 __cpp_lib_{parallel_algorithm,atomic_value_initialization}.
946 * include/std/list: Switch to bits/version.h for
948 (erase, erase_if): Guard behind __cpp_lib_erase_if.
949 * include/std/latch: Switch to bits/version.h for __cpp_lib_latch.
950 Guard header behind that FTM.
951 * include/std/iterator: Switch to bits/version.h for
952 __cpp_lib_null_iterators.
953 * include/std/iomanip: Switch to bits/version.h for
954 __cpp_lib_quoted_string_io.
955 (quoted): Guard behind __cpp_lib_quoted_string_io.
956 * include/std/functional: Switch to bits/version.h for
957 __cpp_lib_{invoke{,_r},constexpr_functional,bind_front} and
958 __cpp_lib_{not_fn,booyer_moore_searcher}.
959 (invoke): Guard behind __cpp_lib_invoke.
960 (invoke_r): Guard behind __cpp_lib_invoke_r.
961 (bind_front): Guard behind __cpp_lib_bind_front.
962 (not_fn): Guard behind __cpp_lib_not_fn.
963 (boyer_moore_searcher, boyer_moore_horspool_searcher): Guard
964 definition behind __cpp_lib_boyer_moore_searcher.
965 * include/std/forward_list: Switch to bits/version.h for
967 (erase, erase_if): Guard behind __cpp_lib_erase_if.
968 * include/std/format: Switch to bits/version.h for
969 __cpp_lib_format. Guard header behind that FTM.
970 * include/std/filesystem: Switch to bits/version.h for
971 __cpp_lib_filesystem. Guard header behind that FTM.
972 * include/std/expected: Switch to bits/version.h for
973 __cpp_lib_expected. Guard header behind it.
974 * include/std/execution: Switch to bits/version.h for
975 __cpp_lib_{execution,parallel_algorithm}. Guard header behind
977 * include/std/deque: Switch to bits/version.h for
979 (erase, erase_if): Guard behind __cpp_lib_erase_if.
980 * include/std/coroutine: Switch to bits/version.h for
981 __cpp_lib_coroutine. Guard header behind that FTM.
982 * include/std/concepts: Switch to bits/version.h for
983 __cpp_lib_concepts. Guard header behind that FTM.
984 * include/std/complex: Switch to bits/version.h for
985 __cpp_lib_{complex_udls,constexpr_complex}.
986 (operator""if, operator""i, operator""il): Guard behind
987 __cpp_lib_complex_udls.
988 * include/std/charconv: Swtich to bits/version.h for
989 __cpp_lib_{to_chars,constexpr_charconv}.
990 * include/std/bitset: Switch to bits/version.h for
991 __cpp_lib_constexpr_bitset.
992 * include/std/bit: Switch to bits/version.h for
993 __cpp_lib_{bit_cast,byteswap,bitops,int_pow2,endian}.
994 (bit_cast): Guard behind __cpp_lib_bit_cast.
995 (byteswap): Guard behind __cpp_lib_byteswap.
996 (rotl, rotr, countl_zero, countl_one, countr_zero, countr_one)
997 (popcount): Guard behind __cpp_lib_bitops.
998 (has_single_bit, bit_ceil, bit_floor, bit_width): Guard behind
1000 (endian): Guard behind __cpp_lib_endian.
1001 * include/std/barrier: Switch to bits/version.h for
1002 __cpp_lib_barrier. Guard header behind that FTM.
1003 * include/std/atomic: Switch to bits/version.h for
1004 __cpp_lib_atomic_{is_always_lock_free,float,ref}
1005 and __cpp_lib_lock_free_type_aliases.
1006 (*::is_always_lock_free): Guard behind
1007 __cpp_lib_atomic_is_always_lock_free.
1008 (atomic<float>): Guard behind __cpp_lib_atomic_float.
1009 (atomic_ref): Guard behind __cpp_lib_atomic_ref.
1010 (atomic_signed_lock_free, atomic_unsigned_lock_free): Guard behind
1011 __cpp_lib_atomic_lock_free_type_aliases.
1012 * include/std/array: Switch to bits/version.h for
1014 (to_array): Guard behind __cpp_lib_to_array.
1015 * include/std/any: Switch to bits/version.h for __cpp_lib_any.
1016 Guard header behind that FTM.
1017 * include/std/algorithm: Switch to bits/version.h for
1018 __cpp_lib_parallel_algorithm.
1019 * include/c_global/cstddef: Switch to bits/version.h for
1021 (byte): Guard behind __cpp_lib_byte.
1022 * include/c_global/cmath: Switch to bits/version.h for
1023 __cpp_lib_{hypot,interpolate}.
1024 (hypot3): Guard behind __cpp_lib_hypot.
1025 (lerp): Guard behind __cpp_lib_interpolate.
1026 * include/c_compatibility/stdatomic.h: Switch to
1027 bits/stl_version.h for __cpp_lib_atomic. Guard header behind that
1029 * include/bits/utility.h: Switch to bits/version.h for
1030 __cpp_lib_{tuple_element_t,integer_sequence,ranges_zip}.
1031 (tuple_element_t): Guard behind __cpp_lib_tuple_element_t.
1032 (integer_sequence et al): Guard behind __cpp_lib_integer_sequence.
1033 * include/bits/uses_allocator_args.h: Switch to bits/version.h for
1034 __cpp_lib_make_obj_using_allocator. Guard header behind that FTM.
1035 * include/bits/unordered_map.h: Switch to bits/version.h for
1036 __cpp_lib_unordered_map_try_emplace.
1037 (try_emplace): Guard behind __cpp_lib_unordered_map_try_emplace.
1038 * include/bits/unique_ptr.h: Switch to bits/version.h for
1039 __cpp_lib_{constexpr_memory,make_unique}.
1040 (make_unique): Guard behind __cpp_lib_make_unique.
1041 * include/bits/stl_vector.h: Switch to bits/version.h for
1042 __cpp_lib_constexpr_vector.
1043 * include/bits/stl_uninitialized.h: Switch to bits/version.h for
1044 __cpp_lib_raw_memory_algorithms.
1045 (uninitialized_default_construct)
1046 (uninitialized_default_construct_n, uninitialized_move)
1047 (uninitialized_move_n, uninitialized_value_construct)
1048 (uninitialized_value_construct_n): Guard behind
1049 __cpp_lib_raw_memory_algorithms.
1050 * include/bits/stl_tree.h: Switch to bits/version.h for
1051 __cpp_lib_generic_associative_lookup.
1052 * include/bits/stl_stack.h: Switch to bits/version.h for
1053 __cpp_lib_adaptor_iterator_pair_constructor.
1054 (stack): Guard iterator-pair constructor behind
1055 __cpp_lib_adaptor_iterator_pair_constructor.
1056 * include/bits/stl_queue.h: Switch to bits/version.h for
1057 __cpp_lib_adaptor_iterator_pair_constructor.
1058 (queue): Guard iterator-pair constructor behind
1059 __cpp_lib_adaptor_iterator_pair_constructor.
1060 * include/bits/stl_pair.h: Switch to bits/version.h for
1061 __cpp_lib_{concepts,tuples_by_type}.
1062 (get): Guard type-getting overloads behind
1063 __cpp_lib_tuples_by_type.
1064 * include/bits/stl_map.h: Switch to bits/version.h for
1065 __cpp_lib_map_try_emplace.
1066 (map<>::try_emplace): Guard behind __cpp_lib_map_try_emplace.
1067 * include/bits/stl_list.h: Switch to bits/version.h for
1068 __cpp_lib_list_remove_return_type.
1069 (__remove_return_type, _GLIBCXX_LIST_REMOVE_RETURN_TYPE_TAG)
1070 [C++20]: guard behind __cpp_lib_list_remove_return_type instead.
1071 * include/bits/stl_iterator.h: Switch to bits/version.h for
1072 __cpp_lib_{constexpr_iterator,array_constexpr} and
1073 __cpp_lib_{make_reverse_iterator,move_iterator_concept}.
1074 (make_reverse_iterator): Guard behind
1075 __cpp_lib_make_reverse_iterator.
1076 (iterator_concept et al): Guard __cpp_lib_move_iterator_concept
1077 changes behind that FTM.
1078 * include/bits/stl_function.h: Switch to bits/version.h for
1079 __cpp_lib_transparent_operators.
1080 (equal_to, not_equal_to, greater, less, greater_equal)
1081 (less_equal, bit_and, bit_or, bit_xor, bit_not, logical_and)
1082 (logical_or, logical_not, plus, minus, multiplies, divides)
1083 (modulus, negate): Guard '= void' fwdecls behind
1084 __cpp_lib_transparent_operators.
1085 (plus<void>, minus<void>, multiplies<void>, divides<void>)
1086 (modulus<void>, negate<void>, logical_and<void>, logical_or<void>)
1087 (logical_not<void>, bit_and<void>, bit_or<void>, bit_xor<void>)
1088 (equal_to<void>, not_equal_to<void>, greater<void>, less<void>)
1089 (greater_equal<void>, less_equal<void>, bit_not<void>)
1090 (__has_is_transparent): Guard behind
1091 __cpp_lib_transparent_operators.
1092 * include/bits/stl_algobase.h: Switch to bits/version.h for
1093 __cpp_lib_robust_nonmodifying_seq_ops.
1094 (robust equal, mismatch): Guard behind
1095 __cpp_lib_nonmember_container_access.
1096 * include/bits/stl_algo.h: Swtich to bits/version.h for
1097 __cpp_lib_{clamp,sample}.
1098 (clamp): Guard behind __cpp_lib_clamp.
1099 (sample): Guard behind __cpp_lib_sample.
1100 * include/bits/specfun.h: Switch to bits/version.h for
1101 __cpp_lib_math_special_functions and __STDCPP_MATH_SPEC_FUNCS__.
1102 * include/bits/shared_ptr_base.h: Switch to bits/version.h for
1103 __cpp_lib_{smart_ptr_for_overwrite,shared_ptr_arrays}.
1104 (_Sp_overwrite_tag): Guard behind
1105 __cpp_lib_smart_ptr_for_overwrite.
1106 * include/bits/shared_ptr_atomic.h: Switch to bits/version.h for
1107 __cpp_lib_atomic_shared_ptr.
1108 * include/bits/shared_ptr.h: Switch to bits/version.h for
1109 __cpp_lib_{enable_shared_from_this,shared_ptr_weak_type}.
1110 (shared_ptr<T>::weak_type): Guard behind
1111 __cpp_lib_shared_ptr_weak_type.
1112 (enable_shared_from_this<T>::weak_from_this): Guard behind
1113 __cpp_lib_enable_shared_from_this.
1114 * include/bits/ranges_cmp.h: Switch to bits/version.h for
1116 * include/bits/ranges_algo.h: Switch to bits/version.h for
1117 __cpp_lib_{shift,ranges_{contains,find_last,fold,iota}}.
1118 * include/bits/range_access.h: Switch to bits/version.h for
1119 __cpp_lib_nonmember_container_access
1120 (size, empty, data): Guard behind
1121 __cpp_lib_nonmember_container_access.
1122 (ssize): Guard behind __cpp_lib_ssize.
1123 * include/bits/ptr_traits.h: Switch to bits/version.h. for
1124 __cpp_lib_{constexpr_memory,to_address}.
1125 (to_address): Guard behind __cpp_lib_to_address.
1126 * include/bits/node_handle.h: Switch to bits/version.h for
1127 __cpp_lib_node_extract. Guard header behind that FTM.
1128 * include/bits/move_only_function.h: Switch to bits/version.h for
1129 __cpp_lib_move_only_function. Guard header behind that FTM.
1130 * include/bits/move.h: Switch to bits/version.h for
1131 __cpp_lib_addressof_constexpr.
1132 * include/bits/ios_base.h: Switch to bits/version.h for
1133 __cpp_lib_ios_noreplace.
1134 (noreplace): Guard with __cpp_lib_ios_noreplace.
1135 * include/bits/hashtable.h: Switch to bits/version.h for
1136 __cpp_lib_generic_unordered_lookup.
1137 (_M_equal_range_tr, _M_count_tr, _M_find_tr): Guard behind
1138 __cpp_lib_generic_unordered_lookup.
1139 * include/bits/forward_list.h: Switch to bits/version.h for
1140 __cpp_lib_list_remove_return_type.
1141 (__remove_return_type): Guard behind
1142 __cpp_lib_list_remove_return_type.
1143 * include/bits/erase_if.h: Switch to bits/version.h for
1145 * include/bits/cow_string.h: Switch to bits/version.h for
1146 __cpp_lib_constexpr_string.
1147 * include/bits/chrono.h: Swtich to bits/version.h for
1148 __cpp_lib_chrono{,_udls}.
1149 (ceil): Guard behind __cpp_lib_chrono.
1150 (operator""ns et al): Guard behind __cpp_lib_chrono_udls.
1151 * include/bits/char_traits.h: Switch to bits/version.h for
1152 __cpp_lib_constexpr_char_traits.
1153 * include/bits/basic_string.h: Switch to bits/version.h for
1154 __cpp_lib_{constexpr_string,string_{resize_and_overwrite,udls}}.
1155 (resize_and_overwrite): Guard behind
1156 __cpp_lib_string_resize_and_overwrite.
1157 (operator""s): Guard behind __cpp_lib_string_udls.
1158 * include/bits/atomic_wait.h: Switch to bits/version.h for
1159 __cpp_lib_atomic_wait. Guard header behind that FTM.
1160 * include/bits/atomic_base.h: Switch to bits/version.h for
1161 __cpp_lib_atomic_value_initialization and
1162 __cpp_lib_atomic_flag_test.
1163 (atomic_flag::test): Guard behind __cpp_lib_atomic_flag_test,
1165 * include/bits/allocator.h: Switch to bits/version.h for
1166 __cpp_lib_incomplete_container_elements.
1167 * include/bits/alloc_traits.h: Switch to using bits/version.h for
1168 __cpp_lib_constexpr_dynamic_alloc and
1169 __cpp_lib_allocator_traits_is_always_equal.
1170 * include/bits/align.h: Switch to bits/version.h for defining
1171 __cpp_lib_assume_aligned.
1172 (assume_aligned): Guard with __cpp_lib_assume_aligned.
1173 * include/bits/algorithmfwd.h: Switch to bits/version.h for
1174 defining __cpp_lib_constexpr_algorithms.
1175 * include/std/stacktrace: Switch to bits/version.h for
1176 __cpp_lib_stacktrace. Guard header behind that FTM.
1177 * testsuite/23_containers/array/tuple_interface/get_neg.cc:
1178 Update line numbers.
1180 2023-08-16 Arsen Arsenović <arsen@aarsen.me>
1182 * include/Makefile.am (bits_freestanding): Add version.h.
1183 (allcreated): Add version.h.
1184 (${bits_srcdir}/version.h): New rule. Regenerates
1185 version.h out of version.{def,tpl}.
1186 * include/Makefile.in: Regenerate.
1187 * include/bits/version.def: New file. Declares a list of
1188 all feature test macros, their values and their preconditions.
1189 * include/bits/version.tpl: New file. Turns version.def
1190 into a sequence of #if blocks.
1191 * include/bits/version.h: New file. Generated from
1193 * include/std/version: Replace with a __glibcxx_want_all define
1194 and bits/version.h include.
1196 2023-08-14 Paul Dreik <gccpatches@pauldreik.se>
1199 * include/std/format (__formatter_fp::format): Use frexp instead
1202 2023-08-12 Ken Matsui <kmatsui@gcc.gnu.org>
1204 * include/std/type_traits (true_type): Use __bool_constant
1206 (false_type): Likewise.
1207 (bool_constant): Likewise.
1209 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
1212 * include/std/format (_Seq_sink::get): Only call _M_overflow if
1213 its precondition is met.
1214 (_Iter_sink::_M_finish): Likewise.
1215 (_Iter_sink<C, ContigIter>::_M_overflow): Only switch to the
1216 internal buffer after running out of space.
1217 (_Iter_sink<C, ContigIter>::_M_finish): Do not use _M_overflow.
1218 (_Counting_sink::count): Likewise.
1219 * testsuite/std/format/functions/format_to_n.cc: Check cases
1220 where the output fits into the buffer.
1222 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
1225 * include/bits/chrono_io.h (operator|=, operator|): Add noexcept
1226 to _ChronoParts operators.
1227 (from_stream, parse): Define new functions.
1228 (__detail::_Parse, __detail::_Parser): New class templates.
1229 * include/std/chrono (__cpp_lib_chrono): Define to 201907L for
1231 * include/std/version (__cpp_lib_chrono): Likewise.
1232 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc:
1233 Adjust expected value of feature test macro.
1234 * testsuite/20_util/duration/io.cc: Test parsing.
1235 * testsuite/std/time/clock/file/io.cc: Likewise.
1236 * testsuite/std/time/clock/gps/io.cc: Likewise.
1237 * testsuite/std/time/clock/system/io.cc: Likewise.
1238 * testsuite/std/time/clock/tai/io.cc: Likewise.
1239 * testsuite/std/time/clock/utc/io.cc: Likewise.
1240 * testsuite/std/time/day/io.cc: Likewise.
1241 * testsuite/std/time/month/io.cc: Likewise.
1242 * testsuite/std/time/month_day/io.cc: Likewise.
1243 * testsuite/std/time/weekday/io.cc: Likewise.
1244 * testsuite/std/time/year/io.cc: Likewise.
1245 * testsuite/std/time/year_month/io.cc: Likewise.
1246 * testsuite/std/time/year_month_day/io.cc: Likewise.
1247 * testsuite/std/time/syn_c++20.cc: Check value of macro and for
1248 the existence of parse and from_stream in namespace chrono.
1249 * testsuite/std/time/clock/local/io.cc: New test.
1250 * testsuite/std/time/parse.cc: New test.
1252 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
1255 * include/std/format (__formatter_fp::format): Do not call log10
1258 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
1260 * python/libstdcxx/v6/printers.py (StdChronoCalendarPrinter):
1261 Check for out-of-range month an weekday indices.
1262 * testsuite/libstdc++-prettyprinters/chrono.cc: Check invalid
1263 month and weekday values.
1265 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
1267 * include/bits/stl_iterator.h (__clamped_iter_cat_t): Remove.
1269 2023-08-10 Jonathan Wakely <jwakely@redhat.com>
1272 * include/std/format (_Spec::_S_parse_width_or_precision): Check
1273 for empty range before dereferencing iterator.
1274 * testsuite/std/format/string.cc: Check for expected exception.
1275 Fix expected exception message in test_pr110862() and actually
1278 2023-08-10 Jonathan Wakely <jwakely@redhat.com>
1281 * include/std/format (__formatter_fp::format): Check return
1282 value of _M_localize.
1283 * testsuite/std/format/functions/format.cc: Check classic
1286 2023-08-10 Jonathan Wakely <jwakely@redhat.com>
1289 * include/bits/stl_iterator.h (__detail::__move_iter_cat): Use
1291 (iterator_traits<common_iterator<I, S>>::_S_iter_cat): Likewise.
1292 (__detail::__basic_const_iterator_iter_cat): Likewise.
1293 * include/bits/stl_iterator_base_types.h (__iterator_category_t):
1294 Rename to __iter_category_t.
1296 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
1298 * include/bits/chrono.h (duration_cast): Do not use braces
1299 around statements for C++11 constexpr rules.
1300 * include/bits/stl_algobase.h (__lg): Rewrite as a single
1301 statement for C++11 constexpr rules.
1302 * include/experimental/bits/fs_path.h (path::string): Use
1303 _GLIBCXX17_CONSTEXPR not _GLIBCXX_CONSTEXPR for 'if constexpr'.
1304 * include/std/charconv (__to_chars_8): Initialize variable for
1305 C++17 constexpr rules.
1307 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
1309 * include/bits/list.tcc (list::sort(Cmp)): Fix -Wsign-compare
1310 warning for loop condition.
1312 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
1314 * include/std/complex: Add diagnostic pragma for clang.
1316 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
1318 * include/bits/shared_ptr_atomic.h (atomic): Change class-head
1320 * include/bits/stl_tree.h (_Rb_tree_merge_helper): Change
1321 class-head to struct in friend declaration.
1322 * include/std/chrono (tzdb_list::_Node): Likewise.
1323 * include/std/future (_Task_state_base, _Task_state): Likewise.
1324 * include/std/scoped_allocator (__inner_type_impl): Likewise.
1325 * include/std/valarray (_BinClos, _SClos, _GClos, _IClos)
1326 (_ValFunClos, _RefFunClos): Change class-head to struct.
1328 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
1330 * include/bits/alloc_traits.h (allocate): Add [[maybe_unused]]
1332 * include/bits/regex_executor.tcc: Remove name of unused
1334 * include/bits/shared_ptr_atomic.h (atomic_is_lock_free):
1336 * include/bits/stl_uninitialized.h: Likewise.
1337 * include/bits/streambuf_iterator.h (operator==): Likewise.
1338 * include/bits/uses_allocator.h: Likewise.
1339 * include/c_global/cmath (isfinite, isinf, isnan): Likewise.
1340 * include/std/chrono (zoned_time): Likewise.
1341 * include/std/future (__future_base::_S_allocate_result):
1343 (packaged_task): Likewise.
1344 * include/std/optional (_Optional_payload_base): Likewise.
1345 * include/std/scoped_allocator (__inner_type_impl): Likewise.
1346 * include/std/tuple (_Tuple_impl): Likewise.
1348 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
1350 * include/bits/new_allocator.h (__new_allocator): Define copy
1351 assignment operator as defaulted.
1352 * include/std/complex (complex<float>, complex<double>)
1353 (complex<long double>): Define copy constructor as defaulted.
1355 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
1357 * include/std/format: Fix some warnings.
1358 (__format::__write(Ctx&, basic_string_view<CharT>)): Remove
1359 unused function template.
1361 2023-08-07 Jonathan Wakely <jwakely@redhat.com>
1364 * include/std/format (__formatter_fp::format): Do not use
1365 __builtin_abs and __builtin_log10 with arbitrary floating-point
1368 2023-08-07 Jonathan Wakely <jwakely@redhat.com>
1371 * include/std/format (__format::_Iter_sink<CharT, OutIter>):
1372 Constrain partial specialization for contiguous iterators to
1373 require the value type to be CharT.
1374 * testsuite/std/format/functions/format_to.cc: New test.
1376 2023-08-07 Jonathan Wakely <jwakely@redhat.com>
1379 * include/std/format (_Scanner::_M_on_replacement_field):
1380 Check for expected '}' before incrementing iterator.
1381 * testsuite/std/format/string.cc: Check "{0:{0}" format string.
1383 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
1385 * configure: Regenerate.
1387 2023-08-07 Alan Modra <amodra@gmail.com>
1389 * configure: Regenerate.
1391 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
1393 * configure: Regenerate.
1395 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
1397 * configure: Regenerate.
1399 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
1401 * configure: Regenerate.
1403 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
1405 * configure: Regenerate.
1407 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
1409 * configure: Regenerate.
1411 2023-08-06 François Dumont <fdumont@gcc.gnu.org>
1413 * config/abi/pre/gnu-versioned-namespace.ver: Add __cxa_call_terminate
1416 2023-07-30 François Dumont <fdumont@gcc.gnu.org>
1418 * src/c++11/compatibility-ldbl-facets-aliases.h: Replace #define with
1420 * src/c++11/locale-inst-monetary.h: Likewise.
1421 * src/c++11/locale-inst-numeric.h: Likewise.
1423 2023-07-27 Jonathan Wakely <jwakely@redhat.com>
1426 * include/std/format (__formatter_fp::format): Ensure __expc is
1427 always set for all presentation types. Set __z correctly for
1429 * testsuite/std/format/functions/format.cc: Check problem cases.
1431 2023-07-26 Jonathan Wakely <jwakely@redhat.com>
1434 * testsuite/23_containers/vector/bool/110807.cc: Require c++11.
1436 2023-07-26 Jonathan Wakely <jwakely@redhat.com>
1439 * include/bits/stl_bvector.h (vector(const vector&)): Access
1440 iterators before allocating.
1441 * include/bits/vector.tcc (vector<bool>::_M_insert_range):
1443 * testsuite/23_containers/vector/bool/110807.cc: New test.
1445 2023-07-26 Jonathan Wakely <jwakely@redhat.com>
1447 * include/bits/algorithmfwd.h (random_shuffle): Add deprecated
1449 * include/bits/stl_algo.h (random_shuffle): Correct comments.
1450 * testsuite/25_algorithms/random_shuffle/1.cc: Disable
1451 deprecated warnings.
1452 * testsuite/25_algorithms/random_shuffle/59603.cc: Likewise.
1453 * testsuite/25_algorithms/random_shuffle/moveable.cc: Likewise.
1454 * testsuite/25_algorithms/random_shuffle/deprecated.cc: New
1457 2023-07-26 Nathaniel Shead <nathanieloshead@gmail.com>
1459 * testsuite/25_algorithms/equal/constexpr_neg.cc: Update diagnostic
1461 * testsuite/26_numerics/gcd/105844.cc: Likewise.
1462 * testsuite/26_numerics/lcm/105844.cc: Likewise.
1464 2023-07-24 Deev Patel <pateldeev@nevada.unr.edu>
1466 * include/std/format (_Formatting_scanner::_M_on_chars): Add
1467 missing constexpr specifier.
1468 (_Formatting_scanner::_M_format_arg): Likewise.
1470 2023-07-24 Jonathan Wakely <jwakely@redhat.com>
1473 * include/bits/basic_string.h [!HAVE_STOF] (stof): Do not
1474 throw an exception for zero result.
1475 [HAVE_BROKEN_STRTOLD] (stold): Do not use strtold.
1477 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1480 * src/c++17/floating_from_chars.cc (from_chars): Only define
1481 _Float128 overload when using __strfromf128.
1483 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1486 * include/bits/chrono.h (duration): Improve static assert
1488 (__is_ratio): Move to ...
1489 * include/std/ratio (__is_ratio): ... here.
1490 (__is_ratio_v): New variable template and partial
1492 (__are_both_ratios): New function template.
1493 (__ratio_multiply, ratio_equal, ratio_less, __ratio_add):
1494 Add static assertion.
1495 * testsuite/20_util/ratio/requirements/type_constraints.cc:
1497 * testsuite/20_util/duration/requirements/typedefs_neg1.cc:
1498 Adjust expected error.
1499 * testsuite/20_util/duration/requirements/typedefs_neg2.cc:
1502 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1504 * include/bits/chrono_io.h (__formatter_chrono::_M_format):
1505 Do not set __is_neg for hh_mm_ss before calling
1506 _M_format_to_ostream. Change __print_sign lambda to only check
1507 __is_neg for durations and hh_mm_ss types.
1508 (__formatter_chrono::_M_format_to_ostream): Only check __is_neg
1510 * testsuite/std/time/hh_mm_ss/io.cc: Check negative values.
1512 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1515 * include/bits/chrono_io.h (__formatter_chrono::_S_floor_seconds):
1516 Handle duration and hh_mm_ss.
1517 * testsuite/20_util/duration/io.cc: Check locale-specific
1519 * testsuite/std/time/hh_mm_ss/io.cc: Likewise.
1521 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1523 * include/std/format (__write_padded): Initialize first element
1524 of array to avoid a -Wmaybe-uninitialized warning.
1526 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1529 * include/bits/chrono_io.h (__formatter_chrono::_M_parse): Fix
1530 allowed modifiers for %z and %Z. Fix -Wparentheses and
1531 -Wnarrowing warnings.
1532 (__formatter_chrono::_M_format): Call new functions for %d, %e,
1534 (__formatter_chrono::_M_c): Use _S_floor_seconds to remove
1535 subsecond precision.
1536 (__formatter_chrono::_M_C_y_Y): Use _M_locale_fmt to handle
1538 (__formatter_chrono::_M_e): Replace with _M_d_e and use
1540 (__formatter_chrono::_M_I): Replace with _M_H_I and use
1542 (__formatter_chrono::_M_m): New function.
1543 (__formatter_chrono::_M_M): New function.
1544 (__formatter_chrono::_M_r): Use _M_locale_fmt.
1545 (__formatter_chrono::_M_S): Likewise.
1546 (__formatter_chrono::_M_u_w): Likewise.
1547 (__formatter_chrono::_M_U_V_W): Likewise.
1548 (__formatter_chrono::_M_X): Use _S_floor_seconds.
1549 (__formatter_chrono::_M_Z): Fix untested branch for wchar_t.
1550 (__formatter_chrono::_S_altnum): Remove function.
1551 (__formatter_chrono::_S_dd_zero_fill): Remove function.
1552 (__formatter_chrono::_S_floor_seconds): New function.
1553 (__formatter_chrono::_M_locale_fmt): New function.
1554 * testsuite/std/time/clock/system/io.cc: Adjust expected output
1555 for locale-specific formats and check modified formats.
1556 * testsuite/std/time/clock/utc/io.cc: Likewise.
1557 * testsuite/std/time/zoned_time/io.cc: New test.
1559 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1562 * include/bits/chrono_io.h (__formatter_chrono::_M_parse): Only
1563 allow a single modifier.
1564 * testsuite/std/time/format.cc: Check multiple modifiers.
1566 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1569 * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
1570 Remove dg-require-string-conversions.
1571 * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
1573 * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
1575 * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
1577 * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
1580 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1583 * include/bits/basic_string.h [!_GLIBCXX_HAVE_STRTOF] (stof):
1584 Define in terms of std::stod.
1586 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1589 * include/bits/basic_string.h [_GLIBCXX_HAVE_STRTOF] (stof):
1591 [_GLIBCXX_HAVE_STRTOLD] (stold): Define.
1592 * include/c_global/cstdlib [_GLIBCXX_HAVE_STRTOF] (strtof):
1593 Declare in namespace std.
1594 [_GLIBCXX_HAVE_STRTOLD] (strtold): Likewise.
1596 2023-07-13 Jonathan Wakely <jwakely@redhat.com>
1599 * include/bits/basic_string.h (stoi, stol, stoul, stod): Do not
1600 depend on _GLIBCXX_USE_C99_STDLIB.
1601 [__LONG_WIDTH__ == __LONG_LONG_WIDTH__] (stoll, stoull): Define
1602 in terms of stol and stoul respectively.
1603 [__DBL_MANT_DIG__ == __LDBL_MANT_DIG__] (stold): Define in terms
1606 2023-07-12 Jonathan Wakely <jwakely@redhat.com>
1609 * testsuite/27_io/filesystem/path/construct/95048.cc: Check
1610 conversions to wide strings.
1611 * testsuite/experimental/filesystem/path/construct/95048.cc:
1614 2023-07-12 Jonathan Wakely <jwakely@redhat.com>
1616 * config/io/basic_file_stdio.cc: Define LFS macros.
1617 (__basic_file<char>::open): Use fopen unconditionally.
1618 (get_file_offset): Use lseek unconditionally.
1619 (__basic_file<char>::seekoff): Likewise.
1620 (__basic_file<char>::showmanyc): Use fstat unconditionally.
1622 2023-07-12 Jonathan Wakely <jwakely@redhat.com>
1625 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fseeko and ftello
1626 and define _GLIBCXX_USE_FSEEKO_FTELLO.
1627 * config.h.in: Regenerate.
1628 * configure: Regenerate.
1629 * config/io/basic_file_stdio.cc (xwrite) [_GLIBCXX_USE_STDIO_PURE]:
1630 Check for fwrite error correctly.
1631 (__basic_file<char>::xsgetn) [_GLIBCXX_USE_STDIO_PURE]: Check for
1632 fread error correctly.
1633 (get_file_offset): New function.
1634 (__basic_file<char>::seekoff) [_GLIBCXX_USE_STDIO_PURE]: Use
1635 fseeko if available. Use get_file_offset instead of return value
1637 (__basic_file<char>::showmanyc): Use get_file_offset.
1639 2023-07-12 Ken Matsui <kmatsui@gcc.gnu.org>
1641 * include/std/type_traits (__make_unsigned_selector): Use
1642 __is_enum built-in trait.
1643 (__make_signed_selector): Likewise.
1644 (__underlying_type_impl): Likewise.
1646 2023-07-06 Tianqiang Shuai <1101282468@qq.com>
1648 * config/io/basic_file_stdio.cc (xwrite) [USE_STDIO_PURE]: Fix
1651 2023-07-06 Jonathan Wakely <jwakely@redhat.com>
1654 * doc/xml/manual/configure.xml: Describe stdio_pure argument to
1656 * doc/html/manual/configure.html: Regenerate.
1658 2023-07-05 Thomas Rodgers <trodgers@redhat.com>
1660 * testsuite/25_algorithms/pstl/alg_sorting/set.cc: Delete
1662 * testsuite/25_algorithms/pstl/alg_sorting/set_difference.cc:
1664 * testsuite/25_algorithms/pstl/alg_sorting/set_intersection.cc:
1666 * testsuite/25_algorithms/pstl/alg_sorting/set_symmetric_difference.cc:
1668 * testsuite/25_algorithms/pstl/alg_sorting/set_union.cc:
1670 * testsuite/25_algorithms/pstl/alg_sorting/set_util.h:
1673 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
1675 * testsuite/23_containers/forward_list/debug/iterator1_neg.cc:
1676 Skip as UNSUPPORTED for C++98 mode.
1677 * testsuite/23_containers/forward_list/debug/iterator3_neg.cc:
1680 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
1683 * include/bits/stl_uninitialized.h (__uninitialized_default_n):
1684 Do not use std::fill_n during constant evaluation.
1686 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
1688 * include/bits/vector.tcc (_M_default_append): Replace try-block
1691 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
1693 * include/bits/iterator_concepts.h (projected): Add typename.
1695 2023-07-03 Jonathan Wakely <jwakely@redhat.com>
1697 * testsuite/27_io/headers/iosfwd/synopsis.cc: Make wsyncbuf and
1698 wosyncstream depend on _GLIBCXX_USE_CXX11_ABI.
1700 2023-07-03 Jonathan Wakely <jwakely@redhat.com>
1702 * include/pstl/pstl_config.h (_PSTL_PRAGMA_SIMD_SCAN,
1703 _PSTL_PRAGMA_SIMD_INCLUSIVE_SCAN, _PSTL_PRAGMA_SIMD_EXCLUSIVE_SCAN):
1704 Define to OpenMP 5.0 pragmas even for GCC 10.0+.
1705 (_PSTL_UDS_PRESENT): Define to 1 for GCC 10.0+.
1707 2023-07-03 Jonathan Wakely <jwakely@redhat.com>
1709 * include/bits/alloc_traits.h (_Destroy): Qualify call.
1710 * include/bits/stl_construct.h (_Destroy, _Destroy_n): Likewise.
1711 * testsuite/23_containers/vector/cons/destroy-adl.cc: New test.
1713 2023-07-03 Iain Sandoe <iain@sandoe.co.uk>
1715 * testsuite/lib/libstdc++.exp: Remove additional flag handled
1718 2023-06-30 Jonathan Wakely <jwakely@redhat.com>
1721 * acinclude.m4 (GLIBCXX_CHECK_INIT_PRIORITY): New.
1722 * config.h.in: Regenerate.
1723 * configure: Regenerate.
1724 * configure.ac: Use GLIBCXX_CHECK_INIT_PRIORITY.
1725 * include/std/iostream: Use new autoconf macro as well as
1727 * src/c++98/ios_base_init.h: Use new autoconf macro instead of
1730 2023-06-30 Jonathan Wakely <jwakely@redhat.com>
1732 * src/c++11/random.cc (random_device::_M_init): Add maybe_unused
1735 2023-06-30 Jonathan Wakely <jwakely@redhat.com>
1738 * src/c++11/random.cc (random_device::_M_init): Throw
1739 std::system_error when the requested device is a valid token but
1740 not available at runtime.
1742 2023-06-30 Hans-Peter Nilsson <hp@axis.com>
1745 * include/pstl/unseq_backend_simd.h (__simd_or): Re-apply using
1746 __INT32_TYPE__ instead of int32_t.
1748 2023-06-29 Jonathan Wakely <jwakely@redhat.com>
1750 * src/c++20/tzdb.cc (USE_ATOMIC_SHARED_PTR): Define consistently
1751 with USE_ATOMIC_LIST_HEAD.
1752 (list_mutex): Replace global object with function. Use local
1753 static object when std::mutex constructor isn't constexpr.
1755 2023-06-29 Jonathan Wakely <jwakely@redhat.com>
1758 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check that
1759 copy_file_range can be called with loff_t* arguments.
1760 * configure: Regenerate.
1761 * src/filesystem/ops-common.h (copy_file_copy_file_range):
1762 Use loff_t for offsets.
1764 2023-06-29 Tom Tromey <tromey@adacore.com>
1766 * testsuite/lib/gdb-test.exp (gdb-test): Relax type-printer
1769 2023-06-28 Jan Hubicka <jh@suse.cz>
1771 PR middle-end/109849
1772 * include/bits/c++config (std::__terminate): Mark cold.
1773 * include/bits/functexcept.h: Mark everything as cold.
1774 * libsupc++/exception: Mark terminate and unexpected as cold.
1776 2023-06-26 Thomas Rodgers <trodgers@redhat.com>
1778 * include/pstl/algorithm_fwd.h: Synchronize with upstream.
1779 * include/pstl/algorithm_impl.h: Likewise.
1780 * include/pstl/execution_defs.h: Likewise.
1781 * include/pstl/execution_impl.h: Likewise.
1782 * include/pstl/glue_algorithm_impl.h: Likewise.
1783 * include/pstl/glue_execution_defs.h: Likewise.
1784 * include/pstl/glue_memory_impl.h: Likewise.
1785 * include/pstl/glue_numeric_impl.h: Likewise.
1786 * include/pstl/memory_impl.h: Likewise.
1787 * include/pstl/numeric_fwd.h: Likewise.
1788 * include/pstl/numeric_impl.h: Likewise.
1789 * include/pstl/parallel_backend.h: Likewise.
1790 * include/pstl/parallel_backend_serial.h: Likewise.
1791 * include/pstl/parallel_backend_tbb.h: Likewise.
1792 * include/pstl/parallel_impl.h: Likewise.
1793 * include/pstl/pstl_config.h: Likewise.
1794 * include/pstl/unseq_backend_simd.h: Likewise.
1795 * include/pstl/utils.h: Likewise.
1796 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc:
1798 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc:
1800 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc:
1802 * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc:
1804 * testsuite/25_algorithms/pstl/alg_merge/merge.cc: Likewise.
1805 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc:
1807 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc:
1809 * testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc:
1811 * testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc:
1813 * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc:
1815 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc:
1817 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc:
1819 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc:
1821 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc:
1823 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc:
1825 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc:
1827 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc:
1829 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc:
1831 * testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc:
1833 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc:
1835 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc:
1837 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc:
1839 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc:
1841 * testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc:
1843 * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc:
1845 * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc:
1847 * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc:
1849 * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc:
1851 * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc:
1853 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc:
1855 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc:
1857 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc:
1859 * testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc:
1861 * testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc:
1863 * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc:
1865 * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc:
1867 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc:
1869 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc:
1871 * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc:
1873 * testsuite/25_algorithms/pstl/alg_sorting/includes.cc:
1875 * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc:
1877 * testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc:
1879 * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc:
1881 * testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc:
1883 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc:
1885 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc:
1887 * testsuite/25_algorithms/pstl/alg_sorting/set.cc:
1889 * testsuite/25_algorithms/pstl/alg_sorting/sort.cc:
1891 * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc:
1893 * testsuite/26_numerics/pstl/numeric_ops/reduce.cc:
1895 * testsuite/26_numerics/pstl/numeric_ops/scan.cc:
1897 * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc:
1899 * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc:
1901 * testsuite/util/pstl/test_utils.h:
1904 2023-06-26 Jonathan Wakely <jwakely@redhat.com>
1907 * include/std/format (__format::__parse_integer): Fix buffer
1908 overflow for wide chars.
1909 (formatter<const void*, C>::format): Cast to uintptr_t instead
1911 * testsuite/std/format/string.cc: Test too-large widths.
1913 2023-06-26 Jonathan Wakely <jwakely@redhat.com>
1915 * include/bits/iterator_concepts.h (projected): Replace class
1916 template with alias template denoting an ADL-proofed helper.
1917 (incremental_traits<projected<Iter, Proj>>): Remove.
1918 * testsuite/24_iterators/indirect_callable/projected-adl.cc:
1921 2023-06-26 Jonathan Wakely <jwakely@redhat.com>
1923 * include/debug/helper_functions.h (__get_distance)
1924 (__check_singular, __valid_range_aux, __valid_range): Qualify
1925 calls to disable ADL.
1926 (__check_singular_aux(const _Safe_iterator_base*)): Declare
1927 overload that was previously found via ADL.
1929 2023-06-23 Jonathan Wakely <jwakely@redhat.com>
1931 * include/bits/vector.tcc (_M_realloc_insert): Replace try-block
1934 2023-06-20 Jonathan Wakely <jwakely@redhat.com>
1936 * include/std/array (to_array(T(&)[N])): Remove redundant
1938 (to_array(T(&&)[N])): Remove redundant std::move.
1940 2023-06-16 Alexandre Oliva <oliva@adacore.com>
1942 * testsuite/20_util/from_chars/4.cc: Skip long double on
1945 2023-06-16 Joel Brobecker <brobecker@adacore.com>
1947 * configure.ac ["x${with_newlib}" = "xyes"]: Define
1948 HAVE_HYPOTF. Add compile-checks for various long double
1949 math functions as well.
1950 * configure: Regenerate.
1952 2023-06-14 Jonny Grant <jg@jguk.org>
1954 * doc/xml/manual/extensions.xml: Remove demangle exception
1955 description and include.
1956 * doc/html/manual/ext_demangling.html: Regenerate.
1958 2023-06-10 Hans-Peter Nilsson <hp@axis.com>
1960 * testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc (main)
1961 [! SIMULATOR_TEST]: Also exclude running test05.
1962 * testsuite/27_io/basic_istream/ignore/char/94749.cc: Ditto.
1964 2023-06-09 Ken Matsui <kmatsui@cs.washington.edu>
1966 * include/std/type_traits: Use using instead of typedef
1968 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
1971 * src/c++17/floating_from_chars.cc (from_chars) <_Float128>:
1972 Only define if _Float128 and long double have different
1975 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
1978 * include/experimental/internet [IPPROTO_TCP || IPPROTO_UDP]
1979 (basic_endpoint, basic_resolver_entry, resolver_base)
1980 (basic_resolver_results, basic_resolver): Only define if the tcp
1981 or udp protocols will be defined.
1983 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
1985 * acinclude.m4 (libtool_VERSION): Update to 6.0.33.
1986 * configure: Regenerate.
1987 * doc/xml/manual/abi.xml: Add libstdc++.so.6.0.33.
1988 * doc/html/manual/abi.html: Regenerate.
1990 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
1993 * include/std/format (formatter<const void*, charT>::parse):
1994 Only alow 0 and P for C++26 and non-strict modes.
1995 (formatter<const void*, charT>::format): Use toupper for P
1996 type, and insert zero-fill characters for 0 option.
1997 * testsuite/std/format/functions/format.cc: Check pointer
1998 formatting. Only check P2510R3 extensions conditionally.
1999 * testsuite/std/format/parse_ctx.cc: Only check P2510R3
2000 extensions conditionally.
2002 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
2005 * include/std/array (to_array): Initialize arrays of trivial
2006 types using memcpy. For non-trivial types, use lambda
2007 expressions instead of a separate helper function.
2008 (__to_array): Remove.
2009 * testsuite/23_containers/array/creation/110167.cc: New test.
2011 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
2013 * testsuite/23_containers/deque/modifiers/emplace/52799.cc:
2015 * testsuite/23_containers/deque/modifiers/emplace/const_iterator.cc:
2017 * testsuite/23_containers/list/modifiers/emplace/52799.cc:
2019 * testsuite/23_containers/list/modifiers/emplace/const_iterator.cc:
2021 * testsuite/23_containers/vector/modifiers/emplace/52799.cc:
2023 * testsuite/23_containers/vector/modifiers/emplace/const_iterator.cc:
2025 * testsuite/23_containers/deque/modifiers/emplace/1.cc: New
2027 * testsuite/23_containers/list/modifiers/emplace/1.cc: New
2029 * testsuite/23_containers/vector/modifiers/emplace/1.cc: New
2032 2023-06-07 Jakub Jelinek <jakub@redhat.com>
2035 * testsuite/20_util/to_chars/double.cc: Include <cfloat>.
2036 (double_to_chars_test_cases,
2037 double_scientific_precision_to_chars_test_cases_2,
2038 double_fixed_precision_to_chars_test_cases_2): #if out 1e126, 4.91e-6
2039 and 5.547e-6 tests if FLT_EVAL_METHOD is negative or larger than 1.
2040 Add unconditional tests with corresponding double constants
2041 0x1.7a2ecc414a03fp+418, 0x1.4981285e98e79p-18 and
2042 0x1.7440bbff418b9p-18.
2044 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
2046 * testsuite/util/testsuite_abi.cc (check_version): Re-add
2049 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
2051 * testsuite/18_support/nested_exception/rethrow_if_nested-term.cc:
2052 Require effective target exceptions_enabled instead of using
2054 * testsuite/23_containers/vector/capacity/constexpr.cc: Expect
2055 shrink_to_fit() to be a no-op without exceptions enabled.
2056 * testsuite/23_containers/vector/capacity/shrink_to_fit.cc:
2058 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc:
2059 Require effective target exceptions_enabled.
2060 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc:
2062 * testsuite/ext/mt_allocator/check_allocate_max_size.cc:
2064 * testsuite/ext/new_allocator/check_allocate_max_size.cc:
2066 * testsuite/ext/pool_allocator/check_allocate_max_size.cc:
2068 * testsuite/ext/throw_allocator/check_allocate_max_size.cc:
2071 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
2073 * testsuite/20_util/duration/cons/2.cc: Use values that aren't
2074 affected by rounding.
2075 * testsuite/20_util/from_chars/5.cc: Cast arithmetic result to
2076 double before comparing for equality.
2077 * testsuite/20_util/from_chars/6.cc: Likewise.
2078 * testsuite/20_util/variant/86874.cc: Use values that aren't
2079 affected by rounding.
2080 * testsuite/25_algorithms/lower_bound/partitioned.cc: Compare to
2081 original value instead of to floating-point-literal.
2082 * testsuite/26_numerics/random/discrete_distribution/cons/range.cc:
2083 Cast arithmetic result to double before comparing for equality.
2084 * testsuite/26_numerics/random/piecewise_constant_distribution/cons/range.cc:
2086 * testsuite/26_numerics/random/piecewise_linear_distribution/cons/range.cc:
2088 * testsuite/26_numerics/valarray/transcend.cc (eq): Check that
2089 the absolute difference is less than 0.01 instead of comparing
2090 to two decimal places.
2091 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
2092 Cast arithmetic result to double before comparing for equality.
2093 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
2095 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
2097 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/01.cc:
2099 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/09.cc:
2101 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/10.cc:
2103 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
2105 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
2108 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
2110 * configure.ac: Use AS_IF.
2111 * configure: Regenerate.
2113 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
2115 * testsuite/lib/prune.exp (libstdc++-dg-prune): Support
2116 'UNSUPPORTED: [...]: exception handling disabled'.
2118 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
2120 * testsuite/util/testsuite_abi.cc (check_version): Add
2121 CXXABI_1.3.15 symver and make it the latestp. Remove
2122 GLIBCXX_IEEE128_3.4.31 and GLIBCXX_LDBL_3.4.31 from latestp.
2124 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
2125 Jakub Jelinek <jakub@redhat.com>
2128 * include/std/limits: (numeric_limits<__float128>): Define
2129 for __STRICT_ANSI__ as well.
2130 * testsuite/18_support/numeric_limits/128bit.cc: Remove
2131 check for __STRICT_ANSI__.
2133 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
2135 * configure.ac: Use AS_IF.
2136 * configure: Regenerate.
2138 2023-06-06 Matthias Kretz <m.kretz@gsi.de>
2141 * include/experimental/bits/simd_builtin.h (_S_store): Rewrite
2142 to avoid casts to other vector types. Implement store as
2143 succession of power-of-2 sized memcpy to avoid PR90424.
2145 2023-06-06 Matthias Kretz <m.kretz@gsi.de>
2148 * include/experimental/bits/simd_builtin.h (_S_masked_store):
2149 Call into deduced ABI's SimdImpl after conversion.
2150 * include/experimental/bits/simd_x86.h (_S_masked_store_nocvt):
2151 Don't use _mm_maskmoveu_si128. Use the generic fall-back
2152 implementation. Also fix masked stores without SSE2, which
2153 were not doing anything before.
2155 2023-06-06 Matthias Kretz <m.kretz@gsi.de>
2157 * include/experimental/bits/simd.h (__bit_cast): Use
2158 __gnu__::__vector_size__ instead of gnu::vector_size.
2160 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
2163 * include/std/array (__array_traits<T, 0>::operator T*()): Make
2164 conversion operator explicit.
2165 (array::front): Use size_type as subscript operand.
2166 (array::data): Use static_cast to make conversion explicit.
2167 * testsuite/23_containers/array/element_access/110139.cc: New
2170 2023-06-06 Joseph Faulls <Joseph.Faulls@imgtec.com>
2172 * include/bits/locale_classes.tcc: Remove check for
2173 codecvt<char8_t, char, mbstate_t> facet.
2175 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
2177 * src/filesystem/ops-common.h (do_copy_file) [O_CLOEXEC]: Set
2178 close-on-exec flag on file descriptors.
2180 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
2183 * src/filesystem/ops-common.h (do_copy_file): Check for empty
2184 files by trying to read a character.
2185 * testsuite/27_io/filesystem/operations/copy_file_108178.cc:
2188 2023-06-06 Jannik Glückert <jannik.glueckert@gmail.com>
2190 * acinclude.m4 (_GLIBCXX_USE_COPY_FILE_RANGE): Define.
2191 * config.h.in: Regenerate.
2192 * configure: Regenerate.
2193 * src/filesystem/ops-common.h (copy_file_copy_file_range):
2194 Define new function.
2195 (do_copy_file): Use it.
2197 2023-06-06 Jannik Glückert <jannik.glueckert@gmail.com>
2199 * acinclude.m4 (_GLIBCXX_HAVE_LSEEK): Define.
2200 * config.h.in: Regenerate.
2201 * configure: Regenerate.
2202 * src/filesystem/ops-common.h (copy_file_sendfile): Define new
2203 function for sendfile logic. Loop to support large files. Skip
2205 (do_copy_file): Use it.
2207 2023-06-04 Jason Merrill <jason@redhat.com>
2210 * libsupc++/eh_call.cc (__cxa_call_terminate): Take void*.
2211 * config/abi/pre/gnu.ver: Add it.
2213 2023-06-02 François Dumont <fdumont@gcc.gnu.org>
2215 * include/parallel/algobase.h: Include <parallel/search.h>.
2217 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
2219 * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc:
2220 Add const to equality operator.
2222 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
2224 * include/std/expected (expected::and_then, expected::or_else)
2225 (expected::transform_error): Use _M_val and _M_unex instead of
2226 calling value() and error(), as per LWG 3938.
2227 (expected::transform): Likewise. Remove incorrect std::move
2228 calls from lvalue overloads.
2229 (expected<void, E>::and_then, expected<void, E>::or_else)
2230 (expected<void, E>::transform): Use _M_unex instead of calling
2232 * testsuite/20_util/expected/lwg3877.cc: Add checks for and_then
2233 and transform, and for std::expected<void, E>.
2234 * testsuite/20_util/expected/lwg3938.cc: New test.
2236 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
2239 * include/bits/stl_vector.h (_Vector_base::_M_invariant):
2241 (vector::size, vector::capacity): Remove calls to _M_invariant.
2242 * include/bits/vector.tcc (vector::_M_fill_assign): Add
2243 optimization hint to reallocating path.
2244 (vector::_M_assign_aux(FwdIter, FwdIter, forward_iterator_tag)):
2246 * testsuite/23_containers/vector/capacity/invariant.cc: Moved
2248 * testsuite/23_containers/vector/modifiers/assign/no_realloc.cc:
2249 ...here. Check assign(FwdIter, FwdIter) too.
2250 * testsuite/23_containers/vector/types/1.cc: Revert addition
2251 of -Wno-stringop-overread option.
2253 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
2255 * doc/xml/manual/evolution.xml: Document removal of implicit
2256 allocator rebinding extensions in strict mode and for C++20.
2257 * doc/html/*: Regenerate.
2259 2023-06-01 Jason Merrill <jason@redhat.com>
2261 * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Don't check
2262 handlers in the cleanup phase.
2264 2023-06-01 Matthias Kretz <m.kretz@gsi.de>
2267 * include/experimental/bits/simd.h (__vectorized_sizeof): With
2268 __have_neon_a32 only single-precision float works (in addition
2271 2023-06-01 François Dumont <fdumont@gcc.gnu.org>
2273 * include/bits/stl_algo.h
2274 (std::__search, std::search(_FwdIt1, _FwdIt1, _FwdIt2, _FwdIt2, _BinPred)): Move...
2275 * include/bits/stl_algobase.h: ...here.
2276 * include/std/functional: Replace <stl_algo.h> include by <stl_algobase.h>.
2277 * include/parallel/algo.h (std::__parallel::search<_FIt1, _FIt2, _BinaryPred>)
2278 (std::__parallel::__search_switch<_FIt1, _FIt2, _BinaryPred, _ItTag1, _ItTag2>):
2280 * include/parallel/algobase.h: ...here.
2281 * include/experimental/functional: Remove <bits/stl_algo.h> and <parallel/algorithm>
2282 includes. Include <bits/stl_algobase.h>.
2284 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2287 * acinclude.m4 (GLIBCXX_ENABLE_C99): Add separate check for
2288 float_t and double_t and define HAVE_C99_FLT_EVAL_TYPES.
2289 * config.h.in: Regenerate.
2290 * configure: Regenerate.
2291 * include/c_global/cmath (float_t, double_t): Guard using new
2292 _GLIBCXX_HAVE_C99_FLT_EVAL_TYPES macro.
2294 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2296 * acinclude.m4 (GLIBCXX_ENABLE_C99): Add checks for C99 math
2297 functions and define _GLIBCXX_USE_C99_MATH_FUNCS. Move checks
2298 for C99 rounding functions to here.
2299 (GLIBCXX_CHECK_C99_TR1): Remove checks for C99 rounding
2300 functions from here.
2301 * config.h.in: Regenerate.
2302 * configure: Regenerate.
2303 * include/bits/random.h: Use _GLIBCXX_USE_C99_MATH_FUNCS instead
2304 of _GLIBCXX_USE_C99_MATH_TR1.
2305 * include/bits/random.tcc: Likewise.
2306 * include/c_compatibility/math.h: Likewise.
2307 * include/c_global/cmath: Likewise.
2308 * include/ext/random: Likewise.
2309 * include/ext/random.tcc: Likewise.
2310 * include/std/complex: Likewise.
2311 * testsuite/20_util/from_chars/4.cc: Likewise.
2312 * testsuite/20_util/from_chars/8.cc: Likewise.
2313 * testsuite/26_numerics/complex/proj.cc: Likewise.
2314 * testsuite/26_numerics/headers/cmath/60401.cc: Likewise.
2315 * testsuite/26_numerics/headers/cmath/types_std_c++0x.cc:
2317 * testsuite/lib/libstdc++.exp (check_v3_target_cstdint):
2319 * testsuite/util/testsuite_random.h: Likewise.
2321 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2323 * include/bits/stl_vector.h (_Vector_base::_M_invariant()): New
2325 (vector::size(), vector::capacity()): Call _M_invariant().
2326 * testsuite/23_containers/vector/capacity/invariant.cc: New test.
2327 * testsuite/23_containers/vector/types/1.cc: Add suppression for
2328 false positive warning (PR110060).
2330 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2333 * src/c++17/floating_from_chars.cc: Check __FLT128_MANT_DIG__ is
2334 defined before trying to use _Float128.
2336 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2338 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Fix for 32-bit pointers
2339 to check __INT_PTR_WIDTH__ instead of sizeof(void*).
2340 * configure: Regenerate.
2342 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2344 * include/bits/unique_lock.h: Include <bits/error_constants.h>
2345 here for std::errc constants.
2346 * include/std/mutex: Do not include <bits/error_constants.h> and
2349 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2351 * configure.ac: Replace use of -o operator for test.
2352 * configure: Regenerate.
2354 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2356 * include/std/scoped_allocator (scoped_allocator_adaptor): Add
2357 noexcept to all constructors except the default constructor.
2358 (scoped_allocator_adaptor::inner_allocator): Add noexcept.
2359 (scoped_allocator_adaptor::outer_allocator): Likewise.
2360 * testsuite/20_util/scoped_allocator/noexcept.cc: New test.
2362 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2365 * include/std/limits (numeric_limits<__float128>): Define.
2366 * testsuite/18_support/numeric_limits/128bit.cc: New test.
2368 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2370 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Extend logic for avr and
2371 msp430 to all 16-bit targets.
2372 * configure: Regenerate.
2374 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2377 * src/c++17/floating_from_chars.cc (USE_STRTOF128_FOR_FROM_CHARS):
2378 Only define when USE_STRTOD_FOR_FROM_CHARS is also defined.
2379 (USE_STRTOD_FOR_FROM_CHARS): Do not undefine when long double is
2381 (from_chars(const char*, const char*, double&, chars_format)):
2382 Check __LDBL_MANT_DIG__ == __DBL_MANT_DIG__ here.
2383 (from_chars(const char*, const char*, _Float128&, chars_format))
2384 Only use from_chars_strtod when USE_STRTOD_FOR_FROM_CHARS is
2385 defined, otherwise parse a long double and convert to _Float128.
2387 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2390 * include/std/iomanip (operator>>(basic_istream&, _Setfill)):
2391 Add deprecated attribute to non-standard overload.
2392 * doc/xml/manual/evolution.xml: Document deprecation.
2393 * doc/html/*: Regenerate.
2394 * testsuite/27_io/manipulators/standard/char/1.cc: Add
2395 dg-warning for expected deprecated warning.
2396 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
2397 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
2398 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
2400 2023-05-30 Alexandre Oliva <oliva@adacore.com>
2402 * testsuite/20_util/from_chars/4.cc: Skip long double test06
2404 * testsuite/20_util/to_chars/long_double.cc: Xfail run on
2407 2023-05-30 Matthias Kretz <m.kretz@gsi.de>
2410 * include/experimental/bits/simd.h (to_native): Use int NTTP
2411 as specified in PTS2.
2412 (to_compatible): Likewise. Add missing tag to call mask
2414 * testsuite/experimental/simd/pr109822_cast_functions.cc: New
2417 2023-05-30 Matthias Kretz <m.kretz@gsi.de>
2419 * testsuite/experimental/simd/tests/integer_operators.cc:
2420 Compute expected value differently to avoid getting turned into
2423 2023-05-30 Matthias Kretz <m.kretz@gsi.de>
2425 * testsuite/experimental/simd/tests/operator_cvt.cc: Make long
2426 double <-> (u)long conversion tests conditional on sizeof(long
2427 double) and sizeof(long).
2429 2023-05-26 Matthias Kretz <m.kretz@gsi.de>
2431 * include/experimental/bits/simd_ppc.h (_S_bit_shift_left):
2432 Negative __y is UB, so prefer signed compare.
2434 2023-05-25 Jonathan Wakely <jwakely@redhat.com>
2436 * testsuite/util/testsuite_allocator.h (PointerBase): Add
2437 relational operators.
2439 2023-05-25 Alexandre Oliva <oliva@adacore.com>
2441 * testsuite/20_util/to_chars/long_double.cc: Expect execution
2442 fail on x86-vxworks.
2444 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
2447 * include/experimental/bits/simd.h (__intrinsic_type): If
2448 __ALTIVEC__ is defined, map gnu::vector_size types to their
2449 corresponding __vector T types without losing unsignedness of
2450 integer types. Also prefer long long over long.
2451 * include/experimental/bits/simd_ppc.h (_S_popcount): Cast mask
2452 object to the expected unsigned vector type.
2454 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
2457 * include/experimental/bits/simd.h (__intrinsic_type):
2458 Specialize __intrinsic_type<double, 8> and
2459 __intrinsic_type<double, 16> in any case, but provide the member
2460 type only with __aarch64__.
2462 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
2465 * include/experimental/bits/simd_neon.h (_S_reduce): Add
2466 constexpr and make NEON implementation conditional on
2467 not __builtin_is_constant_evaluated.
2469 2023-05-23 Matthias Kretz <m.kretz@gsi.de>
2472 * include/experimental/bits/simd.h (_SimdWrapper::_M_set):
2473 Avoid vector builtin subscripting in constant expressions.
2474 (resizing_simd_cast): Avoid memcpy if constant_evaluated.
2475 (const_where_expression, where_expression, where)
2476 (__extract_part, simd_mask, _SimdIntOperators, simd): Add either
2477 _GLIBCXX_SIMD_CONSTEXPR (on public APIs), or constexpr (on
2479 * include/experimental/bits/simd_builtin.h (__vector_permute)
2480 (__vector_shuffle, __extract_part, _GnuTraits::_SimdCastType1)
2481 (_GnuTraits::_SimdCastType2, _SimdImplBuiltin)
2482 (_MaskImplBuiltin::_S_store): Add constexpr.
2483 (_CommonImplBuiltin::_S_store_bool_array)
2484 (_SimdImplBuiltin::_S_load, _SimdImplBuiltin::_S_store)
2485 (_SimdImplBuiltin::_S_reduce, _MaskImplBuiltin::_S_load): Add
2486 constant_evaluated case.
2487 * include/experimental/bits/simd_fixed_size.h
2488 (_S_masked_load): Reword comment.
2489 (__tuple_element_meta, __make_meta, _SimdTuple::_M_apply_r)
2490 (_SimdTuple::_M_subscript_read, _SimdTuple::_M_subscript_write)
2491 (__make_simd_tuple, __optimize_simd_tuple, __extract_part)
2492 (__autocvt_to_simd, _Fixed::__traits::_SimdBase)
2493 (_Fixed::__traits::_SimdCastType, _SimdImplFixedSize): Add
2495 (_SimdTuple::operator[], _M_set): Add constexpr and add
2496 constant_evaluated case.
2497 (_MaskImplFixedSize::_S_load): Add constant_evaluated case.
2498 * include/experimental/bits/simd_scalar.h: Add constexpr.
2499 * include/experimental/bits/simd_x86.h (_CommonImplX86): Add
2500 constexpr and add constant_evaluated case.
2501 (_SimdImplX86::_S_equal_to, _S_not_equal_to, _S_less)
2502 (_S_less_equal): Value-initialize to satisfy constexpr
2504 (_MaskImplX86::_S_load): Add constant_evaluated case.
2505 (_MaskImplX86::_S_store): Add constexpr and constant_evaluated
2506 case. Value-initialize local variables.
2507 (_MaskImplX86::_S_logical_and, _S_logical_or, _S_bit_not)
2508 (_S_bit_and, _S_bit_or, _S_bit_xor): Add constant_evaluated
2510 * testsuite/experimental/simd/pr109261_constexpr_simd.cc: New
2513 2023-05-22 Matthias Kretz <m.kretz@gsi.de>
2515 * include/experimental/bits/simd_builtin.h (_S_fpclassify): Move
2516 __infn into #ifdef'ed block.
2517 * testsuite/experimental/simd/tests/fpclassify.cc: Declare
2518 constants only when used.
2519 * testsuite/experimental/simd/tests/frexp.cc: Likewise.
2520 * testsuite/experimental/simd/tests/logarithm.cc: Likewise.
2521 * testsuite/experimental/simd/tests/trunc_ceil_floor.cc:
2523 * testsuite/experimental/simd/tests/ldexp_scalbn_scalbln_modf.cc:
2524 Move totest and expect1 into #ifdef'ed block.
2526 2023-05-19 Gerald Pfeifer <gerald@pfeifer.com>
2528 * doc/xml/manual/strings.xml: Move lafstern.org reference to https.
2529 * doc/html/manual/strings.html: Regenerate.
2531 2023-05-17 Jakub Jelinek <jakub@redhat.com>
2534 * testsuite/26_numerics/headers/cmath/constexpr_std_c++23.cc: New test.
2536 2023-05-17 Jakub Jelinek <jakub@redhat.com>
2539 * include/c_global/cmath (atan2, fmod, pow): Move
2540 __gnu_cxx::__promote_2 using templates after _Float{16,32,64,128} and
2541 __gnu_cxx::__bfloat16_t overloads.
2542 (copysign, fdim, fmax, fmin, hypot, nextafter, remainder, remquo):
2544 (fma): Move __gnu_cxx::__promote_3 using template after
2545 _Float{16,32,64,128} and __gnu_cxx::__bfloat16_t overloads.
2547 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
2549 * testsuite/18_support/headers/limits/synopsis.cc: Uncomment
2550 checks for float_round_style and float_denorm_style.
2552 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
2554 * include/bits/c++config: Add system_header pragma.
2556 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
2558 * include/std/expected (expected::and_then, expected::or_else)
2559 (expected::transform, expected::transform_error): Fix exception
2560 specifications as per LWG 3877.
2561 (expected<void, E>::and_then, expected<void, E>::transform):
2563 * testsuite/20_util/expected/lwg3877.cc: New test.
2565 2023-05-17 Ken Matsui <kmatsui@cs.washington.edu>
2567 * include/std/type_traits: Use __bool_constant instead of
2570 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
2572 * configure: Regenerate.
2574 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2577 * acinclude.m4 (GLIBCXX_CHECK_ALIGNAS_CACHELINE): Define.
2578 * config.h.in: Regenerate.
2579 * configure: Regenerate.
2580 * configure.ac: Use GLIBCXX_CHECK_ALIGNAS_CACHELINE.
2581 * src/c++11/shared_ptr.cc (__gnu_internal::get_mutex): Do not
2582 align lock table if not supported. use __GCC_DESTRUCTIVE_SIZE
2583 instead of hardcoded 64.
2585 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2587 * acinclude.m4 (GLIBCXX_USE_C99): Check for isblank in C++11
2588 mode and define _GLIBCXX_USE_C99_CTYPE. Check for <fenv.h>
2589 functions in C++11 mode and define _GLIBCXX_USE_C99_FENV.
2590 * config.h.in: Regenerate.
2591 * configure: Regenerate.
2592 * include/c_compatibility/fenv.h: Check _GLIBCXX_USE_C99_FENV
2593 instead of _GLIBCXX_USE_C99_FENV_TR1.
2594 * include/c_global/cfenv: Likewise.
2595 * include/c_global/cctype: Check _GLIBCXX_USE_C99_CTYPE instead
2596 of _GLIBCXX_USE_C99_CTYPE_TR1.
2598 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2600 * acinclude.m4 (GLIBCXX_USE_C99): Check for <stdint.h> types in
2601 C++11 mode and define _GLIBCXX_USE_C99_STDINT. Check for
2602 <inttypes.h> features in C++11 mode and define
2603 _GLIBCXX_USE_C99_INTTYPES and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T.
2604 * config.h.in: Regenerate.
2605 * configure: Regenerate.
2606 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macros.
2607 * include/bits/chrono.h: Check _GLIBCXX_USE_C99_STDINT instead
2608 of _GLIBCXX_USE_C99_STDINT_TR1.
2609 * include/c_compatibility/inttypes.h: Check
2610 _GLIBCXX_USE_C99_INTTYPES and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T
2611 instead of _GLIBCXX_USE_C99_INTTYPES_TR1 and
2612 _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
2613 * include/c_compatibility/stdatomic.h: Check
2614 _GLIBCXX_USE_C99_STDINT instead of _GLIBCXX_USE_C99_STDINT_TR1.
2615 * include/c_compatibility/stdint.h: Likewise.
2616 * include/c_global/cinttypes: Check _GLIBCXX_USE_C99_INTTYPES
2617 and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T instead of
2618 _GLIBCXX_USE_C99_INTTYPES_TR1 and
2619 _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
2620 * include/c_global/cstdint: Check _GLIBCXX_USE_C99_STDINT
2621 instead of _GLIBCXX_USE_C99_STDINT_TR1.
2622 * include/std/atomic: Likewise.
2623 * src/c++11/cow-stdexcept.cc: Likewise.
2624 * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc:
2626 * testsuite/lib/libstdc++.exp (check_v3_target_cstdint):
2629 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2631 * acinclude.m4 (GLIBCXX_USE_C99): Check for complex inverse trig
2632 functions in C++11 mode and define _GLIBCXX_USE_C99_COMPLEX_ARC.
2633 * config.h.in: Regenerate.
2634 * configure: Regenerate.
2635 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macro.
2636 * include/std/complex: Check _GLIBCXX_USE_C99_COMPLEX_ARC
2637 instead of _GLIBCXX_USE_C99_COMPLEX_TR1.
2639 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2641 * testsuite/ext/debug_allocator/check_deallocate_null.cc: Add
2642 assertion to ensure expected exception is throw.
2644 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2646 * testsuite/libstdc++-prettyprinters/chrono.cc: Only test
2647 printer for chrono::zoned_time for cx11 ABI and tzdb effective
2650 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2652 * acinclude.m4 (GLIBCXX_CHECK_PTHREAD_MUTEX_CLOCKLOCK): Define
2653 _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK in terms of _GLIBCXX_TSAN.
2654 * configure: Regenerate.
2656 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2658 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Use a non-null pointer
2659 to check for nan, nanf, and nanl.
2660 * configure: Regenerate.
2662 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2664 * include/bits/char_traits.h (char_traits<char16_t>): Do not
2665 depend on _GLIBCXX_USE_C99_STDINT_TR1.
2666 (char_traits<char32_t>): Likewise.
2667 * include/experimental/source_location: Likewise.
2669 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2671 * include/std/atomic (atomic_int_least8_t, atomic_uint_least8_t)
2672 (atomic_int_least16_t, atomic_uint_least16_t)
2673 (atomic_int_least32_t, atomic_uint_least32_t)
2674 (atomic_int_least64_t, atomic_uint_least64_t)
2675 (atomic_int_fast16_t, atomic_uint_fast16_t)
2676 (atomic_int_fast32_t, atomic_uint_fast32_t)
2677 (atomic_int_fast64_t, atomic_uint_fast64_t)
2678 (atomic_intmax_t, atomic_uintmax_t): Define unconditionally.
2679 * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc: Adjust.
2681 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2683 * include/bits/algorithmfwd.h (shuffle): Do not depend on
2684 _GLIBCXX_USE_C99_STDINT_TR1.
2685 * include/bits/ranges_algo.h (shuffle): Likewise.
2686 * include/bits/stl_algo.h (shuffle): Likewise.
2687 * include/ext/random: Likewise.
2688 * include/ext/throw_allocator.h (random_condition): Likewise.
2689 * include/std/random: Likewise.
2690 * src/c++11/cow-string-inst.cc: Likewise.
2691 * src/c++11/random.cc: Likewise.
2693 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2695 * testsuite/experimental/feat-cxx14.cc: Remove dependency on
2696 _GLIBCXX_USE_C99_STDINT_TR1.
2698 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2700 * testsuite/22_locale/locale/cons/unicode.cc: Remove dependency
2701 on _GLIBCXX_USE_C99_STDINT_TR1.
2703 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2705 * testsuite/21_strings/basic_string_view/typedefs.cc: Remove
2706 dependency on _GLIBCXX_USE_C99_STDINT_TR1.
2707 * testsuite/experimental/string_view/typedefs.cc: Likewise.
2709 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
2711 * src/c++17/floating_from_chars.cc [USE_STRTOD_FOR_FROM_CHARS]
2712 (auto_locale, auto_ferounding): New class types.
2713 (from_chars_impl): Use auto_locale and auto_ferounding.
2715 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
2718 * include/std/chrono (hh_mm_ss::__fits): Remove variable
2720 (hh_mm_ss::__subseconds): Remove __fits from constraints.
2721 * testsuite/std/time/hh_mm_ss/109772.cc: New test.
2722 * testsuite/std/time/hh_mm_ss/1.cc: Adjust expected size for
2723 hh_mm_ss<duration<int, std::pico>>.
2725 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
2727 * config/abi/pre/gnu.ver: Export basic_string::_S_allocate.
2728 * include/bits/basic_ios.h: Add static assertion checking
2729 traits_type::value_type.
2730 * include/bits/basic_string.h: Likewise. Do not rebind
2731 allocator, and add static assertion checking its value_type.
2732 (basic_string::_Alloc_traits_impl): Remove class template.
2733 (basic_string::_S_allocate): New static member function.
2734 (basic_string::assign): Use _S_allocate.
2735 * include/bits/basic_string.tcc (basic_string::_M_create)
2736 (basic_string::reserve, basic_string::_M_replace): Likewise.
2737 * testsuite/21_strings/basic_string/requirements/explicit_instantiation/debug.cc:
2738 Disable for C++20 and later.
2739 * testsuite/21_strings/basic_string/requirements/explicit_instantiation/int.cc:
2742 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
2745 * include/bits/std_abs.h (abs(__float128)): Handle negative NaN
2746 and negative zero correctly.
2747 * testsuite/26_numerics/headers/cmath/109758.cc: New test.
2749 2023-05-10 François Dumont <fdumont@gcc.gnu.org>
2751 * include/bits/hashtable_policy.h
2752 (_NodeBuilder<>::_S_build): Use __node_ptr.
2753 (_ReuseOrAllocNode<>): Use __node_ptr in place of __node_type*.
2754 (_AllocNode<>): Likewise.
2755 (_Equality<>::_M_equal): Remove const_iterator usages. Only preserved
2756 to call std::is_permutation in the non-unique key implementation.
2757 * include/bits/hashtable.h (_Hashtable<>::_M_update_begin()): Capture
2759 (_Hashtable<>::_M_bucket_begin(size_type)): Implement implicitly inline.
2760 (_Hashtable<>::_M_insert_bucket_begin): Likewise.
2761 (_Hashtable<>::_M_remove_bucket_begin): Likewise.
2762 (_Hashtable<>::_M_compute_hash_code): Use __node_ptr rather than
2764 (_Hashtable<>::find): Likewise.
2765 (_Hashtable<>::_M_emplace): Likewise.
2766 (_Hashtable<>::_M_insert_unique): Likewise.
2768 2023-05-09 Jonathan Wakely <jwakely@redhat.com>
2770 * python/libstdcxx/v6/printers.py (StdChronoDurationPrinter):
2771 Print floating-point durations correctly.
2772 (StdChronoTimePointPrinter): Support printing only the value,
2773 not the type name. Uncomment handling for known clocks.
2774 (StdChronoZonedTimePrinter): Remove type names from output.
2775 (StdChronoCalendarPrinter): Fix hh_mm_ss member access.
2776 (StdChronoTimeZonePrinter): Add equals sign to output.
2777 * testsuite/libstdc++-prettyprinters/chrono.cc: New test.
2779 2023-05-05 Alexandre Oliva <oliva@adacore.com>
2781 * testsuite/20_util/from_chars/4.cc: Skip long double test06
2783 * testsuite/20_util/to_chars/long_double.cc: Xfail run on
2786 2023-05-04 Jonathan Wakely <jwakely@redhat.com>
2788 * doc/xml/manual/abi.xml (abi.versioning.history): Document
2789 libstdc++.so.6.0.32 and GLIBCXX_3.4.32 version.
2790 * doc/html/manual/abi.html: Regenerate.
2792 2023-05-04 Florian Weimer <fweimer@redhat.com>
2794 * doc/xml/manual/abi.xml (abi.versioning.history): Add
2795 GCC_7.0.0, GCC_9.0.0, GCC_11.0, GCC_12.0.0, GCC_13.0.0 for
2798 2023-05-03 Jakub Jelinek <jakub@redhat.com>
2800 * src/c++17/floating_from_chars.cc
2801 (_ZSt10from_charsPKcS0_RDF128_St12chars_format): New alias to
2802 _ZSt10from_charsPKcS0_Ru9__ieee128St12chars_format.
2803 * src/c++17/floating_to_chars.cc (_ZSt8to_charsPcS_DF128_): New alias to
2804 _ZSt8to_charsPcS_u9__ieee128.
2805 (_ZSt8to_charsPcS_DF128_St12chars_format): New alias to
2806 _ZSt8to_charsPcS_u9__ieee128St12chars_format.
2807 (_ZSt8to_charsPcS_DF128_St12chars_formati): New alias to
2808 _ZSt8to_charsPcS_u9__ieee128St12chars_formati.
2809 * config/abi/post/powerpc64le-linux-gnu/baseline_symbols.txt: Updated.
2811 2023-05-03 Jakub Jelinek <jakub@redhat.com>
2813 * configure.host (abi_baseline_pair): Use powerpc64le-linux-gnu
2814 rather than powerpc64-linux-gnu for powerpc64le*-linux*.
2815 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Remove
2816 _ZTI*DF128_, _ZTI*DF64x symbols and symbols in
2817 GLIBCXX_IEEE128_3.4.{29,30,31} and CXXABI_IEEE128_1.3.13 symbol
2819 * config/abi/post/powerpc64le-linux-gnu/baseline_symbols.txt: New
2822 2023-05-03 Kefu Chai <kefu.chai@scylladb.com>
2823 Jonathan Wakely <jwakely@redhat.com>
2826 * include/bits/basic_string.h (basic_string(Iter, Iter, Alloc)):
2827 Initialize _M_string_length.
2829 2023-05-02 Jakub Jelinek <jakub@redhat.com>
2831 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
2832 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
2833 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
2834 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
2835 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
2836 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
2837 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
2838 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
2840 2023-05-02 Jakub Jelinek <jakub@redhat.com>
2843 * src/c++98/ios_init.cc: Add #pragma GCC diagnostic ignored for
2846 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
2848 * include/bits/random.h (gamma_distribution): Add to the right
2850 (discrete_distribution, piecewise_constant_distribution)
2851 (piecewise_linear_distribution): Create a new doxygen group and
2852 fix the incomplete doxygen comments.
2853 * include/bits/uniform_int_dist.h (uniform_int_distribution):
2854 Add to doxygen group.
2856 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
2858 * include/bits/uses_allocator.h: Add missing @file comment.
2859 * include/bits/regex.tcc: Remove stray doxygen comments.
2860 * include/experimental/memory_resource: Likewise.
2861 * include/std/bit: Tweak doxygen @cond comments.
2862 * include/std/expected: Likewise.
2863 * include/std/numbers: Likewise.
2865 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
2867 * doc/doxygen/user.cfg.in (STRIP_FROM_PATH): Remove prefixes
2870 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
2872 * include/bits/move.h: Simplify opening/closing namespace std.
2874 2023-04-28 Jakub Jelinek <jakub@redhat.com>
2877 * config/abi/pre/gnu.ver (GLIBCXX_3.4.32): Export
2878 _ZSt21ios_base_library_initv.
2879 * testsuite/util/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.32
2880 symver and make it the latestp.
2881 * src/c++98/ios_init.cc (ios_base_library_init): New alias.
2882 * acinclude.m4 (libtool_VERSION): Change to 6:32:0.
2883 * include/std/iostream: If init_priority attribute is supported
2884 and _GLIBCXX_SYMVER_GNU, force undefined _ZSt21ios_base_library_initv
2885 symbol into the object.
2886 * configure: Regenerated.
2888 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
2890 * include/bits/mofunc_impl.h: Fix typo in doxygen comment.
2891 * include/std/format: Likewise.
2893 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
2895 * doc/doxygen/user.cfg.in (FORMULA_TRANSPARENT, DOT_FONTNAME)
2896 (DOT_FONTSIZE, DOT_TRANSPARENT): Remove obsolete options.
2898 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
2900 * doc/doxygen/user.cfg.in (SOURCE_BROWSER): Only set to YES for
2902 * include/bits/gslice_array.h (_DEFINE_VALARRAY_OPERATOR): Omit
2904 * include/bits/indirect_array.h (_DEFINE_VALARRAY_OPERATOR):
2906 * include/bits/mask_array.h (_DEFINE_VALARRAY_OPERATOR):
2908 * include/bits/slice_array.h (_DEFINE_VALARRAY_OPERATOR):
2910 * include/std/valarray (_DEFINE_VALARRAY_UNARY_OPERATOR)
2911 (_DEFINE_VALARRAY_AUGMENTED_ASSIGNMENT)
2912 (_DEFINE_VALARRAY_EXPR_AUGMENTED_ASSIGNMENT)
2913 (_DEFINE_BINARY_OPERATOR): Likewise.
2915 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
2917 * include/bits/memory_resource.h: Improve doxygen comments.
2918 * include/std/memory_resource: Likewise.
2920 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
2923 * include/bits/basic_string.h: Improve doxygen comments.
2924 * include/bits/cow_string.h: Likewise.
2925 * include/bits/forward_list.h: Likewise.
2926 * include/bits/fs_dir.h: Likewise.
2927 * include/bits/fs_path.h: Likewise.
2928 * include/bits/quoted_string.h: Likewise.
2929 * include/bits/stl_bvector.h: Likewise.
2930 * include/bits/stl_map.h: Likewise.
2931 * include/bits/stl_multimap.h: Likewise.
2932 * include/bits/stl_multiset.h: Likewise.
2933 * include/bits/stl_set.h: Likewise.
2934 * include/bits/stl_vector.h: Likewise.
2935 * include/bits/unordered_map.h: Likewise.
2936 * include/bits/unordered_set.h: Likewise.
2937 * include/std/filesystem: Likewise.
2938 * include/std/iomanip: Likewise.
2940 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
2943 * src/c++11/random.cc (__throw_syserr): New function.
2944 (random_device::_M_init, random_device::_M_init_pretr1): Use new
2945 function for bad tokens.
2946 (random_device::_M_getval): Use new function for read errors.
2947 * testsuite/util/testsuite_random.h (random_device_available):
2948 Change catch handler to use std::system_error.
2950 2023-04-24 Patrick Palka <ppalka@redhat.com>
2952 * include/bits/max_size_type.h (__max_diff_type::operator>>=):
2953 Fix propagation of sign bit.
2954 * testsuite/std/ranges/iota/max_size_type.cc: Avoid using the
2955 non-standard 'signed typedef-name'. Add some compile-time tests
2956 for right-shifting a negative __max_diff_type value by more than
2959 2023-04-19 Patrick Palka <ppalka@redhat.com>
2960 Jonathan Wakely <jwakely@redhat.com>
2963 * include/bits/utility.h (_Nth_type): Conditionally define in
2964 terms of __type_pack_element if available.
2965 * testsuite/20_util/tuple/element_access/get_neg.cc: Prune
2966 additional errors from the new built-in.
2968 2023-04-19 Jonathan Wakely <jwakely@redhat.com>
2971 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
2974 * src/Makefile.am: Move globals_io.cc to here.
2975 * src/Makefile.in: Regenerate.
2976 * src/c++98/Makefile.am: Remove globals_io.cc from here.
2977 * src/c++98/Makefile.in: Regenerate.
2978 * src/c++98/globals_io.cc [_GLIBCXX_SYMVER_GNU] (cin): Adjust
2979 symbol name and then export with GLIBCXX_3.4.31 symver.
2980 (cout, cerr, clog, wcin, wcout, wcerr, wclog): Likewise.
2981 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt:
2983 * config/abi/post/i486-linux-gnu/baseline_symbols.txt:
2985 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt:
2987 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
2989 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
2991 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
2993 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt:
2995 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt:
2997 * config/abi/pre/gnu.ver: Add iostream objects to new symver.
2999 2023-04-19 Jonathan Wakely <jwakely@redhat.com>
3002 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
3005 * config/abi/pre/gnu.ver: Fix preprocessor condition.
3007 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
3009 * doc/xml/manual/extensions.xml: Fix example to declare and
3010 qualify std::free, and use NULL instead of 0.
3011 * doc/html/manual/ext_demangling.html: Regenerate.
3012 * libsupc++/cxxabi.h: Adjust doxygen comments.
3014 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
3017 * config/abi/pre/gnu.ver: Fix preprocessor condition.
3019 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
3022 * src/Makefile.am: Move globals_io.cc to here.
3023 * src/Makefile.in: Regenerate.
3024 * src/c++98/Makefile.am: Remove globals_io.cc from here.
3025 * src/c++98/Makefile.in: Regenerate.
3026 * src/c++98/globals_io.cc [_GLIBCXX_SYMVER_GNU] (cin): Adjust
3027 symbol name and then export with GLIBCXX_3.4.31 symver.
3028 (cout, cerr, clog, wcin, wcout, wcerr, wclog): Likewise.
3029 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt:
3031 * config/abi/post/i486-linux-gnu/baseline_symbols.txt:
3033 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt:
3035 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
3037 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
3039 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
3041 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt:
3043 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt:
3045 * config/abi/pre/gnu.ver: Add iostream objects to new symver.
3047 2023-04-18 Patrick Palka <ppalka@redhat.com>
3050 * include/bits/ranges_cmp.h (__cpp_lib_ranges): Bump value
3052 * include/std/ranges (range_adaptor_closure): Define for C++23.
3053 * include/std/version (__cpp_lib_ranges): Bump value for
3055 * testsuite/std/ranges/version_c++23.cc: Bump expected value
3056 of __cpp_lib_ranges.
3057 * testsuite/std/ranges/range_adaptor_closure.cc: New test.
3059 2023-04-18 Patrick Palka <ppalka@redhat.com>
3061 * include/bits/ranges_algo.h (__cpp_lib_ranges_contains):
3063 (__cpp_lib_ranges_iota): Likewise.
3064 (__cpp_lib_ranges_find_last): Likewise.
3065 (__cpp_lib_fold): Rename to ...
3066 (__cpp_lib_ranges_fold): ... this.
3067 * include/std/version: As above.
3068 * testsuite/25_algorithms/fold_left/1.cc: Adjust after
3069 renaming __cpp_lib_fold.
3070 * testsuite/std/ranges/version_c++23.cc: Verify values
3071 of the above feature-test macros.
3073 2023-04-18 Patrick Palka <ppalka@redhat.com>
3076 * include/std/ranges (views::_AsConst::operator()): Add
3077 missing const to constant_range test.
3078 * testsuite/std/ranges/adaptors/as_const/1.cc (test02):
3079 Improve formatting. Adjust expected type of v2.
3082 2023-04-14 Patrick Palka <ppalka@redhat.com>
3084 * include/bits/ranges_base.h (const_iterator_t): Define for C++23.
3085 (const_sentinel_t): Likewise.
3086 (range_const_reference_t): Likewise.
3087 (constant_range): Likewise.
3088 (__cust_access::__possibly_const_range): Likewise, replacing ...
3089 (__cust_access::__as_const): ... this.
3090 (__cust_access::_CBegin::operator()): Redefine for C++23 as per P2278R4.
3091 (__cust_access::_CEnd::operator()): Likewise.
3092 (__cust_access::_CRBegin::operator()): Likewise.
3093 (__cust_access::_CREnd::operator()): Likewise.
3094 (__cust_access::_CData::operator()): Likewise.
3095 * include/bits/ranges_util.h (ranges::__detail::__different_from):
3096 Make it an alias of std::__detail::__different_from.
3097 (view_interface::cbegin): Define for C++23.
3098 (view_interface::cend): Likewise.
3099 * include/bits/stl_iterator.h (__detail::__different_from): Define.
3100 (iter_const_reference_t): Define for C++23.
3101 (__detail::__constant_iterator): Likewise.
3102 (__detail::__is_const_iterator): Likewise.
3103 (__detail::__not_a_const_iterator): Likewise.
3104 (__detail::__iter_const_rvalue_reference_t): Likewise.
3105 (__detail::__basic_const_iter_cat):: Likewise.
3106 (const_iterator): Likewise.
3107 (__detail::__const_sentinel): Likewise.
3108 (const_sentinel): Likewise.
3109 (basic_const_iterator): Likewise.
3110 (common_type<basic_const_iterator<_Tp>, _Up>): Likewise.
3111 (common_type<_Up, basic_const_iterator<_Tp>>): Likewise.
3112 (common_type<basic_const_iterator<_Tp>, basic_const_iterator<Up>>):
3114 (make_const_iterator): Define for C++23.
3115 (make_const_sentinel): Likewise.
3116 * include/std/ranges (__cpp_lib_ranges_as_const): Likewise.
3117 (as_const_view): Likewise.
3118 (enable_borrowed_range<as_const_view>): Likewise.
3119 (views::__detail::__is_ref_view): Likewise.
3120 (views::__detail::__can_is_const_view): Likewise.
3121 (views::_AsConst, views::as_const): Likewise.
3122 * include/std/span (span::const_iterator): Likewise.
3123 (span::const_reverse_iterator): Likewise.
3124 (span::cbegin): Likewise.
3125 (span::cend): Likewise.
3126 (span::crbegin): Likewise.
3127 (span::crend): Likewise.
3128 * include/std/version (__cpp_lib_ranges_as_const): Likewise.
3129 * testsuite/std/ranges/adaptors/join.cc (test06): Adjust to
3130 behave independently of C++20 vs C++23.
3131 * testsuite/std/ranges/version_c++23.cc: Verify value of
3132 __cpp_lib_ranges_as_const macro.
3133 * testsuite/24_iterators/const_iterator/1.cc: New test.
3134 * testsuite/std/ranges/adaptors/as_const/1.cc: New test.
3136 2023-04-14 Patrick Palka <ppalka@redhat.com>
3138 * include/bits/ranges_base.h (__cust_access::__as_const)
3139 (__cust_access::_CBegin, __cust::cbegin)
3140 (__cust_access::_CEnd, __cust::cend)
3141 (__cust_access::_CRBegin, __cust::crbegin)
3142 (__cust_access::_CREnd, __cust::crend)
3143 (__cust_access::_CData, __cust::cdata): Move down definitions to
3144 shortly after the definition of input_range.
3146 2023-04-14 Patrick Palka <ppalka@redhat.com>
3148 * include/bits/ranges_algo.h: Include <optional> for C++23.
3149 (__cpp_lib_fold): Define for C++23.
3150 (in_value_result): Likewise.
3151 (__detail::__flipped): Likewise.
3152 (__detail::__indirectly_binary_left_foldable_impl): Likewise.
3153 (__detail::__indirectly_binary_left_foldable): Likewise.
3154 (___detail:__indirectly_binary_right_foldable): Likewise.
3155 (fold_left_with_iter_result): Likewise.
3156 (__fold_left_with_iter_fn, fold_left_with_iter): Likewise.
3157 (__fold_left_fn, fold_left): Likewise.
3158 (__fold_left_first_with_iter_fn, fold_left_first_with_iter):
3160 (__fold_left_first_fn, fold_left_first): Likewise.
3161 (__fold_right_fn, fold_right): Likewise.
3162 (__fold_right_last_fn, fold_right_last): Likewise.
3163 * include/std/version (__cpp_lib_fold): Likewise.
3164 * testsuite/25_algorithms/fold_left/1.cc: New test.
3165 * testsuite/25_algorithms/fold_right/1.cc: New test.
3167 2023-04-14 Jonathan Wakely <jwakely@redhat.com>
3169 * include/std/format (formatter): Add comment to deleted default
3170 constructor of primary template.
3171 (_Checking_scanner): Add static_assert.
3173 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
3175 * doc/xml/manual/using.xml: Document libstdc++exp.a library.
3176 * doc/html/*: Regenerate.
3178 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
3180 * testsuite/17_intro/names.cc [_AIX]: Do not define policy.
3181 * testsuite/19_diagnostics/error_code/cons/lwg3629.cc: Rename
3182 namespace to avoid clashing with libc struct.
3183 * testsuite/19_diagnostics/error_condition/cons/lwg3629.cc:
3185 * testsuite/23_containers/unordered_map/96088.cc: Skip on AIX.
3186 * testsuite/23_containers/unordered_multimap/96088.cc: Likewise.
3187 * testsuite/23_containers/unordered_multiset/96088.cc: Likewise.
3188 * testsuite/23_containers/unordered_set/96088.cc: Likewise.
3189 * testsuite/experimental/synchronized_value.cc: Require gthreads
3190 and add missing option for pthreads targets.
3192 2023-04-12 Patrick Palka <ppalka@redhat.com>
3194 * include/std/ranges (__cpp_lib_ranges_enumerate): Define
3196 (__detail::__range_with_movable_reference): Likewise.
3197 (enumerate_view): Likewise.
3198 (enumerate_view::_Iterator): Likewise.
3199 (enumerate_view::_Sentinel): Likewise.
3200 (views::__detail::__can_enumerate_view): Likewise.
3201 (views::_Enumerate, views::enumerate): Likewise.
3202 * include/std/version (__cpp_lib_ranges_enumerate): Likewise.
3203 * testsuite/std/ranges/version_c++23.cc: Verify value of
3204 __cpp_lib_ranges_enumerate.
3205 * testsuite/std/ranges/adaptors/enumerate/1.cc: New test.
3207 2023-04-12 Patrick Palka <ppalka@redhat.com>
3209 * include/std/ranges (lazy_split_view::_OuterIter::_OuterIter):
3210 Propagate _M_trailing_empty in the const-converting constructor
3212 * testsuite/std/ranges/adaptors/adjacent/1.cc (test04): Correct
3214 * testsuite/std/ranges/adaptors/lazy_split.cc (test12): New test.
3216 2023-04-12 Patrick Palka <ppalka@redhat.com>
3218 * src/c++17/floating_from_chars.cc: Include <algorithm>,
3219 <iterator>, <limits> and <cstdint>.
3221 2023-04-12 Patrick Palka <ppalka@redhat.com>
3224 * include/std/ranges (chunk_by_view::_M_find_next): Generalize
3225 parameter types of the lambda wrapper passed to adjacent_find.
3226 (chunk_by_view::_M_find_prev): Likewise.
3227 * testsuite/std/ranges/adaptors/chunk_by/1.cc (test04, test05):
3230 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
3233 * include/experimental/internet (basic_endpoint::basic_endpoint()):
3234 Ensure that the required union members are active. Only define
3235 as constexpr for C++20 and later.
3236 (basic_endpoint::basic_endpoint(const protocol_type&, port_type)):
3238 * testsuite/experimental/net/internet/endpoint/cons.cc: Only
3239 check constexpr default constructor for C++20 and later.
3240 * testsuite/experimental/net/internet/endpoint/extensible.cc:
3243 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
3245 * src/c++20/tzdata.zi: Import new file from 2023c release.
3247 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
3249 * include/precompiled/stdc++.h (C++17): Don't double-include
3250 <charconv>, once with wrong conditions.
3251 * testsuite/18_support/96817.cc: Require hosted.
3252 * testsuite/18_support/bad_exception/59392.cc: Ditto.
3253 * testsuite/20_util/scoped_allocator/108952.cc: Ditto.
3254 * testsuite/20_util/uses_allocator/lwg3527.cc: Ditto.
3255 * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
3258 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
3260 * include/bits/c++config: When __STDC_HOSTED__ is zero,
3261 disable _GLIBCXX_DEBUG and, if it was set, enable
3262 _GLIBCXX_ASSERTIONS.
3263 * testsuite/lib/libstdc++.exp (check_v3_target_debug_mode):
3264 Include <bits/c++config.h> when determining whether debug is
3265 set, in order to inherit the logic from above
3267 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
3269 * testsuite/17_intro/versionconflict.cc: New test.
3270 * include/std/version: Allow disabling the system_header pragma
3271 via _GLIBCXX_TESTING_SYSHDR.
3273 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
3275 * include/bits/unique_ptr.h (__cpp_lib_constexpr_memory):
3276 Synchronize the definition block with...
3277 * include/bits/ptr_traits.h (__cpp_lib_constexpr_memory):
3278 ... this one here. Also define the 202202L value, rather than
3279 leaving it up to purely unique_ptr.h, so that the value is
3280 synchronized across all headers.
3281 (__gnu_debug::_Safe_iterator_base): Move into new conditional
3283 * include/std/memory (__cpp_lib_atomic_value_initialization):
3284 Define on freestanding under the same conditions as in
3286 * include/std/version (__cpp_lib_robust_nonmodifying_seq_ops):
3287 Also define on freestanding.
3288 (__cpp_lib_to_chars): Ditto.
3289 (__cpp_lib_gcd): Ditto.
3290 (__cpp_lib_gcd_lcm): Ditto.
3291 (__cpp_lib_raw_memory_algorithms): Ditto.
3292 (__cpp_lib_array_constexpr): Ditto.
3293 (__cpp_lib_nonmember_container_access): Ditto.
3294 (__cpp_lib_clamp): Ditto.
3295 (__cpp_lib_constexpr_char_traits): Ditto.
3296 (__cpp_lib_constexpr_string): Ditto.
3297 (__cpp_lib_sample): Ditto.
3298 (__cpp_lib_lcm): Ditto.
3299 (__cpp_lib_constexpr_iterator): Ditto.
3300 (__cpp_lib_constexpr_char_traits): Ditto.
3301 (__cpp_lib_interpolate): Ditto.
3302 (__cpp_lib_constexpr_utility): Ditto.
3303 (__cpp_lib_shift): Ditto.
3304 (__cpp_lib_ranges): Ditto.
3305 (__cpp_lib_move_iterator_concept): Ditto.
3306 (__cpp_lib_constexpr_numeric): Ditto.
3307 (__cpp_lib_constexpr_functional): Ditto.
3308 (__cpp_lib_constexpr_algorithms): Ditto.
3309 (__cpp_lib_constexpr_tuple): Ditto.
3310 (__cpp_lib_constexpr_memory): Ditto.
3312 2023-04-05 John David Anglin <danglin@gcc.gnu.org>
3314 * testsuite/22_locale/locale/cons/12658_thread-2.cc: Double
3315 timeout factor on hppa*-*-*.
3317 2023-04-05 Jonathan Wakely <jwakely@redhat.com>
3319 * include/bits/regex.h (sub_match::swap): New function.
3320 * testsuite/28_regex/sub_match/lwg3204.cc: New test.
3322 2023-04-04 Jonathan Wakely <jwakely@redhat.com>
3324 * doc/xml/manual/extensions.xml: Remove std::bad_exception from
3326 * doc/html/manual/ext_demangling.html: Regenerate.
3328 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
3330 PR tree-optimization/107087
3331 * include/bits/cow_string.h (basic_string::size()): Add
3332 optimizer hint that _S_empty_rep()._M_length is always zero.
3333 (basic_string::length()): Call size().
3335 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
3338 * include/std/stop_token (_Stop_state_ptr(const stop_source&)):
3339 Add attribute access with access-mode 'none'.
3340 * testsuite/30_threads/stop_token/stop_source/109339.cc: New test.
3342 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
3344 * include/experimental/internet (ip::basic_endpoint::_M_if_v6):
3345 Revert change from member function to data member. Fix for
3346 constant evaluation by detecting which union member is active.
3347 (ip::basic_endpoint::resize): Revert changes to update _M_is_v6
3350 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
3353 * testsuite/20_util/optional/monadic/pr109340.cc: Moved to...
3354 * testsuite/20_util/optional/monadic/pr109242.cc: ...here.
3356 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
3358 * include/experimental/internet (ip::make_address): Implement
3360 (ip::address_v4::broadcast()): Avoid undefined shift.
3361 (ip::basic_endpoint): Fix member functions for constexpr.
3362 (ip::basic_endpoint::_M_is_v6): Replace member function with
3363 data member, adjust member functions using it.
3364 (ip::basic_endpoint::resize): Update _M_is_v6 based on sockaddr
3366 * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
3367 constexpr checks to work in C++14.
3368 * testsuite/experimental/net/internet/address/v4/creation.cc:
3370 * testsuite/experimental/net/internet/endpoint/cons.cc:
3372 * testsuite/experimental/net/internet/network/v4/cons.cc:
3374 * testsuite/experimental/net/internet/network/v4/members.cc:
3376 * testsuite/experimental/net/internet/endpoint/extensible.cc: New test.
3378 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
3380 * include/std/expected (expected::value() &): Use const lvalue
3381 for unex member passed to bad_expected_access constructor, as
3384 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
3387 * include/std/expected (expected::transform): Use
3388 std::remove_cv_t instead of std::remove_cvref_t.
3389 (expected::transform_error): Likewise.
3390 (expected<cv void, E>::transform): Likewise.
3391 (expected<cv void, E>::transform_error): Likewise.
3392 * include/std/optional (transform): Use std::remove_cv_t.
3393 * testsuite/20_util/optional/monadic/pr109340.cc: New test.
3395 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
3397 * include/std/optional (optional): Adjust static assertion to
3398 reject arrays and functions as well as references.
3399 * testsuite/20_util/optional/requirements_neg.cc: New test.
3401 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
3404 * include/bits/istream.tcc (istream::_M_extract(ValueT&)): Use
3405 std::use_facet instead of cached _M_num_get facet.
3406 (istream::operator>>(short&)): Likewise.
3407 (istream::operator>>(int&)): Likewise.
3408 * include/bits/ostream.tcc (ostream::_M_insert(ValueT)): Use
3409 std::use_facet instead of cached _M_num_put facet.
3411 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
3413 * include/bits/char_traits.h (char_traits::copy): Return without
3414 using memcpy if n==0.
3415 (char_traits::assign): Likewise for memset.
3417 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
3420 * include/bits/basic_string.h (basic_string::_M_is_local()): Add
3421 hint for compiler that local strings fit in the local buffer.
3423 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
3426 * include/std/chrono (__detail::__get_leap_second_info): Update
3427 expiry date of hardcoded leapseconds list.
3428 * src/c++20/tzdb.cc (tzdb_list::_Node::_S_read_leap_seconds()):
3430 * src/c++20/tzdata.zi: Import new file from 2023a release.
3431 * testsuite/std/time/time_zone/get_info_local.cc: Only check
3432 transitions for Egypt up to 2014.
3434 2023-03-28 Matthias Kretz <m.kretz@gsi.de>
3436 * include/experimental/bits/simd.h (is_simd_flag_type): New.
3437 (_IsSimdFlagType): New.
3438 (copy_from, copy_to, load ctors): Constrain _Flags using
3441 2023-03-28 Matthias Kretz <m.kretz@gsi.de>
3443 * include/experimental/bits/simd_x86.h (_SimdImplX86): Use
3444 _Base::_S_divides if the optimized _S_divides function is hidden
3445 via the preprocessor.
3447 2023-03-27 Jakub Jelinek <jakub@redhat.com>
3449 * testsuite/experimental/net/timer/waitable/dest.cc: Avoid -Wformat
3450 warning if size_t is not unsigned long.
3452 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3454 * include/bits/shared_ptr_atomic.h (atomic::operator=(nullptr_t)):
3455 Add overload, as per LWG 3893.
3456 * testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc:
3457 Check assignment from nullptr.
3459 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3461 * include/std/format (formatter<const charT[N], charT>): Do not
3462 define partial speclialization, as per LWG 3833.
3463 * testsuite/std/format/formatter/requirements.cc: Check it.
3465 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3467 * include/std/utility (__cpp_lib_constexpr_algorithms): Define,
3469 * testsuite/20_util/exchange/constexpr.cc: Check for it.
3471 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3473 * include/std/version (__cpp_lib_format): Define.
3474 * testsuite/std/format/functions/format.cc: Check it.
3476 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3478 * include/bits/basic_string.tcc (basic_string::resize_and_overwrite):
3479 Pass rvalues to the callback, as now allowed by LWG 3645.
3480 Enforce preconditions on the return value.
3481 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
3484 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3486 * include/std/format: Add a comment noting that the resolution
3487 of LWG 3720 has been applied..
3489 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3491 * include/bits/regex.h (match_results): Add allocator-extended
3492 copy and move constructors, as per LWG 2195.
3493 * testsuite/28_regex/match_results/ctors/char/alloc.cc: New test.
3495 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3497 * include/bits/stream_iterator.h (istream_iterator): Add
3498 constexpr to copy constructor, as per LWG 3600.
3499 * testsuite/24_iterators/istream_iterator/cons/constexpr.cc:
3500 Check copy construction.
3502 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
3504 * include/experimental/bits/simd_x86.h
3505 (_SimdImplX86::_S_divides): Replace test for __GCC_IEC_559 == 0
3506 with __RECIPROCAL_MATH__.
3508 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
3510 * include/experimental/bits/simd_detail.h: Don't define
3511 _GLIBCXX_SIMD_WORKAROUND_PR90993 for Clang.
3512 * include/experimental/bits/simd_x86.h (_S_divides): Remove
3513 check for __clang__.
3515 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
3517 * include/experimental/bits/simd_detail.h: Don't declare the
3518 simd API as constexpr with Clang.
3519 * include/experimental/bits/simd_x86.h (__movm): New.
3520 (_S_blend_avx512): Resolve FIXME. Implement blend using __movm
3522 (_SimdImplX86::_S_masked_unary): Clang does not implement the
3523 same builtins. Implement the function using __movm, ?:, and -
3524 operators on vector_size types instead.
3526 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
3528 * testsuite/experimental/simd/tests/operators.cc: Clang doesn't
3529 define __GCC_IEC_559. Use __STDC_IEC_559__ instead.
3531 2023-03-20 Jonathan Wakely <jwakely@redhat.com>
3533 * src/filesystem/ops-common.h (get_temp_directory_from_env): Fix
3536 2023-03-20 Marek Polacek <polacek@redhat.com>
3539 * testsuite/20_util/pair/cons/explicit_construct.cc: Adjust dg-error.
3540 * testsuite/20_util/tuple/cons/explicit_construct.cc: Likewise.
3541 * testsuite/23_containers/span/explicit.cc: Likewise.
3543 2023-03-20 Jonathan Wakely <jwakely@redhat.com>
3546 * include/std/expected (expected<void>::expected(in_place_t)):
3547 Remove template-head.
3549 2023-03-18 Jonathan Wakely <jwakely@redhat.com>
3552 * testsuite/18_support/coroutines/hash.cc: Use const object
3555 2023-03-17 Jonathan Wakely <jwakely@redhat.com>
3558 * include/std/coroutine (hash<>::operator()): Add const.
3559 * testsuite/18_support/coroutines/hash.cc: New test.
3561 2023-03-14 Patrick Palka <ppalka@redhat.com>
3564 * include/std/ranges (repeat_view): Remove redundant parentheses
3566 (repeat_view::_Iterator): Correct the requires-clause.
3568 2023-03-14 Patrick Palka <ppalka@redhat.com>
3570 * include/bits/stl_iterator.h (move_iterator::_S_iter_concept):
3572 (__cpp_lib_move_iterator_concept): Define for C++20.
3573 (move_iterator::iterator_concept): Strengthen as per P2520R0.
3574 * include/std/version (__cpp_lib_move_iterator_concept): Define
3576 * testsuite/24_iterators/move_iterator/p2520r0.cc: New test.
3578 2023-03-14 Patrick Palka <ppalka@redhat.com>
3580 * include/bits/ranges_util.h (view_interface::empty): Add
3581 preferred overloads that use ranges::size when the range is
3582 sized as per LWG 3715.
3583 * testsuite/std/ranges/adaptors/lwg3715.cc: New test.
3585 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
3587 * include/bits/chrono.h (__is_duration_v, __is_time_point_v):
3588 Only define for C++17 and later.
3590 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
3592 * src/Makefile.am: Add comment about linker script fragments.
3593 * src/Makefile.in: Regenerate.
3595 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
3598 * include/bits/mask_array.h (mask_array): Add assertions to
3599 assignment operators.
3600 * include/std/valarray (valarray::operator[](valarray<bool>)):
3602 * testsuite/26_numerics/valarray/mask-1_neg.cc: New test.
3603 * testsuite/26_numerics/valarray/mask-2_neg.cc: New test.
3604 * testsuite/26_numerics/valarray/mask-3_neg.cc: New test.
3605 * testsuite/26_numerics/valarray/mask-4_neg.cc: New test.
3606 * testsuite/26_numerics/valarray/mask-5_neg.cc: New test.
3607 * testsuite/26_numerics/valarray/mask-6_neg.cc: New test.
3608 * testsuite/26_numerics/valarray/mask-7_neg.cc: New test.
3609 * testsuite/26_numerics/valarray/mask-8_neg.cc: New test.
3610 * testsuite/26_numerics/valarray/mask.cc: New test.
3612 2023-03-13 Jakub Jelinek <jakub@redhat.com>
3614 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
3615 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
3617 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
3619 * doc/Makefile.am: Add comment referring to documentation.
3620 * doc/Makefile.in: Regenerate.
3622 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
3624 * doc/html/*: Regenerate.
3626 2023-03-13 Jonny Grant <jg@jguk.org>
3628 * doc/xml/faq.xml: Update copyright year.
3630 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
3632 * include/bits/allocator.h: Fix typo in comment.
3634 2023-03-12 Jakub Jelinek <jakub@redhat.com>
3636 * config/abi/pre/gnu.ver (CXXABI_1.3.14): Also export __bf16 tinfos
3637 if it isn't mangled as DF16b but u6__bf16.
3639 2023-03-12 Gerald Pfeifer <gerald@pfeifer.com>
3641 * doc/xml/manual/documentation_hacking.xml: Move www.graphviz.org
3643 * doc/html/manual/documentation_hacking.html: Regenerate.
3645 2023-03-10 Jonathan Wakely <jwakely@redhat.com>
3648 * python/libstdcxx/v6/xmethods.py (SharedPtrUseCountWorker):
3649 Remove self-recursion in __init__. Add missing _supports.
3650 * testsuite/libstdc++-xmethods/shared_ptr.cc: Check use_count()
3653 2023-03-09 Patrick Palka <ppalka@redhat.com>
3655 * include/std/ranges
3656 (cartesian_product_view::_Iterator::_Iterator): Remove
3657 constraint on default constructor as per LWG 3849.
3658 (cartesian_product_view::_Iterator::_M_prev): Adjust position
3659 of _Nm > 0 test as per LWG 3820.
3660 (cartesian_product_view::_Iterator::_M_advance): Perform bounds
3661 checking only on sized cartesian products.
3662 * testsuite/std/ranges/cartesian_product/1.cc (test08): New test.
3664 2023-03-09 Patrick Palka <ppalka@redhat.com>
3667 * include/std/ranges (chunk_by_view::_M_pred): Remove DMI as per
3669 (repeat_view::_M_pred): Likewise.
3670 * testsuite/std/ranges/adaptors/chunk_by/1.cc (test03): New test.
3671 * testsuite/std/ranges/repeat/1.cc (test05): New test.
3673 2023-03-09 Patrick Palka <ppalka@redhat.com>
3676 * include/std/ranges (__detail::__can_single_view): New concept.
3677 (_Single::operator()): Constrain it. Move [[nodiscard]] to the
3678 end of the function declarator.
3679 (__detail::__can_iota_view): New concept.
3680 (_Iota::operator()): Constrain it. Move [[nodiscard]] to the
3681 end of the function declarator.
3682 (__detail::__can_istream_view): New concept.
3683 (_Istream::operator()): Constrain it. Move [[nodiscard]] to the
3684 end of the function declarator.
3685 * testsuite/std/ranges/iota/iota_view.cc (test07): New test.
3686 * testsuite/std/ranges/istream_view.cc (test08): New test.
3687 * testsuite/std/ranges/single_view.cc (test07): New test.
3689 2023-03-09 Patrick Palka <ppalka@redhat.com>
3692 * include/std/ranges (cartesian_product_view::end): When
3693 building the tuple of iterators, avoid calling ranges::begin on
3694 the first range if __empty_tail is false.
3695 * testsuite/std/ranges/cartesian_product/1.cc (test07): New test.
3697 2023-03-09 Jonathan Wakely <jwakely@redhat.com>
3700 * config/os/gnu-linux/ldbl-ieee128-extra.ver: Fix incorrect
3703 2023-03-07 Jakub Jelinek <jakub@redhat.com>
3705 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
3706 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
3707 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
3708 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
3709 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
3711 2023-03-07 Jonathan Wakely <jwakely@redhat.com>
3714 * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Adjust patterns to
3715 not match symbols in namespace std::__gnu_cxx11_ieee128.
3716 * config/os/gnu-linux/ldbl-ieee128-extra.ver: Add patterns for
3717 std::__gnu_cxx11_ieee128::money_{get,put}.
3719 2023-03-07 Jonathan Wakely <jwakely@redhat.com>
3721 * libsupc++/eh_personality.cc: Fix spelling in comment.
3723 2023-03-03 Alexandre Oliva <oliva@adacore.com>
3725 * testsuite/30_threads/async/async.cc (test04): Initialize
3726 steady_start, renamed from steady_begin, next to slow_start.
3727 Increase tolerance for final wait.
3729 2023-03-03 Alexandre Oliva <oliva@adacore.com>
3731 * testsuite/libstdc++-prettyprinters/80276.cc: Add
3732 std::string to debug info.
3733 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
3735 2023-03-03 Alexandre Oliva <oliva@adacore.com>
3740 * include/bits/std_thread.h (thread::_M_thread_deps): New
3741 static implicitly-inline member function.
3742 (std::thread template ctor): Pass it to _M_start_thread.
3743 * src/c++11/thread.cc (thread::_M_start_thread): Name depend
3744 parameter, force it live on entry.
3746 2023-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3748 * config/abi/post/i386-solaris/baseline_symbols.txt: Regenerate.
3749 * config/abi/post/i386-solaris/amd64/baseline_symbols.txt:
3751 * config/abi/post/sparc-solaris/baseline_symbols.txt: Likewise.
3752 * config/abi/post/sparc-solaris/sparcv9/baseline_symbols.txt:
3755 2023-03-01 Jonathan Wakely <jwakely@redhat.com>
3757 * include/bits/cow_string.h: Fix typo in comment.
3759 2023-03-01 Jonathan Wakely <jwakely@redhat.com>
3761 * src/c++20/tzdb.cc (chrono::tzdb::current_zone()) Use "UTC" if
3762 current time zone cannot be determined.
3763 * testsuite/std/time/tzdb/1.cc: Remove conditions based on
3764 HAVE_TZDB macro and test all members unconditionally.
3766 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
3769 * include/bits/uses_allocator_args.h
3770 (uses_allocator_construction_args): Implement LWG 3527.
3771 * testsuite/20_util/pair/astuple/get-2.cc: New test.
3772 * testsuite/20_util/scoped_allocator/108952.cc: New test.
3773 * testsuite/20_util/uses_allocator/lwg3527.cc: New test.
3775 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
3778 * include/bits/stl_algobase.h (__copy_move<false, false, RA>)
3779 Add __assign_one static member function.
3780 (__copy_move<true, false, RA>): Likewise.
3781 (__copy_move<IsMove, true, RA>): Do not use memmove for a single
3783 (__copy_move_backward<IsMove, true, RA>): Likewise.
3784 * testsuite/25_algorithms/copy/108846.cc: New test.
3785 * testsuite/25_algorithms/copy_backward/108846.cc: New test.
3786 * testsuite/25_algorithms/copy_n/108846.cc: New test.
3787 * testsuite/25_algorithms/move/108846.cc: New test.
3788 * testsuite/25_algorithms/move_backward/108846.cc: New test.
3790 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
3792 * src/c++11/codecvt.cc: Add [[likely]] and [[unlikely]]
3795 2023-02-27 Jonathan Wakely <jwakely@redhat.com>
3797 * include/bits/basic_ios.h (basic_ios::_M_setstate): Add
3799 * include/bits/basic_string.h (resize_and_overwrite): Add
3802 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
3804 * include/experimental/bits/simd.h: Line breaks and indenting
3805 fixed to follow the libstdc++ standard.
3806 * include/experimental/bits/simd_builtin.h: Likewise.
3807 * include/experimental/bits/simd_fixed_size.h: Likewise.
3808 * include/experimental/bits/simd_neon.h: Likewise.
3809 * include/experimental/bits/simd_ppc.h: Likewise.
3810 * include/experimental/bits/simd_scalar.h: Likewise.
3811 * include/experimental/bits/simd_x86.h: Likewise.
3813 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
3816 * include/experimental/bits/simd_fixed_size.h
3817 (_SimdImplFixedSize::_S_broadcast): Replace inline with
3818 _GLIBCXX_SIMD_INTRINSIC.
3819 (_SimdImplFixedSize::_S_generate): Likewise.
3820 (_SimdImplFixedSize::_S_load): Likewise.
3821 (_SimdImplFixedSize::_S_masked_load): Likewise.
3822 (_SimdImplFixedSize::_S_store): Likewise.
3823 (_SimdImplFixedSize::_S_masked_store): Likewise.
3824 (_SimdImplFixedSize::_S_min): Likewise.
3825 (_SimdImplFixedSize::_S_max): Likewise.
3826 (_SimdImplFixedSize::_S_complement): Likewise.
3827 (_SimdImplFixedSize::_S_unary_minus): Likewise.
3828 (_SimdImplFixedSize::_S_plus): Likewise.
3829 (_SimdImplFixedSize::_S_minus): Likewise.
3830 (_SimdImplFixedSize::_S_multiplies): Likewise.
3831 (_SimdImplFixedSize::_S_divides): Likewise.
3832 (_SimdImplFixedSize::_S_modulus): Likewise.
3833 (_SimdImplFixedSize::_S_bit_and): Likewise.
3834 (_SimdImplFixedSize::_S_bit_or): Likewise.
3835 (_SimdImplFixedSize::_S_bit_xor): Likewise.
3836 (_SimdImplFixedSize::_S_bit_shift_left): Likewise.
3837 (_SimdImplFixedSize::_S_bit_shift_right): Likewise.
3838 (_SimdImplFixedSize::_S_remquo): Add inline keyword (to be
3839 explicit about not always-inline, yet).
3840 (_SimdImplFixedSize::_S_isinf): Likewise.
3841 (_SimdImplFixedSize::_S_isfinite): Likewise.
3842 (_SimdImplFixedSize::_S_isnan): Likewise.
3843 (_SimdImplFixedSize::_S_isnormal): Likewise.
3844 (_SimdImplFixedSize::_S_signbit): Likewise.
3846 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
3849 * include/experimental/bits/simd_builtin.h
3850 (_SimdImplBuiltin::_S_masked_unary): More efficient
3851 implementation of masked inc-/decrement for integers and floats
3853 * include/experimental/bits/simd_x86.h
3854 (_SimdImplX86::_S_masked_unary): New. Use AVX512 masked subtract
3855 builtins for masked inc-/decrement.
3857 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3859 * include/experimental/executor (executor): Constrain template
3862 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3864 * include/experimental/internet (basic_endpoint): Add missing
3865 constexpr to comparison operators.
3866 * testsuite/experimental/net/internet/endpoint/cons.cc: New test.
3868 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3870 * include/experimental/internet (network_v4::netmask()): Avoid
3872 (network_v4::broadcast()): Optimize and fix for targets with
3873 uint_least32_t wider than 32 bits.
3874 (network_v4::to_string(const Allocator&)): Fix for custom
3875 allocators and optimize using to_chars.
3876 (operator==(const network_v4&, const network_v4&)): Add missing
3878 (operator==(const network_v6&, const network_v6&)): Likewise.
3879 * testsuite/experimental/net/internet/network/v4/cons.cc: New test.
3880 * testsuite/experimental/net/internet/network/v4/members.cc: New test.
3882 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3884 * include/experimental/internet (address_4(const bytes_type&)):
3885 Use __builtin_bit_cast if available, otherwise convert to
3887 (address_v4::to_bytes()): Likewise, but convert from network
3889 * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
3890 incorrect tests. Check for constexpr too.
3891 * testsuite/experimental/net/internet/address/v4/creation.cc:
3893 * testsuite/experimental/net/internet/address/v4/members.cc:
3894 Check that bytes_type is a standard-layout type.
3896 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3898 * include/experimental/internet (address_v4::to_string):
3900 * testsuite/experimental/net/internet/address/v4/members.cc:
3901 Check more addresses.
3903 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3905 * include/ext/aligned_buffer.h (__aligned_buffer): Add
3908 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3910 * testsuite/std/format/arguments/lwg3810.cc: Move dg-options
3913 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
3915 * testsuite/experimental/simd/tests/reductions.cc: Introduce
3916 max_distance as the type-dependent max error.
3918 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
3920 * include/experimental/bits/simd_builtin.h (_S_set): Compare as
3921 int. The actual range of these indexes is very small.
3923 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
3925 * include/experimental/bits/simd_x86.h (_S_bit_shift_left)
3926 (_S_bit_shift_right): Declare constexpr. The implementation was
3927 already expecting constexpr evaluation.
3929 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
3932 * include/experimental/bits/simd_detail.h
3933 (_GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA): Define as empty for
3936 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
3939 * include/experimental/bits/simd.h (__vector_broadcast):
3940 Implement via __vector_broadcast_impl instead of
3941 __call_with_n_evaluations + 2 lambdas.
3942 (__vector_broadcast_impl): New.
3944 2023-02-22 Alexandre Oliva <oliva@adacore.com>
3946 * src/c++11/shared_ptr.cc (__gnu_internal::get_mutex):
3947 Avoid destruction of the mutex pool.
3949 2023-02-22 Alexandre Oliva <oliva@adacore.com>
3951 * testsuite/27_io/basic_ofstream/open/char/noreplace.cc: xfail
3953 * testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc:
3956 2023-02-22 Alexandre Oliva <oliva@adacore.com>
3958 * testsuite/17_intro/names.cc: Undef func on vxworks >= 7 in
3961 2023-02-20 Andreas Schwab <schwab@linux-m68k.org>
3963 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
3965 2023-02-20 Matthias Kretz <m.kretz@gsi.de>
3967 * include/experimental/bits/simd.h (__extract_part, split):
3968 Use reserved name for template parameter.
3970 2023-02-20 Andreas Schwab <schwab@suse.de>
3972 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
3974 2023-02-18 Gerald Pfeifer <gerald@pfeifer.com>
3976 * doc/xml/faq.xml: Switch two links to www.open-std.org to https.
3977 * doc/html/faq.html: Regenerate.
3979 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
3981 * include/experimental/bits/simd_math.h (__hypot): Bitcasting
3982 between scalars requires the __bit_cast helper function instead
3985 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
3987 * include/experimental/bits/simd_x86.h
3988 (_SimdImplX86::_S_not_equal_to, _SimdImplX86::_S_less)
3989 (_SimdImplX86::_S_less_equal): Do not call
3990 __builtin_is_constant_evaluated in constexpr-if.
3992 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
3994 * testsuite/experimental/simd/tests/bits/verify.h
3995 (verify::verify): Use %zx for size_t in format string.
3997 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
3999 * testsuite/experimental/simd/generate_makefile.sh: Generate and
4000 pre-compile pch.h, which includes all headers that do not depend
4001 on command-line macros.
4002 * testsuite/experimental/simd/tests/bits/main.h: New file.
4003 (iterate_abis, main): Moved from verify.h.
4004 * testsuite/experimental/simd/tests/bits/verify.h
4005 (iterate_abis, main): Moved to main.h.
4006 * testsuite/experimental/simd/tests/bits/conversions.h: Add
4008 (genHalfBits): Simplify.
4009 * testsuite/experimental/simd/tests/bits/make_vec.h: Add include
4011 (make_alternating_mask): Moved from mask_loadstore.
4012 * testsuite/experimental/simd/tests/bits/mathreference.h: Add
4014 * testsuite/experimental/simd/tests/bits/test_values.h: Ditto.
4015 * testsuite/experimental/simd/tests/mask_loadstore.cc
4016 (make_mask, make_alternating_mask): Removed.
4017 * testsuite/experimental/simd/tests/mask_reductions.cc: Ditto.
4018 * testsuite/experimental/simd/tests/operators.cc (genHalfBits):
4020 * testsuite/experimental/simd/tests/abs.cc: Only include
4023 * testsuite/experimental/simd/tests/algorithms.cc: Ditto.
4024 * testsuite/experimental/simd/tests/broadcast.cc: Ditto.
4025 * testsuite/experimental/simd/tests/casts.cc: Ditto.
4026 * testsuite/experimental/simd/tests/fpclassify.cc: Ditto.
4027 * testsuite/experimental/simd/tests/frexp.cc: Ditto.
4028 * testsuite/experimental/simd/tests/generator.cc: Ditto.
4029 * testsuite/experimental/simd/tests/hypot3_fma.cc: Ditto.
4030 * testsuite/experimental/simd/tests/integer_operators.cc: Ditto.
4031 * testsuite/experimental/simd/tests/ldexp_scalbn_scalbln_modf.cc:
4032 * testsuite/experimental/simd/tests/loadstore.cc: Ditto.
4033 * testsuite/experimental/simd/tests/logarithm.cc: Ditto.
4034 * testsuite/experimental/simd/tests/mask_broadcast.cc: Ditto.
4035 * testsuite/experimental/simd/tests/mask_conversions.cc: Ditto.
4036 * testsuite/experimental/simd/tests/mask_implicit_cvt.cc: Ditto.
4037 * testsuite/experimental/simd/tests/mask_operator_cvt.cc: Ditto.
4038 * testsuite/experimental/simd/tests/mask_operators.cc: Ditto.
4039 * testsuite/experimental/simd/tests/math_1arg.cc: Ditto.
4040 * testsuite/experimental/simd/tests/math_2arg.cc: Ditto.
4041 * testsuite/experimental/simd/tests/operator_cvt.cc: Ditto.
4042 * testsuite/experimental/simd/tests/reductions.cc: Ditto.
4043 * testsuite/experimental/simd/tests/remqo.cc: Ditto.
4044 * testsuite/experimental/simd/tests/simd.cc: Ditto.
4045 * testsuite/experimental/simd/tests/sincos.cc: Ditto.
4046 * testsuite/experimental/simd/tests/split_concat.cc: Ditto.
4047 * testsuite/experimental/simd/tests/splits.cc: Ditto.
4048 * testsuite/experimental/simd/tests/trigonometric.cc: Ditto.
4049 * testsuite/experimental/simd/tests/trunc_ceil_floor.cc: Ditto.
4050 * testsuite/experimental/simd/tests/where.cc: Ditto.
4052 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
4054 * testsuite/experimental/simd/README.md: Document the timeout
4055 and timeout-factor directives. Minor typo fixed.
4057 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
4060 * include/experimental/bits/simd_detail.h: Define
4061 _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
4062 * include/experimental/bits/simd.h: Annotate lambdas with
4063 _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
4064 * include/experimental/bits/simd_builtin.h: Ditto.
4065 * include/experimental/bits/simd_converter.h: Ditto.
4066 * include/experimental/bits/simd_fixed_size.h: Ditto.
4067 * include/experimental/bits/simd_math.h: Ditto.
4068 * include/experimental/bits/simd_neon.h: Ditto.
4069 * include/experimental/bits/simd_x86.h: Ditto.
4071 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
4073 * include/experimental/bits/simd.h
4074 (_SimdWrapper::_M_is_constprop_none_of)
4075 (_SimdWrapper::_M_is_constprop_all_of): Return false unless the
4076 computed result still satisfies __builtin_constant_p.
4078 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
4080 * testsuite/std/format/arguments/lwg3810.cc: Replace UTF-8
4083 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
4085 * include/Makefile.am: Add new header.
4086 * include/Makefile.in: Regenerate.
4087 * include/experimental/synchronized_value: New file.
4088 * testsuite/experimental/synchronized_value.cc: New test.
4090 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
4092 * include/experimental/optional: Fix header name in comment.
4094 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
4096 * include/std/format (__format::_Arg_store): New class template.
4097 (basic_format_args): Remove nested type _Store and add deduction
4098 guide from _Arg_store.
4099 (basic_format_arg, make_format_args): Adjust.
4100 * testsuite/std/format/arguments/lwg3810.cc: New test.
4102 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
4104 * include/bits/stl_pair.h (pair) [C++20]: Add non-dangling
4105 constraints to constructors and add deleted overloads for the
4106 dangling cases, as per P2255R2.
4107 (pair) [!C++20 && _GLIBCXX_DEBUG]: Add static assertions to
4108 make dangling cases ill-formed.
4109 * testsuite/20_util/pair/dangling_ref.cc: New test.
4111 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
4113 * testsuite/17_intro/names_pstl.cc: Require et tbb_backend.
4115 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
4117 * include/ext/throw_allocator.h: Use reserved names for
4120 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
4122 * testsuite/17_intro/names_pstl.cc: Add space after effective
4125 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
4127 * include/pstl/algorithm_fwd.h (__pattern_search_n)
4128 (__brick_unique_copy, __brick_adjacent_find)
4129 (__brick_generate_n, __pattern_generate_n): Use reserved names
4131 * include/pstl/algorithm_impl.h (__brick_unique_copy)
4132 (__pattern_reverse, __brick_generate_n): Likewise.
4133 * include/pstl/execution_impl.h (__prefer_unsequenced_tag)
4134 (__prefer_parallel_tag): Likewise.
4135 * include/pstl/glue_algorithm_impl.h (transform): Likewise.
4136 * include/pstl/glue_numeric_defs.h (adjacent_difference):
4138 * include/pstl/numeric_impl.h (__brick_adjacent_difference):
4140 * include/pstl/parallel_backend_tbb.h (__merge_func): Likewise.
4141 * include/pstl/unseq_backend_simd.h (_Combiner)
4142 (__simd_min_element, __simd_minmax_element): Likewise.
4143 * testsuite/17_intro/names_pstl.cc: New test.
4145 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
4147 * include/bits/fs_ops.h (create_directory): Use reserved name
4149 * include/bits/ranges_algo.h (__contains_subrange_fn):
4151 * include/bits/regex_automaton.h (_State_base::_M_print):
4153 * include/bits/regex_automaton.tcc(_State_base::_M_print):
4155 * include/bits/regex_scanner.tcc(_Scanner::_M_print): Likewise.
4156 * include/experimental/bits/fs_ops.h (create_directory):
4158 * include/std/mutex (timed_mutex::_M_clocklock): Likewise.
4159 (recursive_timed_mutex:_M_clocklock): Likewise.
4160 * include/std/tuple (basic_common_reference): Likewise.
4161 * libsupc++/cxxabi_init_exception.h
4162 (__cxa_init_primary_exception): Likewise.
4163 * testsuite/17_intro/names.cc: Add checks.
4165 2023-02-14 Gerald Pfeifer <gerald@pfeifer.com>
4167 * doc/xml/manual/status_cxx2017.xml: Update an open-std.org link
4168 to www.open-std.org and https.
4169 * doc/html/manual/status.html: Regenerate.
4171 2023-02-14 Thomas W Rodgers <rodgert@twrodgers.com>
4174 * include/std/atomic (atomic_flag_wait): Add.
4175 (atomic_flag_wait_explicit): Add.
4176 (atomic_flag_notify): Add.
4177 (atomic_flag_notify_explicit): Add.
4178 * testsuite/29_atomics/atomic_flag/wait_notify/1.cc:
4179 Add test case to cover missing atomic_flag free functions.
4181 2023-02-14 Thomas W Rodgers <rodgert@twrodgers.com>
4184 * include/std/atomic (atomic_flag_test): Add.
4185 (atomic_flag_test_explicit): Add.
4186 * testsuite/29_atomics/atomic_flag/test/explicit.cc: Add
4187 test case to cover missing atomic_flag free functions.
4188 * testsuite/29_atomics/atomic_flag/test/implicit.cc:
4191 2023-02-13 Gerald Pfeifer <gerald@pfeifer.com>
4193 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust
4194 "The Component Object Model" reference.
4195 * doc/html/manual/policy_data_structures.html: Regenerate.
4197 2023-02-12 Gerald Pfeifer <gerald@pfeifer.com>
4199 * doc/xml/manual/containers.xml: Tweak a link to N1780
4201 * doc/html/manual/associative.html: Regenerate.
4203 2023-02-12 Gerald Pfeifer <gerald@pfeifer.com>
4205 * doc/xml/manual/ctype.xml: Change www.unix.org to unix.org.
4206 * doc/html/manual/facets.html: Regenerate.
4208 2023-02-11 Gerald Pfeifer <gerald@pfeifer.com>
4210 * doc/xml/manual/policy_data_structures_biblio.xml: Update
4211 link to "Worst-case efficient priority queues".
4212 * doc/html/manual/policy_data_structures.html: Regenerate.
4214 2023-02-06 Arsen Arsenović <arsen@aarsen.me>
4216 * doc/xml/manual/using.xml: Document newly-freestanding
4217 headers and the effect of the -ffreestanding flag.
4218 * doc/xml/manual/status_cxx2023.xml: Document P1642R11 as
4220 * doc/xml/manual/configure.xml: Document that hosted installs
4221 respect __STDC_HOSTED__.
4222 * doc/xml/manual/test.xml: Document how to run tests in
4224 * doc/html/*: Regenerate.
4226 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
4228 * include/bits/ranges_algo.h (__find_last_fn): Rename T to _Tp.
4229 (__find_last_if_fn): Likewise.
4231 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
4233 * include/std/type_traits: Add diagnostic pragmas around
4234 references to deprecated std::aligned_storage and
4235 std::aligned_union traits.
4236 * testsuite/20_util/aligned_storage/requirements/alias_decl.cc:
4237 Add dg-warning for et c++23.
4238 * testsuite/20_util/aligned_storage/requirements/explicit_instantiation.cc:
4240 * testsuite/20_util/aligned_storage/value.cc: Likewise.
4241 * testsuite/20_util/aligned_union/1.cc: Likewise.
4242 * testsuite/20_util/aligned_union/requirements/alias_decl.cc:
4245 2023-02-06 Nathaniel Shead <nathanieloshead@gmail.com>
4247 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macros.
4248 * include/bits/c++config (_GLIBCXX23_DEPRECATED)
4249 (_GLIBCXX23_DEPRECATED_SUGGEST): New macros.
4250 * include/std/type_traits (aligned_storage, aligned_union)
4251 (aligned_storage_t, aligned_union_t): Deprecate for C++23.
4252 * testsuite/20_util/aligned_storage/deprecated-2b.cc: New test.
4253 * testsuite/20_util/aligned_union/deprecated-2b.cc: New test.
4255 2023-02-06 Nathaniel Shead <nathanieloshead@gmail.com>
4257 * doc/doxygen/user.cfg.in (PREDEFINED): Update macros.
4258 * include/bits/c++config (_GLIBCXX20_DEPRECATED): Make
4259 consistent with other 'deprecated' macros.
4260 * include/std/type_traits (is_pod, is_pod_v): Use
4261 _GLIBCXX20_DEPRECATED_SUGGEST instead.
4263 2023-02-06 Arsen Arsenović <arsen@aarsen.me>
4265 * Makefile.am [!_GLIBCXX_HOSTED]: Enable src/ subdirectory.
4266 * Makefile.in: Regenerate.
4267 * src/Makefile.am [!_GLIBCXX_HOSTED]: Omit compatibility files.
4268 There's no history to be compatible with.
4269 * src/c++11/Makefile.am [!_GLIBCXX_HOSTED]: Omit hosted-only
4270 source files from the build.
4271 * src/c++17/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
4272 * src/c++20/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
4273 * src/c++98/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
4274 * src/Makefile.in: Regenerate.
4275 * src/c++11/Makefile.in: Regenerate.
4276 * src/c++17/Makefile.in: Regenerate.
4277 * src/c++20/Makefile.in: Regenerate.
4278 * src/c++98/Makefile.in: Regenerate.
4280 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
4282 * src/Makefile.am [GLIBCXX_HOSTED] (SUBDIRS): Do not add
4283 filesystem, libbacktrace and experimental.
4284 * src/Makefile.in: Regenerate.
4286 2023-02-04 Hans-Peter Nilsson <hp@axis.com>
4289 * include/pstl/unseq_backend_simd.h (__simd_or): Use __INT32_TYPE__
4292 2023-02-04 Gerald Pfeifer <gerald@pfeifer.com>
4294 * doc/xml/manual/documentation_hacking.xml: Adjust link to pdftex.
4295 * doc/html/manual/documentation_hacking.html: Regenerate.
4297 2023-02-04 François Dumont <fdumont@gcc.gnu.org>
4299 * include/bits/basic_string.h (operator=(basic_string&&)): Transfer move-to
4300 storage to the move-from instance when allocators are equal.
4301 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc (test04):
4304 2023-02-03 Samuel Thibault <samuel.thibault@gnu.org>
4306 * config/os/gnu-linux/os_defines.h [!__linux__]
4307 (_GLIBCXX_NATIVE_THREAD_ID, _GLIBCXX_GTHREAD_USE_WEAK): Do not define.
4309 2023-02-03 Patrick Palka <ppalka@redhat.com>
4311 * include/bits/ranges_algo.h (__find_last_fn, find_last):
4313 (__find_last_if_fn, find_last_if): Define.
4314 (__find_last_if_not_fn, find_last_if_not): Define.
4315 * testsuite/25_algorithms/find_last/1.cc: New test.
4316 * testsuite/25_algorithms/find_last_if/1.cc: New test.
4317 * testsuite/25_algorithms/find_last_if_not/1.cc: New test.
4319 2023-02-03 Patrick Palka <ppalka@redhat.com>
4321 * include/bits/ranges_algo.h (out_value_result): Define.
4322 (iota_result): Define.
4323 (__iota_fn, iota): Define.
4324 * testsuite/25_algorithms/iota/1.cc: New test.
4326 2023-02-03 Patrick Palka <ppalka@redhat.com>
4328 * include/bits/ranges_algo.h (__contains_fn, contains): Define.
4329 (__contains_subrange_fn, contains_subrange): Define.
4330 * testsuite/25_algorithms/contains/1.cc: New test.
4331 * testsuite/25_algorithms/contains_subrange/1.cc: New test.
4333 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
4335 * doc/xml/manual/abi.xml: Tweak link to ABIcheck project.
4336 * doc/html/manual/abi.html: Regenerate.
4338 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
4340 * src/filesystem/ops-common.h [AVR] (__unsupported): Always use
4341 errc::function_not_supported instead of errc::not_supported.
4343 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
4345 * include/std/sstream (basic_stringbuf::view): Define for old
4347 (basic_istringstream::view, basic_0stringstream::view)
4348 (basic_stringstream::view): Likewise.
4349 * testsuite/27_io/basic_istringstream/view/char/1.cc: Remove
4350 { dg-require-effective-target cxx11_abi }.
4351 * testsuite/27_io/basic_istringstream/view/wchar_t/1.cc:
4353 * testsuite/27_io/basic_ostringstream/view/char/1.cc: Likewise.
4354 * testsuite/27_io/basic_ostringstream/view/wchar_t/1.cc:
4356 * testsuite/27_io/basic_stringbuf/view/char/1.cc: Likewise.
4357 * testsuite/27_io/basic_stringbuf/view/wchar_t/1.cc: Likewise.
4358 * testsuite/27_io/basic_stringstream/view/char/1.cc: Likewise.
4359 * testsuite/27_io/basic_stringstream/view/wchar_t/1.cc:
4362 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
4365 * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Export shared_ptr
4366 conversion operators for directory iterator comparisons with
4367 std::default_sentinel_t.
4368 * include/bits/fs_path.h (path::path(string_view, _Type))
4369 (path::_Cmpt::_Cmpt(string_view, _Type, size_t)): Move inline
4371 * src/c++17/fs_path.cc: ... here.
4372 * testsuite/27_io/filesystem/path/108636.cc: New test.
4374 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
4376 * include/std/variant (variant::operator=): Implement resolution
4378 * testsuite/20_util/variant/lwg3585.cc: New test.
4380 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
4382 * doc/xml/manual/using_exceptions.xml: Update a www.open-std.org
4384 * doc/html/manual/using_exceptions.html: Regenerate.
4386 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
4388 * doc/xml/manual/debug.xml: Fix link to online GDB manual.
4389 * doc/html/manual/debug.html: Regenerate.
4391 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
4393 * src/c++11/random.cc (random_device::_M_fini): Do not try to
4394 close the file handle if the target doesn't support the
4395 /dev/random and /dev/urandom files.
4397 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
4399 * config/os/generic/error_constants.h (errc::value_too_large)
4401 * src/c++11/system_error.cc
4402 (system_category::default_error_condition) [__AVR__]: Only match
4403 recognize values equal to EDOM, ERANGE, ENOSYS and EINTR.
4404 * src/c++17/fs_ops.cc (fs::current_path) [__AVR__]: Do not check
4405 for ENOENT etc. in switch.
4406 (fs::remove_all) [__AVR__]: Likewise.
4407 * src/filesystem/ops-common.h [__AVR__]: Do not use POSIX open,
4410 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
4412 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR) [avr-*-*, msp430-*-*]: Set
4414 * configure: Regenerate.
4416 2023-02-01 Hans-Peter Nilsson <hp@axis.com>
4419 * testsuite/std/time/hh_mm_ss/1.cc (size): Add empty
4420 struct at end of S0.
4422 2023-01-30 Gerald Pfeifer <gerald@pfeifer.com>
4424 * doc/xml/manual/shared_ptr.xml: Move links from both
4425 http://open-std.org and http://www.open-std.org to
4426 https://www.open-std.org.
4427 * doc/html/manual/memory.html: Regenerate.
4429 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
4431 * doc/xml/manual/appendix_contributing.xml: Adjust link to
4432 ISO C++ standard at ANSI.
4433 Move link to www.open-std.org to https.
4434 * doc/html/manual/appendix_contributing.html: Regenerate.
4436 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
4438 * doc/xml/manual/documentation_hacking.xml: Move sourceforge.net
4440 * doc/html/manual/documentation_hacking.html: Regenerate.
4442 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
4444 * doc/xml/manual/abi.xml: Update www.open-std.org link to https.
4445 * doc/html/manual/abi.html: Regenerate.
4447 2023-01-27 Jakub Jelinek <jakub@redhat.com>
4450 * testsuite/17_intro/names.cc (__unused): For linux or GNU hurd
4451 include features.h if present and then check __GLIBC__ and
4452 __GLIBC_MINOR__ macros for glibc prior to 2.19, instead of testing
4453 __GLIBC_PREREQ which isn't defined yet.
4455 2023-01-27 Jonathan Wakely <jwakely@redhat.com>
4457 * src/c++20/tzdb.cc (tzdata_stream): Use constant instead of
4460 2023-01-27 Jonathan Wakely <jwakely@redhat.com>
4463 * testsuite/23_containers/map/modifiers/108554.cc: Use dg-bogus.
4465 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
4467 * src/c++20/tzdb.cc (operator>>(istream&, ZoneInfo&)): Allow
4468 rules named "+" for compatibility with older tzdata.zi files.
4470 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
4473 * include/bits/stl_tree.h (_Rb_tree_insert_and_rebalance): Add
4475 (_Rb_tree_rebalance_for_erase): Add nonnull and returns_nonnull
4477 * testsuite/23_containers/map/modifiers/108554.cc: New test.
4479 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
4482 * src/c++20/tzdb.cc (current_zone): Look for TIMEZONE or ZONE in
4483 /etc/sysconfig/clock, not DEFAULT_TIMEZONE.
4485 2023-01-26 Gerald Pfeifer <gerald@pfeifer.com>
4487 * doc/xml/manual/intro.xml: Update links to www.open-std.org to
4489 * doc/html/manual/bugs.html: Regenerate.
4491 2023-01-24 Jonathan Wakely <jwakely@redhat.com>
4494 * src/c++20/tzdb.cc (current_zone): Look for DEFAULT_TIMEZONE in
4495 /etc/sysconfig/clock.
4497 2023-01-24 Jonathan Wakely <jwakely@redhat.com>
4500 * include/bits/ranges_base.h: Include <bits/stl_iterator.h> for
4501 std::make_reverse_iterator.
4502 * include/std/tuple: Include <bits/ranges_util.h> for subrange.
4503 (make_from_tuple): Add static assertion from P2255 to diagnose
4504 dangling references.
4505 * testsuite/20_util/tuple/make_from_tuple/dangling_ref.cc: New test.
4506 * testsuite/20_util/tuple/make_from_tuple/tuple_like.cc: New test.
4508 2023-01-23 François Dumont <fdumont@gcc.gnu.org>
4510 * include/debug/safe_iterator.h (_Safe_iterator<>::_Unchecked): New.
4511 (_Safe_iterator(const _Safe_iterator&, _Unchecked)): New.
4512 (_Safe_iterator::operator++(int)): Use latter.
4513 (_Safe_iterator::operator--(int)): Likewise.
4514 (_Safe_iterator(_Iterator, const _Safe_sequence_base*)): Remove !_M_insular()
4516 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::_Unchecked):
4518 (_Safe_local_iterator(const _Safe_local_iterator&, _Unchecked)): New.
4519 (_Safe_local_iterator::operator++(int)): Use latter.
4520 * src/c++11/debug.cc (_S_debug_messages): Add as comment the _Debug_msg_id
4521 entry associated to the array entry.
4523 2023-01-18 Jonathan Wakely <jwakely@redhat.com>
4525 * include/bits/fs_path.h (u8path): Add deprecated attribute.
4526 * testsuite/27_io/filesystem/path/construct/90281.cc: Add
4527 -Wno-deprecated-declarations for C++20 and later.
4528 * testsuite/27_io/filesystem/path/factory/u8path-char8_t.cc:
4530 * testsuite/27_io/filesystem/path/factory/u8path.cc: Likewise.
4531 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
4532 * testsuite/27_io/filesystem/path/factory/u8path-depr.cc: New test.
4534 2023-01-18 Jonathan Wakely <jwakely@redhat.com>
4536 * include/bits/random.h (random_device) [!_GLIBCXX_USE_DEV_RANDOM]:
4537 Always call _M_fini and _M_getentropy.
4539 2023-01-18 Gerald Pfeifer <gerald@pfeifer.com>
4541 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust links
4542 to www.open-std.org to use https.
4543 (COM: Component Model Object Technologies): Rename from...
4544 (The Component Object Model): ...to.
4545 * doc/html/manual/policy_data_structures.html: Regenerate.
4547 2023-01-18 Dimitrij Mijoski <dmjpp@hotmail.com>
4549 * testsuite/22_locale/codecvt/codecvt_unicode.cc: Simplify.
4550 * testsuite/22_locale/codecvt/codecvt_unicode.h: Simplify.
4551 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: Simplify.
4553 2023-01-17 Jonathan Wakely <jwakely@redhat.com>
4555 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Check $target_os instead
4556 of $host. Fix check for file being present during native build.
4557 * configure: Regenerate.
4559 2023-01-17 Martin Liska <mliska@suse.cz>
4561 * src/libbacktrace/Makefile.in: Regenerate.
4563 2023-01-16 Jonathan Wakely <jwakely@redhat.com>
4565 * src/c++20/tzdb.cc (_GLIBCXX_USE_CXX11_ABI): Define to 1.
4567 2023-01-16 Jonathan Wakely <jwakely@redhat.com>
4570 * include/c_compatibility/stdatomic.h: Change copyright line to
4571 be consistent with other headers contributed under DCO terms.
4572 * include/std/expected: Add full stop to copyright line.
4573 * src/c++20/tzdb.cc: Likewise.
4575 2023-01-15 Gerald Pfeifer <gerald@pfeifer.com>
4577 * doc/xml/manual/status_cxx2014.xml: Switch www.open-std.org to
4579 * doc/xml/manual/status_cxx2017.xml: Ditto.
4580 * doc/xml/manual/status_cxx2020.xml: Ditto.
4581 * doc/xml/manual/status_cxx2023.xml: Ditto.
4582 * doc/html/manual/status.html: Regenerate.
4584 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
4586 * testsuite/std/time/tzdb_list/1.cc: Remove dg-xfail-run-if
4587 and fail gracefully if defining the weak symbol doesn't work.
4589 2023-01-15 François Dumont <fdumont@gcc.gnu.org>
4592 * include/debug/safe_iterator.h (_Safe_iterator<>::operator++(int)): Extend deadlock
4593 fix to other iterator category.
4594 (_Safe_iterator<>::operator--(int)): Likewise.
4595 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::operator++(int)):
4597 * testsuite/util/debug/unordered_checks.h (invalid_local_iterator_pre_increment): New.
4598 (invalid_local_iterator_post_increment): New.
4599 * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_post_increment_neg.cc:
4601 * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_pre_increment_neg.cc:
4604 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
4606 * testsuite/30_threads/jthread/jthread.cc: Remove -pthread from
4609 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
4611 * testsuite/std/time/clock/utc/io.cc: Use ctype to widen char.
4613 2023-01-14 Björn Schäpers <bjoern@hazardy.de>
4615 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Add check for
4616 windows.h. Add pecoff as FORMAT_FILE.
4617 * config.h.in: Regenerate.
4618 * configure: Regenerate.
4619 * src/libbacktrace/Makefile.am: Regenerate.
4620 * src/libbacktrace/Makefile.in: Add pecoff.c as FORMAT_FILE.
4622 2023-01-14 Björn Schäpers <bjoern@hazardy.de>
4624 * include/std/stacktrace (stacktrace_entry::_S_demangle): Use
4625 raw __name if __cxa_demangle could not demangle it.
4627 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
4630 * src/c++20/tzdb.cc (current_zone()) [_AIX]: Use TZ environment
4633 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
4635 * src/c++20/tzdb.cc (TZDB_DISABLED): Disable all code for
4637 * testsuite/std/time/tzdb/leap_seconds.cc: Require tzdb
4639 * testsuite/std/time/tzdb_list/1.cc: Likewise.
4641 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
4643 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Replace the
4644 --with-libstdcxx-zoneinfo-dir configure option with
4645 --with-libstdcxx-zoneinfo with yes/no/static choices as well as
4647 * config.h.in: Regenerate.
4648 * configure: Regenerate.
4649 * doc/xml/manual/configure.xml: Document configure option.
4650 * doc/html/manual/configure.html: Regenerate.
4651 * src/c++20/Makefile.am: Generate tzdata.zi.h header.
4652 * src/c++20/Makefile.in: Regenerate.
4653 * src/c++20/tzdb.cc (__gnu_cxx::zoneinfo_dir_override): Return a
4654 null pointer if no directory is configured.
4655 (zoneinfo_dir): Replace with ...
4656 (zoneinfo_file): New function.
4657 (tzdata_stream): New istream class.
4658 (remote_version, reload_tzdb): Use tzdata_stream.
4659 * testsuite/lib/libstdc++.exp (check_effective_target_tzdb):
4660 Check new _GLIBCXX_STATIC_TZDATA macro and ignore presence of
4661 tzdata.zi file in default location.
4662 * src/c++20/tzdata.zi: New file.
4664 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
4666 * include/bits/chrono_io.h (operator<<): Fix syntax errors.
4667 * testsuite/std/time/month_day/io.cc: New test.
4668 * testsuite/std/time/month_day_last/io.cc: New test.
4669 * testsuite/std/time/month_weekday/io.cc: New test.
4670 * testsuite/std/time/month_weekday_last/io.cc: New test.
4671 * testsuite/std/time/weekday_indexed/io.cc: New test.
4672 * testsuite/std/time/weekday_last/io.cc: New test.
4673 * testsuite/std/time/year_month/io.cc: New test.
4674 * testsuite/std/time/year_month_day_last/io.cc: New test.
4675 * testsuite/std/time/year_month_weekday/io.cc: New test.
4676 * testsuite/std/time/year_month_weekday_last/io.cc: New test.
4678 2023-01-14 François Dumont <fdumont@gcc.gnu.org>
4680 * include/std/format [_GLIBCXX_INLINE_VERSION](to_chars): Adapt __asm symbol
4682 * config/abi/pre/gnu-versioned-namespace.ver: Add to_chars/from_chars symbols
4685 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
4687 * include/bits/std_mutex.h: Include <errno.h>.
4689 2023-01-13 Arsen Arsenović <arsen@aarsen.me>
4691 * testsuite/20_util/to_chars/version.cc: Mark hosted-only.
4692 * testsuite/20_util/uses_allocator/lwg3677.cc: Ditto.
4693 * testsuite/20_util/weak_ptr/cons/self_move.cc: Ditto.
4694 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Replace usage of
4695 std::make_unique with a freestanding-compatible wrapper around
4697 * testsuite/21_strings/basic_string_view/operations/contains/char.cc:
4698 Don't test for presence of __cpp_lib_string_contains on !HOSTED.
4699 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
4701 * testsuite/std/ranges/version_c++23.cc: Don't test for presence
4702 of __cpp_lib_ranges in !HOSTED.
4704 2023-01-13 Arsen Arsenović <arsen@aarsen.me>
4706 * include/Makefile.am: Install bits/char_traits.h,
4708 * include/Makefile.in: Regenerate.
4709 * include/bits/char_traits.h: Gate hosted-only, wchar-only and
4710 mbstate-only bits behind appropriate #ifs.
4711 * include/std/string_view: Gate <iostream> functionality behind
4713 * include/std/version: Enable __cpp_lib_constexpr_string_view
4714 and __cpp_lib_starts_ends_with in !HOSTED.
4715 * include/std/ranges: Re-enable __is_basic_string_view on
4716 freestanding, include <string_view> directly.
4717 * include/precompiled/stdc++.h: Include <string_view> when
4719 * testsuite/20_util/function_objects/searchers.cc: Skip testing
4720 boyer_moore searchers on freestanding
4721 * testsuite/21_strings/basic_string_view/capacity/1.cc: Guard
4722 <string>-related tests behind __STDC_HOSTED__.
4723 * testsuite/21_strings/basic_string_view/cons/char/1.cc: Ditto.
4724 * testsuite/21_strings/basic_string_view/cons/char/2.cc: Remove
4725 unused <stdexcept> include.
4726 * testsuite/21_strings/basic_string_view/cons/char/3.cc: Remove
4727 unused <vector> include.
4728 * testsuite/21_strings/basic_string_view/cons/char/range.cc:
4729 Guard <string> related testing behind __STDC_HOSTED__.
4730 * testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc:
4731 Guard <stdexcept> related tests behind __STDC_HOSTED__.
4732 * testsuite/21_strings/basic_string_view/element_access/char/1.cc:
4734 * testsuite/21_strings/basic_string_view/element_access/wchar_t/1.cc:
4735 Guard <stdexcept> tests behind __STDC_HOSTED__.
4736 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
4737 Enable test on freestanding, guard <stdexcept> bits behind
4739 * testsuite/21_strings/basic_string_view/operations/substr/char.cc:
4740 Guard <stdexcept> bits behind __STDC_HOSTED__.
4741 * testsuite/21_strings/basic_string_view/operations/substr/wchar_t.cc:
4744 2023-01-13 Dimitrij Mijoski <dmjpp@hotmail.com>
4747 * src/c++11/codecvt.cc (read_utf8_code_point): Correctly detect
4748 errors in incomplete multibyte sequences.
4749 (utf16_in): Remove surrogates parameter. Fix conditions for
4751 (utf16_out): Fix condition for returning partial.
4752 (ucs2_in): Do not pass surrogates argument to utf16_in.
4753 * testsuite/22_locale/codecvt/codecvt_unicode.cc: New test.
4754 * testsuite/22_locale/codecvt/codecvt_unicode.h: New header for
4756 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: New
4759 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
4762 * config/io/c_io_stdio.h (__c_lock): Define as a typedef for
4763 __GTHREAD_LEGACY_MUTEX_T if defined.
4765 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
4768 * config/os/gnu-linux/ldbl-extra.ver (GLIBCXX_LDBL_3.4.31):
4769 Export __try_use_facet specializations for facets in namespace
4771 * config/os/gnu-linux/ldbl-ieee128-extra.ver
4772 (GLIBCXX_IEEE128_3.4.31): Likewise for facets in namespace
4774 * testsuite/util/testsuite_abi.cc: Add to lists of known and
4777 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
4779 * include/bits/std_mutex.h: Remove <system_error> include.
4780 * include/std/condition_variable: Add <bits/error_constants.h>
4782 * include/std/mutex: Likewise.
4783 * include/std/shared_mutex: Likewise.
4785 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
4788 * include/experimental/memory_resource
4789 (_GLIBCXX_MAX_ALIGN_MATCHES_MALLOC): Define.
4790 (do_allocate, do_deallocate): Check it.
4791 * testsuite/experimental/memory_resource/new_delete_resource.cc:
4792 Relax expected behaviour for 64-bit hppa-hp-hpux11.11.
4794 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
4796 * doc/xml/manual/abi.xml: Add latest library versions.
4797 * doc/html/manual/abi.html: Regenerate.
4799 2023-01-12 François Dumont <fdumont@gcc.gnu.org>
4802 * include/bits/stl_tree.h (_Rb_tree<>::_M_insert_range_equal): Remove
4803 unused _Alloc_node instance.
4805 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
4807 * include/bits/atomic_wait.h (__detail::__platform_wait_t):
4808 Define as unsigned long if always lock-free, and unsigned int
4811 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
4813 * src/c++20/tzdb.cc (tzdb_list::_S_init_tzdb): Use __try and
4814 __catch macros for exception handling.
4816 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
4819 * include/bits/stl_algobase.h (__lg): Replace six overloads with
4820 a single function template for all integer types.
4821 * include/bits/stl_algo.h (__merge_adaptive_resize): Cast
4822 arithmetic results back to _Distance.
4824 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
4827 * include/std/span (span::span()): Un-simplify constraint to
4828 work for size_t of lesser rank than int.
4830 2023-01-07 LIU Hao <lh_mouse@126.com>
4832 PR middle-end/108300
4833 * src/c++11/system_error.cc: Define `WIN32_LEAN_AND_MEAN` before
4835 * src/c++11/thread.cc: Likewise.
4836 * src/c++17/fs_ops.cc: Likewise.
4837 * src/filesystem/ops.cc: Likewise.
4839 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
4842 * src/c++20/tzdb.cc (zoneinfo_dir): Add diagnostic pragma.
4844 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
4847 * src/c++20/tzdb.cc (time_zone::_Impl::RulesCounter): New class
4848 template and partial specialization for synchronizing access to
4849 time_zone::_Impl::infos.
4850 (time_zone::_M_get_sys_info, reload_tzdb): Adjust uses of
4853 2023-01-06 Patrick Palka <ppalka@redhat.com>
4856 * include/bits/utility.h (__cpp_lib_ranges_zip): Define for C++23.
4857 * include/std/ranges (__cpp_lib_ranges_zip): Likewise.
4858 (__cpp_lib_ranges_chunk): Likewise.
4859 (__cpp_lib_ranges_slide): Likewise.
4860 (__cpp_lib_ranges_chunk_by): Likewise.
4861 (__cpp_lib_ranges_join_with): Likewise.
4862 (__cpp_lib_ranges_repeat): Likewise.
4863 (__cpp_lib_ranges_stride): Likewise.
4864 (__cpp_lib_ranges_cartesian_product): Likewise.
4865 (__cpp_lib_ranges_as_rvalue): Likewise.
4866 * include/std/version: Ditto.
4867 * testsuite/20_util/tuple/p2321r2.cc: Verify value of
4869 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Likewise.
4870 * testsuite/std/ranges/adaptors/chunk/1.cc: Likewise.
4871 * testsuite/std/ranges/adaptors/chunk_by/1.cc: Likewise.
4872 * testsuite/std/ranges/adaptors/join_with/1.cc: Likewise.
4873 * testsuite/std/ranges/adaptors/slide/1.cc: Likewise.
4874 * testsuite/std/ranges/adaptors/stride/1.cc: Likewise.
4875 * testsuite/std/ranges/cartesian_product/1.cc: Likewise.
4876 * testsuite/std/ranges/repeat/1.cc: Likewise.
4877 * testsuite/std/ranges/zip/1.cc: Likewise.
4878 * testsuite/std/ranges/version_c++23.cc: New test.
4880 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
4883 * include/std/bitset (operator>>): Use alloca in the right
4884 scope, not in a constructor.
4885 * testsuite/20_util/bitset/io/input.cc: Check case from PR.
4887 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
4890 * include/std/format (basic_format_arg) [!__cpp_lib_to_chars]:
4891 Disable visiting floating-point types.
4893 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
4896 * include/debug/safe_iterator.h (_Safe_iterator::operator++(int))
4897 (_Safe_iterator::operator--(int)): Do not hold lock around
4898 construction of return value.
4900 2023-01-05 John David Anglin <danglin@gcc.gnu.org>
4902 * config/cpu/hppa/atomicity.h (_PA_LDCW_INSN): Define.
4903 (__exchange_and_add): Use _PA_LDCW_INSN. Use ordered store for
4904 lock release. Revise loop.
4905 (__atomic_add): Likewise.
4907 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
4910 * python/libstdcxx/v6/printers.py (_utc_timezone): New global
4912 (StdChronoTimePointPrinter::to_string): Use it.
4914 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
4917 * include/std/functional (_Bind_front): Add no_unique_address
4918 attribute to data members.
4919 * testsuite/20_util/function_objects/bind_front/107784.cc: Check
4920 size of call wrappers with empty types for targets and bound
4923 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
4926 * src/c++20/tzdb.cc (chrono::current_zone()): Check for zone
4927 using only last component of the name.
4929 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
4933 * config/abi/pre/gnu.ver: Move zoneinfo_dir_override export to
4934 the latest symbol version.
4935 * src/c++20/tzdb.cc (USE_ATOMIC_SHARED_PTR): Define to 0 if
4936 atomic<_Node*> is not always lock free.
4937 (USE_ATOMIC_LIST_HEAD): New macro.
4938 [__hpux__] (__gnu_cxx::zoneinfo_dir_override()): Provide
4939 definition of weak symbol.
4940 (tzdb_list::_Node::_S_head): Rename to _S_head_cache.
4941 (tzdb_list::_Node::_S_list_head): New function for accessing
4942 list head efficiently.
4943 (tzdb_list::_Node::_S_cache_list_head): New function for
4944 updating _S_list_head.
4946 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
4949 * include/std/chrono (hh_mm_ss): Do not use chrono::abs if
4950 duration rep is unsigned.
4951 * testsuite/std/time/hh_mm_ss/1.cc: Check unsigned rep.
4953 2023-01-04 Iain Sandoe <iain@sandoe.co.uk>
4956 * config/abi/pre/gnu.ver (GLIBCXX_3.4):
4957 Add __gnu_cxx::zoneinfo_dir_override().
4959 2023-01-04 Jonathan Wakely <jwakely@redhat.com>
4962 * include/std/array (__array_traits<T, 0>::operator T*()): Add
4964 * testsuite/23_containers/array/element_access/constexpr_c++17.cc: Check
4965 std::array<T, 0>::data().
4968 Copyright (C) 2023 Free Software Foundation, Inc.
4970 Copying and distribution of this file, with or without modification,
4971 are permitted in any medium without royalty provided the copyright
4972 notice and this notice are preserved.