1 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
4 * include/std/format (_Seq_sink::get): Only call _M_overflow if
5 its precondition is met.
6 (_Iter_sink::_M_finish): Likewise.
7 (_Iter_sink<C, ContigIter>::_M_overflow): Only switch to the
8 internal buffer after running out of space.
9 (_Iter_sink<C, ContigIter>::_M_finish): Do not use _M_overflow.
10 (_Counting_sink::count): Likewise.
11 * testsuite/std/format/functions/format_to_n.cc: Check cases
12 where the output fits into the buffer.
14 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
17 * include/bits/chrono_io.h (operator|=, operator|): Add noexcept
18 to _ChronoParts operators.
19 (from_stream, parse): Define new functions.
20 (__detail::_Parse, __detail::_Parser): New class templates.
21 * include/std/chrono (__cpp_lib_chrono): Define to 201907L for
23 * include/std/version (__cpp_lib_chrono): Likewise.
24 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc:
25 Adjust expected value of feature test macro.
26 * testsuite/20_util/duration/io.cc: Test parsing.
27 * testsuite/std/time/clock/file/io.cc: Likewise.
28 * testsuite/std/time/clock/gps/io.cc: Likewise.
29 * testsuite/std/time/clock/system/io.cc: Likewise.
30 * testsuite/std/time/clock/tai/io.cc: Likewise.
31 * testsuite/std/time/clock/utc/io.cc: Likewise.
32 * testsuite/std/time/day/io.cc: Likewise.
33 * testsuite/std/time/month/io.cc: Likewise.
34 * testsuite/std/time/month_day/io.cc: Likewise.
35 * testsuite/std/time/weekday/io.cc: Likewise.
36 * testsuite/std/time/year/io.cc: Likewise.
37 * testsuite/std/time/year_month/io.cc: Likewise.
38 * testsuite/std/time/year_month_day/io.cc: Likewise.
39 * testsuite/std/time/syn_c++20.cc: Check value of macro and for
40 the existence of parse and from_stream in namespace chrono.
41 * testsuite/std/time/clock/local/io.cc: New test.
42 * testsuite/std/time/parse.cc: New test.
44 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
47 * include/std/format (__formatter_fp::format): Do not call log10
50 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
52 * python/libstdcxx/v6/printers.py (StdChronoCalendarPrinter):
53 Check for out-of-range month an weekday indices.
54 * testsuite/libstdc++-prettyprinters/chrono.cc: Check invalid
55 month and weekday values.
57 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
59 * include/bits/stl_iterator.h (__clamped_iter_cat_t): Remove.
61 2023-08-10 Jonathan Wakely <jwakely@redhat.com>
64 * include/std/format (_Spec::_S_parse_width_or_precision): Check
65 for empty range before dereferencing iterator.
66 * testsuite/std/format/string.cc: Check for expected exception.
67 Fix expected exception message in test_pr110862() and actually
70 2023-08-10 Jonathan Wakely <jwakely@redhat.com>
73 * include/std/format (__formatter_fp::format): Check return
75 * testsuite/std/format/functions/format.cc: Check classic
78 2023-08-10 Jonathan Wakely <jwakely@redhat.com>
81 * include/bits/stl_iterator.h (__detail::__move_iter_cat): Use
83 (iterator_traits<common_iterator<I, S>>::_S_iter_cat): Likewise.
84 (__detail::__basic_const_iterator_iter_cat): Likewise.
85 * include/bits/stl_iterator_base_types.h (__iterator_category_t):
86 Rename to __iter_category_t.
88 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
90 * include/bits/chrono.h (duration_cast): Do not use braces
91 around statements for C++11 constexpr rules.
92 * include/bits/stl_algobase.h (__lg): Rewrite as a single
93 statement for C++11 constexpr rules.
94 * include/experimental/bits/fs_path.h (path::string): Use
95 _GLIBCXX17_CONSTEXPR not _GLIBCXX_CONSTEXPR for 'if constexpr'.
96 * include/std/charconv (__to_chars_8): Initialize variable for
97 C++17 constexpr rules.
99 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
101 * include/bits/list.tcc (list::sort(Cmp)): Fix -Wsign-compare
102 warning for loop condition.
104 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
106 * include/std/complex: Add diagnostic pragma for clang.
108 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
110 * include/bits/shared_ptr_atomic.h (atomic): Change class-head
112 * include/bits/stl_tree.h (_Rb_tree_merge_helper): Change
113 class-head to struct in friend declaration.
114 * include/std/chrono (tzdb_list::_Node): Likewise.
115 * include/std/future (_Task_state_base, _Task_state): Likewise.
116 * include/std/scoped_allocator (__inner_type_impl): Likewise.
117 * include/std/valarray (_BinClos, _SClos, _GClos, _IClos)
118 (_ValFunClos, _RefFunClos): Change class-head to struct.
120 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
122 * include/bits/alloc_traits.h (allocate): Add [[maybe_unused]]
124 * include/bits/regex_executor.tcc: Remove name of unused
126 * include/bits/shared_ptr_atomic.h (atomic_is_lock_free):
128 * include/bits/stl_uninitialized.h: Likewise.
129 * include/bits/streambuf_iterator.h (operator==): Likewise.
130 * include/bits/uses_allocator.h: Likewise.
131 * include/c_global/cmath (isfinite, isinf, isnan): Likewise.
132 * include/std/chrono (zoned_time): Likewise.
133 * include/std/future (__future_base::_S_allocate_result):
135 (packaged_task): Likewise.
136 * include/std/optional (_Optional_payload_base): Likewise.
137 * include/std/scoped_allocator (__inner_type_impl): Likewise.
138 * include/std/tuple (_Tuple_impl): Likewise.
140 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
142 * include/bits/new_allocator.h (__new_allocator): Define copy
143 assignment operator as defaulted.
144 * include/std/complex (complex<float>, complex<double>)
145 (complex<long double>): Define copy constructor as defaulted.
147 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
149 * include/std/format: Fix some warnings.
150 (__format::__write(Ctx&, basic_string_view<CharT>)): Remove
151 unused function template.
153 2023-08-07 Jonathan Wakely <jwakely@redhat.com>
156 * include/std/format (__formatter_fp::format): Do not use
157 __builtin_abs and __builtin_log10 with arbitrary floating-point
160 2023-08-07 Jonathan Wakely <jwakely@redhat.com>
163 * include/std/format (__format::_Iter_sink<CharT, OutIter>):
164 Constrain partial specialization for contiguous iterators to
165 require the value type to be CharT.
166 * testsuite/std/format/functions/format_to.cc: New test.
168 2023-08-07 Jonathan Wakely <jwakely@redhat.com>
171 * include/std/format (_Scanner::_M_on_replacement_field):
172 Check for expected '}' before incrementing iterator.
173 * testsuite/std/format/string.cc: Check "{0:{0}" format string.
175 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
177 * configure: Regenerate.
179 2023-08-07 Alan Modra <amodra@gmail.com>
181 * configure: Regenerate.
183 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
185 * configure: Regenerate.
187 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
189 * configure: Regenerate.
191 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
193 * configure: Regenerate.
195 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
197 * configure: Regenerate.
199 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
201 * configure: Regenerate.
203 2023-08-06 François Dumont <fdumont@gcc.gnu.org>
205 * config/abi/pre/gnu-versioned-namespace.ver: Add __cxa_call_terminate
208 2023-07-30 François Dumont <fdumont@gcc.gnu.org>
210 * src/c++11/compatibility-ldbl-facets-aliases.h: Replace #define with
212 * src/c++11/locale-inst-monetary.h: Likewise.
213 * src/c++11/locale-inst-numeric.h: Likewise.
215 2023-07-27 Jonathan Wakely <jwakely@redhat.com>
218 * include/std/format (__formatter_fp::format): Ensure __expc is
219 always set for all presentation types. Set __z correctly for
221 * testsuite/std/format/functions/format.cc: Check problem cases.
223 2023-07-26 Jonathan Wakely <jwakely@redhat.com>
226 * testsuite/23_containers/vector/bool/110807.cc: Require c++11.
228 2023-07-26 Jonathan Wakely <jwakely@redhat.com>
231 * include/bits/stl_bvector.h (vector(const vector&)): Access
232 iterators before allocating.
233 * include/bits/vector.tcc (vector<bool>::_M_insert_range):
235 * testsuite/23_containers/vector/bool/110807.cc: New test.
237 2023-07-26 Jonathan Wakely <jwakely@redhat.com>
239 * include/bits/algorithmfwd.h (random_shuffle): Add deprecated
241 * include/bits/stl_algo.h (random_shuffle): Correct comments.
242 * testsuite/25_algorithms/random_shuffle/1.cc: Disable
244 * testsuite/25_algorithms/random_shuffle/59603.cc: Likewise.
245 * testsuite/25_algorithms/random_shuffle/moveable.cc: Likewise.
246 * testsuite/25_algorithms/random_shuffle/deprecated.cc: New
249 2023-07-26 Nathaniel Shead <nathanieloshead@gmail.com>
251 * testsuite/25_algorithms/equal/constexpr_neg.cc: Update diagnostic
253 * testsuite/26_numerics/gcd/105844.cc: Likewise.
254 * testsuite/26_numerics/lcm/105844.cc: Likewise.
256 2023-07-24 Deev Patel <pateldeev@nevada.unr.edu>
258 * include/std/format (_Formatting_scanner::_M_on_chars): Add
259 missing constexpr specifier.
260 (_Formatting_scanner::_M_format_arg): Likewise.
262 2023-07-24 Jonathan Wakely <jwakely@redhat.com>
265 * include/bits/basic_string.h [!HAVE_STOF] (stof): Do not
266 throw an exception for zero result.
267 [HAVE_BROKEN_STRTOLD] (stold): Do not use strtold.
269 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
272 * src/c++17/floating_from_chars.cc (from_chars): Only define
273 _Float128 overload when using __strfromf128.
275 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
278 * include/bits/chrono.h (duration): Improve static assert
280 (__is_ratio): Move to ...
281 * include/std/ratio (__is_ratio): ... here.
282 (__is_ratio_v): New variable template and partial
284 (__are_both_ratios): New function template.
285 (__ratio_multiply, ratio_equal, ratio_less, __ratio_add):
286 Add static assertion.
287 * testsuite/20_util/ratio/requirements/type_constraints.cc:
289 * testsuite/20_util/duration/requirements/typedefs_neg1.cc:
290 Adjust expected error.
291 * testsuite/20_util/duration/requirements/typedefs_neg2.cc:
294 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
296 * include/bits/chrono_io.h (__formatter_chrono::_M_format):
297 Do not set __is_neg for hh_mm_ss before calling
298 _M_format_to_ostream. Change __print_sign lambda to only check
299 __is_neg for durations and hh_mm_ss types.
300 (__formatter_chrono::_M_format_to_ostream): Only check __is_neg
302 * testsuite/std/time/hh_mm_ss/io.cc: Check negative values.
304 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
307 * include/bits/chrono_io.h (__formatter_chrono::_S_floor_seconds):
308 Handle duration and hh_mm_ss.
309 * testsuite/20_util/duration/io.cc: Check locale-specific
311 * testsuite/std/time/hh_mm_ss/io.cc: Likewise.
313 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
315 * include/std/format (__write_padded): Initialize first element
316 of array to avoid a -Wmaybe-uninitialized warning.
318 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
321 * include/bits/chrono_io.h (__formatter_chrono::_M_parse): Fix
322 allowed modifiers for %z and %Z. Fix -Wparentheses and
323 -Wnarrowing warnings.
324 (__formatter_chrono::_M_format): Call new functions for %d, %e,
326 (__formatter_chrono::_M_c): Use _S_floor_seconds to remove
328 (__formatter_chrono::_M_C_y_Y): Use _M_locale_fmt to handle
330 (__formatter_chrono::_M_e): Replace with _M_d_e and use
332 (__formatter_chrono::_M_I): Replace with _M_H_I and use
334 (__formatter_chrono::_M_m): New function.
335 (__formatter_chrono::_M_M): New function.
336 (__formatter_chrono::_M_r): Use _M_locale_fmt.
337 (__formatter_chrono::_M_S): Likewise.
338 (__formatter_chrono::_M_u_w): Likewise.
339 (__formatter_chrono::_M_U_V_W): Likewise.
340 (__formatter_chrono::_M_X): Use _S_floor_seconds.
341 (__formatter_chrono::_M_Z): Fix untested branch for wchar_t.
342 (__formatter_chrono::_S_altnum): Remove function.
343 (__formatter_chrono::_S_dd_zero_fill): Remove function.
344 (__formatter_chrono::_S_floor_seconds): New function.
345 (__formatter_chrono::_M_locale_fmt): New function.
346 * testsuite/std/time/clock/system/io.cc: Adjust expected output
347 for locale-specific formats and check modified formats.
348 * testsuite/std/time/clock/utc/io.cc: Likewise.
349 * testsuite/std/time/zoned_time/io.cc: New test.
351 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
354 * include/bits/chrono_io.h (__formatter_chrono::_M_parse): Only
355 allow a single modifier.
356 * testsuite/std/time/format.cc: Check multiple modifiers.
358 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
361 * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
362 Remove dg-require-string-conversions.
363 * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
365 * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
367 * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
369 * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
372 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
375 * include/bits/basic_string.h [!_GLIBCXX_HAVE_STRTOF] (stof):
376 Define in terms of std::stod.
378 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
381 * include/bits/basic_string.h [_GLIBCXX_HAVE_STRTOF] (stof):
383 [_GLIBCXX_HAVE_STRTOLD] (stold): Define.
384 * include/c_global/cstdlib [_GLIBCXX_HAVE_STRTOF] (strtof):
385 Declare in namespace std.
386 [_GLIBCXX_HAVE_STRTOLD] (strtold): Likewise.
388 2023-07-13 Jonathan Wakely <jwakely@redhat.com>
391 * include/bits/basic_string.h (stoi, stol, stoul, stod): Do not
392 depend on _GLIBCXX_USE_C99_STDLIB.
393 [__LONG_WIDTH__ == __LONG_LONG_WIDTH__] (stoll, stoull): Define
394 in terms of stol and stoul respectively.
395 [__DBL_MANT_DIG__ == __LDBL_MANT_DIG__] (stold): Define in terms
398 2023-07-12 Jonathan Wakely <jwakely@redhat.com>
401 * testsuite/27_io/filesystem/path/construct/95048.cc: Check
402 conversions to wide strings.
403 * testsuite/experimental/filesystem/path/construct/95048.cc:
406 2023-07-12 Jonathan Wakely <jwakely@redhat.com>
408 * config/io/basic_file_stdio.cc: Define LFS macros.
409 (__basic_file<char>::open): Use fopen unconditionally.
410 (get_file_offset): Use lseek unconditionally.
411 (__basic_file<char>::seekoff): Likewise.
412 (__basic_file<char>::showmanyc): Use fstat unconditionally.
414 2023-07-12 Jonathan Wakely <jwakely@redhat.com>
417 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fseeko and ftello
418 and define _GLIBCXX_USE_FSEEKO_FTELLO.
419 * config.h.in: Regenerate.
420 * configure: Regenerate.
421 * config/io/basic_file_stdio.cc (xwrite) [_GLIBCXX_USE_STDIO_PURE]:
422 Check for fwrite error correctly.
423 (__basic_file<char>::xsgetn) [_GLIBCXX_USE_STDIO_PURE]: Check for
424 fread error correctly.
425 (get_file_offset): New function.
426 (__basic_file<char>::seekoff) [_GLIBCXX_USE_STDIO_PURE]: Use
427 fseeko if available. Use get_file_offset instead of return value
429 (__basic_file<char>::showmanyc): Use get_file_offset.
431 2023-07-12 Ken Matsui <kmatsui@gcc.gnu.org>
433 * include/std/type_traits (__make_unsigned_selector): Use
434 __is_enum built-in trait.
435 (__make_signed_selector): Likewise.
436 (__underlying_type_impl): Likewise.
438 2023-07-06 Tianqiang Shuai <1101282468@qq.com>
440 * config/io/basic_file_stdio.cc (xwrite) [USE_STDIO_PURE]: Fix
443 2023-07-06 Jonathan Wakely <jwakely@redhat.com>
446 * doc/xml/manual/configure.xml: Describe stdio_pure argument to
448 * doc/html/manual/configure.html: Regenerate.
450 2023-07-05 Thomas Rodgers <trodgers@redhat.com>
452 * testsuite/25_algorithms/pstl/alg_sorting/set.cc: Delete
454 * testsuite/25_algorithms/pstl/alg_sorting/set_difference.cc:
456 * testsuite/25_algorithms/pstl/alg_sorting/set_intersection.cc:
458 * testsuite/25_algorithms/pstl/alg_sorting/set_symmetric_difference.cc:
460 * testsuite/25_algorithms/pstl/alg_sorting/set_union.cc:
462 * testsuite/25_algorithms/pstl/alg_sorting/set_util.h:
465 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
467 * testsuite/23_containers/forward_list/debug/iterator1_neg.cc:
468 Skip as UNSUPPORTED for C++98 mode.
469 * testsuite/23_containers/forward_list/debug/iterator3_neg.cc:
472 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
475 * include/bits/stl_uninitialized.h (__uninitialized_default_n):
476 Do not use std::fill_n during constant evaluation.
478 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
480 * include/bits/vector.tcc (_M_default_append): Replace try-block
483 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
485 * include/bits/iterator_concepts.h (projected): Add typename.
487 2023-07-03 Jonathan Wakely <jwakely@redhat.com>
489 * testsuite/27_io/headers/iosfwd/synopsis.cc: Make wsyncbuf and
490 wosyncstream depend on _GLIBCXX_USE_CXX11_ABI.
492 2023-07-03 Jonathan Wakely <jwakely@redhat.com>
494 * include/pstl/pstl_config.h (_PSTL_PRAGMA_SIMD_SCAN,
495 _PSTL_PRAGMA_SIMD_INCLUSIVE_SCAN, _PSTL_PRAGMA_SIMD_EXCLUSIVE_SCAN):
496 Define to OpenMP 5.0 pragmas even for GCC 10.0+.
497 (_PSTL_UDS_PRESENT): Define to 1 for GCC 10.0+.
499 2023-07-03 Jonathan Wakely <jwakely@redhat.com>
501 * include/bits/alloc_traits.h (_Destroy): Qualify call.
502 * include/bits/stl_construct.h (_Destroy, _Destroy_n): Likewise.
503 * testsuite/23_containers/vector/cons/destroy-adl.cc: New test.
505 2023-07-03 Iain Sandoe <iain@sandoe.co.uk>
507 * testsuite/lib/libstdc++.exp: Remove additional flag handled
510 2023-06-30 Jonathan Wakely <jwakely@redhat.com>
513 * acinclude.m4 (GLIBCXX_CHECK_INIT_PRIORITY): New.
514 * config.h.in: Regenerate.
515 * configure: Regenerate.
516 * configure.ac: Use GLIBCXX_CHECK_INIT_PRIORITY.
517 * include/std/iostream: Use new autoconf macro as well as
519 * src/c++98/ios_base_init.h: Use new autoconf macro instead of
522 2023-06-30 Jonathan Wakely <jwakely@redhat.com>
524 * src/c++11/random.cc (random_device::_M_init): Add maybe_unused
527 2023-06-30 Jonathan Wakely <jwakely@redhat.com>
530 * src/c++11/random.cc (random_device::_M_init): Throw
531 std::system_error when the requested device is a valid token but
532 not available at runtime.
534 2023-06-30 Hans-Peter Nilsson <hp@axis.com>
537 * include/pstl/unseq_backend_simd.h (__simd_or): Re-apply using
538 __INT32_TYPE__ instead of int32_t.
540 2023-06-29 Jonathan Wakely <jwakely@redhat.com>
542 * src/c++20/tzdb.cc (USE_ATOMIC_SHARED_PTR): Define consistently
543 with USE_ATOMIC_LIST_HEAD.
544 (list_mutex): Replace global object with function. Use local
545 static object when std::mutex constructor isn't constexpr.
547 2023-06-29 Jonathan Wakely <jwakely@redhat.com>
550 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check that
551 copy_file_range can be called with loff_t* arguments.
552 * configure: Regenerate.
553 * src/filesystem/ops-common.h (copy_file_copy_file_range):
554 Use loff_t for offsets.
556 2023-06-29 Tom Tromey <tromey@adacore.com>
558 * testsuite/lib/gdb-test.exp (gdb-test): Relax type-printer
561 2023-06-28 Jan Hubicka <jh@suse.cz>
564 * include/bits/c++config (std::__terminate): Mark cold.
565 * include/bits/functexcept.h: Mark everything as cold.
566 * libsupc++/exception: Mark terminate and unexpected as cold.
568 2023-06-26 Thomas Rodgers <trodgers@redhat.com>
570 * include/pstl/algorithm_fwd.h: Synchronize with upstream.
571 * include/pstl/algorithm_impl.h: Likewise.
572 * include/pstl/execution_defs.h: Likewise.
573 * include/pstl/execution_impl.h: Likewise.
574 * include/pstl/glue_algorithm_impl.h: Likewise.
575 * include/pstl/glue_execution_defs.h: Likewise.
576 * include/pstl/glue_memory_impl.h: Likewise.
577 * include/pstl/glue_numeric_impl.h: Likewise.
578 * include/pstl/memory_impl.h: Likewise.
579 * include/pstl/numeric_fwd.h: Likewise.
580 * include/pstl/numeric_impl.h: Likewise.
581 * include/pstl/parallel_backend.h: Likewise.
582 * include/pstl/parallel_backend_serial.h: Likewise.
583 * include/pstl/parallel_backend_tbb.h: Likewise.
584 * include/pstl/parallel_impl.h: Likewise.
585 * include/pstl/pstl_config.h: Likewise.
586 * include/pstl/unseq_backend_simd.h: Likewise.
587 * include/pstl/utils.h: Likewise.
588 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc:
590 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc:
592 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc:
594 * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc:
596 * testsuite/25_algorithms/pstl/alg_merge/merge.cc: Likewise.
597 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc:
599 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc:
601 * testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc:
603 * testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc:
605 * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc:
607 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc:
609 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc:
611 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc:
613 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc:
615 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc:
617 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc:
619 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc:
621 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc:
623 * testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc:
625 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc:
627 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc:
629 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc:
631 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc:
633 * testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc:
635 * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc:
637 * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc:
639 * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc:
641 * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc:
643 * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc:
645 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc:
647 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc:
649 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc:
651 * testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc:
653 * testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc:
655 * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc:
657 * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc:
659 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc:
661 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc:
663 * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc:
665 * testsuite/25_algorithms/pstl/alg_sorting/includes.cc:
667 * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc:
669 * testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc:
671 * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc:
673 * testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc:
675 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc:
677 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc:
679 * testsuite/25_algorithms/pstl/alg_sorting/set.cc:
681 * testsuite/25_algorithms/pstl/alg_sorting/sort.cc:
683 * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc:
685 * testsuite/26_numerics/pstl/numeric_ops/reduce.cc:
687 * testsuite/26_numerics/pstl/numeric_ops/scan.cc:
689 * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc:
691 * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc:
693 * testsuite/util/pstl/test_utils.h:
696 2023-06-26 Jonathan Wakely <jwakely@redhat.com>
699 * include/std/format (__format::__parse_integer): Fix buffer
700 overflow for wide chars.
701 (formatter<const void*, C>::format): Cast to uintptr_t instead
703 * testsuite/std/format/string.cc: Test too-large widths.
705 2023-06-26 Jonathan Wakely <jwakely@redhat.com>
707 * include/bits/iterator_concepts.h (projected): Replace class
708 template with alias template denoting an ADL-proofed helper.
709 (incremental_traits<projected<Iter, Proj>>): Remove.
710 * testsuite/24_iterators/indirect_callable/projected-adl.cc:
713 2023-06-26 Jonathan Wakely <jwakely@redhat.com>
715 * include/debug/helper_functions.h (__get_distance)
716 (__check_singular, __valid_range_aux, __valid_range): Qualify
717 calls to disable ADL.
718 (__check_singular_aux(const _Safe_iterator_base*)): Declare
719 overload that was previously found via ADL.
721 2023-06-23 Jonathan Wakely <jwakely@redhat.com>
723 * include/bits/vector.tcc (_M_realloc_insert): Replace try-block
726 2023-06-20 Jonathan Wakely <jwakely@redhat.com>
728 * include/std/array (to_array(T(&)[N])): Remove redundant
730 (to_array(T(&&)[N])): Remove redundant std::move.
732 2023-06-16 Alexandre Oliva <oliva@adacore.com>
734 * testsuite/20_util/from_chars/4.cc: Skip long double on
737 2023-06-16 Joel Brobecker <brobecker@adacore.com>
739 * configure.ac ["x${with_newlib}" = "xyes"]: Define
740 HAVE_HYPOTF. Add compile-checks for various long double
741 math functions as well.
742 * configure: Regenerate.
744 2023-06-14 Jonny Grant <jg@jguk.org>
746 * doc/xml/manual/extensions.xml: Remove demangle exception
747 description and include.
748 * doc/html/manual/ext_demangling.html: Regenerate.
750 2023-06-10 Hans-Peter Nilsson <hp@axis.com>
752 * testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc (main)
753 [! SIMULATOR_TEST]: Also exclude running test05.
754 * testsuite/27_io/basic_istream/ignore/char/94749.cc: Ditto.
756 2023-06-09 Ken Matsui <kmatsui@cs.washington.edu>
758 * include/std/type_traits: Use using instead of typedef
760 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
763 * src/c++17/floating_from_chars.cc (from_chars) <_Float128>:
764 Only define if _Float128 and long double have different
767 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
770 * include/experimental/internet [IPPROTO_TCP || IPPROTO_UDP]
771 (basic_endpoint, basic_resolver_entry, resolver_base)
772 (basic_resolver_results, basic_resolver): Only define if the tcp
773 or udp protocols will be defined.
775 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
777 * acinclude.m4 (libtool_VERSION): Update to 6.0.33.
778 * configure: Regenerate.
779 * doc/xml/manual/abi.xml: Add libstdc++.so.6.0.33.
780 * doc/html/manual/abi.html: Regenerate.
782 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
785 * include/std/format (formatter<const void*, charT>::parse):
786 Only alow 0 and P for C++26 and non-strict modes.
787 (formatter<const void*, charT>::format): Use toupper for P
788 type, and insert zero-fill characters for 0 option.
789 * testsuite/std/format/functions/format.cc: Check pointer
790 formatting. Only check P2510R3 extensions conditionally.
791 * testsuite/std/format/parse_ctx.cc: Only check P2510R3
792 extensions conditionally.
794 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
797 * include/std/array (to_array): Initialize arrays of trivial
798 types using memcpy. For non-trivial types, use lambda
799 expressions instead of a separate helper function.
800 (__to_array): Remove.
801 * testsuite/23_containers/array/creation/110167.cc: New test.
803 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
805 * testsuite/23_containers/deque/modifiers/emplace/52799.cc:
807 * testsuite/23_containers/deque/modifiers/emplace/const_iterator.cc:
809 * testsuite/23_containers/list/modifiers/emplace/52799.cc:
811 * testsuite/23_containers/list/modifiers/emplace/const_iterator.cc:
813 * testsuite/23_containers/vector/modifiers/emplace/52799.cc:
815 * testsuite/23_containers/vector/modifiers/emplace/const_iterator.cc:
817 * testsuite/23_containers/deque/modifiers/emplace/1.cc: New
819 * testsuite/23_containers/list/modifiers/emplace/1.cc: New
821 * testsuite/23_containers/vector/modifiers/emplace/1.cc: New
824 2023-06-07 Jakub Jelinek <jakub@redhat.com>
827 * testsuite/20_util/to_chars/double.cc: Include <cfloat>.
828 (double_to_chars_test_cases,
829 double_scientific_precision_to_chars_test_cases_2,
830 double_fixed_precision_to_chars_test_cases_2): #if out 1e126, 4.91e-6
831 and 5.547e-6 tests if FLT_EVAL_METHOD is negative or larger than 1.
832 Add unconditional tests with corresponding double constants
833 0x1.7a2ecc414a03fp+418, 0x1.4981285e98e79p-18 and
834 0x1.7440bbff418b9p-18.
836 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
838 * testsuite/util/testsuite_abi.cc (check_version): Re-add
841 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
843 * testsuite/18_support/nested_exception/rethrow_if_nested-term.cc:
844 Require effective target exceptions_enabled instead of using
846 * testsuite/23_containers/vector/capacity/constexpr.cc: Expect
847 shrink_to_fit() to be a no-op without exceptions enabled.
848 * testsuite/23_containers/vector/capacity/shrink_to_fit.cc:
850 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc:
851 Require effective target exceptions_enabled.
852 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc:
854 * testsuite/ext/mt_allocator/check_allocate_max_size.cc:
856 * testsuite/ext/new_allocator/check_allocate_max_size.cc:
858 * testsuite/ext/pool_allocator/check_allocate_max_size.cc:
860 * testsuite/ext/throw_allocator/check_allocate_max_size.cc:
863 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
865 * testsuite/20_util/duration/cons/2.cc: Use values that aren't
866 affected by rounding.
867 * testsuite/20_util/from_chars/5.cc: Cast arithmetic result to
868 double before comparing for equality.
869 * testsuite/20_util/from_chars/6.cc: Likewise.
870 * testsuite/20_util/variant/86874.cc: Use values that aren't
871 affected by rounding.
872 * testsuite/25_algorithms/lower_bound/partitioned.cc: Compare to
873 original value instead of to floating-point-literal.
874 * testsuite/26_numerics/random/discrete_distribution/cons/range.cc:
875 Cast arithmetic result to double before comparing for equality.
876 * testsuite/26_numerics/random/piecewise_constant_distribution/cons/range.cc:
878 * testsuite/26_numerics/random/piecewise_linear_distribution/cons/range.cc:
880 * testsuite/26_numerics/valarray/transcend.cc (eq): Check that
881 the absolute difference is less than 0.01 instead of comparing
882 to two decimal places.
883 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
884 Cast arithmetic result to double before comparing for equality.
885 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
887 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
889 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/01.cc:
891 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/09.cc:
893 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/10.cc:
895 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
897 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
900 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
902 * configure.ac: Use AS_IF.
903 * configure: Regenerate.
905 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
907 * testsuite/lib/prune.exp (libstdc++-dg-prune): Support
908 'UNSUPPORTED: [...]: exception handling disabled'.
910 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
912 * testsuite/util/testsuite_abi.cc (check_version): Add
913 CXXABI_1.3.15 symver and make it the latestp. Remove
914 GLIBCXX_IEEE128_3.4.31 and GLIBCXX_LDBL_3.4.31 from latestp.
916 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
917 Jakub Jelinek <jakub@redhat.com>
920 * include/std/limits: (numeric_limits<__float128>): Define
921 for __STRICT_ANSI__ as well.
922 * testsuite/18_support/numeric_limits/128bit.cc: Remove
923 check for __STRICT_ANSI__.
925 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
927 * configure.ac: Use AS_IF.
928 * configure: Regenerate.
930 2023-06-06 Matthias Kretz <m.kretz@gsi.de>
933 * include/experimental/bits/simd_builtin.h (_S_store): Rewrite
934 to avoid casts to other vector types. Implement store as
935 succession of power-of-2 sized memcpy to avoid PR90424.
937 2023-06-06 Matthias Kretz <m.kretz@gsi.de>
940 * include/experimental/bits/simd_builtin.h (_S_masked_store):
941 Call into deduced ABI's SimdImpl after conversion.
942 * include/experimental/bits/simd_x86.h (_S_masked_store_nocvt):
943 Don't use _mm_maskmoveu_si128. Use the generic fall-back
944 implementation. Also fix masked stores without SSE2, which
945 were not doing anything before.
947 2023-06-06 Matthias Kretz <m.kretz@gsi.de>
949 * include/experimental/bits/simd.h (__bit_cast): Use
950 __gnu__::__vector_size__ instead of gnu::vector_size.
952 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
955 * include/std/array (__array_traits<T, 0>::operator T*()): Make
956 conversion operator explicit.
957 (array::front): Use size_type as subscript operand.
958 (array::data): Use static_cast to make conversion explicit.
959 * testsuite/23_containers/array/element_access/110139.cc: New
962 2023-06-06 Joseph Faulls <Joseph.Faulls@imgtec.com>
964 * include/bits/locale_classes.tcc: Remove check for
965 codecvt<char8_t, char, mbstate_t> facet.
967 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
969 * src/filesystem/ops-common.h (do_copy_file) [O_CLOEXEC]: Set
970 close-on-exec flag on file descriptors.
972 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
975 * src/filesystem/ops-common.h (do_copy_file): Check for empty
976 files by trying to read a character.
977 * testsuite/27_io/filesystem/operations/copy_file_108178.cc:
980 2023-06-06 Jannik Glückert <jannik.glueckert@gmail.com>
982 * acinclude.m4 (_GLIBCXX_USE_COPY_FILE_RANGE): Define.
983 * config.h.in: Regenerate.
984 * configure: Regenerate.
985 * src/filesystem/ops-common.h (copy_file_copy_file_range):
987 (do_copy_file): Use it.
989 2023-06-06 Jannik Glückert <jannik.glueckert@gmail.com>
991 * acinclude.m4 (_GLIBCXX_HAVE_LSEEK): Define.
992 * config.h.in: Regenerate.
993 * configure: Regenerate.
994 * src/filesystem/ops-common.h (copy_file_sendfile): Define new
995 function for sendfile logic. Loop to support large files. Skip
997 (do_copy_file): Use it.
999 2023-06-04 Jason Merrill <jason@redhat.com>
1002 * libsupc++/eh_call.cc (__cxa_call_terminate): Take void*.
1003 * config/abi/pre/gnu.ver: Add it.
1005 2023-06-02 François Dumont <fdumont@gcc.gnu.org>
1007 * include/parallel/algobase.h: Include <parallel/search.h>.
1009 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
1011 * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc:
1012 Add const to equality operator.
1014 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
1016 * include/std/expected (expected::and_then, expected::or_else)
1017 (expected::transform_error): Use _M_val and _M_unex instead of
1018 calling value() and error(), as per LWG 3938.
1019 (expected::transform): Likewise. Remove incorrect std::move
1020 calls from lvalue overloads.
1021 (expected<void, E>::and_then, expected<void, E>::or_else)
1022 (expected<void, E>::transform): Use _M_unex instead of calling
1024 * testsuite/20_util/expected/lwg3877.cc: Add checks for and_then
1025 and transform, and for std::expected<void, E>.
1026 * testsuite/20_util/expected/lwg3938.cc: New test.
1028 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
1031 * include/bits/stl_vector.h (_Vector_base::_M_invariant):
1033 (vector::size, vector::capacity): Remove calls to _M_invariant.
1034 * include/bits/vector.tcc (vector::_M_fill_assign): Add
1035 optimization hint to reallocating path.
1036 (vector::_M_assign_aux(FwdIter, FwdIter, forward_iterator_tag)):
1038 * testsuite/23_containers/vector/capacity/invariant.cc: Moved
1040 * testsuite/23_containers/vector/modifiers/assign/no_realloc.cc:
1041 ...here. Check assign(FwdIter, FwdIter) too.
1042 * testsuite/23_containers/vector/types/1.cc: Revert addition
1043 of -Wno-stringop-overread option.
1045 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
1047 * doc/xml/manual/evolution.xml: Document removal of implicit
1048 allocator rebinding extensions in strict mode and for C++20.
1049 * doc/html/*: Regenerate.
1051 2023-06-01 Jason Merrill <jason@redhat.com>
1053 * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Don't check
1054 handlers in the cleanup phase.
1056 2023-06-01 Matthias Kretz <m.kretz@gsi.de>
1059 * include/experimental/bits/simd.h (__vectorized_sizeof): With
1060 __have_neon_a32 only single-precision float works (in addition
1063 2023-06-01 François Dumont <fdumont@gcc.gnu.org>
1065 * include/bits/stl_algo.h
1066 (std::__search, std::search(_FwdIt1, _FwdIt1, _FwdIt2, _FwdIt2, _BinPred)): Move...
1067 * include/bits/stl_algobase.h: ...here.
1068 * include/std/functional: Replace <stl_algo.h> include by <stl_algobase.h>.
1069 * include/parallel/algo.h (std::__parallel::search<_FIt1, _FIt2, _BinaryPred>)
1070 (std::__parallel::__search_switch<_FIt1, _FIt2, _BinaryPred, _ItTag1, _ItTag2>):
1072 * include/parallel/algobase.h: ...here.
1073 * include/experimental/functional: Remove <bits/stl_algo.h> and <parallel/algorithm>
1074 includes. Include <bits/stl_algobase.h>.
1076 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
1079 * acinclude.m4 (GLIBCXX_ENABLE_C99): Add separate check for
1080 float_t and double_t and define HAVE_C99_FLT_EVAL_TYPES.
1081 * config.h.in: Regenerate.
1082 * configure: Regenerate.
1083 * include/c_global/cmath (float_t, double_t): Guard using new
1084 _GLIBCXX_HAVE_C99_FLT_EVAL_TYPES macro.
1086 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
1088 * acinclude.m4 (GLIBCXX_ENABLE_C99): Add checks for C99 math
1089 functions and define _GLIBCXX_USE_C99_MATH_FUNCS. Move checks
1090 for C99 rounding functions to here.
1091 (GLIBCXX_CHECK_C99_TR1): Remove checks for C99 rounding
1092 functions from here.
1093 * config.h.in: Regenerate.
1094 * configure: Regenerate.
1095 * include/bits/random.h: Use _GLIBCXX_USE_C99_MATH_FUNCS instead
1096 of _GLIBCXX_USE_C99_MATH_TR1.
1097 * include/bits/random.tcc: Likewise.
1098 * include/c_compatibility/math.h: Likewise.
1099 * include/c_global/cmath: Likewise.
1100 * include/ext/random: Likewise.
1101 * include/ext/random.tcc: Likewise.
1102 * include/std/complex: Likewise.
1103 * testsuite/20_util/from_chars/4.cc: Likewise.
1104 * testsuite/20_util/from_chars/8.cc: Likewise.
1105 * testsuite/26_numerics/complex/proj.cc: Likewise.
1106 * testsuite/26_numerics/headers/cmath/60401.cc: Likewise.
1107 * testsuite/26_numerics/headers/cmath/types_std_c++0x.cc:
1109 * testsuite/lib/libstdc++.exp (check_v3_target_cstdint):
1111 * testsuite/util/testsuite_random.h: Likewise.
1113 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
1115 * include/bits/stl_vector.h (_Vector_base::_M_invariant()): New
1117 (vector::size(), vector::capacity()): Call _M_invariant().
1118 * testsuite/23_containers/vector/capacity/invariant.cc: New test.
1119 * testsuite/23_containers/vector/types/1.cc: Add suppression for
1120 false positive warning (PR110060).
1122 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
1125 * src/c++17/floating_from_chars.cc: Check __FLT128_MANT_DIG__ is
1126 defined before trying to use _Float128.
1128 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
1130 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Fix for 32-bit pointers
1131 to check __INT_PTR_WIDTH__ instead of sizeof(void*).
1132 * configure: Regenerate.
1134 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
1136 * include/bits/unique_lock.h: Include <bits/error_constants.h>
1137 here for std::errc constants.
1138 * include/std/mutex: Do not include <bits/error_constants.h> and
1141 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
1143 * configure.ac: Replace use of -o operator for test.
1144 * configure: Regenerate.
1146 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
1148 * include/std/scoped_allocator (scoped_allocator_adaptor): Add
1149 noexcept to all constructors except the default constructor.
1150 (scoped_allocator_adaptor::inner_allocator): Add noexcept.
1151 (scoped_allocator_adaptor::outer_allocator): Likewise.
1152 * testsuite/20_util/scoped_allocator/noexcept.cc: New test.
1154 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
1157 * include/std/limits (numeric_limits<__float128>): Define.
1158 * testsuite/18_support/numeric_limits/128bit.cc: New test.
1160 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
1162 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Extend logic for avr and
1163 msp430 to all 16-bit targets.
1164 * configure: Regenerate.
1166 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
1169 * src/c++17/floating_from_chars.cc (USE_STRTOF128_FOR_FROM_CHARS):
1170 Only define when USE_STRTOD_FOR_FROM_CHARS is also defined.
1171 (USE_STRTOD_FOR_FROM_CHARS): Do not undefine when long double is
1173 (from_chars(const char*, const char*, double&, chars_format)):
1174 Check __LDBL_MANT_DIG__ == __DBL_MANT_DIG__ here.
1175 (from_chars(const char*, const char*, _Float128&, chars_format))
1176 Only use from_chars_strtod when USE_STRTOD_FOR_FROM_CHARS is
1177 defined, otherwise parse a long double and convert to _Float128.
1179 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
1182 * include/std/iomanip (operator>>(basic_istream&, _Setfill)):
1183 Add deprecated attribute to non-standard overload.
1184 * doc/xml/manual/evolution.xml: Document deprecation.
1185 * doc/html/*: Regenerate.
1186 * testsuite/27_io/manipulators/standard/char/1.cc: Add
1187 dg-warning for expected deprecated warning.
1188 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1189 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
1190 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
1192 2023-05-30 Alexandre Oliva <oliva@adacore.com>
1194 * testsuite/20_util/from_chars/4.cc: Skip long double test06
1196 * testsuite/20_util/to_chars/long_double.cc: Xfail run on
1199 2023-05-30 Matthias Kretz <m.kretz@gsi.de>
1202 * include/experimental/bits/simd.h (to_native): Use int NTTP
1203 as specified in PTS2.
1204 (to_compatible): Likewise. Add missing tag to call mask
1206 * testsuite/experimental/simd/pr109822_cast_functions.cc: New
1209 2023-05-30 Matthias Kretz <m.kretz@gsi.de>
1211 * testsuite/experimental/simd/tests/integer_operators.cc:
1212 Compute expected value differently to avoid getting turned into
1215 2023-05-30 Matthias Kretz <m.kretz@gsi.de>
1217 * testsuite/experimental/simd/tests/operator_cvt.cc: Make long
1218 double <-> (u)long conversion tests conditional on sizeof(long
1219 double) and sizeof(long).
1221 2023-05-26 Matthias Kretz <m.kretz@gsi.de>
1223 * include/experimental/bits/simd_ppc.h (_S_bit_shift_left):
1224 Negative __y is UB, so prefer signed compare.
1226 2023-05-25 Jonathan Wakely <jwakely@redhat.com>
1228 * testsuite/util/testsuite_allocator.h (PointerBase): Add
1229 relational operators.
1231 2023-05-25 Alexandre Oliva <oliva@adacore.com>
1233 * testsuite/20_util/to_chars/long_double.cc: Expect execution
1234 fail on x86-vxworks.
1236 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
1239 * include/experimental/bits/simd.h (__intrinsic_type): If
1240 __ALTIVEC__ is defined, map gnu::vector_size types to their
1241 corresponding __vector T types without losing unsignedness of
1242 integer types. Also prefer long long over long.
1243 * include/experimental/bits/simd_ppc.h (_S_popcount): Cast mask
1244 object to the expected unsigned vector type.
1246 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
1249 * include/experimental/bits/simd.h (__intrinsic_type):
1250 Specialize __intrinsic_type<double, 8> and
1251 __intrinsic_type<double, 16> in any case, but provide the member
1252 type only with __aarch64__.
1254 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
1257 * include/experimental/bits/simd_neon.h (_S_reduce): Add
1258 constexpr and make NEON implementation conditional on
1259 not __builtin_is_constant_evaluated.
1261 2023-05-23 Matthias Kretz <m.kretz@gsi.de>
1264 * include/experimental/bits/simd.h (_SimdWrapper::_M_set):
1265 Avoid vector builtin subscripting in constant expressions.
1266 (resizing_simd_cast): Avoid memcpy if constant_evaluated.
1267 (const_where_expression, where_expression, where)
1268 (__extract_part, simd_mask, _SimdIntOperators, simd): Add either
1269 _GLIBCXX_SIMD_CONSTEXPR (on public APIs), or constexpr (on
1271 * include/experimental/bits/simd_builtin.h (__vector_permute)
1272 (__vector_shuffle, __extract_part, _GnuTraits::_SimdCastType1)
1273 (_GnuTraits::_SimdCastType2, _SimdImplBuiltin)
1274 (_MaskImplBuiltin::_S_store): Add constexpr.
1275 (_CommonImplBuiltin::_S_store_bool_array)
1276 (_SimdImplBuiltin::_S_load, _SimdImplBuiltin::_S_store)
1277 (_SimdImplBuiltin::_S_reduce, _MaskImplBuiltin::_S_load): Add
1278 constant_evaluated case.
1279 * include/experimental/bits/simd_fixed_size.h
1280 (_S_masked_load): Reword comment.
1281 (__tuple_element_meta, __make_meta, _SimdTuple::_M_apply_r)
1282 (_SimdTuple::_M_subscript_read, _SimdTuple::_M_subscript_write)
1283 (__make_simd_tuple, __optimize_simd_tuple, __extract_part)
1284 (__autocvt_to_simd, _Fixed::__traits::_SimdBase)
1285 (_Fixed::__traits::_SimdCastType, _SimdImplFixedSize): Add
1287 (_SimdTuple::operator[], _M_set): Add constexpr and add
1288 constant_evaluated case.
1289 (_MaskImplFixedSize::_S_load): Add constant_evaluated case.
1290 * include/experimental/bits/simd_scalar.h: Add constexpr.
1291 * include/experimental/bits/simd_x86.h (_CommonImplX86): Add
1292 constexpr and add constant_evaluated case.
1293 (_SimdImplX86::_S_equal_to, _S_not_equal_to, _S_less)
1294 (_S_less_equal): Value-initialize to satisfy constexpr
1296 (_MaskImplX86::_S_load): Add constant_evaluated case.
1297 (_MaskImplX86::_S_store): Add constexpr and constant_evaluated
1298 case. Value-initialize local variables.
1299 (_MaskImplX86::_S_logical_and, _S_logical_or, _S_bit_not)
1300 (_S_bit_and, _S_bit_or, _S_bit_xor): Add constant_evaluated
1302 * testsuite/experimental/simd/pr109261_constexpr_simd.cc: New
1305 2023-05-22 Matthias Kretz <m.kretz@gsi.de>
1307 * include/experimental/bits/simd_builtin.h (_S_fpclassify): Move
1308 __infn into #ifdef'ed block.
1309 * testsuite/experimental/simd/tests/fpclassify.cc: Declare
1310 constants only when used.
1311 * testsuite/experimental/simd/tests/frexp.cc: Likewise.
1312 * testsuite/experimental/simd/tests/logarithm.cc: Likewise.
1313 * testsuite/experimental/simd/tests/trunc_ceil_floor.cc:
1315 * testsuite/experimental/simd/tests/ldexp_scalbn_scalbln_modf.cc:
1316 Move totest and expect1 into #ifdef'ed block.
1318 2023-05-19 Gerald Pfeifer <gerald@pfeifer.com>
1320 * doc/xml/manual/strings.xml: Move lafstern.org reference to https.
1321 * doc/html/manual/strings.html: Regenerate.
1323 2023-05-17 Jakub Jelinek <jakub@redhat.com>
1326 * testsuite/26_numerics/headers/cmath/constexpr_std_c++23.cc: New test.
1328 2023-05-17 Jakub Jelinek <jakub@redhat.com>
1331 * include/c_global/cmath (atan2, fmod, pow): Move
1332 __gnu_cxx::__promote_2 using templates after _Float{16,32,64,128} and
1333 __gnu_cxx::__bfloat16_t overloads.
1334 (copysign, fdim, fmax, fmin, hypot, nextafter, remainder, remquo):
1336 (fma): Move __gnu_cxx::__promote_3 using template after
1337 _Float{16,32,64,128} and __gnu_cxx::__bfloat16_t overloads.
1339 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
1341 * testsuite/18_support/headers/limits/synopsis.cc: Uncomment
1342 checks for float_round_style and float_denorm_style.
1344 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
1346 * include/bits/c++config: Add system_header pragma.
1348 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
1350 * include/std/expected (expected::and_then, expected::or_else)
1351 (expected::transform, expected::transform_error): Fix exception
1352 specifications as per LWG 3877.
1353 (expected<void, E>::and_then, expected<void, E>::transform):
1355 * testsuite/20_util/expected/lwg3877.cc: New test.
1357 2023-05-17 Ken Matsui <kmatsui@cs.washington.edu>
1359 * include/std/type_traits: Use __bool_constant instead of
1362 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
1364 * configure: Regenerate.
1366 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
1369 * acinclude.m4 (GLIBCXX_CHECK_ALIGNAS_CACHELINE): Define.
1370 * config.h.in: Regenerate.
1371 * configure: Regenerate.
1372 * configure.ac: Use GLIBCXX_CHECK_ALIGNAS_CACHELINE.
1373 * src/c++11/shared_ptr.cc (__gnu_internal::get_mutex): Do not
1374 align lock table if not supported. use __GCC_DESTRUCTIVE_SIZE
1375 instead of hardcoded 64.
1377 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
1379 * acinclude.m4 (GLIBCXX_USE_C99): Check for isblank in C++11
1380 mode and define _GLIBCXX_USE_C99_CTYPE. Check for <fenv.h>
1381 functions in C++11 mode and define _GLIBCXX_USE_C99_FENV.
1382 * config.h.in: Regenerate.
1383 * configure: Regenerate.
1384 * include/c_compatibility/fenv.h: Check _GLIBCXX_USE_C99_FENV
1385 instead of _GLIBCXX_USE_C99_FENV_TR1.
1386 * include/c_global/cfenv: Likewise.
1387 * include/c_global/cctype: Check _GLIBCXX_USE_C99_CTYPE instead
1388 of _GLIBCXX_USE_C99_CTYPE_TR1.
1390 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
1392 * acinclude.m4 (GLIBCXX_USE_C99): Check for <stdint.h> types in
1393 C++11 mode and define _GLIBCXX_USE_C99_STDINT. Check for
1394 <inttypes.h> features in C++11 mode and define
1395 _GLIBCXX_USE_C99_INTTYPES and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T.
1396 * config.h.in: Regenerate.
1397 * configure: Regenerate.
1398 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macros.
1399 * include/bits/chrono.h: Check _GLIBCXX_USE_C99_STDINT instead
1400 of _GLIBCXX_USE_C99_STDINT_TR1.
1401 * include/c_compatibility/inttypes.h: Check
1402 _GLIBCXX_USE_C99_INTTYPES and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T
1403 instead of _GLIBCXX_USE_C99_INTTYPES_TR1 and
1404 _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
1405 * include/c_compatibility/stdatomic.h: Check
1406 _GLIBCXX_USE_C99_STDINT instead of _GLIBCXX_USE_C99_STDINT_TR1.
1407 * include/c_compatibility/stdint.h: Likewise.
1408 * include/c_global/cinttypes: Check _GLIBCXX_USE_C99_INTTYPES
1409 and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T instead of
1410 _GLIBCXX_USE_C99_INTTYPES_TR1 and
1411 _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
1412 * include/c_global/cstdint: Check _GLIBCXX_USE_C99_STDINT
1413 instead of _GLIBCXX_USE_C99_STDINT_TR1.
1414 * include/std/atomic: Likewise.
1415 * src/c++11/cow-stdexcept.cc: Likewise.
1416 * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc:
1418 * testsuite/lib/libstdc++.exp (check_v3_target_cstdint):
1421 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
1423 * acinclude.m4 (GLIBCXX_USE_C99): Check for complex inverse trig
1424 functions in C++11 mode and define _GLIBCXX_USE_C99_COMPLEX_ARC.
1425 * config.h.in: Regenerate.
1426 * configure: Regenerate.
1427 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macro.
1428 * include/std/complex: Check _GLIBCXX_USE_C99_COMPLEX_ARC
1429 instead of _GLIBCXX_USE_C99_COMPLEX_TR1.
1431 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
1433 * testsuite/ext/debug_allocator/check_deallocate_null.cc: Add
1434 assertion to ensure expected exception is throw.
1436 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
1438 * testsuite/libstdc++-prettyprinters/chrono.cc: Only test
1439 printer for chrono::zoned_time for cx11 ABI and tzdb effective
1442 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
1444 * acinclude.m4 (GLIBCXX_CHECK_PTHREAD_MUTEX_CLOCKLOCK): Define
1445 _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK in terms of _GLIBCXX_TSAN.
1446 * configure: Regenerate.
1448 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
1450 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Use a non-null pointer
1451 to check for nan, nanf, and nanl.
1452 * configure: Regenerate.
1454 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
1456 * include/bits/char_traits.h (char_traits<char16_t>): Do not
1457 depend on _GLIBCXX_USE_C99_STDINT_TR1.
1458 (char_traits<char32_t>): Likewise.
1459 * include/experimental/source_location: Likewise.
1461 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
1463 * include/std/atomic (atomic_int_least8_t, atomic_uint_least8_t)
1464 (atomic_int_least16_t, atomic_uint_least16_t)
1465 (atomic_int_least32_t, atomic_uint_least32_t)
1466 (atomic_int_least64_t, atomic_uint_least64_t)
1467 (atomic_int_fast16_t, atomic_uint_fast16_t)
1468 (atomic_int_fast32_t, atomic_uint_fast32_t)
1469 (atomic_int_fast64_t, atomic_uint_fast64_t)
1470 (atomic_intmax_t, atomic_uintmax_t): Define unconditionally.
1471 * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc: Adjust.
1473 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
1475 * include/bits/algorithmfwd.h (shuffle): Do not depend on
1476 _GLIBCXX_USE_C99_STDINT_TR1.
1477 * include/bits/ranges_algo.h (shuffle): Likewise.
1478 * include/bits/stl_algo.h (shuffle): Likewise.
1479 * include/ext/random: Likewise.
1480 * include/ext/throw_allocator.h (random_condition): Likewise.
1481 * include/std/random: Likewise.
1482 * src/c++11/cow-string-inst.cc: Likewise.
1483 * src/c++11/random.cc: Likewise.
1485 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
1487 * testsuite/experimental/feat-cxx14.cc: Remove dependency on
1488 _GLIBCXX_USE_C99_STDINT_TR1.
1490 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
1492 * testsuite/22_locale/locale/cons/unicode.cc: Remove dependency
1493 on _GLIBCXX_USE_C99_STDINT_TR1.
1495 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
1497 * testsuite/21_strings/basic_string_view/typedefs.cc: Remove
1498 dependency on _GLIBCXX_USE_C99_STDINT_TR1.
1499 * testsuite/experimental/string_view/typedefs.cc: Likewise.
1501 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
1503 * src/c++17/floating_from_chars.cc [USE_STRTOD_FOR_FROM_CHARS]
1504 (auto_locale, auto_ferounding): New class types.
1505 (from_chars_impl): Use auto_locale and auto_ferounding.
1507 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
1510 * include/std/chrono (hh_mm_ss::__fits): Remove variable
1512 (hh_mm_ss::__subseconds): Remove __fits from constraints.
1513 * testsuite/std/time/hh_mm_ss/109772.cc: New test.
1514 * testsuite/std/time/hh_mm_ss/1.cc: Adjust expected size for
1515 hh_mm_ss<duration<int, std::pico>>.
1517 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
1519 * config/abi/pre/gnu.ver: Export basic_string::_S_allocate.
1520 * include/bits/basic_ios.h: Add static assertion checking
1521 traits_type::value_type.
1522 * include/bits/basic_string.h: Likewise. Do not rebind
1523 allocator, and add static assertion checking its value_type.
1524 (basic_string::_Alloc_traits_impl): Remove class template.
1525 (basic_string::_S_allocate): New static member function.
1526 (basic_string::assign): Use _S_allocate.
1527 * include/bits/basic_string.tcc (basic_string::_M_create)
1528 (basic_string::reserve, basic_string::_M_replace): Likewise.
1529 * testsuite/21_strings/basic_string/requirements/explicit_instantiation/debug.cc:
1530 Disable for C++20 and later.
1531 * testsuite/21_strings/basic_string/requirements/explicit_instantiation/int.cc:
1534 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
1537 * include/bits/std_abs.h (abs(__float128)): Handle negative NaN
1538 and negative zero correctly.
1539 * testsuite/26_numerics/headers/cmath/109758.cc: New test.
1541 2023-05-10 François Dumont <fdumont@gcc.gnu.org>
1543 * include/bits/hashtable_policy.h
1544 (_NodeBuilder<>::_S_build): Use __node_ptr.
1545 (_ReuseOrAllocNode<>): Use __node_ptr in place of __node_type*.
1546 (_AllocNode<>): Likewise.
1547 (_Equality<>::_M_equal): Remove const_iterator usages. Only preserved
1548 to call std::is_permutation in the non-unique key implementation.
1549 * include/bits/hashtable.h (_Hashtable<>::_M_update_begin()): Capture
1551 (_Hashtable<>::_M_bucket_begin(size_type)): Implement implicitly inline.
1552 (_Hashtable<>::_M_insert_bucket_begin): Likewise.
1553 (_Hashtable<>::_M_remove_bucket_begin): Likewise.
1554 (_Hashtable<>::_M_compute_hash_code): Use __node_ptr rather than
1556 (_Hashtable<>::find): Likewise.
1557 (_Hashtable<>::_M_emplace): Likewise.
1558 (_Hashtable<>::_M_insert_unique): Likewise.
1560 2023-05-09 Jonathan Wakely <jwakely@redhat.com>
1562 * python/libstdcxx/v6/printers.py (StdChronoDurationPrinter):
1563 Print floating-point durations correctly.
1564 (StdChronoTimePointPrinter): Support printing only the value,
1565 not the type name. Uncomment handling for known clocks.
1566 (StdChronoZonedTimePrinter): Remove type names from output.
1567 (StdChronoCalendarPrinter): Fix hh_mm_ss member access.
1568 (StdChronoTimeZonePrinter): Add equals sign to output.
1569 * testsuite/libstdc++-prettyprinters/chrono.cc: New test.
1571 2023-05-05 Alexandre Oliva <oliva@adacore.com>
1573 * testsuite/20_util/from_chars/4.cc: Skip long double test06
1575 * testsuite/20_util/to_chars/long_double.cc: Xfail run on
1578 2023-05-04 Jonathan Wakely <jwakely@redhat.com>
1580 * doc/xml/manual/abi.xml (abi.versioning.history): Document
1581 libstdc++.so.6.0.32 and GLIBCXX_3.4.32 version.
1582 * doc/html/manual/abi.html: Regenerate.
1584 2023-05-04 Florian Weimer <fweimer@redhat.com>
1586 * doc/xml/manual/abi.xml (abi.versioning.history): Add
1587 GCC_7.0.0, GCC_9.0.0, GCC_11.0, GCC_12.0.0, GCC_13.0.0 for
1590 2023-05-03 Jakub Jelinek <jakub@redhat.com>
1592 * src/c++17/floating_from_chars.cc
1593 (_ZSt10from_charsPKcS0_RDF128_St12chars_format): New alias to
1594 _ZSt10from_charsPKcS0_Ru9__ieee128St12chars_format.
1595 * src/c++17/floating_to_chars.cc (_ZSt8to_charsPcS_DF128_): New alias to
1596 _ZSt8to_charsPcS_u9__ieee128.
1597 (_ZSt8to_charsPcS_DF128_St12chars_format): New alias to
1598 _ZSt8to_charsPcS_u9__ieee128St12chars_format.
1599 (_ZSt8to_charsPcS_DF128_St12chars_formati): New alias to
1600 _ZSt8to_charsPcS_u9__ieee128St12chars_formati.
1601 * config/abi/post/powerpc64le-linux-gnu/baseline_symbols.txt: Updated.
1603 2023-05-03 Jakub Jelinek <jakub@redhat.com>
1605 * configure.host (abi_baseline_pair): Use powerpc64le-linux-gnu
1606 rather than powerpc64-linux-gnu for powerpc64le*-linux*.
1607 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Remove
1608 _ZTI*DF128_, _ZTI*DF64x symbols and symbols in
1609 GLIBCXX_IEEE128_3.4.{29,30,31} and CXXABI_IEEE128_1.3.13 symbol
1611 * config/abi/post/powerpc64le-linux-gnu/baseline_symbols.txt: New
1614 2023-05-03 Kefu Chai <kefu.chai@scylladb.com>
1615 Jonathan Wakely <jwakely@redhat.com>
1618 * include/bits/basic_string.h (basic_string(Iter, Iter, Alloc)):
1619 Initialize _M_string_length.
1621 2023-05-02 Jakub Jelinek <jakub@redhat.com>
1623 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
1624 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
1625 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
1626 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
1627 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
1628 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
1629 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
1630 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1632 2023-05-02 Jakub Jelinek <jakub@redhat.com>
1635 * src/c++98/ios_init.cc: Add #pragma GCC diagnostic ignored for
1638 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
1640 * include/bits/random.h (gamma_distribution): Add to the right
1642 (discrete_distribution, piecewise_constant_distribution)
1643 (piecewise_linear_distribution): Create a new doxygen group and
1644 fix the incomplete doxygen comments.
1645 * include/bits/uniform_int_dist.h (uniform_int_distribution):
1646 Add to doxygen group.
1648 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
1650 * include/bits/uses_allocator.h: Add missing @file comment.
1651 * include/bits/regex.tcc: Remove stray doxygen comments.
1652 * include/experimental/memory_resource: Likewise.
1653 * include/std/bit: Tweak doxygen @cond comments.
1654 * include/std/expected: Likewise.
1655 * include/std/numbers: Likewise.
1657 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
1659 * doc/doxygen/user.cfg.in (STRIP_FROM_PATH): Remove prefixes
1662 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
1664 * include/bits/move.h: Simplify opening/closing namespace std.
1666 2023-04-28 Jakub Jelinek <jakub@redhat.com>
1669 * config/abi/pre/gnu.ver (GLIBCXX_3.4.32): Export
1670 _ZSt21ios_base_library_initv.
1671 * testsuite/util/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.32
1672 symver and make it the latestp.
1673 * src/c++98/ios_init.cc (ios_base_library_init): New alias.
1674 * acinclude.m4 (libtool_VERSION): Change to 6:32:0.
1675 * include/std/iostream: If init_priority attribute is supported
1676 and _GLIBCXX_SYMVER_GNU, force undefined _ZSt21ios_base_library_initv
1677 symbol into the object.
1678 * configure: Regenerated.
1680 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
1682 * include/bits/mofunc_impl.h: Fix typo in doxygen comment.
1683 * include/std/format: Likewise.
1685 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
1687 * doc/doxygen/user.cfg.in (FORMULA_TRANSPARENT, DOT_FONTNAME)
1688 (DOT_FONTSIZE, DOT_TRANSPARENT): Remove obsolete options.
1690 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
1692 * doc/doxygen/user.cfg.in (SOURCE_BROWSER): Only set to YES for
1694 * include/bits/gslice_array.h (_DEFINE_VALARRAY_OPERATOR): Omit
1696 * include/bits/indirect_array.h (_DEFINE_VALARRAY_OPERATOR):
1698 * include/bits/mask_array.h (_DEFINE_VALARRAY_OPERATOR):
1700 * include/bits/slice_array.h (_DEFINE_VALARRAY_OPERATOR):
1702 * include/std/valarray (_DEFINE_VALARRAY_UNARY_OPERATOR)
1703 (_DEFINE_VALARRAY_AUGMENTED_ASSIGNMENT)
1704 (_DEFINE_VALARRAY_EXPR_AUGMENTED_ASSIGNMENT)
1705 (_DEFINE_BINARY_OPERATOR): Likewise.
1707 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
1709 * include/bits/memory_resource.h: Improve doxygen comments.
1710 * include/std/memory_resource: Likewise.
1712 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
1715 * include/bits/basic_string.h: Improve doxygen comments.
1716 * include/bits/cow_string.h: Likewise.
1717 * include/bits/forward_list.h: Likewise.
1718 * include/bits/fs_dir.h: Likewise.
1719 * include/bits/fs_path.h: Likewise.
1720 * include/bits/quoted_string.h: Likewise.
1721 * include/bits/stl_bvector.h: Likewise.
1722 * include/bits/stl_map.h: Likewise.
1723 * include/bits/stl_multimap.h: Likewise.
1724 * include/bits/stl_multiset.h: Likewise.
1725 * include/bits/stl_set.h: Likewise.
1726 * include/bits/stl_vector.h: Likewise.
1727 * include/bits/unordered_map.h: Likewise.
1728 * include/bits/unordered_set.h: Likewise.
1729 * include/std/filesystem: Likewise.
1730 * include/std/iomanip: Likewise.
1732 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
1735 * src/c++11/random.cc (__throw_syserr): New function.
1736 (random_device::_M_init, random_device::_M_init_pretr1): Use new
1737 function for bad tokens.
1738 (random_device::_M_getval): Use new function for read errors.
1739 * testsuite/util/testsuite_random.h (random_device_available):
1740 Change catch handler to use std::system_error.
1742 2023-04-24 Patrick Palka <ppalka@redhat.com>
1744 * include/bits/max_size_type.h (__max_diff_type::operator>>=):
1745 Fix propagation of sign bit.
1746 * testsuite/std/ranges/iota/max_size_type.cc: Avoid using the
1747 non-standard 'signed typedef-name'. Add some compile-time tests
1748 for right-shifting a negative __max_diff_type value by more than
1751 2023-04-19 Patrick Palka <ppalka@redhat.com>
1752 Jonathan Wakely <jwakely@redhat.com>
1755 * include/bits/utility.h (_Nth_type): Conditionally define in
1756 terms of __type_pack_element if available.
1757 * testsuite/20_util/tuple/element_access/get_neg.cc: Prune
1758 additional errors from the new built-in.
1760 2023-04-19 Jonathan Wakely <jwakely@redhat.com>
1763 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
1766 * src/Makefile.am: Move globals_io.cc to here.
1767 * src/Makefile.in: Regenerate.
1768 * src/c++98/Makefile.am: Remove globals_io.cc from here.
1769 * src/c++98/Makefile.in: Regenerate.
1770 * src/c++98/globals_io.cc [_GLIBCXX_SYMVER_GNU] (cin): Adjust
1771 symbol name and then export with GLIBCXX_3.4.31 symver.
1772 (cout, cerr, clog, wcin, wcout, wcerr, wclog): Likewise.
1773 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt:
1775 * config/abi/post/i486-linux-gnu/baseline_symbols.txt:
1777 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt:
1779 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
1781 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
1783 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
1785 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt:
1787 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt:
1789 * config/abi/pre/gnu.ver: Add iostream objects to new symver.
1791 2023-04-19 Jonathan Wakely <jwakely@redhat.com>
1794 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
1797 * config/abi/pre/gnu.ver: Fix preprocessor condition.
1799 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
1801 * doc/xml/manual/extensions.xml: Fix example to declare and
1802 qualify std::free, and use NULL instead of 0.
1803 * doc/html/manual/ext_demangling.html: Regenerate.
1804 * libsupc++/cxxabi.h: Adjust doxygen comments.
1806 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
1809 * config/abi/pre/gnu.ver: Fix preprocessor condition.
1811 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
1814 * src/Makefile.am: Move globals_io.cc to here.
1815 * src/Makefile.in: Regenerate.
1816 * src/c++98/Makefile.am: Remove globals_io.cc from here.
1817 * src/c++98/Makefile.in: Regenerate.
1818 * src/c++98/globals_io.cc [_GLIBCXX_SYMVER_GNU] (cin): Adjust
1819 symbol name and then export with GLIBCXX_3.4.31 symver.
1820 (cout, cerr, clog, wcin, wcout, wcerr, wclog): Likewise.
1821 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt:
1823 * config/abi/post/i486-linux-gnu/baseline_symbols.txt:
1825 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt:
1827 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
1829 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
1831 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
1833 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt:
1835 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt:
1837 * config/abi/pre/gnu.ver: Add iostream objects to new symver.
1839 2023-04-18 Patrick Palka <ppalka@redhat.com>
1842 * include/bits/ranges_cmp.h (__cpp_lib_ranges): Bump value
1844 * include/std/ranges (range_adaptor_closure): Define for C++23.
1845 * include/std/version (__cpp_lib_ranges): Bump value for
1847 * testsuite/std/ranges/version_c++23.cc: Bump expected value
1848 of __cpp_lib_ranges.
1849 * testsuite/std/ranges/range_adaptor_closure.cc: New test.
1851 2023-04-18 Patrick Palka <ppalka@redhat.com>
1853 * include/bits/ranges_algo.h (__cpp_lib_ranges_contains):
1855 (__cpp_lib_ranges_iota): Likewise.
1856 (__cpp_lib_ranges_find_last): Likewise.
1857 (__cpp_lib_fold): Rename to ...
1858 (__cpp_lib_ranges_fold): ... this.
1859 * include/std/version: As above.
1860 * testsuite/25_algorithms/fold_left/1.cc: Adjust after
1861 renaming __cpp_lib_fold.
1862 * testsuite/std/ranges/version_c++23.cc: Verify values
1863 of the above feature-test macros.
1865 2023-04-18 Patrick Palka <ppalka@redhat.com>
1868 * include/std/ranges (views::_AsConst::operator()): Add
1869 missing const to constant_range test.
1870 * testsuite/std/ranges/adaptors/as_const/1.cc (test02):
1871 Improve formatting. Adjust expected type of v2.
1874 2023-04-14 Patrick Palka <ppalka@redhat.com>
1876 * include/bits/ranges_base.h (const_iterator_t): Define for C++23.
1877 (const_sentinel_t): Likewise.
1878 (range_const_reference_t): Likewise.
1879 (constant_range): Likewise.
1880 (__cust_access::__possibly_const_range): Likewise, replacing ...
1881 (__cust_access::__as_const): ... this.
1882 (__cust_access::_CBegin::operator()): Redefine for C++23 as per P2278R4.
1883 (__cust_access::_CEnd::operator()): Likewise.
1884 (__cust_access::_CRBegin::operator()): Likewise.
1885 (__cust_access::_CREnd::operator()): Likewise.
1886 (__cust_access::_CData::operator()): Likewise.
1887 * include/bits/ranges_util.h (ranges::__detail::__different_from):
1888 Make it an alias of std::__detail::__different_from.
1889 (view_interface::cbegin): Define for C++23.
1890 (view_interface::cend): Likewise.
1891 * include/bits/stl_iterator.h (__detail::__different_from): Define.
1892 (iter_const_reference_t): Define for C++23.
1893 (__detail::__constant_iterator): Likewise.
1894 (__detail::__is_const_iterator): Likewise.
1895 (__detail::__not_a_const_iterator): Likewise.
1896 (__detail::__iter_const_rvalue_reference_t): Likewise.
1897 (__detail::__basic_const_iter_cat):: Likewise.
1898 (const_iterator): Likewise.
1899 (__detail::__const_sentinel): Likewise.
1900 (const_sentinel): Likewise.
1901 (basic_const_iterator): Likewise.
1902 (common_type<basic_const_iterator<_Tp>, _Up>): Likewise.
1903 (common_type<_Up, basic_const_iterator<_Tp>>): Likewise.
1904 (common_type<basic_const_iterator<_Tp>, basic_const_iterator<Up>>):
1906 (make_const_iterator): Define for C++23.
1907 (make_const_sentinel): Likewise.
1908 * include/std/ranges (__cpp_lib_ranges_as_const): Likewise.
1909 (as_const_view): Likewise.
1910 (enable_borrowed_range<as_const_view>): Likewise.
1911 (views::__detail::__is_ref_view): Likewise.
1912 (views::__detail::__can_is_const_view): Likewise.
1913 (views::_AsConst, views::as_const): Likewise.
1914 * include/std/span (span::const_iterator): Likewise.
1915 (span::const_reverse_iterator): Likewise.
1916 (span::cbegin): Likewise.
1917 (span::cend): Likewise.
1918 (span::crbegin): Likewise.
1919 (span::crend): Likewise.
1920 * include/std/version (__cpp_lib_ranges_as_const): Likewise.
1921 * testsuite/std/ranges/adaptors/join.cc (test06): Adjust to
1922 behave independently of C++20 vs C++23.
1923 * testsuite/std/ranges/version_c++23.cc: Verify value of
1924 __cpp_lib_ranges_as_const macro.
1925 * testsuite/24_iterators/const_iterator/1.cc: New test.
1926 * testsuite/std/ranges/adaptors/as_const/1.cc: New test.
1928 2023-04-14 Patrick Palka <ppalka@redhat.com>
1930 * include/bits/ranges_base.h (__cust_access::__as_const)
1931 (__cust_access::_CBegin, __cust::cbegin)
1932 (__cust_access::_CEnd, __cust::cend)
1933 (__cust_access::_CRBegin, __cust::crbegin)
1934 (__cust_access::_CREnd, __cust::crend)
1935 (__cust_access::_CData, __cust::cdata): Move down definitions to
1936 shortly after the definition of input_range.
1938 2023-04-14 Patrick Palka <ppalka@redhat.com>
1940 * include/bits/ranges_algo.h: Include <optional> for C++23.
1941 (__cpp_lib_fold): Define for C++23.
1942 (in_value_result): Likewise.
1943 (__detail::__flipped): Likewise.
1944 (__detail::__indirectly_binary_left_foldable_impl): Likewise.
1945 (__detail::__indirectly_binary_left_foldable): Likewise.
1946 (___detail:__indirectly_binary_right_foldable): Likewise.
1947 (fold_left_with_iter_result): Likewise.
1948 (__fold_left_with_iter_fn, fold_left_with_iter): Likewise.
1949 (__fold_left_fn, fold_left): Likewise.
1950 (__fold_left_first_with_iter_fn, fold_left_first_with_iter):
1952 (__fold_left_first_fn, fold_left_first): Likewise.
1953 (__fold_right_fn, fold_right): Likewise.
1954 (__fold_right_last_fn, fold_right_last): Likewise.
1955 * include/std/version (__cpp_lib_fold): Likewise.
1956 * testsuite/25_algorithms/fold_left/1.cc: New test.
1957 * testsuite/25_algorithms/fold_right/1.cc: New test.
1959 2023-04-14 Jonathan Wakely <jwakely@redhat.com>
1961 * include/std/format (formatter): Add comment to deleted default
1962 constructor of primary template.
1963 (_Checking_scanner): Add static_assert.
1965 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
1967 * doc/xml/manual/using.xml: Document libstdc++exp.a library.
1968 * doc/html/*: Regenerate.
1970 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
1972 * testsuite/17_intro/names.cc [_AIX]: Do not define policy.
1973 * testsuite/19_diagnostics/error_code/cons/lwg3629.cc: Rename
1974 namespace to avoid clashing with libc struct.
1975 * testsuite/19_diagnostics/error_condition/cons/lwg3629.cc:
1977 * testsuite/23_containers/unordered_map/96088.cc: Skip on AIX.
1978 * testsuite/23_containers/unordered_multimap/96088.cc: Likewise.
1979 * testsuite/23_containers/unordered_multiset/96088.cc: Likewise.
1980 * testsuite/23_containers/unordered_set/96088.cc: Likewise.
1981 * testsuite/experimental/synchronized_value.cc: Require gthreads
1982 and add missing option for pthreads targets.
1984 2023-04-12 Patrick Palka <ppalka@redhat.com>
1986 * include/std/ranges (__cpp_lib_ranges_enumerate): Define
1988 (__detail::__range_with_movable_reference): Likewise.
1989 (enumerate_view): Likewise.
1990 (enumerate_view::_Iterator): Likewise.
1991 (enumerate_view::_Sentinel): Likewise.
1992 (views::__detail::__can_enumerate_view): Likewise.
1993 (views::_Enumerate, views::enumerate): Likewise.
1994 * include/std/version (__cpp_lib_ranges_enumerate): Likewise.
1995 * testsuite/std/ranges/version_c++23.cc: Verify value of
1996 __cpp_lib_ranges_enumerate.
1997 * testsuite/std/ranges/adaptors/enumerate/1.cc: New test.
1999 2023-04-12 Patrick Palka <ppalka@redhat.com>
2001 * include/std/ranges (lazy_split_view::_OuterIter::_OuterIter):
2002 Propagate _M_trailing_empty in the const-converting constructor
2004 * testsuite/std/ranges/adaptors/adjacent/1.cc (test04): Correct
2006 * testsuite/std/ranges/adaptors/lazy_split.cc (test12): New test.
2008 2023-04-12 Patrick Palka <ppalka@redhat.com>
2010 * src/c++17/floating_from_chars.cc: Include <algorithm>,
2011 <iterator>, <limits> and <cstdint>.
2013 2023-04-12 Patrick Palka <ppalka@redhat.com>
2016 * include/std/ranges (chunk_by_view::_M_find_next): Generalize
2017 parameter types of the lambda wrapper passed to adjacent_find.
2018 (chunk_by_view::_M_find_prev): Likewise.
2019 * testsuite/std/ranges/adaptors/chunk_by/1.cc (test04, test05):
2022 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
2025 * include/experimental/internet (basic_endpoint::basic_endpoint()):
2026 Ensure that the required union members are active. Only define
2027 as constexpr for C++20 and later.
2028 (basic_endpoint::basic_endpoint(const protocol_type&, port_type)):
2030 * testsuite/experimental/net/internet/endpoint/cons.cc: Only
2031 check constexpr default constructor for C++20 and later.
2032 * testsuite/experimental/net/internet/endpoint/extensible.cc:
2035 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
2037 * src/c++20/tzdata.zi: Import new file from 2023c release.
2039 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
2041 * include/precompiled/stdc++.h (C++17): Don't double-include
2042 <charconv>, once with wrong conditions.
2043 * testsuite/18_support/96817.cc: Require hosted.
2044 * testsuite/18_support/bad_exception/59392.cc: Ditto.
2045 * testsuite/20_util/scoped_allocator/108952.cc: Ditto.
2046 * testsuite/20_util/uses_allocator/lwg3527.cc: Ditto.
2047 * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
2050 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
2052 * include/bits/c++config: When __STDC_HOSTED__ is zero,
2053 disable _GLIBCXX_DEBUG and, if it was set, enable
2054 _GLIBCXX_ASSERTIONS.
2055 * testsuite/lib/libstdc++.exp (check_v3_target_debug_mode):
2056 Include <bits/c++config.h> when determining whether debug is
2057 set, in order to inherit the logic from above
2059 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
2061 * testsuite/17_intro/versionconflict.cc: New test.
2062 * include/std/version: Allow disabling the system_header pragma
2063 via _GLIBCXX_TESTING_SYSHDR.
2065 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
2067 * include/bits/unique_ptr.h (__cpp_lib_constexpr_memory):
2068 Synchronize the definition block with...
2069 * include/bits/ptr_traits.h (__cpp_lib_constexpr_memory):
2070 ... this one here. Also define the 202202L value, rather than
2071 leaving it up to purely unique_ptr.h, so that the value is
2072 synchronized across all headers.
2073 (__gnu_debug::_Safe_iterator_base): Move into new conditional
2075 * include/std/memory (__cpp_lib_atomic_value_initialization):
2076 Define on freestanding under the same conditions as in
2078 * include/std/version (__cpp_lib_robust_nonmodifying_seq_ops):
2079 Also define on freestanding.
2080 (__cpp_lib_to_chars): Ditto.
2081 (__cpp_lib_gcd): Ditto.
2082 (__cpp_lib_gcd_lcm): Ditto.
2083 (__cpp_lib_raw_memory_algorithms): Ditto.
2084 (__cpp_lib_array_constexpr): Ditto.
2085 (__cpp_lib_nonmember_container_access): Ditto.
2086 (__cpp_lib_clamp): Ditto.
2087 (__cpp_lib_constexpr_char_traits): Ditto.
2088 (__cpp_lib_constexpr_string): Ditto.
2089 (__cpp_lib_sample): Ditto.
2090 (__cpp_lib_lcm): Ditto.
2091 (__cpp_lib_constexpr_iterator): Ditto.
2092 (__cpp_lib_constexpr_char_traits): Ditto.
2093 (__cpp_lib_interpolate): Ditto.
2094 (__cpp_lib_constexpr_utility): Ditto.
2095 (__cpp_lib_shift): Ditto.
2096 (__cpp_lib_ranges): Ditto.
2097 (__cpp_lib_move_iterator_concept): Ditto.
2098 (__cpp_lib_constexpr_numeric): Ditto.
2099 (__cpp_lib_constexpr_functional): Ditto.
2100 (__cpp_lib_constexpr_algorithms): Ditto.
2101 (__cpp_lib_constexpr_tuple): Ditto.
2102 (__cpp_lib_constexpr_memory): Ditto.
2104 2023-04-05 John David Anglin <danglin@gcc.gnu.org>
2106 * testsuite/22_locale/locale/cons/12658_thread-2.cc: Double
2107 timeout factor on hppa*-*-*.
2109 2023-04-05 Jonathan Wakely <jwakely@redhat.com>
2111 * include/bits/regex.h (sub_match::swap): New function.
2112 * testsuite/28_regex/sub_match/lwg3204.cc: New test.
2114 2023-04-04 Jonathan Wakely <jwakely@redhat.com>
2116 * doc/xml/manual/extensions.xml: Remove std::bad_exception from
2118 * doc/html/manual/ext_demangling.html: Regenerate.
2120 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
2122 PR tree-optimization/107087
2123 * include/bits/cow_string.h (basic_string::size()): Add
2124 optimizer hint that _S_empty_rep()._M_length is always zero.
2125 (basic_string::length()): Call size().
2127 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
2130 * include/std/stop_token (_Stop_state_ptr(const stop_source&)):
2131 Add attribute access with access-mode 'none'.
2132 * testsuite/30_threads/stop_token/stop_source/109339.cc: New test.
2134 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
2136 * include/experimental/internet (ip::basic_endpoint::_M_if_v6):
2137 Revert change from member function to data member. Fix for
2138 constant evaluation by detecting which union member is active.
2139 (ip::basic_endpoint::resize): Revert changes to update _M_is_v6
2142 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
2145 * testsuite/20_util/optional/monadic/pr109340.cc: Moved to...
2146 * testsuite/20_util/optional/monadic/pr109242.cc: ...here.
2148 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
2150 * include/experimental/internet (ip::make_address): Implement
2152 (ip::address_v4::broadcast()): Avoid undefined shift.
2153 (ip::basic_endpoint): Fix member functions for constexpr.
2154 (ip::basic_endpoint::_M_is_v6): Replace member function with
2155 data member, adjust member functions using it.
2156 (ip::basic_endpoint::resize): Update _M_is_v6 based on sockaddr
2158 * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
2159 constexpr checks to work in C++14.
2160 * testsuite/experimental/net/internet/address/v4/creation.cc:
2162 * testsuite/experimental/net/internet/endpoint/cons.cc:
2164 * testsuite/experimental/net/internet/network/v4/cons.cc:
2166 * testsuite/experimental/net/internet/network/v4/members.cc:
2168 * testsuite/experimental/net/internet/endpoint/extensible.cc: New test.
2170 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
2172 * include/std/expected (expected::value() &): Use const lvalue
2173 for unex member passed to bad_expected_access constructor, as
2176 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
2179 * include/std/expected (expected::transform): Use
2180 std::remove_cv_t instead of std::remove_cvref_t.
2181 (expected::transform_error): Likewise.
2182 (expected<cv void, E>::transform): Likewise.
2183 (expected<cv void, E>::transform_error): Likewise.
2184 * include/std/optional (transform): Use std::remove_cv_t.
2185 * testsuite/20_util/optional/monadic/pr109340.cc: New test.
2187 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
2189 * include/std/optional (optional): Adjust static assertion to
2190 reject arrays and functions as well as references.
2191 * testsuite/20_util/optional/requirements_neg.cc: New test.
2193 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
2196 * include/bits/istream.tcc (istream::_M_extract(ValueT&)): Use
2197 std::use_facet instead of cached _M_num_get facet.
2198 (istream::operator>>(short&)): Likewise.
2199 (istream::operator>>(int&)): Likewise.
2200 * include/bits/ostream.tcc (ostream::_M_insert(ValueT)): Use
2201 std::use_facet instead of cached _M_num_put facet.
2203 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
2205 * include/bits/char_traits.h (char_traits::copy): Return without
2206 using memcpy if n==0.
2207 (char_traits::assign): Likewise for memset.
2209 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
2212 * include/bits/basic_string.h (basic_string::_M_is_local()): Add
2213 hint for compiler that local strings fit in the local buffer.
2215 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
2218 * include/std/chrono (__detail::__get_leap_second_info): Update
2219 expiry date of hardcoded leapseconds list.
2220 * src/c++20/tzdb.cc (tzdb_list::_Node::_S_read_leap_seconds()):
2222 * src/c++20/tzdata.zi: Import new file from 2023a release.
2223 * testsuite/std/time/time_zone/get_info_local.cc: Only check
2224 transitions for Egypt up to 2014.
2226 2023-03-28 Matthias Kretz <m.kretz@gsi.de>
2228 * include/experimental/bits/simd.h (is_simd_flag_type): New.
2229 (_IsSimdFlagType): New.
2230 (copy_from, copy_to, load ctors): Constrain _Flags using
2233 2023-03-28 Matthias Kretz <m.kretz@gsi.de>
2235 * include/experimental/bits/simd_x86.h (_SimdImplX86): Use
2236 _Base::_S_divides if the optimized _S_divides function is hidden
2237 via the preprocessor.
2239 2023-03-27 Jakub Jelinek <jakub@redhat.com>
2241 * testsuite/experimental/net/timer/waitable/dest.cc: Avoid -Wformat
2242 warning if size_t is not unsigned long.
2244 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
2246 * include/bits/shared_ptr_atomic.h (atomic::operator=(nullptr_t)):
2247 Add overload, as per LWG 3893.
2248 * testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc:
2249 Check assignment from nullptr.
2251 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
2253 * include/std/format (formatter<const charT[N], charT>): Do not
2254 define partial speclialization, as per LWG 3833.
2255 * testsuite/std/format/formatter/requirements.cc: Check it.
2257 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
2259 * include/std/utility (__cpp_lib_constexpr_algorithms): Define,
2261 * testsuite/20_util/exchange/constexpr.cc: Check for it.
2263 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
2265 * include/std/version (__cpp_lib_format): Define.
2266 * testsuite/std/format/functions/format.cc: Check it.
2268 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
2270 * include/bits/basic_string.tcc (basic_string::resize_and_overwrite):
2271 Pass rvalues to the callback, as now allowed by LWG 3645.
2272 Enforce preconditions on the return value.
2273 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
2276 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
2278 * include/std/format: Add a comment noting that the resolution
2279 of LWG 3720 has been applied..
2281 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
2283 * include/bits/regex.h (match_results): Add allocator-extended
2284 copy and move constructors, as per LWG 2195.
2285 * testsuite/28_regex/match_results/ctors/char/alloc.cc: New test.
2287 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
2289 * include/bits/stream_iterator.h (istream_iterator): Add
2290 constexpr to copy constructor, as per LWG 3600.
2291 * testsuite/24_iterators/istream_iterator/cons/constexpr.cc:
2292 Check copy construction.
2294 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
2296 * include/experimental/bits/simd_x86.h
2297 (_SimdImplX86::_S_divides): Replace test for __GCC_IEC_559 == 0
2298 with __RECIPROCAL_MATH__.
2300 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
2302 * include/experimental/bits/simd_detail.h: Don't define
2303 _GLIBCXX_SIMD_WORKAROUND_PR90993 for Clang.
2304 * include/experimental/bits/simd_x86.h (_S_divides): Remove
2305 check for __clang__.
2307 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
2309 * include/experimental/bits/simd_detail.h: Don't declare the
2310 simd API as constexpr with Clang.
2311 * include/experimental/bits/simd_x86.h (__movm): New.
2312 (_S_blend_avx512): Resolve FIXME. Implement blend using __movm
2314 (_SimdImplX86::_S_masked_unary): Clang does not implement the
2315 same builtins. Implement the function using __movm, ?:, and -
2316 operators on vector_size types instead.
2318 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
2320 * testsuite/experimental/simd/tests/operators.cc: Clang doesn't
2321 define __GCC_IEC_559. Use __STDC_IEC_559__ instead.
2323 2023-03-20 Jonathan Wakely <jwakely@redhat.com>
2325 * src/filesystem/ops-common.h (get_temp_directory_from_env): Fix
2328 2023-03-20 Marek Polacek <polacek@redhat.com>
2331 * testsuite/20_util/pair/cons/explicit_construct.cc: Adjust dg-error.
2332 * testsuite/20_util/tuple/cons/explicit_construct.cc: Likewise.
2333 * testsuite/23_containers/span/explicit.cc: Likewise.
2335 2023-03-20 Jonathan Wakely <jwakely@redhat.com>
2338 * include/std/expected (expected<void>::expected(in_place_t)):
2339 Remove template-head.
2341 2023-03-18 Jonathan Wakely <jwakely@redhat.com>
2344 * testsuite/18_support/coroutines/hash.cc: Use const object
2347 2023-03-17 Jonathan Wakely <jwakely@redhat.com>
2350 * include/std/coroutine (hash<>::operator()): Add const.
2351 * testsuite/18_support/coroutines/hash.cc: New test.
2353 2023-03-14 Patrick Palka <ppalka@redhat.com>
2356 * include/std/ranges (repeat_view): Remove redundant parentheses
2358 (repeat_view::_Iterator): Correct the requires-clause.
2360 2023-03-14 Patrick Palka <ppalka@redhat.com>
2362 * include/bits/stl_iterator.h (move_iterator::_S_iter_concept):
2364 (__cpp_lib_move_iterator_concept): Define for C++20.
2365 (move_iterator::iterator_concept): Strengthen as per P2520R0.
2366 * include/std/version (__cpp_lib_move_iterator_concept): Define
2368 * testsuite/24_iterators/move_iterator/p2520r0.cc: New test.
2370 2023-03-14 Patrick Palka <ppalka@redhat.com>
2372 * include/bits/ranges_util.h (view_interface::empty): Add
2373 preferred overloads that use ranges::size when the range is
2374 sized as per LWG 3715.
2375 * testsuite/std/ranges/adaptors/lwg3715.cc: New test.
2377 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
2379 * include/bits/chrono.h (__is_duration_v, __is_time_point_v):
2380 Only define for C++17 and later.
2382 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
2384 * src/Makefile.am: Add comment about linker script fragments.
2385 * src/Makefile.in: Regenerate.
2387 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
2390 * include/bits/mask_array.h (mask_array): Add assertions to
2391 assignment operators.
2392 * include/std/valarray (valarray::operator[](valarray<bool>)):
2394 * testsuite/26_numerics/valarray/mask-1_neg.cc: New test.
2395 * testsuite/26_numerics/valarray/mask-2_neg.cc: New test.
2396 * testsuite/26_numerics/valarray/mask-3_neg.cc: New test.
2397 * testsuite/26_numerics/valarray/mask-4_neg.cc: New test.
2398 * testsuite/26_numerics/valarray/mask-5_neg.cc: New test.
2399 * testsuite/26_numerics/valarray/mask-6_neg.cc: New test.
2400 * testsuite/26_numerics/valarray/mask-7_neg.cc: New test.
2401 * testsuite/26_numerics/valarray/mask-8_neg.cc: New test.
2402 * testsuite/26_numerics/valarray/mask.cc: New test.
2404 2023-03-13 Jakub Jelinek <jakub@redhat.com>
2406 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
2407 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
2409 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
2411 * doc/Makefile.am: Add comment referring to documentation.
2412 * doc/Makefile.in: Regenerate.
2414 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
2416 * doc/html/*: Regenerate.
2418 2023-03-13 Jonny Grant <jg@jguk.org>
2420 * doc/xml/faq.xml: Update copyright year.
2422 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
2424 * include/bits/allocator.h: Fix typo in comment.
2426 2023-03-12 Jakub Jelinek <jakub@redhat.com>
2428 * config/abi/pre/gnu.ver (CXXABI_1.3.14): Also export __bf16 tinfos
2429 if it isn't mangled as DF16b but u6__bf16.
2431 2023-03-12 Gerald Pfeifer <gerald@pfeifer.com>
2433 * doc/xml/manual/documentation_hacking.xml: Move www.graphviz.org
2435 * doc/html/manual/documentation_hacking.html: Regenerate.
2437 2023-03-10 Jonathan Wakely <jwakely@redhat.com>
2440 * python/libstdcxx/v6/xmethods.py (SharedPtrUseCountWorker):
2441 Remove self-recursion in __init__. Add missing _supports.
2442 * testsuite/libstdc++-xmethods/shared_ptr.cc: Check use_count()
2445 2023-03-09 Patrick Palka <ppalka@redhat.com>
2447 * include/std/ranges
2448 (cartesian_product_view::_Iterator::_Iterator): Remove
2449 constraint on default constructor as per LWG 3849.
2450 (cartesian_product_view::_Iterator::_M_prev): Adjust position
2451 of _Nm > 0 test as per LWG 3820.
2452 (cartesian_product_view::_Iterator::_M_advance): Perform bounds
2453 checking only on sized cartesian products.
2454 * testsuite/std/ranges/cartesian_product/1.cc (test08): New test.
2456 2023-03-09 Patrick Palka <ppalka@redhat.com>
2459 * include/std/ranges (chunk_by_view::_M_pred): Remove DMI as per
2461 (repeat_view::_M_pred): Likewise.
2462 * testsuite/std/ranges/adaptors/chunk_by/1.cc (test03): New test.
2463 * testsuite/std/ranges/repeat/1.cc (test05): New test.
2465 2023-03-09 Patrick Palka <ppalka@redhat.com>
2468 * include/std/ranges (__detail::__can_single_view): New concept.
2469 (_Single::operator()): Constrain it. Move [[nodiscard]] to the
2470 end of the function declarator.
2471 (__detail::__can_iota_view): New concept.
2472 (_Iota::operator()): Constrain it. Move [[nodiscard]] to the
2473 end of the function declarator.
2474 (__detail::__can_istream_view): New concept.
2475 (_Istream::operator()): Constrain it. Move [[nodiscard]] to the
2476 end of the function declarator.
2477 * testsuite/std/ranges/iota/iota_view.cc (test07): New test.
2478 * testsuite/std/ranges/istream_view.cc (test08): New test.
2479 * testsuite/std/ranges/single_view.cc (test07): New test.
2481 2023-03-09 Patrick Palka <ppalka@redhat.com>
2484 * include/std/ranges (cartesian_product_view::end): When
2485 building the tuple of iterators, avoid calling ranges::begin on
2486 the first range if __empty_tail is false.
2487 * testsuite/std/ranges/cartesian_product/1.cc (test07): New test.
2489 2023-03-09 Jonathan Wakely <jwakely@redhat.com>
2492 * config/os/gnu-linux/ldbl-ieee128-extra.ver: Fix incorrect
2495 2023-03-07 Jakub Jelinek <jakub@redhat.com>
2497 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
2498 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
2499 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
2500 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
2501 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
2503 2023-03-07 Jonathan Wakely <jwakely@redhat.com>
2506 * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Adjust patterns to
2507 not match symbols in namespace std::__gnu_cxx11_ieee128.
2508 * config/os/gnu-linux/ldbl-ieee128-extra.ver: Add patterns for
2509 std::__gnu_cxx11_ieee128::money_{get,put}.
2511 2023-03-07 Jonathan Wakely <jwakely@redhat.com>
2513 * libsupc++/eh_personality.cc: Fix spelling in comment.
2515 2023-03-03 Alexandre Oliva <oliva@adacore.com>
2517 * testsuite/30_threads/async/async.cc (test04): Initialize
2518 steady_start, renamed from steady_begin, next to slow_start.
2519 Increase tolerance for final wait.
2521 2023-03-03 Alexandre Oliva <oliva@adacore.com>
2523 * testsuite/libstdc++-prettyprinters/80276.cc: Add
2524 std::string to debug info.
2525 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
2527 2023-03-03 Alexandre Oliva <oliva@adacore.com>
2532 * include/bits/std_thread.h (thread::_M_thread_deps): New
2533 static implicitly-inline member function.
2534 (std::thread template ctor): Pass it to _M_start_thread.
2535 * src/c++11/thread.cc (thread::_M_start_thread): Name depend
2536 parameter, force it live on entry.
2538 2023-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2540 * config/abi/post/i386-solaris/baseline_symbols.txt: Regenerate.
2541 * config/abi/post/i386-solaris/amd64/baseline_symbols.txt:
2543 * config/abi/post/sparc-solaris/baseline_symbols.txt: Likewise.
2544 * config/abi/post/sparc-solaris/sparcv9/baseline_symbols.txt:
2547 2023-03-01 Jonathan Wakely <jwakely@redhat.com>
2549 * include/bits/cow_string.h: Fix typo in comment.
2551 2023-03-01 Jonathan Wakely <jwakely@redhat.com>
2553 * src/c++20/tzdb.cc (chrono::tzdb::current_zone()) Use "UTC" if
2554 current time zone cannot be determined.
2555 * testsuite/std/time/tzdb/1.cc: Remove conditions based on
2556 HAVE_TZDB macro and test all members unconditionally.
2558 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
2561 * include/bits/uses_allocator_args.h
2562 (uses_allocator_construction_args): Implement LWG 3527.
2563 * testsuite/20_util/pair/astuple/get-2.cc: New test.
2564 * testsuite/20_util/scoped_allocator/108952.cc: New test.
2565 * testsuite/20_util/uses_allocator/lwg3527.cc: New test.
2567 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
2570 * include/bits/stl_algobase.h (__copy_move<false, false, RA>)
2571 Add __assign_one static member function.
2572 (__copy_move<true, false, RA>): Likewise.
2573 (__copy_move<IsMove, true, RA>): Do not use memmove for a single
2575 (__copy_move_backward<IsMove, true, RA>): Likewise.
2576 * testsuite/25_algorithms/copy/108846.cc: New test.
2577 * testsuite/25_algorithms/copy_backward/108846.cc: New test.
2578 * testsuite/25_algorithms/copy_n/108846.cc: New test.
2579 * testsuite/25_algorithms/move/108846.cc: New test.
2580 * testsuite/25_algorithms/move_backward/108846.cc: New test.
2582 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
2584 * src/c++11/codecvt.cc: Add [[likely]] and [[unlikely]]
2587 2023-02-27 Jonathan Wakely <jwakely@redhat.com>
2589 * include/bits/basic_ios.h (basic_ios::_M_setstate): Add
2591 * include/bits/basic_string.h (resize_and_overwrite): Add
2594 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
2596 * include/experimental/bits/simd.h: Line breaks and indenting
2597 fixed to follow the libstdc++ standard.
2598 * include/experimental/bits/simd_builtin.h: Likewise.
2599 * include/experimental/bits/simd_fixed_size.h: Likewise.
2600 * include/experimental/bits/simd_neon.h: Likewise.
2601 * include/experimental/bits/simd_ppc.h: Likewise.
2602 * include/experimental/bits/simd_scalar.h: Likewise.
2603 * include/experimental/bits/simd_x86.h: Likewise.
2605 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
2608 * include/experimental/bits/simd_fixed_size.h
2609 (_SimdImplFixedSize::_S_broadcast): Replace inline with
2610 _GLIBCXX_SIMD_INTRINSIC.
2611 (_SimdImplFixedSize::_S_generate): Likewise.
2612 (_SimdImplFixedSize::_S_load): Likewise.
2613 (_SimdImplFixedSize::_S_masked_load): Likewise.
2614 (_SimdImplFixedSize::_S_store): Likewise.
2615 (_SimdImplFixedSize::_S_masked_store): Likewise.
2616 (_SimdImplFixedSize::_S_min): Likewise.
2617 (_SimdImplFixedSize::_S_max): Likewise.
2618 (_SimdImplFixedSize::_S_complement): Likewise.
2619 (_SimdImplFixedSize::_S_unary_minus): Likewise.
2620 (_SimdImplFixedSize::_S_plus): Likewise.
2621 (_SimdImplFixedSize::_S_minus): Likewise.
2622 (_SimdImplFixedSize::_S_multiplies): Likewise.
2623 (_SimdImplFixedSize::_S_divides): Likewise.
2624 (_SimdImplFixedSize::_S_modulus): Likewise.
2625 (_SimdImplFixedSize::_S_bit_and): Likewise.
2626 (_SimdImplFixedSize::_S_bit_or): Likewise.
2627 (_SimdImplFixedSize::_S_bit_xor): Likewise.
2628 (_SimdImplFixedSize::_S_bit_shift_left): Likewise.
2629 (_SimdImplFixedSize::_S_bit_shift_right): Likewise.
2630 (_SimdImplFixedSize::_S_remquo): Add inline keyword (to be
2631 explicit about not always-inline, yet).
2632 (_SimdImplFixedSize::_S_isinf): Likewise.
2633 (_SimdImplFixedSize::_S_isfinite): Likewise.
2634 (_SimdImplFixedSize::_S_isnan): Likewise.
2635 (_SimdImplFixedSize::_S_isnormal): Likewise.
2636 (_SimdImplFixedSize::_S_signbit): Likewise.
2638 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
2641 * include/experimental/bits/simd_builtin.h
2642 (_SimdImplBuiltin::_S_masked_unary): More efficient
2643 implementation of masked inc-/decrement for integers and floats
2645 * include/experimental/bits/simd_x86.h
2646 (_SimdImplX86::_S_masked_unary): New. Use AVX512 masked subtract
2647 builtins for masked inc-/decrement.
2649 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
2651 * include/experimental/executor (executor): Constrain template
2654 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
2656 * include/experimental/internet (basic_endpoint): Add missing
2657 constexpr to comparison operators.
2658 * testsuite/experimental/net/internet/endpoint/cons.cc: New test.
2660 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
2662 * include/experimental/internet (network_v4::netmask()): Avoid
2664 (network_v4::broadcast()): Optimize and fix for targets with
2665 uint_least32_t wider than 32 bits.
2666 (network_v4::to_string(const Allocator&)): Fix for custom
2667 allocators and optimize using to_chars.
2668 (operator==(const network_v4&, const network_v4&)): Add missing
2670 (operator==(const network_v6&, const network_v6&)): Likewise.
2671 * testsuite/experimental/net/internet/network/v4/cons.cc: New test.
2672 * testsuite/experimental/net/internet/network/v4/members.cc: New test.
2674 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
2676 * include/experimental/internet (address_4(const bytes_type&)):
2677 Use __builtin_bit_cast if available, otherwise convert to
2679 (address_v4::to_bytes()): Likewise, but convert from network
2681 * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
2682 incorrect tests. Check for constexpr too.
2683 * testsuite/experimental/net/internet/address/v4/creation.cc:
2685 * testsuite/experimental/net/internet/address/v4/members.cc:
2686 Check that bytes_type is a standard-layout type.
2688 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
2690 * include/experimental/internet (address_v4::to_string):
2692 * testsuite/experimental/net/internet/address/v4/members.cc:
2693 Check more addresses.
2695 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
2697 * include/ext/aligned_buffer.h (__aligned_buffer): Add
2700 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
2702 * testsuite/std/format/arguments/lwg3810.cc: Move dg-options
2705 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
2707 * testsuite/experimental/simd/tests/reductions.cc: Introduce
2708 max_distance as the type-dependent max error.
2710 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
2712 * include/experimental/bits/simd_builtin.h (_S_set): Compare as
2713 int. The actual range of these indexes is very small.
2715 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
2717 * include/experimental/bits/simd_x86.h (_S_bit_shift_left)
2718 (_S_bit_shift_right): Declare constexpr. The implementation was
2719 already expecting constexpr evaluation.
2721 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
2724 * include/experimental/bits/simd_detail.h
2725 (_GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA): Define as empty for
2728 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
2731 * include/experimental/bits/simd.h (__vector_broadcast):
2732 Implement via __vector_broadcast_impl instead of
2733 __call_with_n_evaluations + 2 lambdas.
2734 (__vector_broadcast_impl): New.
2736 2023-02-22 Alexandre Oliva <oliva@adacore.com>
2738 * src/c++11/shared_ptr.cc (__gnu_internal::get_mutex):
2739 Avoid destruction of the mutex pool.
2741 2023-02-22 Alexandre Oliva <oliva@adacore.com>
2743 * testsuite/27_io/basic_ofstream/open/char/noreplace.cc: xfail
2745 * testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc:
2748 2023-02-22 Alexandre Oliva <oliva@adacore.com>
2750 * testsuite/17_intro/names.cc: Undef func on vxworks >= 7 in
2753 2023-02-20 Andreas Schwab <schwab@linux-m68k.org>
2755 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
2757 2023-02-20 Matthias Kretz <m.kretz@gsi.de>
2759 * include/experimental/bits/simd.h (__extract_part, split):
2760 Use reserved name for template parameter.
2762 2023-02-20 Andreas Schwab <schwab@suse.de>
2764 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
2766 2023-02-18 Gerald Pfeifer <gerald@pfeifer.com>
2768 * doc/xml/faq.xml: Switch two links to www.open-std.org to https.
2769 * doc/html/faq.html: Regenerate.
2771 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
2773 * include/experimental/bits/simd_math.h (__hypot): Bitcasting
2774 between scalars requires the __bit_cast helper function instead
2777 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
2779 * include/experimental/bits/simd_x86.h
2780 (_SimdImplX86::_S_not_equal_to, _SimdImplX86::_S_less)
2781 (_SimdImplX86::_S_less_equal): Do not call
2782 __builtin_is_constant_evaluated in constexpr-if.
2784 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
2786 * testsuite/experimental/simd/tests/bits/verify.h
2787 (verify::verify): Use %zx for size_t in format string.
2789 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
2791 * testsuite/experimental/simd/generate_makefile.sh: Generate and
2792 pre-compile pch.h, which includes all headers that do not depend
2793 on command-line macros.
2794 * testsuite/experimental/simd/tests/bits/main.h: New file.
2795 (iterate_abis, main): Moved from verify.h.
2796 * testsuite/experimental/simd/tests/bits/verify.h
2797 (iterate_abis, main): Moved to main.h.
2798 * testsuite/experimental/simd/tests/bits/conversions.h: Add
2800 (genHalfBits): Simplify.
2801 * testsuite/experimental/simd/tests/bits/make_vec.h: Add include
2803 (make_alternating_mask): Moved from mask_loadstore.
2804 * testsuite/experimental/simd/tests/bits/mathreference.h: Add
2806 * testsuite/experimental/simd/tests/bits/test_values.h: Ditto.
2807 * testsuite/experimental/simd/tests/mask_loadstore.cc
2808 (make_mask, make_alternating_mask): Removed.
2809 * testsuite/experimental/simd/tests/mask_reductions.cc: Ditto.
2810 * testsuite/experimental/simd/tests/operators.cc (genHalfBits):
2812 * testsuite/experimental/simd/tests/abs.cc: Only include
2815 * testsuite/experimental/simd/tests/algorithms.cc: Ditto.
2816 * testsuite/experimental/simd/tests/broadcast.cc: Ditto.
2817 * testsuite/experimental/simd/tests/casts.cc: Ditto.
2818 * testsuite/experimental/simd/tests/fpclassify.cc: Ditto.
2819 * testsuite/experimental/simd/tests/frexp.cc: Ditto.
2820 * testsuite/experimental/simd/tests/generator.cc: Ditto.
2821 * testsuite/experimental/simd/tests/hypot3_fma.cc: Ditto.
2822 * testsuite/experimental/simd/tests/integer_operators.cc: Ditto.
2823 * testsuite/experimental/simd/tests/ldexp_scalbn_scalbln_modf.cc:
2824 * testsuite/experimental/simd/tests/loadstore.cc: Ditto.
2825 * testsuite/experimental/simd/tests/logarithm.cc: Ditto.
2826 * testsuite/experimental/simd/tests/mask_broadcast.cc: Ditto.
2827 * testsuite/experimental/simd/tests/mask_conversions.cc: Ditto.
2828 * testsuite/experimental/simd/tests/mask_implicit_cvt.cc: Ditto.
2829 * testsuite/experimental/simd/tests/mask_operator_cvt.cc: Ditto.
2830 * testsuite/experimental/simd/tests/mask_operators.cc: Ditto.
2831 * testsuite/experimental/simd/tests/math_1arg.cc: Ditto.
2832 * testsuite/experimental/simd/tests/math_2arg.cc: Ditto.
2833 * testsuite/experimental/simd/tests/operator_cvt.cc: Ditto.
2834 * testsuite/experimental/simd/tests/reductions.cc: Ditto.
2835 * testsuite/experimental/simd/tests/remqo.cc: Ditto.
2836 * testsuite/experimental/simd/tests/simd.cc: Ditto.
2837 * testsuite/experimental/simd/tests/sincos.cc: Ditto.
2838 * testsuite/experimental/simd/tests/split_concat.cc: Ditto.
2839 * testsuite/experimental/simd/tests/splits.cc: Ditto.
2840 * testsuite/experimental/simd/tests/trigonometric.cc: Ditto.
2841 * testsuite/experimental/simd/tests/trunc_ceil_floor.cc: Ditto.
2842 * testsuite/experimental/simd/tests/where.cc: Ditto.
2844 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
2846 * testsuite/experimental/simd/README.md: Document the timeout
2847 and timeout-factor directives. Minor typo fixed.
2849 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
2852 * include/experimental/bits/simd_detail.h: Define
2853 _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
2854 * include/experimental/bits/simd.h: Annotate lambdas with
2855 _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
2856 * include/experimental/bits/simd_builtin.h: Ditto.
2857 * include/experimental/bits/simd_converter.h: Ditto.
2858 * include/experimental/bits/simd_fixed_size.h: Ditto.
2859 * include/experimental/bits/simd_math.h: Ditto.
2860 * include/experimental/bits/simd_neon.h: Ditto.
2861 * include/experimental/bits/simd_x86.h: Ditto.
2863 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
2865 * include/experimental/bits/simd.h
2866 (_SimdWrapper::_M_is_constprop_none_of)
2867 (_SimdWrapper::_M_is_constprop_all_of): Return false unless the
2868 computed result still satisfies __builtin_constant_p.
2870 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
2872 * testsuite/std/format/arguments/lwg3810.cc: Replace UTF-8
2875 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
2877 * include/Makefile.am: Add new header.
2878 * include/Makefile.in: Regenerate.
2879 * include/experimental/synchronized_value: New file.
2880 * testsuite/experimental/synchronized_value.cc: New test.
2882 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
2884 * include/experimental/optional: Fix header name in comment.
2886 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
2888 * include/std/format (__format::_Arg_store): New class template.
2889 (basic_format_args): Remove nested type _Store and add deduction
2890 guide from _Arg_store.
2891 (basic_format_arg, make_format_args): Adjust.
2892 * testsuite/std/format/arguments/lwg3810.cc: New test.
2894 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
2896 * include/bits/stl_pair.h (pair) [C++20]: Add non-dangling
2897 constraints to constructors and add deleted overloads for the
2898 dangling cases, as per P2255R2.
2899 (pair) [!C++20 && _GLIBCXX_DEBUG]: Add static assertions to
2900 make dangling cases ill-formed.
2901 * testsuite/20_util/pair/dangling_ref.cc: New test.
2903 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
2905 * testsuite/17_intro/names_pstl.cc: Require et tbb_backend.
2907 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
2909 * include/ext/throw_allocator.h: Use reserved names for
2912 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
2914 * testsuite/17_intro/names_pstl.cc: Add space after effective
2917 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
2919 * include/pstl/algorithm_fwd.h (__pattern_search_n)
2920 (__brick_unique_copy, __brick_adjacent_find)
2921 (__brick_generate_n, __pattern_generate_n): Use reserved names
2923 * include/pstl/algorithm_impl.h (__brick_unique_copy)
2924 (__pattern_reverse, __brick_generate_n): Likewise.
2925 * include/pstl/execution_impl.h (__prefer_unsequenced_tag)
2926 (__prefer_parallel_tag): Likewise.
2927 * include/pstl/glue_algorithm_impl.h (transform): Likewise.
2928 * include/pstl/glue_numeric_defs.h (adjacent_difference):
2930 * include/pstl/numeric_impl.h (__brick_adjacent_difference):
2932 * include/pstl/parallel_backend_tbb.h (__merge_func): Likewise.
2933 * include/pstl/unseq_backend_simd.h (_Combiner)
2934 (__simd_min_element, __simd_minmax_element): Likewise.
2935 * testsuite/17_intro/names_pstl.cc: New test.
2937 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
2939 * include/bits/fs_ops.h (create_directory): Use reserved name
2941 * include/bits/ranges_algo.h (__contains_subrange_fn):
2943 * include/bits/regex_automaton.h (_State_base::_M_print):
2945 * include/bits/regex_automaton.tcc(_State_base::_M_print):
2947 * include/bits/regex_scanner.tcc(_Scanner::_M_print): Likewise.
2948 * include/experimental/bits/fs_ops.h (create_directory):
2950 * include/std/mutex (timed_mutex::_M_clocklock): Likewise.
2951 (recursive_timed_mutex:_M_clocklock): Likewise.
2952 * include/std/tuple (basic_common_reference): Likewise.
2953 * libsupc++/cxxabi_init_exception.h
2954 (__cxa_init_primary_exception): Likewise.
2955 * testsuite/17_intro/names.cc: Add checks.
2957 2023-02-14 Gerald Pfeifer <gerald@pfeifer.com>
2959 * doc/xml/manual/status_cxx2017.xml: Update an open-std.org link
2960 to www.open-std.org and https.
2961 * doc/html/manual/status.html: Regenerate.
2963 2023-02-14 Thomas W Rodgers <rodgert@twrodgers.com>
2966 * include/std/atomic (atomic_flag_wait): Add.
2967 (atomic_flag_wait_explicit): Add.
2968 (atomic_flag_notify): Add.
2969 (atomic_flag_notify_explicit): Add.
2970 * testsuite/29_atomics/atomic_flag/wait_notify/1.cc:
2971 Add test case to cover missing atomic_flag free functions.
2973 2023-02-14 Thomas W Rodgers <rodgert@twrodgers.com>
2976 * include/std/atomic (atomic_flag_test): Add.
2977 (atomic_flag_test_explicit): Add.
2978 * testsuite/29_atomics/atomic_flag/test/explicit.cc: Add
2979 test case to cover missing atomic_flag free functions.
2980 * testsuite/29_atomics/atomic_flag/test/implicit.cc:
2983 2023-02-13 Gerald Pfeifer <gerald@pfeifer.com>
2985 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust
2986 "The Component Object Model" reference.
2987 * doc/html/manual/policy_data_structures.html: Regenerate.
2989 2023-02-12 Gerald Pfeifer <gerald@pfeifer.com>
2991 * doc/xml/manual/containers.xml: Tweak a link to N1780
2993 * doc/html/manual/associative.html: Regenerate.
2995 2023-02-12 Gerald Pfeifer <gerald@pfeifer.com>
2997 * doc/xml/manual/ctype.xml: Change www.unix.org to unix.org.
2998 * doc/html/manual/facets.html: Regenerate.
3000 2023-02-11 Gerald Pfeifer <gerald@pfeifer.com>
3002 * doc/xml/manual/policy_data_structures_biblio.xml: Update
3003 link to "Worst-case efficient priority queues".
3004 * doc/html/manual/policy_data_structures.html: Regenerate.
3006 2023-02-06 Arsen Arsenović <arsen@aarsen.me>
3008 * doc/xml/manual/using.xml: Document newly-freestanding
3009 headers and the effect of the -ffreestanding flag.
3010 * doc/xml/manual/status_cxx2023.xml: Document P1642R11 as
3012 * doc/xml/manual/configure.xml: Document that hosted installs
3013 respect __STDC_HOSTED__.
3014 * doc/xml/manual/test.xml: Document how to run tests in
3016 * doc/html/*: Regenerate.
3018 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
3020 * include/bits/ranges_algo.h (__find_last_fn): Rename T to _Tp.
3021 (__find_last_if_fn): Likewise.
3023 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
3025 * include/std/type_traits: Add diagnostic pragmas around
3026 references to deprecated std::aligned_storage and
3027 std::aligned_union traits.
3028 * testsuite/20_util/aligned_storage/requirements/alias_decl.cc:
3029 Add dg-warning for et c++23.
3030 * testsuite/20_util/aligned_storage/requirements/explicit_instantiation.cc:
3032 * testsuite/20_util/aligned_storage/value.cc: Likewise.
3033 * testsuite/20_util/aligned_union/1.cc: Likewise.
3034 * testsuite/20_util/aligned_union/requirements/alias_decl.cc:
3037 2023-02-06 Nathaniel Shead <nathanieloshead@gmail.com>
3039 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macros.
3040 * include/bits/c++config (_GLIBCXX23_DEPRECATED)
3041 (_GLIBCXX23_DEPRECATED_SUGGEST): New macros.
3042 * include/std/type_traits (aligned_storage, aligned_union)
3043 (aligned_storage_t, aligned_union_t): Deprecate for C++23.
3044 * testsuite/20_util/aligned_storage/deprecated-2b.cc: New test.
3045 * testsuite/20_util/aligned_union/deprecated-2b.cc: New test.
3047 2023-02-06 Nathaniel Shead <nathanieloshead@gmail.com>
3049 * doc/doxygen/user.cfg.in (PREDEFINED): Update macros.
3050 * include/bits/c++config (_GLIBCXX20_DEPRECATED): Make
3051 consistent with other 'deprecated' macros.
3052 * include/std/type_traits (is_pod, is_pod_v): Use
3053 _GLIBCXX20_DEPRECATED_SUGGEST instead.
3055 2023-02-06 Arsen Arsenović <arsen@aarsen.me>
3057 * Makefile.am [!_GLIBCXX_HOSTED]: Enable src/ subdirectory.
3058 * Makefile.in: Regenerate.
3059 * src/Makefile.am [!_GLIBCXX_HOSTED]: Omit compatibility files.
3060 There's no history to be compatible with.
3061 * src/c++11/Makefile.am [!_GLIBCXX_HOSTED]: Omit hosted-only
3062 source files from the build.
3063 * src/c++17/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
3064 * src/c++20/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
3065 * src/c++98/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
3066 * src/Makefile.in: Regenerate.
3067 * src/c++11/Makefile.in: Regenerate.
3068 * src/c++17/Makefile.in: Regenerate.
3069 * src/c++20/Makefile.in: Regenerate.
3070 * src/c++98/Makefile.in: Regenerate.
3072 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
3074 * src/Makefile.am [GLIBCXX_HOSTED] (SUBDIRS): Do not add
3075 filesystem, libbacktrace and experimental.
3076 * src/Makefile.in: Regenerate.
3078 2023-02-04 Hans-Peter Nilsson <hp@axis.com>
3081 * include/pstl/unseq_backend_simd.h (__simd_or): Use __INT32_TYPE__
3084 2023-02-04 Gerald Pfeifer <gerald@pfeifer.com>
3086 * doc/xml/manual/documentation_hacking.xml: Adjust link to pdftex.
3087 * doc/html/manual/documentation_hacking.html: Regenerate.
3089 2023-02-04 François Dumont <fdumont@gcc.gnu.org>
3091 * include/bits/basic_string.h (operator=(basic_string&&)): Transfer move-to
3092 storage to the move-from instance when allocators are equal.
3093 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc (test04):
3096 2023-02-03 Samuel Thibault <samuel.thibault@gnu.org>
3098 * config/os/gnu-linux/os_defines.h [!__linux__]
3099 (_GLIBCXX_NATIVE_THREAD_ID, _GLIBCXX_GTHREAD_USE_WEAK): Do not define.
3101 2023-02-03 Patrick Palka <ppalka@redhat.com>
3103 * include/bits/ranges_algo.h (__find_last_fn, find_last):
3105 (__find_last_if_fn, find_last_if): Define.
3106 (__find_last_if_not_fn, find_last_if_not): Define.
3107 * testsuite/25_algorithms/find_last/1.cc: New test.
3108 * testsuite/25_algorithms/find_last_if/1.cc: New test.
3109 * testsuite/25_algorithms/find_last_if_not/1.cc: New test.
3111 2023-02-03 Patrick Palka <ppalka@redhat.com>
3113 * include/bits/ranges_algo.h (out_value_result): Define.
3114 (iota_result): Define.
3115 (__iota_fn, iota): Define.
3116 * testsuite/25_algorithms/iota/1.cc: New test.
3118 2023-02-03 Patrick Palka <ppalka@redhat.com>
3120 * include/bits/ranges_algo.h (__contains_fn, contains): Define.
3121 (__contains_subrange_fn, contains_subrange): Define.
3122 * testsuite/25_algorithms/contains/1.cc: New test.
3123 * testsuite/25_algorithms/contains_subrange/1.cc: New test.
3125 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
3127 * doc/xml/manual/abi.xml: Tweak link to ABIcheck project.
3128 * doc/html/manual/abi.html: Regenerate.
3130 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
3132 * src/filesystem/ops-common.h [AVR] (__unsupported): Always use
3133 errc::function_not_supported instead of errc::not_supported.
3135 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
3137 * include/std/sstream (basic_stringbuf::view): Define for old
3139 (basic_istringstream::view, basic_0stringstream::view)
3140 (basic_stringstream::view): Likewise.
3141 * testsuite/27_io/basic_istringstream/view/char/1.cc: Remove
3142 { dg-require-effective-target cxx11_abi }.
3143 * testsuite/27_io/basic_istringstream/view/wchar_t/1.cc:
3145 * testsuite/27_io/basic_ostringstream/view/char/1.cc: Likewise.
3146 * testsuite/27_io/basic_ostringstream/view/wchar_t/1.cc:
3148 * testsuite/27_io/basic_stringbuf/view/char/1.cc: Likewise.
3149 * testsuite/27_io/basic_stringbuf/view/wchar_t/1.cc: Likewise.
3150 * testsuite/27_io/basic_stringstream/view/char/1.cc: Likewise.
3151 * testsuite/27_io/basic_stringstream/view/wchar_t/1.cc:
3154 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
3157 * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Export shared_ptr
3158 conversion operators for directory iterator comparisons with
3159 std::default_sentinel_t.
3160 * include/bits/fs_path.h (path::path(string_view, _Type))
3161 (path::_Cmpt::_Cmpt(string_view, _Type, size_t)): Move inline
3163 * src/c++17/fs_path.cc: ... here.
3164 * testsuite/27_io/filesystem/path/108636.cc: New test.
3166 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
3168 * include/std/variant (variant::operator=): Implement resolution
3170 * testsuite/20_util/variant/lwg3585.cc: New test.
3172 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
3174 * doc/xml/manual/using_exceptions.xml: Update a www.open-std.org
3176 * doc/html/manual/using_exceptions.html: Regenerate.
3178 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
3180 * doc/xml/manual/debug.xml: Fix link to online GDB manual.
3181 * doc/html/manual/debug.html: Regenerate.
3183 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
3185 * src/c++11/random.cc (random_device::_M_fini): Do not try to
3186 close the file handle if the target doesn't support the
3187 /dev/random and /dev/urandom files.
3189 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
3191 * config/os/generic/error_constants.h (errc::value_too_large)
3193 * src/c++11/system_error.cc
3194 (system_category::default_error_condition) [__AVR__]: Only match
3195 recognize values equal to EDOM, ERANGE, ENOSYS and EINTR.
3196 * src/c++17/fs_ops.cc (fs::current_path) [__AVR__]: Do not check
3197 for ENOENT etc. in switch.
3198 (fs::remove_all) [__AVR__]: Likewise.
3199 * src/filesystem/ops-common.h [__AVR__]: Do not use POSIX open,
3202 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
3204 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR) [avr-*-*, msp430-*-*]: Set
3206 * configure: Regenerate.
3208 2023-02-01 Hans-Peter Nilsson <hp@axis.com>
3211 * testsuite/std/time/hh_mm_ss/1.cc (size): Add empty
3212 struct at end of S0.
3214 2023-01-30 Gerald Pfeifer <gerald@pfeifer.com>
3216 * doc/xml/manual/shared_ptr.xml: Move links from both
3217 http://open-std.org and http://www.open-std.org to
3218 https://www.open-std.org.
3219 * doc/html/manual/memory.html: Regenerate.
3221 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
3223 * doc/xml/manual/appendix_contributing.xml: Adjust link to
3224 ISO C++ standard at ANSI.
3225 Move link to www.open-std.org to https.
3226 * doc/html/manual/appendix_contributing.html: Regenerate.
3228 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
3230 * doc/xml/manual/documentation_hacking.xml: Move sourceforge.net
3232 * doc/html/manual/documentation_hacking.html: Regenerate.
3234 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
3236 * doc/xml/manual/abi.xml: Update www.open-std.org link to https.
3237 * doc/html/manual/abi.html: Regenerate.
3239 2023-01-27 Jakub Jelinek <jakub@redhat.com>
3242 * testsuite/17_intro/names.cc (__unused): For linux or GNU hurd
3243 include features.h if present and then check __GLIBC__ and
3244 __GLIBC_MINOR__ macros for glibc prior to 2.19, instead of testing
3245 __GLIBC_PREREQ which isn't defined yet.
3247 2023-01-27 Jonathan Wakely <jwakely@redhat.com>
3249 * src/c++20/tzdb.cc (tzdata_stream): Use constant instead of
3252 2023-01-27 Jonathan Wakely <jwakely@redhat.com>
3255 * testsuite/23_containers/map/modifiers/108554.cc: Use dg-bogus.
3257 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
3259 * src/c++20/tzdb.cc (operator>>(istream&, ZoneInfo&)): Allow
3260 rules named "+" for compatibility with older tzdata.zi files.
3262 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
3265 * include/bits/stl_tree.h (_Rb_tree_insert_and_rebalance): Add
3267 (_Rb_tree_rebalance_for_erase): Add nonnull and returns_nonnull
3269 * testsuite/23_containers/map/modifiers/108554.cc: New test.
3271 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
3274 * src/c++20/tzdb.cc (current_zone): Look for TIMEZONE or ZONE in
3275 /etc/sysconfig/clock, not DEFAULT_TIMEZONE.
3277 2023-01-26 Gerald Pfeifer <gerald@pfeifer.com>
3279 * doc/xml/manual/intro.xml: Update links to www.open-std.org to
3281 * doc/html/manual/bugs.html: Regenerate.
3283 2023-01-24 Jonathan Wakely <jwakely@redhat.com>
3286 * src/c++20/tzdb.cc (current_zone): Look for DEFAULT_TIMEZONE in
3287 /etc/sysconfig/clock.
3289 2023-01-24 Jonathan Wakely <jwakely@redhat.com>
3292 * include/bits/ranges_base.h: Include <bits/stl_iterator.h> for
3293 std::make_reverse_iterator.
3294 * include/std/tuple: Include <bits/ranges_util.h> for subrange.
3295 (make_from_tuple): Add static assertion from P2255 to diagnose
3296 dangling references.
3297 * testsuite/20_util/tuple/make_from_tuple/dangling_ref.cc: New test.
3298 * testsuite/20_util/tuple/make_from_tuple/tuple_like.cc: New test.
3300 2023-01-23 François Dumont <fdumont@gcc.gnu.org>
3302 * include/debug/safe_iterator.h (_Safe_iterator<>::_Unchecked): New.
3303 (_Safe_iterator(const _Safe_iterator&, _Unchecked)): New.
3304 (_Safe_iterator::operator++(int)): Use latter.
3305 (_Safe_iterator::operator--(int)): Likewise.
3306 (_Safe_iterator(_Iterator, const _Safe_sequence_base*)): Remove !_M_insular()
3308 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::_Unchecked):
3310 (_Safe_local_iterator(const _Safe_local_iterator&, _Unchecked)): New.
3311 (_Safe_local_iterator::operator++(int)): Use latter.
3312 * src/c++11/debug.cc (_S_debug_messages): Add as comment the _Debug_msg_id
3313 entry associated to the array entry.
3315 2023-01-18 Jonathan Wakely <jwakely@redhat.com>
3317 * include/bits/fs_path.h (u8path): Add deprecated attribute.
3318 * testsuite/27_io/filesystem/path/construct/90281.cc: Add
3319 -Wno-deprecated-declarations for C++20 and later.
3320 * testsuite/27_io/filesystem/path/factory/u8path-char8_t.cc:
3322 * testsuite/27_io/filesystem/path/factory/u8path.cc: Likewise.
3323 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
3324 * testsuite/27_io/filesystem/path/factory/u8path-depr.cc: New test.
3326 2023-01-18 Jonathan Wakely <jwakely@redhat.com>
3328 * include/bits/random.h (random_device) [!_GLIBCXX_USE_DEV_RANDOM]:
3329 Always call _M_fini and _M_getentropy.
3331 2023-01-18 Gerald Pfeifer <gerald@pfeifer.com>
3333 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust links
3334 to www.open-std.org to use https.
3335 (COM: Component Model Object Technologies): Rename from...
3336 (The Component Object Model): ...to.
3337 * doc/html/manual/policy_data_structures.html: Regenerate.
3339 2023-01-18 Dimitrij Mijoski <dmjpp@hotmail.com>
3341 * testsuite/22_locale/codecvt/codecvt_unicode.cc: Simplify.
3342 * testsuite/22_locale/codecvt/codecvt_unicode.h: Simplify.
3343 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: Simplify.
3345 2023-01-17 Jonathan Wakely <jwakely@redhat.com>
3347 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Check $target_os instead
3348 of $host. Fix check for file being present during native build.
3349 * configure: Regenerate.
3351 2023-01-17 Martin Liska <mliska@suse.cz>
3353 * src/libbacktrace/Makefile.in: Regenerate.
3355 2023-01-16 Jonathan Wakely <jwakely@redhat.com>
3357 * src/c++20/tzdb.cc (_GLIBCXX_USE_CXX11_ABI): Define to 1.
3359 2023-01-16 Jonathan Wakely <jwakely@redhat.com>
3362 * include/c_compatibility/stdatomic.h: Change copyright line to
3363 be consistent with other headers contributed under DCO terms.
3364 * include/std/expected: Add full stop to copyright line.
3365 * src/c++20/tzdb.cc: Likewise.
3367 2023-01-15 Gerald Pfeifer <gerald@pfeifer.com>
3369 * doc/xml/manual/status_cxx2014.xml: Switch www.open-std.org to
3371 * doc/xml/manual/status_cxx2017.xml: Ditto.
3372 * doc/xml/manual/status_cxx2020.xml: Ditto.
3373 * doc/xml/manual/status_cxx2023.xml: Ditto.
3374 * doc/html/manual/status.html: Regenerate.
3376 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
3378 * testsuite/std/time/tzdb_list/1.cc: Remove dg-xfail-run-if
3379 and fail gracefully if defining the weak symbol doesn't work.
3381 2023-01-15 François Dumont <fdumont@gcc.gnu.org>
3384 * include/debug/safe_iterator.h (_Safe_iterator<>::operator++(int)): Extend deadlock
3385 fix to other iterator category.
3386 (_Safe_iterator<>::operator--(int)): Likewise.
3387 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::operator++(int)):
3389 * testsuite/util/debug/unordered_checks.h (invalid_local_iterator_pre_increment): New.
3390 (invalid_local_iterator_post_increment): New.
3391 * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_post_increment_neg.cc:
3393 * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_pre_increment_neg.cc:
3396 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
3398 * testsuite/30_threads/jthread/jthread.cc: Remove -pthread from
3401 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
3403 * testsuite/std/time/clock/utc/io.cc: Use ctype to widen char.
3405 2023-01-14 Björn Schäpers <bjoern@hazardy.de>
3407 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Add check for
3408 windows.h. Add pecoff as FORMAT_FILE.
3409 * config.h.in: Regenerate.
3410 * configure: Regenerate.
3411 * src/libbacktrace/Makefile.am: Regenerate.
3412 * src/libbacktrace/Makefile.in: Add pecoff.c as FORMAT_FILE.
3414 2023-01-14 Björn Schäpers <bjoern@hazardy.de>
3416 * include/std/stacktrace (stacktrace_entry::_S_demangle): Use
3417 raw __name if __cxa_demangle could not demangle it.
3419 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
3422 * src/c++20/tzdb.cc (current_zone()) [_AIX]: Use TZ environment
3425 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
3427 * src/c++20/tzdb.cc (TZDB_DISABLED): Disable all code for
3429 * testsuite/std/time/tzdb/leap_seconds.cc: Require tzdb
3431 * testsuite/std/time/tzdb_list/1.cc: Likewise.
3433 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
3435 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Replace the
3436 --with-libstdcxx-zoneinfo-dir configure option with
3437 --with-libstdcxx-zoneinfo with yes/no/static choices as well as
3439 * config.h.in: Regenerate.
3440 * configure: Regenerate.
3441 * doc/xml/manual/configure.xml: Document configure option.
3442 * doc/html/manual/configure.html: Regenerate.
3443 * src/c++20/Makefile.am: Generate tzdata.zi.h header.
3444 * src/c++20/Makefile.in: Regenerate.
3445 * src/c++20/tzdb.cc (__gnu_cxx::zoneinfo_dir_override): Return a
3446 null pointer if no directory is configured.
3447 (zoneinfo_dir): Replace with ...
3448 (zoneinfo_file): New function.
3449 (tzdata_stream): New istream class.
3450 (remote_version, reload_tzdb): Use tzdata_stream.
3451 * testsuite/lib/libstdc++.exp (check_effective_target_tzdb):
3452 Check new _GLIBCXX_STATIC_TZDATA macro and ignore presence of
3453 tzdata.zi file in default location.
3454 * src/c++20/tzdata.zi: New file.
3456 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
3458 * include/bits/chrono_io.h (operator<<): Fix syntax errors.
3459 * testsuite/std/time/month_day/io.cc: New test.
3460 * testsuite/std/time/month_day_last/io.cc: New test.
3461 * testsuite/std/time/month_weekday/io.cc: New test.
3462 * testsuite/std/time/month_weekday_last/io.cc: New test.
3463 * testsuite/std/time/weekday_indexed/io.cc: New test.
3464 * testsuite/std/time/weekday_last/io.cc: New test.
3465 * testsuite/std/time/year_month/io.cc: New test.
3466 * testsuite/std/time/year_month_day_last/io.cc: New test.
3467 * testsuite/std/time/year_month_weekday/io.cc: New test.
3468 * testsuite/std/time/year_month_weekday_last/io.cc: New test.
3470 2023-01-14 François Dumont <fdumont@gcc.gnu.org>
3472 * include/std/format [_GLIBCXX_INLINE_VERSION](to_chars): Adapt __asm symbol
3474 * config/abi/pre/gnu-versioned-namespace.ver: Add to_chars/from_chars symbols
3477 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
3479 * include/bits/std_mutex.h: Include <errno.h>.
3481 2023-01-13 Arsen Arsenović <arsen@aarsen.me>
3483 * testsuite/20_util/to_chars/version.cc: Mark hosted-only.
3484 * testsuite/20_util/uses_allocator/lwg3677.cc: Ditto.
3485 * testsuite/20_util/weak_ptr/cons/self_move.cc: Ditto.
3486 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Replace usage of
3487 std::make_unique with a freestanding-compatible wrapper around
3489 * testsuite/21_strings/basic_string_view/operations/contains/char.cc:
3490 Don't test for presence of __cpp_lib_string_contains on !HOSTED.
3491 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
3493 * testsuite/std/ranges/version_c++23.cc: Don't test for presence
3494 of __cpp_lib_ranges in !HOSTED.
3496 2023-01-13 Arsen Arsenović <arsen@aarsen.me>
3498 * include/Makefile.am: Install bits/char_traits.h,
3500 * include/Makefile.in: Regenerate.
3501 * include/bits/char_traits.h: Gate hosted-only, wchar-only and
3502 mbstate-only bits behind appropriate #ifs.
3503 * include/std/string_view: Gate <iostream> functionality behind
3505 * include/std/version: Enable __cpp_lib_constexpr_string_view
3506 and __cpp_lib_starts_ends_with in !HOSTED.
3507 * include/std/ranges: Re-enable __is_basic_string_view on
3508 freestanding, include <string_view> directly.
3509 * include/precompiled/stdc++.h: Include <string_view> when
3511 * testsuite/20_util/function_objects/searchers.cc: Skip testing
3512 boyer_moore searchers on freestanding
3513 * testsuite/21_strings/basic_string_view/capacity/1.cc: Guard
3514 <string>-related tests behind __STDC_HOSTED__.
3515 * testsuite/21_strings/basic_string_view/cons/char/1.cc: Ditto.
3516 * testsuite/21_strings/basic_string_view/cons/char/2.cc: Remove
3517 unused <stdexcept> include.
3518 * testsuite/21_strings/basic_string_view/cons/char/3.cc: Remove
3519 unused <vector> include.
3520 * testsuite/21_strings/basic_string_view/cons/char/range.cc:
3521 Guard <string> related testing behind __STDC_HOSTED__.
3522 * testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc:
3523 Guard <stdexcept> related tests behind __STDC_HOSTED__.
3524 * testsuite/21_strings/basic_string_view/element_access/char/1.cc:
3526 * testsuite/21_strings/basic_string_view/element_access/wchar_t/1.cc:
3527 Guard <stdexcept> tests behind __STDC_HOSTED__.
3528 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
3529 Enable test on freestanding, guard <stdexcept> bits behind
3531 * testsuite/21_strings/basic_string_view/operations/substr/char.cc:
3532 Guard <stdexcept> bits behind __STDC_HOSTED__.
3533 * testsuite/21_strings/basic_string_view/operations/substr/wchar_t.cc:
3536 2023-01-13 Dimitrij Mijoski <dmjpp@hotmail.com>
3539 * src/c++11/codecvt.cc (read_utf8_code_point): Correctly detect
3540 errors in incomplete multibyte sequences.
3541 (utf16_in): Remove surrogates parameter. Fix conditions for
3543 (utf16_out): Fix condition for returning partial.
3544 (ucs2_in): Do not pass surrogates argument to utf16_in.
3545 * testsuite/22_locale/codecvt/codecvt_unicode.cc: New test.
3546 * testsuite/22_locale/codecvt/codecvt_unicode.h: New header for
3548 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: New
3551 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
3554 * config/io/c_io_stdio.h (__c_lock): Define as a typedef for
3555 __GTHREAD_LEGACY_MUTEX_T if defined.
3557 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
3560 * config/os/gnu-linux/ldbl-extra.ver (GLIBCXX_LDBL_3.4.31):
3561 Export __try_use_facet specializations for facets in namespace
3563 * config/os/gnu-linux/ldbl-ieee128-extra.ver
3564 (GLIBCXX_IEEE128_3.4.31): Likewise for facets in namespace
3566 * testsuite/util/testsuite_abi.cc: Add to lists of known and
3569 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
3571 * include/bits/std_mutex.h: Remove <system_error> include.
3572 * include/std/condition_variable: Add <bits/error_constants.h>
3574 * include/std/mutex: Likewise.
3575 * include/std/shared_mutex: Likewise.
3577 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
3580 * include/experimental/memory_resource
3581 (_GLIBCXX_MAX_ALIGN_MATCHES_MALLOC): Define.
3582 (do_allocate, do_deallocate): Check it.
3583 * testsuite/experimental/memory_resource/new_delete_resource.cc:
3584 Relax expected behaviour for 64-bit hppa-hp-hpux11.11.
3586 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
3588 * doc/xml/manual/abi.xml: Add latest library versions.
3589 * doc/html/manual/abi.html: Regenerate.
3591 2023-01-12 François Dumont <fdumont@gcc.gnu.org>
3594 * include/bits/stl_tree.h (_Rb_tree<>::_M_insert_range_equal): Remove
3595 unused _Alloc_node instance.
3597 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
3599 * include/bits/atomic_wait.h (__detail::__platform_wait_t):
3600 Define as unsigned long if always lock-free, and unsigned int
3603 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
3605 * src/c++20/tzdb.cc (tzdb_list::_S_init_tzdb): Use __try and
3606 __catch macros for exception handling.
3608 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
3611 * include/bits/stl_algobase.h (__lg): Replace six overloads with
3612 a single function template for all integer types.
3613 * include/bits/stl_algo.h (__merge_adaptive_resize): Cast
3614 arithmetic results back to _Distance.
3616 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
3619 * include/std/span (span::span()): Un-simplify constraint to
3620 work for size_t of lesser rank than int.
3622 2023-01-07 LIU Hao <lh_mouse@126.com>
3624 PR middle-end/108300
3625 * src/c++11/system_error.cc: Define `WIN32_LEAN_AND_MEAN` before
3627 * src/c++11/thread.cc: Likewise.
3628 * src/c++17/fs_ops.cc: Likewise.
3629 * src/filesystem/ops.cc: Likewise.
3631 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
3634 * src/c++20/tzdb.cc (zoneinfo_dir): Add diagnostic pragma.
3636 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
3639 * src/c++20/tzdb.cc (time_zone::_Impl::RulesCounter): New class
3640 template and partial specialization for synchronizing access to
3641 time_zone::_Impl::infos.
3642 (time_zone::_M_get_sys_info, reload_tzdb): Adjust uses of
3645 2023-01-06 Patrick Palka <ppalka@redhat.com>
3648 * include/bits/utility.h (__cpp_lib_ranges_zip): Define for C++23.
3649 * include/std/ranges (__cpp_lib_ranges_zip): Likewise.
3650 (__cpp_lib_ranges_chunk): Likewise.
3651 (__cpp_lib_ranges_slide): Likewise.
3652 (__cpp_lib_ranges_chunk_by): Likewise.
3653 (__cpp_lib_ranges_join_with): Likewise.
3654 (__cpp_lib_ranges_repeat): Likewise.
3655 (__cpp_lib_ranges_stride): Likewise.
3656 (__cpp_lib_ranges_cartesian_product): Likewise.
3657 (__cpp_lib_ranges_as_rvalue): Likewise.
3658 * include/std/version: Ditto.
3659 * testsuite/20_util/tuple/p2321r2.cc: Verify value of
3661 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Likewise.
3662 * testsuite/std/ranges/adaptors/chunk/1.cc: Likewise.
3663 * testsuite/std/ranges/adaptors/chunk_by/1.cc: Likewise.
3664 * testsuite/std/ranges/adaptors/join_with/1.cc: Likewise.
3665 * testsuite/std/ranges/adaptors/slide/1.cc: Likewise.
3666 * testsuite/std/ranges/adaptors/stride/1.cc: Likewise.
3667 * testsuite/std/ranges/cartesian_product/1.cc: Likewise.
3668 * testsuite/std/ranges/repeat/1.cc: Likewise.
3669 * testsuite/std/ranges/zip/1.cc: Likewise.
3670 * testsuite/std/ranges/version_c++23.cc: New test.
3672 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
3675 * include/std/bitset (operator>>): Use alloca in the right
3676 scope, not in a constructor.
3677 * testsuite/20_util/bitset/io/input.cc: Check case from PR.
3679 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
3682 * include/std/format (basic_format_arg) [!__cpp_lib_to_chars]:
3683 Disable visiting floating-point types.
3685 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
3688 * include/debug/safe_iterator.h (_Safe_iterator::operator++(int))
3689 (_Safe_iterator::operator--(int)): Do not hold lock around
3690 construction of return value.
3692 2023-01-05 John David Anglin <danglin@gcc.gnu.org>
3694 * config/cpu/hppa/atomicity.h (_PA_LDCW_INSN): Define.
3695 (__exchange_and_add): Use _PA_LDCW_INSN. Use ordered store for
3696 lock release. Revise loop.
3697 (__atomic_add): Likewise.
3699 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
3702 * python/libstdcxx/v6/printers.py (_utc_timezone): New global
3704 (StdChronoTimePointPrinter::to_string): Use it.
3706 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
3709 * include/std/functional (_Bind_front): Add no_unique_address
3710 attribute to data members.
3711 * testsuite/20_util/function_objects/bind_front/107784.cc: Check
3712 size of call wrappers with empty types for targets and bound
3715 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
3718 * src/c++20/tzdb.cc (chrono::current_zone()): Check for zone
3719 using only last component of the name.
3721 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
3725 * config/abi/pre/gnu.ver: Move zoneinfo_dir_override export to
3726 the latest symbol version.
3727 * src/c++20/tzdb.cc (USE_ATOMIC_SHARED_PTR): Define to 0 if
3728 atomic<_Node*> is not always lock free.
3729 (USE_ATOMIC_LIST_HEAD): New macro.
3730 [__hpux__] (__gnu_cxx::zoneinfo_dir_override()): Provide
3731 definition of weak symbol.
3732 (tzdb_list::_Node::_S_head): Rename to _S_head_cache.
3733 (tzdb_list::_Node::_S_list_head): New function for accessing
3734 list head efficiently.
3735 (tzdb_list::_Node::_S_cache_list_head): New function for
3736 updating _S_list_head.
3738 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
3741 * include/std/chrono (hh_mm_ss): Do not use chrono::abs if
3742 duration rep is unsigned.
3743 * testsuite/std/time/hh_mm_ss/1.cc: Check unsigned rep.
3745 2023-01-04 Iain Sandoe <iain@sandoe.co.uk>
3748 * config/abi/pre/gnu.ver (GLIBCXX_3.4):
3749 Add __gnu_cxx::zoneinfo_dir_override().
3751 2023-01-04 Jonathan Wakely <jwakely@redhat.com>
3754 * include/std/array (__array_traits<T, 0>::operator T*()): Add
3756 * testsuite/23_containers/array/element_access/constexpr_c++17.cc: Check
3757 std::array<T, 0>::data().
3760 Copyright (C) 2023 Free Software Foundation, Inc.
3762 Copying and distribution of this file, with or without modification,
3763 are permitted in any medium without royalty provided the copyright
3764 notice and this notice are preserved.