[committed][RISC-V] Remove errant hunk of code
[official-gcc.git] / libstdc++-v3 / ChangeLog
blobba4aef2c50c69aa85f234bc2b6821c1958a315bc
1 2023-07-30  François Dumont  <fdumont@gcc.gnu.org>
3         * src/c++11/compatibility-ldbl-facets-aliases.h: Replace #define with
4         proper #error.
5         * src/c++11/locale-inst-monetary.h: Likewise.
6         * src/c++11/locale-inst-numeric.h: Likewise.
8 2023-07-27  Jonathan Wakely  <jwakely@redhat.com>
10         PR libstdc++/108046
11         * include/std/format (__formatter_fp::format): Ensure __expc is
12         always set for all presentation types. Set __z correctly for
13         zero precision.
14         * testsuite/std/format/functions/format.cc: Check problem cases.
16 2023-07-26  Jonathan Wakely  <jwakely@redhat.com>
18         PR libstdc++/110807
19         * testsuite/23_containers/vector/bool/110807.cc: Require c++11.
21 2023-07-26  Jonathan Wakely  <jwakely@redhat.com>
23         PR libstdc++/110807
24         * include/bits/stl_bvector.h (vector(const vector&)): Access
25         iterators before allocating.
26         * include/bits/vector.tcc (vector<bool>::_M_insert_range):
27         Likewise.
28         * testsuite/23_containers/vector/bool/110807.cc: New test.
30 2023-07-26  Jonathan Wakely  <jwakely@redhat.com>
32         * include/bits/algorithmfwd.h (random_shuffle): Add deprecated
33         attribute.
34         * include/bits/stl_algo.h (random_shuffle): Correct comments.
35         * testsuite/25_algorithms/random_shuffle/1.cc: Disable
36         deprecated warnings.
37         * testsuite/25_algorithms/random_shuffle/59603.cc: Likewise.
38         * testsuite/25_algorithms/random_shuffle/moveable.cc: Likewise.
39         * testsuite/25_algorithms/random_shuffle/deprecated.cc: New
40         test.
42 2023-07-26  Nathaniel Shead  <nathanieloshead@gmail.com>
44         * testsuite/25_algorithms/equal/constexpr_neg.cc: Update diagnostic
45         locations.
46         * testsuite/26_numerics/gcd/105844.cc: Likewise.
47         * testsuite/26_numerics/lcm/105844.cc: Likewise.
49 2023-07-24  Deev Patel  <pateldeev@nevada.unr.edu>
51         * include/std/format (_Formatting_scanner::_M_on_chars): Add
52         missing constexpr specifier.
53         (_Formatting_scanner::_M_format_arg): Likewise.
55 2023-07-24  Jonathan Wakely  <jwakely@redhat.com>
57         PR libstdc++/110653
58         * include/bits/basic_string.h [!HAVE_STOF] (stof): Do not
59         throw an exception for zero result.
60         [HAVE_BROKEN_STRTOLD] (stold): Do not use strtold.
62 2023-07-19  Jonathan Wakely  <jwakely@redhat.com>
64         PR libstdc++/110077
65         * src/c++17/floating_from_chars.cc (from_chars): Only define
66         _Float128 overload when using __strfromf128.
68 2023-07-19  Jonathan Wakely  <jwakely@redhat.com>
70         PR libstdc++/110593
71         * include/bits/chrono.h (duration): Improve static assert
72         messages.
73         (__is_ratio): Move to ...
74         * include/std/ratio (__is_ratio): ... here.
75         (__is_ratio_v): New variable template and partial
76         specialization.
77         (__are_both_ratios): New function template.
78         (__ratio_multiply, ratio_equal, ratio_less, __ratio_add):
79         Add static assertion.
80         * testsuite/20_util/ratio/requirements/type_constraints.cc:
81         New test.
82         * testsuite/20_util/duration/requirements/typedefs_neg1.cc:
83         Adjust expected error.
84         * testsuite/20_util/duration/requirements/typedefs_neg2.cc:
85         Likewise.
87 2023-07-19  Jonathan Wakely  <jwakely@redhat.com>
89         * include/bits/chrono_io.h (__formatter_chrono::_M_format):
90         Do not set __is_neg for hh_mm_ss before calling
91         _M_format_to_ostream. Change __print_sign lambda to only check
92         __is_neg for durations and hh_mm_ss types.
93         (__formatter_chrono::_M_format_to_ostream): Only check __is_neg
94         for duration types.
95         * testsuite/std/time/hh_mm_ss/io.cc: Check negative values.
97 2023-07-19  Jonathan Wakely  <jwakely@redhat.com>
99         PR libstdc++/110719
100         * include/bits/chrono_io.h (__formatter_chrono::_S_floor_seconds):
101         Handle duration and hh_mm_ss.
102         * testsuite/20_util/duration/io.cc: Check locale-specific
103         formats.
104         * testsuite/std/time/hh_mm_ss/io.cc: Likewise.
106 2023-07-19  Jonathan Wakely  <jwakely@redhat.com>
108         * include/std/format (__write_padded): Initialize first element
109         of array to avoid a -Wmaybe-uninitialized warning.
111 2023-07-19  Jonathan Wakely  <jwakely@redhat.com>
113         PR libstdc++/110719
114         * include/bits/chrono_io.h (__formatter_chrono::_M_parse): Fix
115         allowed modifiers for %z and %Z. Fix -Wparentheses and
116         -Wnarrowing warnings.
117         (__formatter_chrono::_M_format): Call new functions for %d, %e,
118         %H, %I, %m and %M.
119         (__formatter_chrono::_M_c): Use _S_floor_seconds to remove
120         subsecond precision.
121         (__formatter_chrono::_M_C_y_Y): Use _M_locale_fmt to handle
122         modifiers.
123         (__formatter_chrono::_M_e): Replace with _M_d_e and use
124         _M_locale_fmt.
125         (__formatter_chrono::_M_I): Replace with _M_H_I and use
126         _M_locale_fmt.
127         (__formatter_chrono::_M_m): New function.
128         (__formatter_chrono::_M_M): New function.
129         (__formatter_chrono::_M_r): Use _M_locale_fmt.
130         (__formatter_chrono::_M_S): Likewise.
131         (__formatter_chrono::_M_u_w): Likewise.
132         (__formatter_chrono::_M_U_V_W): Likewise.
133         (__formatter_chrono::_M_X): Use _S_floor_seconds.
134         (__formatter_chrono::_M_Z): Fix untested branch for wchar_t.
135         (__formatter_chrono::_S_altnum): Remove function.
136         (__formatter_chrono::_S_dd_zero_fill): Remove function.
137         (__formatter_chrono::_S_floor_seconds): New function.
138         (__formatter_chrono::_M_locale_fmt): New function.
139         * testsuite/std/time/clock/system/io.cc: Adjust expected output
140         for locale-specific formats and check modified formats.
141         * testsuite/std/time/clock/utc/io.cc: Likewise.
142         * testsuite/std/time/zoned_time/io.cc: New test.
144 2023-07-19  Jonathan Wakely  <jwakely@redhat.com>
146         PR libstdc++/110708
147         * include/bits/chrono_io.h (__formatter_chrono::_M_parse): Only
148         allow a single modifier.
149         * testsuite/std/time/format.cc: Check multiple modifiers.
151 2023-07-19  Jonathan Wakely  <jwakely@redhat.com>
153         PR libstdc++/110653
154         * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
155         Remove dg-require-string-conversions.
156         * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
157         Likewise.
158         * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
159         Likewise.
160         * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
161         Likewise.
162         * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
163         Likewise.
165 2023-07-19  Jonathan Wakely  <jwakely@redhat.com>
167         PR libstdc++/110653
168         * include/bits/basic_string.h [!_GLIBCXX_HAVE_STRTOF] (stof):
169         Define in terms of std::stod.
171 2023-07-19  Jonathan Wakely  <jwakely@redhat.com>
173         PR libstdc++/110653
174         * include/bits/basic_string.h [_GLIBCXX_HAVE_STRTOF] (stof):
175         Define.
176         [_GLIBCXX_HAVE_STRTOLD] (stold): Define.
177         * include/c_global/cstdlib [_GLIBCXX_HAVE_STRTOF] (strtof):
178         Declare in namespace std.
179         [_GLIBCXX_HAVE_STRTOLD] (strtold): Likewise.
181 2023-07-13  Jonathan Wakely  <jwakely@redhat.com>
183         PR libstdc++/110653
184         * include/bits/basic_string.h (stoi, stol, stoul, stod): Do not
185         depend on _GLIBCXX_USE_C99_STDLIB.
186         [__LONG_WIDTH__ == __LONG_LONG_WIDTH__] (stoll, stoull): Define
187         in terms of stol and stoul respectively.
188         [__DBL_MANT_DIG__ == __LDBL_MANT_DIG__] (stold): Define in terms
189         of stod.
191 2023-07-12  Jonathan Wakely  <jwakely@redhat.com>
193         PR libstdc++/95048
194         * testsuite/27_io/filesystem/path/construct/95048.cc: Check
195         conversions to wide strings.
196         * testsuite/experimental/filesystem/path/construct/95048.cc:
197         Likewise.
199 2023-07-12  Jonathan Wakely  <jwakely@redhat.com>
201         * config/io/basic_file_stdio.cc: Define LFS macros.
202         (__basic_file<char>::open): Use fopen unconditionally.
203         (get_file_offset): Use lseek unconditionally.
204         (__basic_file<char>::seekoff): Likewise.
205         (__basic_file<char>::showmanyc): Use fstat unconditionally.
207 2023-07-12  Jonathan Wakely  <jwakely@redhat.com>
209         PR libstdc++/110574
210         * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fseeko and ftello
211         and define _GLIBCXX_USE_FSEEKO_FTELLO.
212         * config.h.in: Regenerate.
213         * configure: Regenerate.
214         * config/io/basic_file_stdio.cc (xwrite) [_GLIBCXX_USE_STDIO_PURE]:
215         Check for fwrite error correctly.
216         (__basic_file<char>::xsgetn) [_GLIBCXX_USE_STDIO_PURE]: Check for
217         fread error correctly.
218         (get_file_offset): New function.
219         (__basic_file<char>::seekoff) [_GLIBCXX_USE_STDIO_PURE]: Use
220         fseeko if available. Use get_file_offset instead of return value
221         of fseek.
222         (__basic_file<char>::showmanyc): Use get_file_offset.
224 2023-07-12  Ken Matsui  <kmatsui@gcc.gnu.org>
226         * include/std/type_traits (__make_unsigned_selector): Use
227         __is_enum built-in trait.
228         (__make_signed_selector): Likewise.
229         (__underlying_type_impl): Likewise.
231 2023-07-06  Tianqiang Shuai  <1101282468@qq.com>
233         * config/io/basic_file_stdio.cc (xwrite) [USE_STDIO_PURE]: Fix
234         first argument.
236 2023-07-06  Jonathan Wakely  <jwakely@redhat.com>
238         PR libstdc++/110574
239         * doc/xml/manual/configure.xml: Describe stdio_pure argument to
240         --enable-cstdio.
241         * doc/html/manual/configure.html: Regenerate.
243 2023-07-05  Thomas Rodgers  <trodgers@redhat.com>
245         * testsuite/25_algorithms/pstl/alg_sorting/set.cc: Delete
246         file.
247         * testsuite/25_algorithms/pstl/alg_sorting/set_difference.cc:
248         New file.
249         * testsuite/25_algorithms/pstl/alg_sorting/set_intersection.cc:
250         Likewise.
251         * testsuite/25_algorithms/pstl/alg_sorting/set_symmetric_difference.cc:
252         Likewise.
253         * testsuite/25_algorithms/pstl/alg_sorting/set_union.cc:
254         Likewise.
255         * testsuite/25_algorithms/pstl/alg_sorting/set_util.h:
256         Likewise.
258 2023-07-05  Jonathan Wakely  <jwakely@redhat.com>
260         * testsuite/23_containers/forward_list/debug/iterator1_neg.cc:
261         Skip as UNSUPPORTED for C++98 mode.
262         * testsuite/23_containers/forward_list/debug/iterator3_neg.cc:
263         Likewise.
265 2023-07-05  Jonathan Wakely  <jwakely@redhat.com>
267         PR libstdc++/110542
268         * include/bits/stl_uninitialized.h (__uninitialized_default_n):
269         Do not use std::fill_n during constant evaluation.
271 2023-07-05  Jonathan Wakely  <jwakely@redhat.com>
273         * include/bits/vector.tcc (_M_default_append): Replace try-block
274         with RAII types.
276 2023-07-05  Jonathan Wakely  <jwakely@redhat.com>
278         * include/bits/iterator_concepts.h (projected): Add typename.
280 2023-07-03  Jonathan Wakely  <jwakely@redhat.com>
282         * testsuite/27_io/headers/iosfwd/synopsis.cc: Make wsyncbuf and
283         wosyncstream depend on _GLIBCXX_USE_CXX11_ABI.
285 2023-07-03  Jonathan Wakely  <jwakely@redhat.com>
287         * include/pstl/pstl_config.h (_PSTL_PRAGMA_SIMD_SCAN,
288         _PSTL_PRAGMA_SIMD_INCLUSIVE_SCAN, _PSTL_PRAGMA_SIMD_EXCLUSIVE_SCAN):
289         Define to OpenMP 5.0 pragmas even for GCC 10.0+.
290         (_PSTL_UDS_PRESENT): Define to 1 for GCC 10.0+.
292 2023-07-03  Jonathan Wakely  <jwakely@redhat.com>
294         * include/bits/alloc_traits.h (_Destroy): Qualify call.
295         * include/bits/stl_construct.h (_Destroy, _Destroy_n): Likewise.
296         * testsuite/23_containers/vector/cons/destroy-adl.cc: New test.
298 2023-07-03  Iain Sandoe  <iain@sandoe.co.uk>
300         * testsuite/lib/libstdc++.exp: Remove additional flag handled
301         by Darwin specs.
303 2023-06-30  Jonathan Wakely  <jwakely@redhat.com>
305         PR libstdc++/110432
306         * acinclude.m4 (GLIBCXX_CHECK_INIT_PRIORITY): New.
307         * config.h.in: Regenerate.
308         * configure: Regenerate.
309         * configure.ac: Use GLIBCXX_CHECK_INIT_PRIORITY.
310         * include/std/iostream: Use new autoconf macro as well as
311         __has_attribute.
312         * src/c++98/ios_base_init.h: Use new autoconf macro instead of
313         __has_attribute.
315 2023-06-30  Jonathan Wakely  <jwakely@redhat.com>
317         * src/c++11/random.cc (random_device::_M_init): Add maybe_unused
318         attribute.
320 2023-06-30  Jonathan Wakely  <jwakely@redhat.com>
322         PR libstdc++/105081
323         * src/c++11/random.cc (random_device::_M_init): Throw
324         std::system_error when the requested device is a valid token but
325         not available at runtime.
327 2023-06-30  Hans-Peter Nilsson  <hp@axis.com>
329         PR libstdc++/108672
330         * include/pstl/unseq_backend_simd.h (__simd_or): Re-apply using
331         __INT32_TYPE__ instead of int32_t.
333 2023-06-29  Jonathan Wakely  <jwakely@redhat.com>
335         * src/c++20/tzdb.cc (USE_ATOMIC_SHARED_PTR): Define consistently
336         with USE_ATOMIC_LIST_HEAD.
337         (list_mutex): Replace global object with function. Use local
338         static object when std::mutex constructor isn't constexpr.
340 2023-06-29  Jonathan Wakely  <jwakely@redhat.com>
342         PR libstdc++/110462
343         * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check that
344         copy_file_range can be called with loff_t* arguments.
345         * configure: Regenerate.
346         * src/filesystem/ops-common.h (copy_file_copy_file_range):
347         Use loff_t for offsets.
349 2023-06-29  Tom Tromey  <tromey@adacore.com>
351         * testsuite/lib/gdb-test.exp (gdb-test): Relax type-printer
352         regexp.
354 2023-06-28  Jan Hubicka  <jh@suse.cz>
356         PR middle-end/109849
357         * include/bits/c++config (std::__terminate): Mark cold.
358         * include/bits/functexcept.h: Mark everything as cold.
359         * libsupc++/exception: Mark terminate and unexpected as cold.
361 2023-06-26  Thomas Rodgers  <trodgers@redhat.com>
363         * include/pstl/algorithm_fwd.h: Synchronize with upstream.
364         * include/pstl/algorithm_impl.h: Likewise.
365         * include/pstl/execution_defs.h: Likewise.
366         * include/pstl/execution_impl.h: Likewise.
367         * include/pstl/glue_algorithm_impl.h: Likewise.
368         * include/pstl/glue_execution_defs.h: Likewise.
369         * include/pstl/glue_memory_impl.h: Likewise.
370         * include/pstl/glue_numeric_impl.h: Likewise.
371         * include/pstl/memory_impl.h: Likewise.
372         * include/pstl/numeric_fwd.h: Likewise.
373         * include/pstl/numeric_impl.h: Likewise.
374         * include/pstl/parallel_backend.h: Likewise.
375         * include/pstl/parallel_backend_serial.h: Likewise.
376         * include/pstl/parallel_backend_tbb.h: Likewise.
377         * include/pstl/parallel_impl.h: Likewise.
378         * include/pstl/pstl_config.h: Likewise.
379         * include/pstl/unseq_backend_simd.h: Likewise.
380         * include/pstl/utils.h: Likewise.
381         * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc:
382         Likewise.
383         * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc:
384         Likewise.
385         * testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc:
386         Likewise.
387         * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc:
388         Likewise.
389         * testsuite/25_algorithms/pstl/alg_merge/merge.cc: Likewise.
390         * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc:
391         Likewise.
392         * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc:
393         Likewise.
394         * testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc:
395         Likewise.
396         * testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc:
397         Likewise.
398         * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc:
399         Likewise.
400         * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc:
401         Likewise.
402         * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc:
403         Likewise.
404         * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc:
405         Likewise.
406         * testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc:
407         Likewise.
408         * testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc:
409         Likewise.
410         * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc:
411         Likewise.
412         * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc:
413         Likewise.
414         * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc:
415         Likewise.
416         * testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc:
417         Likewise.
418         * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc:
419         Likewise.
420         * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc:
421         Likewise.
422         * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc:
423         Likewise.
424         * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc:
425         Likewise.
426         * testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc:
427         Likewise.
428         * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc:
429         Likewise.
430         * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc:
431         Likewise.
432         * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc:
433         Likewise.
434         * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc:
435         Likewise.
436         * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc:
437         Likewise.
438         * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc:
439         Likewise.
440         * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc:
441         Likewise.
442         * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc:
443         Likewise.
444         * testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc:
445         Likewise.
446         * testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc:
447         Likewise.
448         * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc:
449         Likewise.
450         * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc:
451         Likewise.
452         * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc:
453         Likewise.
454         * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc:
455         Likewise.
456         * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc:
457         Likewise.
458         * testsuite/25_algorithms/pstl/alg_sorting/includes.cc:
459         Likewise.
460         * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc:
461         Likewise.
462         * testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc:
463         Likewise.
464         * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc:
465         Likewise.
466         * testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc:
467         Likewise.
468         * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc:
469         Likewise.
470         * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc:
471         Likewise.
472         * testsuite/25_algorithms/pstl/alg_sorting/set.cc:
473         Likewise.
474         * testsuite/25_algorithms/pstl/alg_sorting/sort.cc:
475         Likewise.
476         * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc:
477         Likewise.
478         * testsuite/26_numerics/pstl/numeric_ops/reduce.cc:
479         Likewise.
480         * testsuite/26_numerics/pstl/numeric_ops/scan.cc:
481         Likewise.
482         * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc:
483         Likewise.
484         * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc:
485         Likewise.
486         * testsuite/util/pstl/test_utils.h:
487         Likewise.
489 2023-06-26  Jonathan Wakely  <jwakely@redhat.com>
491         PR libstdc++/110239
492         * include/std/format (__format::__parse_integer): Fix buffer
493         overflow for wide chars.
494         (formatter<const void*, C>::format): Cast to uintptr_t instead
495         of uint64_t.
496         * testsuite/std/format/string.cc: Test too-large widths.
498 2023-06-26  Jonathan Wakely  <jwakely@redhat.com>
500         * include/bits/iterator_concepts.h (projected): Replace class
501         template with alias template denoting an ADL-proofed helper.
502         (incremental_traits<projected<Iter, Proj>>): Remove.
503         * testsuite/24_iterators/indirect_callable/projected-adl.cc:
504         New test.
506 2023-06-26  Jonathan Wakely  <jwakely@redhat.com>
508         * include/debug/helper_functions.h (__get_distance)
509         (__check_singular, __valid_range_aux, __valid_range): Qualify
510         calls to disable ADL.
511         (__check_singular_aux(const _Safe_iterator_base*)): Declare
512         overload that was previously found via ADL.
514 2023-06-23  Jonathan Wakely  <jwakely@redhat.com>
516         * include/bits/vector.tcc (_M_realloc_insert): Replace try-block
517         with RAII types.
519 2023-06-20  Jonathan Wakely  <jwakely@redhat.com>
521         * include/std/array (to_array(T(&)[N])): Remove redundant
522         condition.
523         (to_array(T(&&)[N])): Remove redundant std::move.
525 2023-06-16  Alexandre Oliva  <oliva@adacore.com>
527         * testsuite/20_util/from_chars/4.cc: Skip long double on
528         aarch64-rtems.
530 2023-06-16  Joel Brobecker  <brobecker@adacore.com>
532         * configure.ac ["x${with_newlib}" = "xyes"]: Define
533         HAVE_HYPOTF.  Add compile-checks for various long double
534         math functions as well.
535         * configure: Regenerate.
537 2023-06-14  Jonny Grant  <jg@jguk.org>
539         * doc/xml/manual/extensions.xml: Remove demangle exception
540         description and include.
541         * doc/html/manual/ext_demangling.html: Regenerate.
543 2023-06-10  Hans-Peter Nilsson  <hp@axis.com>
545         * testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc (main)
546         [! SIMULATOR_TEST]: Also exclude running test05.
547         * testsuite/27_io/basic_istream/ignore/char/94749.cc: Ditto.
549 2023-06-09  Ken Matsui  <kmatsui@cs.washington.edu>
551         * include/std/type_traits: Use using instead of typedef
553 2023-06-09  Jonathan Wakely  <jwakely@redhat.com>
555         PR libstdc++/110077
556         * src/c++17/floating_from_chars.cc (from_chars) <_Float128>:
557         Only define if _Float128 and long double have different
558         representations.
560 2023-06-09  Jonathan Wakely  <jwakely@redhat.com>
562         PR libstdc++/100285
563         * include/experimental/internet [IPPROTO_TCP || IPPROTO_UDP]
564         (basic_endpoint, basic_resolver_entry, resolver_base)
565         (basic_resolver_results, basic_resolver): Only define if the tcp
566         or udp protocols will be defined.
568 2023-06-09  Jonathan Wakely  <jwakely@redhat.com>
570         * acinclude.m4 (libtool_VERSION): Update to 6.0.33.
571         * configure: Regenerate.
572         * doc/xml/manual/abi.xml: Add libstdc++.so.6.0.33.
573         * doc/html/manual/abi.html: Regenerate.
575 2023-06-09  Jonathan Wakely  <jwakely@redhat.com>
577         PR libstdc++/110149
578         * include/std/format (formatter<const void*, charT>::parse):
579         Only alow 0 and P for C++26 and non-strict modes.
580         (formatter<const void*, charT>::format): Use toupper for P
581         type, and insert zero-fill characters for 0 option.
582         * testsuite/std/format/functions/format.cc: Check pointer
583         formatting. Only check P2510R3 extensions conditionally.
584         * testsuite/std/format/parse_ctx.cc: Only check P2510R3
585         extensions conditionally.
587 2023-06-09  Jonathan Wakely  <jwakely@redhat.com>
589         PR libstdc++/110167
590         * include/std/array (to_array): Initialize arrays of trivial
591         types using memcpy. For non-trivial types, use lambda
592         expressions instead of a separate helper function.
593         (__to_array): Remove.
594         * testsuite/23_containers/array/creation/110167.cc: New test.
596 2023-06-09  Jonathan Wakely  <jwakely@redhat.com>
598         * testsuite/23_containers/deque/modifiers/emplace/52799.cc:
599         Removed.
600         * testsuite/23_containers/deque/modifiers/emplace/const_iterator.cc:
601         Removed.
602         * testsuite/23_containers/list/modifiers/emplace/52799.cc:
603         Removed.
604         * testsuite/23_containers/list/modifiers/emplace/const_iterator.cc:
605         Removed.
606         * testsuite/23_containers/vector/modifiers/emplace/52799.cc:
607         Removed.
608         * testsuite/23_containers/vector/modifiers/emplace/const_iterator.cc:
609         Removed.
610         * testsuite/23_containers/deque/modifiers/emplace/1.cc: New
611         test.
612         * testsuite/23_containers/list/modifiers/emplace/1.cc: New
613         test.
614         * testsuite/23_containers/vector/modifiers/emplace/1.cc: New
615         test.
617 2023-06-07  Jakub Jelinek  <jakub@redhat.com>
619         PR libstdc++/110145
620         * testsuite/20_util/to_chars/double.cc: Include <cfloat>.
621         (double_to_chars_test_cases,
622         double_scientific_precision_to_chars_test_cases_2,
623         double_fixed_precision_to_chars_test_cases_2): #if out 1e126, 4.91e-6
624         and 5.547e-6 tests if FLT_EVAL_METHOD is negative or larger than 1.
625         Add unconditional tests with corresponding double constants
626         0x1.7a2ecc414a03fp+418, 0x1.4981285e98e79p-18 and
627         0x1.7440bbff418b9p-18.
629 2023-06-07  Jonathan Wakely  <jwakely@redhat.com>
631         * testsuite/util/testsuite_abi.cc (check_version): Re-add
632         CXXABI_1.3.14.
634 2023-06-07  Jonathan Wakely  <jwakely@redhat.com>
636         * testsuite/18_support/nested_exception/rethrow_if_nested-term.cc:
637         Require effective target exceptions_enabled instead of using
638         dg-skip-if.
639         * testsuite/23_containers/vector/capacity/constexpr.cc: Expect
640         shrink_to_fit() to be a no-op without exceptions enabled.
641         * testsuite/23_containers/vector/capacity/shrink_to_fit.cc:
642         Likewise.
643         * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc:
644         Require effective target exceptions_enabled.
645         * testsuite/ext/malloc_allocator/check_allocate_max_size.cc:
646         Likewise.
647         * testsuite/ext/mt_allocator/check_allocate_max_size.cc:
648         Likewise.
649         * testsuite/ext/new_allocator/check_allocate_max_size.cc:
650         Likewise.
651         * testsuite/ext/pool_allocator/check_allocate_max_size.cc:
652         Likewise.
653         * testsuite/ext/throw_allocator/check_allocate_max_size.cc:
654         Likewise.
656 2023-06-07  Jonathan Wakely  <jwakely@redhat.com>
658         * testsuite/20_util/duration/cons/2.cc: Use values that aren't
659         affected by rounding.
660         * testsuite/20_util/from_chars/5.cc: Cast arithmetic result to
661         double before comparing for equality.
662         * testsuite/20_util/from_chars/6.cc: Likewise.
663         * testsuite/20_util/variant/86874.cc: Use values that aren't
664         affected by rounding.
665         * testsuite/25_algorithms/lower_bound/partitioned.cc: Compare to
666         original value instead of to floating-point-literal.
667         * testsuite/26_numerics/random/discrete_distribution/cons/range.cc:
668         Cast arithmetic result to double before comparing for equality.
669         * testsuite/26_numerics/random/piecewise_constant_distribution/cons/range.cc:
670         Likewise.
671         * testsuite/26_numerics/random/piecewise_linear_distribution/cons/range.cc:
672         Likewise.
673         * testsuite/26_numerics/valarray/transcend.cc (eq): Check that
674         the absolute difference is less than 0.01 instead of comparing
675         to two decimal places.
676         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
677         Cast arithmetic result to double before comparing for equality.
678         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
679         Likewise.
680         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
681         Likewise.
682         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/01.cc:
683         Likewise.
684         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/09.cc:
685         Likewise.
686         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/10.cc:
687         Likewise.
688         * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
690 2023-06-07  Jonathan Wakely  <jwakely@redhat.com>
692         Revert:
693         2023-06-06  Jonathan Wakely  <jwakely@redhat.com>
695         * configure.ac: Use AS_IF.
696         * configure: Regenerate.
698 2023-06-07  Thomas Schwinge  <thomas@codesourcery.com>
700         * testsuite/lib/prune.exp (libstdc++-dg-prune): Support
701         'UNSUPPORTED: [...]: exception handling disabled'.
703 2023-06-06  Jonathan Wakely  <jwakely@redhat.com>
705         * testsuite/util/testsuite_abi.cc (check_version): Add
706         CXXABI_1.3.15 symver and make it the latestp. Remove
707         GLIBCXX_IEEE128_3.4.31 and GLIBCXX_LDBL_3.4.31 from latestp.
709 2023-06-06  Jonathan Wakely  <jwakely@redhat.com>
710             Jakub Jelinek  <jakub@redhat.com>
712         PR libstdc++/104772
713         * include/std/limits: (numeric_limits<__float128>): Define
714         for __STRICT_ANSI__ as well.
715         * testsuite/18_support/numeric_limits/128bit.cc: Remove
716         check for __STRICT_ANSI__.
718 2023-06-06  Jonathan Wakely  <jwakely@redhat.com>
720         * configure.ac: Use AS_IF.
721         * configure: Regenerate.
723 2023-06-06  Matthias Kretz  <m.kretz@gsi.de>
725         PR libstdc++/109822
726         * include/experimental/bits/simd_builtin.h (_S_store): Rewrite
727         to avoid casts to other vector types. Implement store as
728         succession of power-of-2 sized memcpy to avoid PR90424.
730 2023-06-06  Matthias Kretz  <m.kretz@gsi.de>
732         PR libstdc++/110054
733         * include/experimental/bits/simd_builtin.h (_S_masked_store):
734         Call into deduced ABI's SimdImpl after conversion.
735         * include/experimental/bits/simd_x86.h (_S_masked_store_nocvt):
736         Don't use _mm_maskmoveu_si128. Use the generic fall-back
737         implementation. Also fix masked stores without SSE2, which
738         were not doing anything before.
740 2023-06-06  Matthias Kretz  <m.kretz@gsi.de>
742         * include/experimental/bits/simd.h (__bit_cast): Use
743         __gnu__::__vector_size__ instead of gnu::vector_size.
745 2023-06-06  Jonathan Wakely  <jwakely@redhat.com>
747         PR libstdc++/110139
748         * include/std/array (__array_traits<T, 0>::operator T*()): Make
749         conversion operator explicit.
750         (array::front): Use size_type as subscript operand.
751         (array::data): Use static_cast to make conversion explicit.
752         * testsuite/23_containers/array/element_access/110139.cc: New
753         test.
755 2023-06-06  Joseph Faulls  <Joseph.Faulls@imgtec.com>
757         * include/bits/locale_classes.tcc: Remove check for
758         codecvt<char8_t, char, mbstate_t> facet.
760 2023-06-06  Jonathan Wakely  <jwakely@redhat.com>
762         * src/filesystem/ops-common.h (do_copy_file) [O_CLOEXEC]: Set
763         close-on-exec flag on file descriptors.
765 2023-06-06  Jonathan Wakely  <jwakely@redhat.com>
767         PR libstdc++/108178
768         * src/filesystem/ops-common.h (do_copy_file): Check for empty
769         files by trying to read a character.
770         * testsuite/27_io/filesystem/operations/copy_file_108178.cc:
771         New test.
773 2023-06-06  Jannik Glückert  <jannik.glueckert@gmail.com>
775         * acinclude.m4 (_GLIBCXX_USE_COPY_FILE_RANGE): Define.
776         * config.h.in: Regenerate.
777         * configure: Regenerate.
778         * src/filesystem/ops-common.h (copy_file_copy_file_range):
779         Define new function.
780         (do_copy_file): Use it.
782 2023-06-06  Jannik Glückert  <jannik.glueckert@gmail.com>
784         * acinclude.m4 (_GLIBCXX_HAVE_LSEEK): Define.
785         * config.h.in: Regenerate.
786         * configure: Regenerate.
787         * src/filesystem/ops-common.h (copy_file_sendfile): Define new
788         function for sendfile logic. Loop to support large files. Skip
789         zero-length files.
790         (do_copy_file): Use it.
792 2023-06-04  Jason Merrill  <jason@redhat.com>
794         PR c++/97720
795         * libsupc++/eh_call.cc (__cxa_call_terminate): Take void*.
796         * config/abi/pre/gnu.ver: Add it.
798 2023-06-02  François Dumont  <fdumont@gcc.gnu.org>
800         * include/parallel/algobase.h: Include <parallel/search.h>.
802 2023-06-01  Jonathan Wakely  <jwakely@redhat.com>
804         * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc:
805         Add const to equality operator.
807 2023-06-01  Jonathan Wakely  <jwakely@redhat.com>
809         * include/std/expected (expected::and_then, expected::or_else)
810         (expected::transform_error): Use _M_val and _M_unex instead of
811         calling value() and error(), as per LWG 3938.
812         (expected::transform): Likewise. Remove incorrect std::move
813         calls from lvalue overloads.
814         (expected<void, E>::and_then, expected<void, E>::or_else)
815         (expected<void, E>::transform): Use _M_unex instead of calling
816         error().
817         * testsuite/20_util/expected/lwg3877.cc: Add checks for and_then
818         and transform, and for std::expected<void, E>.
819         * testsuite/20_util/expected/lwg3938.cc: New test.
821 2023-06-01  Jonathan Wakely  <jwakely@redhat.com>
823         PR libstdc++/110060
824         * include/bits/stl_vector.h (_Vector_base::_M_invariant):
825         Remove.
826         (vector::size, vector::capacity): Remove calls to _M_invariant.
827         * include/bits/vector.tcc (vector::_M_fill_assign): Add
828         optimization hint to reallocating path.
829         (vector::_M_assign_aux(FwdIter, FwdIter, forward_iterator_tag)):
830         Likewise.
831         * testsuite/23_containers/vector/capacity/invariant.cc: Moved
832         to...
833         * testsuite/23_containers/vector/modifiers/assign/no_realloc.cc:
834         ...here. Check assign(FwdIter, FwdIter) too.
835         * testsuite/23_containers/vector/types/1.cc: Revert addition
836         of -Wno-stringop-overread option.
838 2023-06-01  Jonathan Wakely  <jwakely@redhat.com>
840         * doc/xml/manual/evolution.xml: Document removal of implicit
841         allocator rebinding extensions in strict mode and for C++20.
842         * doc/html/*: Regenerate.
844 2023-06-01  Jason Merrill  <jason@redhat.com>
846         * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Don't check
847         handlers in the cleanup phase.
849 2023-06-01  Matthias Kretz  <m.kretz@gsi.de>
851         PR libstdc++/110050
852         * include/experimental/bits/simd.h (__vectorized_sizeof): With
853         __have_neon_a32 only single-precision float works (in addition
854         to integers).
856 2023-06-01  François Dumont  <fdumont@gcc.gnu.org>
858         * include/bits/stl_algo.h
859         (std::__search, std::search(_FwdIt1, _FwdIt1, _FwdIt2, _FwdIt2, _BinPred)): Move...
860         * include/bits/stl_algobase.h: ...here.
861         * include/std/functional: Replace <stl_algo.h> include by <stl_algobase.h>.
862         * include/parallel/algo.h (std::__parallel::search<_FIt1, _FIt2, _BinaryPred>)
863         (std::__parallel::__search_switch<_FIt1, _FIt2, _BinaryPred, _ItTag1, _ItTag2>):
864         Move...
865         * include/parallel/algobase.h: ...here.
866         * include/experimental/functional: Remove <bits/stl_algo.h> and <parallel/algorithm>
867         includes. Include <bits/stl_algobase.h>.
869 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
871         PR libstdc++/109818
872         * acinclude.m4 (GLIBCXX_ENABLE_C99): Add separate check for
873         float_t and double_t and define HAVE_C99_FLT_EVAL_TYPES.
874         * config.h.in: Regenerate.
875         * configure: Regenerate.
876         * include/c_global/cmath (float_t, double_t): Guard using new
877         _GLIBCXX_HAVE_C99_FLT_EVAL_TYPES macro.
879 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
881         * acinclude.m4 (GLIBCXX_ENABLE_C99): Add checks for C99 math
882         functions and define _GLIBCXX_USE_C99_MATH_FUNCS. Move checks
883         for C99 rounding functions to here.
884         (GLIBCXX_CHECK_C99_TR1): Remove checks for C99 rounding
885         functions from here.
886         * config.h.in: Regenerate.
887         * configure: Regenerate.
888         * include/bits/random.h: Use _GLIBCXX_USE_C99_MATH_FUNCS instead
889         of _GLIBCXX_USE_C99_MATH_TR1.
890         * include/bits/random.tcc: Likewise.
891         * include/c_compatibility/math.h: Likewise.
892         * include/c_global/cmath: Likewise.
893         * include/ext/random: Likewise.
894         * include/ext/random.tcc: Likewise.
895         * include/std/complex: Likewise.
896         * testsuite/20_util/from_chars/4.cc: Likewise.
897         * testsuite/20_util/from_chars/8.cc: Likewise.
898         * testsuite/26_numerics/complex/proj.cc: Likewise.
899         * testsuite/26_numerics/headers/cmath/60401.cc: Likewise.
900         * testsuite/26_numerics/headers/cmath/types_std_c++0x.cc:
901         Likewise.
902         * testsuite/lib/libstdc++.exp (check_v3_target_cstdint):
903         Likewise.
904         * testsuite/util/testsuite_random.h: Likewise.
906 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
908         * include/bits/stl_vector.h (_Vector_base::_M_invariant()): New
909         function.
910         (vector::size(), vector::capacity()): Call _M_invariant().
911         * testsuite/23_containers/vector/capacity/invariant.cc: New test.
912         * testsuite/23_containers/vector/types/1.cc: Add suppression for
913         false positive warning (PR110060).
915 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
917         PR libstdc++/109921
918         * src/c++17/floating_from_chars.cc: Check __FLT128_MANT_DIG__ is
919         defined before trying to use _Float128.
921 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
923         * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Fix for 32-bit pointers
924         to check __INT_PTR_WIDTH__ instead of sizeof(void*).
925         * configure: Regenerate.
927 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
929         * include/bits/unique_lock.h: Include <bits/error_constants.h>
930         here for std::errc constants.
931         * include/std/mutex: Do not include <bits/error_constants.h> and
932         <exception> here.
934 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
936         * configure.ac: Replace use of -o operator for test.
937         * configure: Regenerate.
939 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
941         * include/std/scoped_allocator (scoped_allocator_adaptor): Add
942         noexcept to all constructors except the default constructor.
943         (scoped_allocator_adaptor::inner_allocator): Add noexcept.
944         (scoped_allocator_adaptor::outer_allocator): Likewise.
945         * testsuite/20_util/scoped_allocator/noexcept.cc: New test.
947 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
949         PR libstdc++/104772
950         * include/std/limits (numeric_limits<__float128>): Define.
951         * testsuite/18_support/numeric_limits/128bit.cc: New test.
953 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
955         * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Extend logic for avr and
956         msp430 to all 16-bit targets.
957         * configure: Regenerate.
959 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
961         PR libstdc++/109921
962         * src/c++17/floating_from_chars.cc (USE_STRTOF128_FOR_FROM_CHARS):
963         Only define when USE_STRTOD_FOR_FROM_CHARS is also defined.
964         (USE_STRTOD_FOR_FROM_CHARS): Do not undefine when long double is
965         binary64.
966         (from_chars(const char*, const char*, double&, chars_format)):
967         Check __LDBL_MANT_DIG__ == __DBL_MANT_DIG__ here.
968         (from_chars(const char*, const char*, _Float128&, chars_format))
969         Only use from_chars_strtod when USE_STRTOD_FOR_FROM_CHARS is
970         defined, otherwise parse a long double and convert to _Float128.
972 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
974         PR libstdc++/109922
975         * include/std/iomanip (operator>>(basic_istream&, _Setfill)):
976         Add deprecated attribute to non-standard overload.
977         * doc/xml/manual/evolution.xml: Document deprecation.
978         * doc/html/*: Regenerate.
979         * testsuite/27_io/manipulators/standard/char/1.cc: Add
980         dg-warning for expected deprecated warning.
981         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
982         * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
983         * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
985 2023-05-30  Alexandre Oliva  <oliva@adacore.com>
987         * testsuite/20_util/from_chars/4.cc: Skip long double test06
988         on x86_64-vxworks.
989         * testsuite/20_util/to_chars/long_double.cc: Xfail run on
990         x86_64-vxworks.
992 2023-05-30  Matthias Kretz  <m.kretz@gsi.de>
994         PR libstdc++/109822
995         * include/experimental/bits/simd.h (to_native): Use int NTTP
996         as specified in PTS2.
997         (to_compatible): Likewise. Add missing tag to call mask
998         generator ctor.
999         * testsuite/experimental/simd/pr109822_cast_functions.cc: New
1000         test.
1002 2023-05-30  Matthias Kretz  <m.kretz@gsi.de>
1004         * testsuite/experimental/simd/tests/integer_operators.cc:
1005         Compute expected value differently to avoid getting turned into
1006         a vector shift.
1008 2023-05-30  Matthias Kretz  <m.kretz@gsi.de>
1010         * testsuite/experimental/simd/tests/operator_cvt.cc: Make long
1011         double <-> (u)long conversion tests conditional on sizeof(long
1012         double) and sizeof(long).
1014 2023-05-26  Matthias Kretz  <m.kretz@gsi.de>
1016         * include/experimental/bits/simd_ppc.h (_S_bit_shift_left):
1017         Negative __y is UB, so prefer signed compare.
1019 2023-05-25  Jonathan Wakely  <jwakely@redhat.com>
1021         * testsuite/util/testsuite_allocator.h (PointerBase): Add
1022         relational operators.
1024 2023-05-25  Alexandre Oliva  <oliva@adacore.com>
1026         * testsuite/20_util/to_chars/long_double.cc: Expect execution
1027         fail on x86-vxworks.
1029 2023-05-24  Matthias Kretz  <m.kretz@gsi.de>
1031         PR libstdc++/109949
1032         * include/experimental/bits/simd.h (__intrinsic_type): If
1033         __ALTIVEC__ is defined, map gnu::vector_size types to their
1034         corresponding __vector T types without losing unsignedness of
1035         integer types. Also prefer long long over long.
1036         * include/experimental/bits/simd_ppc.h (_S_popcount): Cast mask
1037         object to the expected unsigned vector type.
1039 2023-05-24  Matthias Kretz  <m.kretz@gsi.de>
1041         PR libstdc++/109261
1042         * include/experimental/bits/simd.h (__intrinsic_type):
1043         Specialize __intrinsic_type<double, 8> and
1044         __intrinsic_type<double, 16> in any case, but provide the member
1045         type only with __aarch64__.
1047 2023-05-24  Matthias Kretz  <m.kretz@gsi.de>
1049         PR libstdc++/109261
1050         * include/experimental/bits/simd_neon.h (_S_reduce): Add
1051         constexpr and make NEON implementation conditional on
1052         not __builtin_is_constant_evaluated.
1054 2023-05-23  Matthias Kretz  <m.kretz@gsi.de>
1056         PR libstdc++/109261
1057         * include/experimental/bits/simd.h (_SimdWrapper::_M_set):
1058         Avoid vector builtin subscripting in constant expressions.
1059         (resizing_simd_cast): Avoid memcpy if constant_evaluated.
1060         (const_where_expression, where_expression, where)
1061         (__extract_part, simd_mask, _SimdIntOperators, simd): Add either
1062         _GLIBCXX_SIMD_CONSTEXPR (on public APIs), or constexpr (on
1063         internal APIs).
1064         * include/experimental/bits/simd_builtin.h (__vector_permute)
1065         (__vector_shuffle, __extract_part, _GnuTraits::_SimdCastType1)
1066         (_GnuTraits::_SimdCastType2, _SimdImplBuiltin)
1067         (_MaskImplBuiltin::_S_store): Add constexpr.
1068         (_CommonImplBuiltin::_S_store_bool_array)
1069         (_SimdImplBuiltin::_S_load, _SimdImplBuiltin::_S_store)
1070         (_SimdImplBuiltin::_S_reduce, _MaskImplBuiltin::_S_load): Add
1071         constant_evaluated case.
1072         * include/experimental/bits/simd_fixed_size.h
1073         (_S_masked_load): Reword comment.
1074         (__tuple_element_meta, __make_meta, _SimdTuple::_M_apply_r)
1075         (_SimdTuple::_M_subscript_read, _SimdTuple::_M_subscript_write)
1076         (__make_simd_tuple, __optimize_simd_tuple, __extract_part)
1077         (__autocvt_to_simd, _Fixed::__traits::_SimdBase)
1078         (_Fixed::__traits::_SimdCastType, _SimdImplFixedSize): Add
1079         constexpr.
1080         (_SimdTuple::operator[], _M_set): Add constexpr and add
1081         constant_evaluated case.
1082         (_MaskImplFixedSize::_S_load): Add constant_evaluated case.
1083         * include/experimental/bits/simd_scalar.h: Add constexpr.
1084         * include/experimental/bits/simd_x86.h (_CommonImplX86): Add
1085         constexpr and add constant_evaluated case.
1086         (_SimdImplX86::_S_equal_to, _S_not_equal_to, _S_less)
1087         (_S_less_equal): Value-initialize to satisfy constexpr
1088         evaluation.
1089         (_MaskImplX86::_S_load): Add constant_evaluated case.
1090         (_MaskImplX86::_S_store): Add constexpr and constant_evaluated
1091         case. Value-initialize local variables.
1092         (_MaskImplX86::_S_logical_and, _S_logical_or, _S_bit_not)
1093         (_S_bit_and, _S_bit_or, _S_bit_xor): Add constant_evaluated
1094         case.
1095         * testsuite/experimental/simd/pr109261_constexpr_simd.cc: New
1096         test.
1098 2023-05-22  Matthias Kretz  <m.kretz@gsi.de>
1100         * include/experimental/bits/simd_builtin.h (_S_fpclassify): Move
1101         __infn into #ifdef'ed block.
1102         * testsuite/experimental/simd/tests/fpclassify.cc: Declare
1103         constants only when used.
1104         * testsuite/experimental/simd/tests/frexp.cc: Likewise.
1105         * testsuite/experimental/simd/tests/logarithm.cc: Likewise.
1106         * testsuite/experimental/simd/tests/trunc_ceil_floor.cc:
1107         Likewise.
1108         * testsuite/experimental/simd/tests/ldexp_scalbn_scalbln_modf.cc:
1109         Move totest and expect1 into #ifdef'ed block.
1111 2023-05-19  Gerald Pfeifer  <gerald@pfeifer.com>
1113         * doc/xml/manual/strings.xml: Move lafstern.org reference to https.
1114         * doc/html/manual/strings.html: Regenerate.
1116 2023-05-17  Jakub Jelinek  <jakub@redhat.com>
1118         PR libstdc++/109883
1119         * testsuite/26_numerics/headers/cmath/constexpr_std_c++23.cc: New test.
1121 2023-05-17  Jakub Jelinek  <jakub@redhat.com>
1123         PR libstdc++/109883
1124         * include/c_global/cmath (atan2, fmod, pow): Move
1125         __gnu_cxx::__promote_2 using templates after _Float{16,32,64,128} and
1126         __gnu_cxx::__bfloat16_t overloads.
1127         (copysign, fdim, fmax, fmin, hypot, nextafter, remainder, remquo):
1128         Likewise.
1129         (fma): Move __gnu_cxx::__promote_3 using template after
1130         _Float{16,32,64,128} and __gnu_cxx::__bfloat16_t overloads.
1132 2023-05-17  Jonathan Wakely  <jwakely@redhat.com>
1134         * testsuite/18_support/headers/limits/synopsis.cc: Uncomment
1135         checks for float_round_style and float_denorm_style.
1137 2023-05-17  Jonathan Wakely  <jwakely@redhat.com>
1139         * include/bits/c++config: Add system_header pragma.
1141 2023-05-17  Jonathan Wakely  <jwakely@redhat.com>
1143         * include/std/expected (expected::and_then, expected::or_else)
1144         (expected::transform, expected::transform_error): Fix exception
1145         specifications as per LWG 3877.
1146         (expected<void, E>::and_then, expected<void, E>::transform):
1147         Likewise.
1148         * testsuite/20_util/expected/lwg3877.cc: New test.
1150 2023-05-17  Ken Matsui  <kmatsui@cs.washington.edu>
1152         * include/std/type_traits: Use __bool_constant instead of
1153         integral_constant.
1155 2023-05-17  Jonathan Wakely  <jwakely@redhat.com>
1157         * configure: Regenerate.
1159 2023-05-16  Jonathan Wakely  <jwakely@redhat.com>
1161         PR libstdc++/109741
1162         * acinclude.m4 (GLIBCXX_CHECK_ALIGNAS_CACHELINE): Define.
1163         * config.h.in: Regenerate.
1164         * configure: Regenerate.
1165         * configure.ac: Use GLIBCXX_CHECK_ALIGNAS_CACHELINE.
1166         * src/c++11/shared_ptr.cc (__gnu_internal::get_mutex): Do not
1167         align lock table if not supported. use __GCC_DESTRUCTIVE_SIZE
1168         instead of hardcoded 64.
1170 2023-05-16  Jonathan Wakely  <jwakely@redhat.com>
1172         * acinclude.m4 (GLIBCXX_USE_C99): Check for isblank in C++11
1173         mode and define _GLIBCXX_USE_C99_CTYPE. Check for <fenv.h>
1174         functions in C++11 mode and define _GLIBCXX_USE_C99_FENV.
1175         * config.h.in: Regenerate.
1176         * configure: Regenerate.
1177         * include/c_compatibility/fenv.h: Check _GLIBCXX_USE_C99_FENV
1178         instead of _GLIBCXX_USE_C99_FENV_TR1.
1179         * include/c_global/cfenv: Likewise.
1180         * include/c_global/cctype: Check _GLIBCXX_USE_C99_CTYPE instead
1181         of _GLIBCXX_USE_C99_CTYPE_TR1.
1183 2023-05-16  Jonathan Wakely  <jwakely@redhat.com>
1185         * acinclude.m4 (GLIBCXX_USE_C99): Check for <stdint.h> types in
1186         C++11 mode and define _GLIBCXX_USE_C99_STDINT. Check for
1187         <inttypes.h> features in C++11 mode and define
1188         _GLIBCXX_USE_C99_INTTYPES and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T.
1189         * config.h.in: Regenerate.
1190         * configure: Regenerate.
1191         * doc/doxygen/user.cfg.in (PREDEFINED): Add new macros.
1192         * include/bits/chrono.h: Check _GLIBCXX_USE_C99_STDINT instead
1193         of _GLIBCXX_USE_C99_STDINT_TR1.
1194         * include/c_compatibility/inttypes.h: Check
1195         _GLIBCXX_USE_C99_INTTYPES and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T
1196         instead of _GLIBCXX_USE_C99_INTTYPES_TR1 and
1197         _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
1198         * include/c_compatibility/stdatomic.h: Check
1199         _GLIBCXX_USE_C99_STDINT instead of _GLIBCXX_USE_C99_STDINT_TR1.
1200         * include/c_compatibility/stdint.h: Likewise.
1201         * include/c_global/cinttypes: Check _GLIBCXX_USE_C99_INTTYPES
1202         and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T instead of
1203         _GLIBCXX_USE_C99_INTTYPES_TR1 and
1204         _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
1205         * include/c_global/cstdint: Check _GLIBCXX_USE_C99_STDINT
1206         instead of _GLIBCXX_USE_C99_STDINT_TR1.
1207         * include/std/atomic: Likewise.
1208         * src/c++11/cow-stdexcept.cc: Likewise.
1209         * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc:
1210         Likewise.
1211         * testsuite/lib/libstdc++.exp (check_v3_target_cstdint):
1212         Likewise.
1214 2023-05-16  Jonathan Wakely  <jwakely@redhat.com>
1216         * acinclude.m4 (GLIBCXX_USE_C99): Check for complex inverse trig
1217         functions in C++11 mode and define _GLIBCXX_USE_C99_COMPLEX_ARC.
1218         * config.h.in: Regenerate.
1219         * configure: Regenerate.
1220         * doc/doxygen/user.cfg.in (PREDEFINED): Add new macro.
1221         * include/std/complex: Check _GLIBCXX_USE_C99_COMPLEX_ARC
1222         instead of _GLIBCXX_USE_C99_COMPLEX_TR1.
1224 2023-05-16  Jonathan Wakely  <jwakely@redhat.com>
1226         * testsuite/ext/debug_allocator/check_deallocate_null.cc: Add
1227         assertion to ensure expected exception is throw.
1229 2023-05-16  Jonathan Wakely  <jwakely@redhat.com>
1231         * testsuite/libstdc++-prettyprinters/chrono.cc: Only test
1232         printer for chrono::zoned_time for cx11 ABI and tzdb effective
1233         target.
1235 2023-05-16  Jonathan Wakely  <jwakely@redhat.com>
1237         * acinclude.m4 (GLIBCXX_CHECK_PTHREAD_MUTEX_CLOCKLOCK): Define
1238         _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK in terms of _GLIBCXX_TSAN.
1239         * configure: Regenerate.
1241 2023-05-12  Jonathan Wakely  <jwakely@redhat.com>
1243         * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Use a non-null pointer
1244         to check for nan, nanf, and nanl.
1245         * configure: Regenerate.
1247 2023-05-12  Jonathan Wakely  <jwakely@redhat.com>
1249         * include/bits/char_traits.h (char_traits<char16_t>): Do not
1250         depend on _GLIBCXX_USE_C99_STDINT_TR1.
1251         (char_traits<char32_t>): Likewise.
1252         * include/experimental/source_location: Likewise.
1254 2023-05-12  Jonathan Wakely  <jwakely@redhat.com>
1256         * include/std/atomic (atomic_int_least8_t, atomic_uint_least8_t)
1257         (atomic_int_least16_t, atomic_uint_least16_t)
1258         (atomic_int_least32_t, atomic_uint_least32_t)
1259         (atomic_int_least64_t, atomic_uint_least64_t)
1260         (atomic_int_fast16_t, atomic_uint_fast16_t)
1261         (atomic_int_fast32_t, atomic_uint_fast32_t)
1262         (atomic_int_fast64_t, atomic_uint_fast64_t)
1263         (atomic_intmax_t, atomic_uintmax_t): Define unconditionally.
1264         * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc: Adjust.
1266 2023-05-12  Jonathan Wakely  <jwakely@redhat.com>
1268         * include/bits/algorithmfwd.h (shuffle): Do not depend on
1269         _GLIBCXX_USE_C99_STDINT_TR1.
1270         * include/bits/ranges_algo.h (shuffle): Likewise.
1271         * include/bits/stl_algo.h (shuffle): Likewise.
1272         * include/ext/random: Likewise.
1273         * include/ext/throw_allocator.h (random_condition): Likewise.
1274         * include/std/random: Likewise.
1275         * src/c++11/cow-string-inst.cc: Likewise.
1276         * src/c++11/random.cc: Likewise.
1278 2023-05-12  Jonathan Wakely  <jwakely@redhat.com>
1280         * testsuite/experimental/feat-cxx14.cc: Remove dependency on
1281         _GLIBCXX_USE_C99_STDINT_TR1.
1283 2023-05-12  Jonathan Wakely  <jwakely@redhat.com>
1285         * testsuite/22_locale/locale/cons/unicode.cc: Remove dependency
1286         on _GLIBCXX_USE_C99_STDINT_TR1.
1288 2023-05-12  Jonathan Wakely  <jwakely@redhat.com>
1290         * testsuite/21_strings/basic_string_view/typedefs.cc: Remove
1291         dependency on _GLIBCXX_USE_C99_STDINT_TR1.
1292         * testsuite/experimental/string_view/typedefs.cc: Likewise.
1294 2023-05-11  Jonathan Wakely  <jwakely@redhat.com>
1296         * src/c++17/floating_from_chars.cc [USE_STRTOD_FOR_FROM_CHARS]
1297         (auto_locale, auto_ferounding): New class types.
1298         (from_chars_impl): Use auto_locale and auto_ferounding.
1300 2023-05-11  Jonathan Wakely  <jwakely@redhat.com>
1302         PR libstdc++/109772
1303         * include/std/chrono (hh_mm_ss::__fits): Remove variable
1304         template.
1305         (hh_mm_ss::__subseconds): Remove __fits from constraints.
1306         * testsuite/std/time/hh_mm_ss/109772.cc: New test.
1307         * testsuite/std/time/hh_mm_ss/1.cc: Adjust expected size for
1308         hh_mm_ss<duration<int, std::pico>>.
1310 2023-05-11  Jonathan Wakely  <jwakely@redhat.com>
1312         * config/abi/pre/gnu.ver: Export basic_string::_S_allocate.
1313         * include/bits/basic_ios.h: Add static assertion checking
1314         traits_type::value_type.
1315         * include/bits/basic_string.h: Likewise. Do not rebind
1316         allocator, and add static assertion checking its value_type.
1317         (basic_string::_Alloc_traits_impl): Remove class template.
1318         (basic_string::_S_allocate): New static member function.
1319         (basic_string::assign): Use _S_allocate.
1320         * include/bits/basic_string.tcc (basic_string::_M_create)
1321         (basic_string::reserve, basic_string::_M_replace): Likewise.
1322         * testsuite/21_strings/basic_string/requirements/explicit_instantiation/debug.cc:
1323         Disable for C++20 and later.
1324         * testsuite/21_strings/basic_string/requirements/explicit_instantiation/int.cc:
1325         Likweise.
1327 2023-05-11  Jonathan Wakely  <jwakely@redhat.com>
1329         PR libstdc++/109758
1330         * include/bits/std_abs.h (abs(__float128)): Handle negative NaN
1331         and negative zero correctly.
1332         * testsuite/26_numerics/headers/cmath/109758.cc: New test.
1334 2023-05-10  François Dumont  <fdumont@gcc.gnu.org>
1336         * include/bits/hashtable_policy.h
1337         (_NodeBuilder<>::_S_build): Use __node_ptr.
1338         (_ReuseOrAllocNode<>): Use __node_ptr in place of __node_type*.
1339         (_AllocNode<>): Likewise.
1340         (_Equality<>::_M_equal): Remove const_iterator usages. Only preserved
1341         to call std::is_permutation in the non-unique key implementation.
1342         * include/bits/hashtable.h (_Hashtable<>::_M_update_begin()): Capture
1343         _M_begin() once.
1344         (_Hashtable<>::_M_bucket_begin(size_type)): Implement implicitly inline.
1345         (_Hashtable<>::_M_insert_bucket_begin): Likewise.
1346         (_Hashtable<>::_M_remove_bucket_begin): Likewise.
1347         (_Hashtable<>::_M_compute_hash_code): Use __node_ptr rather than
1348         const_iterator.
1349         (_Hashtable<>::find): Likewise.
1350         (_Hashtable<>::_M_emplace): Likewise.
1351         (_Hashtable<>::_M_insert_unique): Likewise.
1353 2023-05-09  Jonathan Wakely  <jwakely@redhat.com>
1355         * python/libstdcxx/v6/printers.py (StdChronoDurationPrinter):
1356         Print floating-point durations correctly.
1357         (StdChronoTimePointPrinter): Support printing only the value,
1358         not the type name. Uncomment handling for known clocks.
1359         (StdChronoZonedTimePrinter): Remove type names from output.
1360         (StdChronoCalendarPrinter): Fix hh_mm_ss member access.
1361         (StdChronoTimeZonePrinter): Add equals sign to output.
1362         * testsuite/libstdc++-prettyprinters/chrono.cc: New test.
1364 2023-05-05  Alexandre Oliva  <oliva@adacore.com>
1366         * testsuite/20_util/from_chars/4.cc: Skip long double test06
1367         on aarch64-vxworks.
1368         * testsuite/20_util/to_chars/long_double.cc: Xfail run on
1369         aarch64-vxworks.
1371 2023-05-04  Jonathan Wakely  <jwakely@redhat.com>
1373         * doc/xml/manual/abi.xml (abi.versioning.history): Document
1374         libstdc++.so.6.0.32 and GLIBCXX_3.4.32 version.
1375         * doc/html/manual/abi.html: Regenerate.
1377 2023-05-04  Florian Weimer  <fweimer@redhat.com>
1379         * doc/xml/manual/abi.xml (abi.versioning.history): Add
1380         GCC_7.0.0, GCC_9.0.0, GCC_11.0, GCC_12.0.0, GCC_13.0.0 for
1381         libgcc_s.
1383 2023-05-03  Jakub Jelinek  <jakub@redhat.com>
1385         * src/c++17/floating_from_chars.cc
1386         (_ZSt10from_charsPKcS0_RDF128_St12chars_format): New alias to
1387         _ZSt10from_charsPKcS0_Ru9__ieee128St12chars_format.
1388         * src/c++17/floating_to_chars.cc (_ZSt8to_charsPcS_DF128_): New alias to
1389         _ZSt8to_charsPcS_u9__ieee128.
1390         (_ZSt8to_charsPcS_DF128_St12chars_format): New alias to
1391         _ZSt8to_charsPcS_u9__ieee128St12chars_format.
1392         (_ZSt8to_charsPcS_DF128_St12chars_formati): New alias to
1393         _ZSt8to_charsPcS_u9__ieee128St12chars_formati.
1394         * config/abi/post/powerpc64le-linux-gnu/baseline_symbols.txt: Updated.
1396 2023-05-03  Jakub Jelinek  <jakub@redhat.com>
1398         * configure.host (abi_baseline_pair): Use powerpc64le-linux-gnu
1399         rather than powerpc64-linux-gnu for powerpc64le*-linux*.
1400         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Remove
1401         _ZTI*DF128_, _ZTI*DF64x symbols and symbols in
1402         GLIBCXX_IEEE128_3.4.{29,30,31} and CXXABI_IEEE128_1.3.13 symbol
1403         versions.
1404         * config/abi/post/powerpc64le-linux-gnu/baseline_symbols.txt: New
1405         file.
1407 2023-05-03  Kefu Chai  <kefu.chai@scylladb.com>
1408             Jonathan Wakely  <jwakely@redhat.com>
1410         PR libstdc++/109703
1411         * include/bits/basic_string.h (basic_string(Iter, Iter, Alloc)):
1412         Initialize _M_string_length.
1414 2023-05-02  Jakub Jelinek  <jakub@redhat.com>
1416         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
1417         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
1418         * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
1419         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
1420         * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
1421         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
1422         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
1423         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1425 2023-05-02  Jakub Jelinek  <jakub@redhat.com>
1427         PR libstdc++/109694
1428         * src/c++98/ios_init.cc: Add #pragma GCC diagnostic ignored for
1429         -Wattribute-alias.
1431 2023-04-28  Jonathan Wakely  <jwakely@redhat.com>
1433         * include/bits/random.h (gamma_distribution): Add to the right
1434         doxygen group.
1435         (discrete_distribution, piecewise_constant_distribution)
1436         (piecewise_linear_distribution): Create a new doxygen group and
1437         fix the incomplete doxygen comments.
1438         * include/bits/uniform_int_dist.h (uniform_int_distribution):
1439         Add to doxygen group.
1441 2023-04-28  Jonathan Wakely  <jwakely@redhat.com>
1443         * include/bits/uses_allocator.h: Add missing @file comment.
1444         * include/bits/regex.tcc: Remove stray doxygen comments.
1445         * include/experimental/memory_resource: Likewise.
1446         * include/std/bit: Tweak doxygen @cond comments.
1447         * include/std/expected: Likewise.
1448         * include/std/numbers: Likewise.
1450 2023-04-28  Jonathan Wakely  <jwakely@redhat.com>
1452         * doc/doxygen/user.cfg.in (STRIP_FROM_PATH): Remove prefixes
1453         from header paths.
1455 2023-04-28  Jonathan Wakely  <jwakely@redhat.com>
1457         * include/bits/move.h: Simplify opening/closing namespace std.
1459 2023-04-28  Jakub Jelinek  <jakub@redhat.com>
1461         PR libstdc++/108969
1462         * config/abi/pre/gnu.ver (GLIBCXX_3.4.32): Export
1463         _ZSt21ios_base_library_initv.
1464         * testsuite/util/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.32
1465         symver and make it the latestp.
1466         * src/c++98/ios_init.cc (ios_base_library_init): New alias.
1467         * acinclude.m4 (libtool_VERSION): Change to 6:32:0.
1468         * include/std/iostream: If init_priority attribute is supported
1469         and _GLIBCXX_SYMVER_GNU, force undefined _ZSt21ios_base_library_initv
1470         symbol into the object.
1471         * configure: Regenerated.
1473 2023-04-27  Jonathan Wakely  <jwakely@redhat.com>
1475         * include/bits/mofunc_impl.h: Fix typo in doxygen comment.
1476         * include/std/format: Likewise.
1478 2023-04-27  Jonathan Wakely  <jwakely@redhat.com>
1480         * doc/doxygen/user.cfg.in (FORMULA_TRANSPARENT, DOT_FONTNAME)
1481         (DOT_FONTSIZE, DOT_TRANSPARENT): Remove obsolete options.
1483 2023-04-27  Jonathan Wakely  <jwakely@redhat.com>
1485         * doc/doxygen/user.cfg.in (SOURCE_BROWSER): Only set to YES for
1486         HTML docs.
1487         * include/bits/gslice_array.h (_DEFINE_VALARRAY_OPERATOR): Omit
1488         from doxygen docs.
1489         * include/bits/indirect_array.h (_DEFINE_VALARRAY_OPERATOR):
1490         Likewise.
1491         * include/bits/mask_array.h (_DEFINE_VALARRAY_OPERATOR):
1492         Likewise.
1493         * include/bits/slice_array.h (_DEFINE_VALARRAY_OPERATOR):
1494         Likewise.
1495         * include/std/valarray (_DEFINE_VALARRAY_UNARY_OPERATOR)
1496         (_DEFINE_VALARRAY_AUGMENTED_ASSIGNMENT)
1497         (_DEFINE_VALARRAY_EXPR_AUGMENTED_ASSIGNMENT)
1498         (_DEFINE_BINARY_OPERATOR): Likewise.
1500 2023-04-27  Jonathan Wakely  <jwakely@redhat.com>
1502         * include/bits/memory_resource.h: Improve doxygen comments.
1503         * include/std/memory_resource: Likewise.
1505 2023-04-27  Jonathan Wakely  <jwakely@redhat.com>
1507         PR libstdc++/40380
1508         * include/bits/basic_string.h: Improve doxygen comments.
1509         * include/bits/cow_string.h: Likewise.
1510         * include/bits/forward_list.h: Likewise.
1511         * include/bits/fs_dir.h: Likewise.
1512         * include/bits/fs_path.h: Likewise.
1513         * include/bits/quoted_string.h: Likewise.
1514         * include/bits/stl_bvector.h: Likewise.
1515         * include/bits/stl_map.h: Likewise.
1516         * include/bits/stl_multimap.h: Likewise.
1517         * include/bits/stl_multiset.h: Likewise.
1518         * include/bits/stl_set.h: Likewise.
1519         * include/bits/stl_vector.h: Likewise.
1520         * include/bits/unordered_map.h: Likewise.
1521         * include/bits/unordered_set.h: Likewise.
1522         * include/std/filesystem: Likewise.
1523         * include/std/iomanip: Likewise.
1525 2023-04-27  Jonathan Wakely  <jwakely@redhat.com>
1527         PR libstdc++/105081
1528         * src/c++11/random.cc (__throw_syserr): New function.
1529         (random_device::_M_init, random_device::_M_init_pretr1): Use new
1530         function for bad tokens.
1531         (random_device::_M_getval): Use new function for read errors.
1532         * testsuite/util/testsuite_random.h (random_device_available):
1533         Change catch handler to use std::system_error.
1535 2023-04-24  Patrick Palka  <ppalka@redhat.com>
1537         * include/bits/max_size_type.h (__max_diff_type::operator>>=):
1538         Fix propagation of sign bit.
1539         * testsuite/std/ranges/iota/max_size_type.cc: Avoid using the
1540         non-standard 'signed typedef-name'.  Add some compile-time tests
1541         for right-shifting a negative __max_diff_type value by more than
1542         one.
1544 2023-04-19  Patrick Palka  <ppalka@redhat.com>
1545             Jonathan Wakely  <jwakely@redhat.com>
1547         PR c++/100157
1548         * include/bits/utility.h (_Nth_type): Conditionally define in
1549         terms of __type_pack_element if available.
1550         * testsuite/20_util/tuple/element_access/get_neg.cc: Prune
1551         additional errors from the new built-in.
1553 2023-04-19  Jonathan Wakely  <jwakely@redhat.com>
1555         Revert:
1556         2023-04-18  Jonathan Wakely  <jwakely@redhat.com>
1558         PR libstdc++/108969
1559         * src/Makefile.am: Move globals_io.cc to here.
1560         * src/Makefile.in: Regenerate.
1561         * src/c++98/Makefile.am: Remove globals_io.cc from here.
1562         * src/c++98/Makefile.in: Regenerate.
1563         * src/c++98/globals_io.cc [_GLIBCXX_SYMVER_GNU] (cin): Adjust
1564         symbol name and then export with GLIBCXX_3.4.31 symver.
1565         (cout, cerr, clog, wcin, wcout, wcerr, wclog): Likewise.
1566         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt:
1567         Regenerate.
1568         * config/abi/post/i486-linux-gnu/baseline_symbols.txt:
1569         Regenerate.
1570         * config/abi/post/m68k-linux-gnu/baseline_symbols.txt:
1571         Regenerate.
1572         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
1573         Regenerate.
1574         * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
1575         Regenerate.
1576         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
1577         Regenerate.
1578         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt:
1579         Regenerate.
1580         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt:
1581         Regenerate.
1582         * config/abi/pre/gnu.ver: Add iostream objects to new symver.
1584 2023-04-19  Jonathan Wakely  <jwakely@redhat.com>
1586         Revert:
1587         2023-04-18  Jonathan Wakely  <jwakely@redhat.com>
1589         PR libstdc++/108969
1590         * config/abi/pre/gnu.ver: Fix preprocessor condition.
1592 2023-04-18  Jonathan Wakely  <jwakely@redhat.com>
1594         * doc/xml/manual/extensions.xml: Fix example to declare and
1595         qualify std::free, and use NULL instead of 0.
1596         * doc/html/manual/ext_demangling.html: Regenerate.
1597         * libsupc++/cxxabi.h: Adjust doxygen comments.
1599 2023-04-18  Jonathan Wakely  <jwakely@redhat.com>
1601         PR libstdc++/108969
1602         * config/abi/pre/gnu.ver: Fix preprocessor condition.
1604 2023-04-18  Jonathan Wakely  <jwakely@redhat.com>
1606         PR libstdc++/108969
1607         * src/Makefile.am: Move globals_io.cc to here.
1608         * src/Makefile.in: Regenerate.
1609         * src/c++98/Makefile.am: Remove globals_io.cc from here.
1610         * src/c++98/Makefile.in: Regenerate.
1611         * src/c++98/globals_io.cc [_GLIBCXX_SYMVER_GNU] (cin): Adjust
1612         symbol name and then export with GLIBCXX_3.4.31 symver.
1613         (cout, cerr, clog, wcin, wcout, wcerr, wclog): Likewise.
1614         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt:
1615         Regenerate.
1616         * config/abi/post/i486-linux-gnu/baseline_symbols.txt:
1617         Regenerate.
1618         * config/abi/post/m68k-linux-gnu/baseline_symbols.txt:
1619         Regenerate.
1620         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
1621         Regenerate.
1622         * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
1623         Regenerate.
1624         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
1625         Regenerate.
1626         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt:
1627         Regenerate.
1628         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt:
1629         Regenerate.
1630         * config/abi/pre/gnu.ver: Add iostream objects to new symver.
1632 2023-04-18  Patrick Palka  <ppalka@redhat.com>
1634         PR libstdc++/108827
1635         * include/bits/ranges_cmp.h (__cpp_lib_ranges): Bump value
1636         for C++23.
1637         * include/std/ranges (range_adaptor_closure): Define for C++23.
1638         * include/std/version (__cpp_lib_ranges): Bump value for
1639         C++23.
1640         * testsuite/std/ranges/version_c++23.cc: Bump expected value
1641         of __cpp_lib_ranges.
1642         * testsuite/std/ranges/range_adaptor_closure.cc: New test.
1644 2023-04-18  Patrick Palka  <ppalka@redhat.com>
1646         * include/bits/ranges_algo.h (__cpp_lib_ranges_contains):
1647         Define for C++23.
1648         (__cpp_lib_ranges_iota): Likewise.
1649         (__cpp_lib_ranges_find_last): Likewise.
1650         (__cpp_lib_fold): Rename to ...
1651         (__cpp_lib_ranges_fold): ... this.
1652         * include/std/version: As above.
1653         * testsuite/25_algorithms/fold_left/1.cc: Adjust after
1654         renaming __cpp_lib_fold.
1655         * testsuite/std/ranges/version_c++23.cc: Verify values
1656         of the above feature-test macros.
1658 2023-04-18  Patrick Palka  <ppalka@redhat.com>
1660         PR libstdc++/109525
1661         * include/std/ranges (views::_AsConst::operator()): Add
1662         missing const to constant_range test.
1663         * testsuite/std/ranges/adaptors/as_const/1.cc (test02):
1664         Improve formatting.  Adjust expected type of v2.
1665         (test03): New test.
1667 2023-04-14  Patrick Palka  <ppalka@redhat.com>
1669         * include/bits/ranges_base.h (const_iterator_t): Define for C++23.
1670         (const_sentinel_t): Likewise.
1671         (range_const_reference_t): Likewise.
1672         (constant_range): Likewise.
1673         (__cust_access::__possibly_const_range): Likewise, replacing ...
1674         (__cust_access::__as_const): ... this.
1675         (__cust_access::_CBegin::operator()): Redefine for C++23 as per P2278R4.
1676         (__cust_access::_CEnd::operator()): Likewise.
1677         (__cust_access::_CRBegin::operator()): Likewise.
1678         (__cust_access::_CREnd::operator()): Likewise.
1679         (__cust_access::_CData::operator()): Likewise.
1680         * include/bits/ranges_util.h (ranges::__detail::__different_from):
1681         Make it an alias of std::__detail::__different_from.
1682         (view_interface::cbegin): Define for C++23.
1683         (view_interface::cend): Likewise.
1684         * include/bits/stl_iterator.h (__detail::__different_from): Define.
1685         (iter_const_reference_t): Define for C++23.
1686         (__detail::__constant_iterator): Likewise.
1687         (__detail::__is_const_iterator): Likewise.
1688         (__detail::__not_a_const_iterator): Likewise.
1689         (__detail::__iter_const_rvalue_reference_t): Likewise.
1690         (__detail::__basic_const_iter_cat):: Likewise.
1691         (const_iterator): Likewise.
1692         (__detail::__const_sentinel): Likewise.
1693         (const_sentinel): Likewise.
1694         (basic_const_iterator): Likewise.
1695         (common_type<basic_const_iterator<_Tp>, _Up>): Likewise.
1696         (common_type<_Up, basic_const_iterator<_Tp>>): Likewise.
1697         (common_type<basic_const_iterator<_Tp>, basic_const_iterator<Up>>):
1698         Likewise.
1699         (make_const_iterator): Define for C++23.
1700         (make_const_sentinel): Likewise.
1701         * include/std/ranges (__cpp_lib_ranges_as_const): Likewise.
1702         (as_const_view): Likewise.
1703         (enable_borrowed_range<as_const_view>): Likewise.
1704         (views::__detail::__is_ref_view): Likewise.
1705         (views::__detail::__can_is_const_view): Likewise.
1706         (views::_AsConst, views::as_const): Likewise.
1707         * include/std/span (span::const_iterator): Likewise.
1708         (span::const_reverse_iterator): Likewise.
1709         (span::cbegin): Likewise.
1710         (span::cend): Likewise.
1711         (span::crbegin): Likewise.
1712         (span::crend): Likewise.
1713         * include/std/version (__cpp_lib_ranges_as_const): Likewise.
1714         * testsuite/std/ranges/adaptors/join.cc (test06): Adjust to
1715         behave independently of C++20 vs C++23.
1716         * testsuite/std/ranges/version_c++23.cc: Verify value of
1717         __cpp_lib_ranges_as_const macro.
1718         * testsuite/24_iterators/const_iterator/1.cc: New test.
1719         * testsuite/std/ranges/adaptors/as_const/1.cc: New test.
1721 2023-04-14  Patrick Palka  <ppalka@redhat.com>
1723         * include/bits/ranges_base.h (__cust_access::__as_const)
1724         (__cust_access::_CBegin, __cust::cbegin)
1725         (__cust_access::_CEnd, __cust::cend)
1726         (__cust_access::_CRBegin, __cust::crbegin)
1727         (__cust_access::_CREnd, __cust::crend)
1728         (__cust_access::_CData, __cust::cdata): Move down definitions to
1729         shortly after the definition of input_range.
1731 2023-04-14  Patrick Palka  <ppalka@redhat.com>
1733         * include/bits/ranges_algo.h: Include <optional> for C++23.
1734         (__cpp_lib_fold): Define for C++23.
1735         (in_value_result): Likewise.
1736         (__detail::__flipped): Likewise.
1737         (__detail::__indirectly_binary_left_foldable_impl): Likewise.
1738         (__detail::__indirectly_binary_left_foldable): Likewise.
1739         (___detail:__indirectly_binary_right_foldable): Likewise.
1740         (fold_left_with_iter_result): Likewise.
1741         (__fold_left_with_iter_fn, fold_left_with_iter): Likewise.
1742         (__fold_left_fn, fold_left): Likewise.
1743         (__fold_left_first_with_iter_fn, fold_left_first_with_iter):
1744         Likewise.
1745         (__fold_left_first_fn, fold_left_first): Likewise.
1746         (__fold_right_fn, fold_right): Likewise.
1747         (__fold_right_last_fn, fold_right_last): Likewise.
1748         * include/std/version (__cpp_lib_fold): Likewise.
1749         * testsuite/25_algorithms/fold_left/1.cc: New test.
1750         * testsuite/25_algorithms/fold_right/1.cc: New test.
1752 2023-04-14  Jonathan Wakely  <jwakely@redhat.com>
1754         * include/std/format (formatter): Add comment to deleted default
1755         constructor of primary template.
1756         (_Checking_scanner): Add static_assert.
1758 2023-04-12  Jonathan Wakely  <jwakely@redhat.com>
1760         * doc/xml/manual/using.xml: Document libstdc++exp.a library.
1761         * doc/html/*: Regenerate.
1763 2023-04-12  Jonathan Wakely  <jwakely@redhat.com>
1765         * testsuite/17_intro/names.cc [_AIX]: Do not define policy.
1766         * testsuite/19_diagnostics/error_code/cons/lwg3629.cc: Rename
1767         namespace to avoid clashing with libc struct.
1768         * testsuite/19_diagnostics/error_condition/cons/lwg3629.cc:
1769         Likewise.
1770         * testsuite/23_containers/unordered_map/96088.cc: Skip on AIX.
1771         * testsuite/23_containers/unordered_multimap/96088.cc: Likewise.
1772         * testsuite/23_containers/unordered_multiset/96088.cc: Likewise.
1773         * testsuite/23_containers/unordered_set/96088.cc: Likewise.
1774         * testsuite/experimental/synchronized_value.cc: Require gthreads
1775         and add missing option for pthreads targets.
1777 2023-04-12  Patrick Palka  <ppalka@redhat.com>
1779         * include/std/ranges (__cpp_lib_ranges_enumerate): Define
1780         for C++23.
1781         (__detail::__range_with_movable_reference): Likewise.
1782         (enumerate_view): Likewise.
1783         (enumerate_view::_Iterator): Likewise.
1784         (enumerate_view::_Sentinel): Likewise.
1785         (views::__detail::__can_enumerate_view): Likewise.
1786         (views::_Enumerate, views::enumerate): Likewise.
1787         * include/std/version (__cpp_lib_ranges_enumerate): Likewise.
1788         * testsuite/std/ranges/version_c++23.cc: Verify value of
1789         __cpp_lib_ranges_enumerate.
1790         * testsuite/std/ranges/adaptors/enumerate/1.cc: New test.
1792 2023-04-12  Patrick Palka  <ppalka@redhat.com>
1794         * include/std/ranges (lazy_split_view::_OuterIter::_OuterIter):
1795         Propagate _M_trailing_empty in the const-converting constructor
1796         as per LWG 3904.
1797         * testsuite/std/ranges/adaptors/adjacent/1.cc (test04): Correct
1798         assertion.
1799         * testsuite/std/ranges/adaptors/lazy_split.cc (test12): New test.
1801 2023-04-12  Patrick Palka  <ppalka@redhat.com>
1803         * src/c++17/floating_from_chars.cc: Include <algorithm>,
1804         <iterator>, <limits> and <cstdint>.
1806 2023-04-12  Patrick Palka  <ppalka@redhat.com>
1808         PR libstdc++/108291
1809         * include/std/ranges (chunk_by_view::_M_find_next): Generalize
1810         parameter types of the lambda wrapper passed to adjacent_find.
1811         (chunk_by_view::_M_find_prev): Likewise.
1812         * testsuite/std/ranges/adaptors/chunk_by/1.cc (test04, test05):
1813         New tests.
1815 2023-04-12  Jonathan Wakely  <jwakely@redhat.com>
1817         PR libstdc++/109482
1818         * include/experimental/internet (basic_endpoint::basic_endpoint()):
1819         Ensure that the required union members are active. Only define
1820         as constexpr for C++20 and later.
1821         (basic_endpoint::basic_endpoint(const protocol_type&, port_type)):
1822         Likewise.
1823         * testsuite/experimental/net/internet/endpoint/cons.cc: Only
1824         check constexpr default constructor for C++20 and later.
1825         * testsuite/experimental/net/internet/endpoint/extensible.cc:
1826         Likewise.
1828 2023-04-12  Jonathan Wakely  <jwakely@redhat.com>
1830         * src/c++20/tzdata.zi: Import new file from 2023c release.
1832 2023-04-05  Arsen Arsenović  <arsen@aarsen.me>
1834         * include/precompiled/stdc++.h (C++17): Don't double-include
1835         <charconv>, once with wrong conditions.
1836         * testsuite/18_support/96817.cc: Require hosted.
1837         * testsuite/18_support/bad_exception/59392.cc: Ditto.
1838         * testsuite/20_util/scoped_allocator/108952.cc: Ditto.
1839         * testsuite/20_util/uses_allocator/lwg3527.cc: Ditto.
1840         * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
1841         Ditto.
1843 2023-04-05  Arsen Arsenović  <arsen@aarsen.me>
1845         * include/bits/c++config: When __STDC_HOSTED__ is zero,
1846         disable _GLIBCXX_DEBUG and, if it was set, enable
1847         _GLIBCXX_ASSERTIONS.
1848         * testsuite/lib/libstdc++.exp (check_v3_target_debug_mode):
1849         Include <bits/c++config.h> when determining whether debug is
1850         set, in order to inherit the logic from above
1852 2023-04-05  Arsen Arsenović  <arsen@aarsen.me>
1854         * testsuite/17_intro/versionconflict.cc: New test.
1855         * include/std/version: Allow disabling the system_header pragma
1856         via _GLIBCXX_TESTING_SYSHDR.
1858 2023-04-05  Arsen Arsenović  <arsen@aarsen.me>
1860         * include/bits/unique_ptr.h (__cpp_lib_constexpr_memory):
1861         Synchronize the definition block with...
1862         * include/bits/ptr_traits.h (__cpp_lib_constexpr_memory):
1863         ... this one here.  Also define the 202202L value, rather than
1864         leaving it up to purely unique_ptr.h, so that the value is
1865         synchronized across all headers.
1866         (__gnu_debug::_Safe_iterator_base): Move into new conditional
1867         block.
1868         * include/std/memory (__cpp_lib_atomic_value_initialization):
1869         Define on freestanding under the same conditions as in
1870         atomic_base.h.
1871         * include/std/version (__cpp_lib_robust_nonmodifying_seq_ops):
1872         Also define on freestanding.
1873         (__cpp_lib_to_chars): Ditto.
1874         (__cpp_lib_gcd): Ditto.
1875         (__cpp_lib_gcd_lcm): Ditto.
1876         (__cpp_lib_raw_memory_algorithms): Ditto.
1877         (__cpp_lib_array_constexpr): Ditto.
1878         (__cpp_lib_nonmember_container_access): Ditto.
1879         (__cpp_lib_clamp): Ditto.
1880         (__cpp_lib_constexpr_char_traits): Ditto.
1881         (__cpp_lib_constexpr_string): Ditto.
1882         (__cpp_lib_sample): Ditto.
1883         (__cpp_lib_lcm): Ditto.
1884         (__cpp_lib_constexpr_iterator): Ditto.
1885         (__cpp_lib_constexpr_char_traits): Ditto.
1886         (__cpp_lib_interpolate): Ditto.
1887         (__cpp_lib_constexpr_utility): Ditto.
1888         (__cpp_lib_shift): Ditto.
1889         (__cpp_lib_ranges): Ditto.
1890         (__cpp_lib_move_iterator_concept): Ditto.
1891         (__cpp_lib_constexpr_numeric): Ditto.
1892         (__cpp_lib_constexpr_functional): Ditto.
1893         (__cpp_lib_constexpr_algorithms): Ditto.
1894         (__cpp_lib_constexpr_tuple): Ditto.
1895         (__cpp_lib_constexpr_memory): Ditto.
1897 2023-04-05  John David Anglin  <danglin@gcc.gnu.org>
1899         * testsuite/22_locale/locale/cons/12658_thread-2.cc: Double
1900         timeout factor on hppa*-*-*.
1902 2023-04-05  Jonathan Wakely  <jwakely@redhat.com>
1904         * include/bits/regex.h (sub_match::swap): New function.
1905         * testsuite/28_regex/sub_match/lwg3204.cc: New test.
1907 2023-04-04  Jonathan Wakely  <jwakely@redhat.com>
1909         * doc/xml/manual/extensions.xml: Remove std::bad_exception from
1910         example program.
1911         * doc/html/manual/ext_demangling.html: Regenerate.
1913 2023-03-31  Jonathan Wakely  <jwakely@redhat.com>
1915         PR tree-optimization/107087
1916         * include/bits/cow_string.h (basic_string::size()): Add
1917         optimizer hint that _S_empty_rep()._M_length is always zero.
1918         (basic_string::length()): Call size().
1920 2023-03-31  Jonathan Wakely  <jwakely@redhat.com>
1922         PR libstdc++/109339
1923         * include/std/stop_token (_Stop_state_ptr(const stop_source&)):
1924         Add attribute access with access-mode 'none'.
1925         * testsuite/30_threads/stop_token/stop_source/109339.cc: New test.
1927 2023-03-31  Jonathan Wakely  <jwakely@redhat.com>
1929         * include/experimental/internet (ip::basic_endpoint::_M_if_v6):
1930         Revert change from member function to data member. Fix for
1931         constant evaluation by detecting which union member is active.
1932         (ip::basic_endpoint::resize): Revert changes to update _M_is_v6
1933         flag.
1935 2023-03-29  Jonathan Wakely  <jwakely@redhat.com>
1937         PR libstdc++/109242
1938         * testsuite/20_util/optional/monadic/pr109340.cc: Moved to...
1939         * testsuite/20_util/optional/monadic/pr109242.cc: ...here.
1941 2023-03-29  Jonathan Wakely  <jwakely@redhat.com>
1943         * include/experimental/internet (ip::make_address): Implement
1944         missing overload.
1945         (ip::address_v4::broadcast()): Avoid undefined shift.
1946         (ip::basic_endpoint): Fix member functions for constexpr.
1947         (ip::basic_endpoint::_M_is_v6): Replace member function with
1948         data member, adjust member functions using it.
1949         (ip::basic_endpoint::resize): Update _M_is_v6 based on sockaddr
1950         content.
1951         * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
1952         constexpr checks to work in C++14.
1953         * testsuite/experimental/net/internet/address/v4/creation.cc:
1954         Likewise.
1955         * testsuite/experimental/net/internet/endpoint/cons.cc:
1956         Likewise.
1957         * testsuite/experimental/net/internet/network/v4/cons.cc:
1958         Likewise.
1959         * testsuite/experimental/net/internet/network/v4/members.cc:
1960         Likewise.
1961         * testsuite/experimental/net/internet/endpoint/extensible.cc: New test.
1963 2023-03-29  Jonathan Wakely  <jwakely@redhat.com>
1965         * include/std/expected (expected::value() &): Use const lvalue
1966         for unex member passed to bad_expected_access constructor, as
1967         per LWG 3843.
1969 2023-03-29  Jonathan Wakely  <jwakely@redhat.com>
1971         PR libstdc++/109340
1972         * include/std/expected (expected::transform): Use
1973         std::remove_cv_t instead of std::remove_cvref_t.
1974         (expected::transform_error): Likewise.
1975         (expected<cv void, E>::transform): Likewise.
1976         (expected<cv void, E>::transform_error): Likewise.
1977         * include/std/optional (transform): Use std::remove_cv_t.
1978         * testsuite/20_util/optional/monadic/pr109340.cc: New test.
1980 2023-03-29  Jonathan Wakely  <jwakely@redhat.com>
1982         * include/std/optional (optional): Adjust static assertion to
1983         reject arrays and functions as well as references.
1984         * testsuite/20_util/optional/requirements_neg.cc: New test.
1986 2023-03-28  Jonathan Wakely  <jwakely@redhat.com>
1988         PR libstdc++/103387
1989         * include/bits/istream.tcc (istream::_M_extract(ValueT&)): Use
1990         std::use_facet instead of cached _M_num_get facet.
1991         (istream::operator>>(short&)): Likewise.
1992         (istream::operator>>(int&)): Likewise.
1993         * include/bits/ostream.tcc (ostream::_M_insert(ValueT)): Use
1994         std::use_facet instead of cached _M_num_put facet.
1996 2023-03-28  Jonathan Wakely  <jwakely@redhat.com>
1998         * include/bits/char_traits.h (char_traits::copy): Return without
1999         using memcpy if n==0.
2000         (char_traits::assign): Likewise for memset.
2002 2023-03-28  Jonathan Wakely  <jwakely@redhat.com>
2004         PR libstdc++/109299
2005         * include/bits/basic_string.h (basic_string::_M_is_local()): Add
2006         hint for compiler that local strings fit in the local buffer.
2008 2023-03-28  Jonathan Wakely  <jwakely@redhat.com>
2010         PR libstdc++/109288
2011         * include/std/chrono (__detail::__get_leap_second_info): Update
2012         expiry date of hardcoded leapseconds list.
2013         * src/c++20/tzdb.cc (tzdb_list::_Node::_S_read_leap_seconds()):
2014         Likewise.
2015         * src/c++20/tzdata.zi: Import new file from 2023a release.
2016         * testsuite/std/time/time_zone/get_info_local.cc: Only check
2017         transitions for Egypt up to 2014.
2019 2023-03-28  Matthias Kretz  <m.kretz@gsi.de>
2021         * include/experimental/bits/simd.h (is_simd_flag_type): New.
2022         (_IsSimdFlagType): New.
2023         (copy_from, copy_to, load ctors): Constrain _Flags using
2024         _IsSimdFlagType.
2026 2023-03-28  Matthias Kretz  <m.kretz@gsi.de>
2028         * include/experimental/bits/simd_x86.h (_SimdImplX86): Use
2029         _Base::_S_divides if the optimized _S_divides function is hidden
2030         via the preprocessor.
2032 2023-03-27  Jakub Jelinek  <jakub@redhat.com>
2034         * testsuite/experimental/net/timer/waitable/dest.cc: Avoid -Wformat
2035         warning if size_t is not unsigned long.
2037 2023-03-22  Jonathan Wakely  <jwakely@redhat.com>
2039         * include/bits/shared_ptr_atomic.h (atomic::operator=(nullptr_t)):
2040         Add overload, as per LWG 3893.
2041         * testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc:
2042         Check assignment from nullptr.
2044 2023-03-22  Jonathan Wakely  <jwakely@redhat.com>
2046         * include/std/format (formatter<const charT[N], charT>): Do not
2047         define partial speclialization, as per LWG 3833.
2048         * testsuite/std/format/formatter/requirements.cc: Check it.
2050 2023-03-22  Jonathan Wakely  <jwakely@redhat.com>
2052         * include/std/utility (__cpp_lib_constexpr_algorithms): Define,
2053         as per LWG 3792.
2054         * testsuite/20_util/exchange/constexpr.cc: Check for it.
2056 2023-03-22  Jonathan Wakely  <jwakely@redhat.com>
2058         * include/std/version (__cpp_lib_format): Define.
2059         * testsuite/std/format/functions/format.cc: Check it.
2061 2023-03-22  Jonathan Wakely  <jwakely@redhat.com>
2063         * include/bits/basic_string.tcc (basic_string::resize_and_overwrite):
2064         Pass rvalues to the callback, as now allowed by LWG 3645.
2065         Enforce preconditions on the return value.
2066         * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
2067         Adjust.
2069 2023-03-22  Jonathan Wakely  <jwakely@redhat.com>
2071         * include/std/format: Add a comment noting that the resolution
2072         of LWG 3720 has been applied..
2074 2023-03-22  Jonathan Wakely  <jwakely@redhat.com>
2076         * include/bits/regex.h (match_results): Add allocator-extended
2077         copy and move constructors, as per LWG 2195.
2078         * testsuite/28_regex/match_results/ctors/char/alloc.cc: New test.
2080 2023-03-22  Jonathan Wakely  <jwakely@redhat.com>
2082         * include/bits/stream_iterator.h (istream_iterator): Add
2083         constexpr to copy constructor, as per LWG 3600.
2084         * testsuite/24_iterators/istream_iterator/cons/constexpr.cc:
2085         Check copy construction.
2087 2023-03-21  Matthias Kretz  <m.kretz@gsi.de>
2089         * include/experimental/bits/simd_x86.h
2090         (_SimdImplX86::_S_divides): Replace test for __GCC_IEC_559 == 0
2091         with __RECIPROCAL_MATH__.
2093 2023-03-21  Matthias Kretz  <m.kretz@gsi.de>
2095         * include/experimental/bits/simd_detail.h: Don't define
2096         _GLIBCXX_SIMD_WORKAROUND_PR90993 for Clang.
2097         * include/experimental/bits/simd_x86.h (_S_divides): Remove
2098         check for __clang__.
2100 2023-03-21  Matthias Kretz  <m.kretz@gsi.de>
2102         * include/experimental/bits/simd_detail.h: Don't declare the
2103         simd API as constexpr with Clang.
2104         * include/experimental/bits/simd_x86.h (__movm): New.
2105         (_S_blend_avx512): Resolve FIXME. Implement blend using __movm
2106         and ?:.
2107         (_SimdImplX86::_S_masked_unary): Clang does not implement the
2108         same builtins. Implement the function using __movm, ?:, and -
2109         operators on vector_size types instead.
2111 2023-03-21  Matthias Kretz  <m.kretz@gsi.de>
2113         * testsuite/experimental/simd/tests/operators.cc: Clang doesn't
2114         define __GCC_IEC_559. Use __STDC_IEC_559__ instead.
2116 2023-03-20  Jonathan Wakely  <jwakely@redhat.com>
2118         * src/filesystem/ops-common.h (get_temp_directory_from_env): Fix
2119         formatting.
2121 2023-03-20  Marek Polacek  <polacek@redhat.com>
2123         PR c++/109159
2124         * testsuite/20_util/pair/cons/explicit_construct.cc: Adjust dg-error.
2125         * testsuite/20_util/tuple/cons/explicit_construct.cc: Likewise.
2126         * testsuite/23_containers/span/explicit.cc: Likewise.
2128 2023-03-20  Jonathan Wakely  <jwakely@redhat.com>
2130         PR libstdc++/109182
2131         * include/std/expected (expected<void>::expected(in_place_t)):
2132         Remove template-head.
2134 2023-03-18  Jonathan Wakely  <jwakely@redhat.com>
2136         PR libstdc++/109165
2137         * testsuite/18_support/coroutines/hash.cc: Use const object
2138         in second call.
2140 2023-03-17  Jonathan Wakely  <jwakely@redhat.com>
2142         PR libstdc++/109165
2143         * include/std/coroutine (hash<>::operator()): Add const.
2144         * testsuite/18_support/coroutines/hash.cc: New test.
2146 2023-03-14  Patrick Palka  <ppalka@redhat.com>
2148         PR libstdc++/109111
2149         * include/std/ranges (repeat_view): Remove redundant parentheses
2150         in requires-clause.
2151         (repeat_view::_Iterator): Correct the requires-clause.
2153 2023-03-14  Patrick Palka  <ppalka@redhat.com>
2155         * include/bits/stl_iterator.h (move_iterator::_S_iter_concept):
2156         Define.
2157         (__cpp_lib_move_iterator_concept): Define for C++20.
2158         (move_iterator::iterator_concept): Strengthen as per P2520R0.
2159         * include/std/version (__cpp_lib_move_iterator_concept): Define
2160         for C++20.
2161         * testsuite/24_iterators/move_iterator/p2520r0.cc: New test.
2163 2023-03-14  Patrick Palka  <ppalka@redhat.com>
2165         * include/bits/ranges_util.h (view_interface::empty): Add
2166         preferred overloads that use ranges::size when the range is
2167         sized as per LWG 3715.
2168         * testsuite/std/ranges/adaptors/lwg3715.cc: New test.
2170 2023-03-14  Jonathan Wakely  <jwakely@redhat.com>
2172         * include/bits/chrono.h (__is_duration_v, __is_time_point_v):
2173         Only define for C++17 and later.
2175 2023-03-14  Jonathan Wakely  <jwakely@redhat.com>
2177         * src/Makefile.am: Add comment about linker script fragments.
2178         * src/Makefile.in: Regenerate.
2180 2023-03-14  Jonathan Wakely  <jwakely@redhat.com>
2182         PR libstdc++/62196
2183         * include/bits/mask_array.h (mask_array): Add assertions to
2184         assignment operators.
2185         * include/std/valarray (valarray::operator[](valarray<bool>)):
2186         Add assertions.
2187         * testsuite/26_numerics/valarray/mask-1_neg.cc: New test.
2188         * testsuite/26_numerics/valarray/mask-2_neg.cc: New test.
2189         * testsuite/26_numerics/valarray/mask-3_neg.cc: New test.
2190         * testsuite/26_numerics/valarray/mask-4_neg.cc: New test.
2191         * testsuite/26_numerics/valarray/mask-5_neg.cc: New test.
2192         * testsuite/26_numerics/valarray/mask-6_neg.cc: New test.
2193         * testsuite/26_numerics/valarray/mask-7_neg.cc: New test.
2194         * testsuite/26_numerics/valarray/mask-8_neg.cc: New test.
2195         * testsuite/26_numerics/valarray/mask.cc: New test.
2197 2023-03-13  Jakub Jelinek  <jakub@redhat.com>
2199         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
2200         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
2202 2023-03-13  Jonathan Wakely  <jwakely@redhat.com>
2204         * doc/Makefile.am: Add comment referring to documentation.
2205         * doc/Makefile.in: Regenerate.
2207 2023-03-13  Jonathan Wakely  <jwakely@redhat.com>
2209         * doc/html/*: Regenerate.
2211 2023-03-13  Jonny Grant  <jg@jguk.org>
2213         * doc/xml/faq.xml: Update copyright year.
2215 2023-03-13  Jonathan Wakely  <jwakely@redhat.com>
2217         * include/bits/allocator.h: Fix typo in comment.
2219 2023-03-12  Jakub Jelinek  <jakub@redhat.com>
2221         * config/abi/pre/gnu.ver (CXXABI_1.3.14): Also export __bf16 tinfos
2222         if it isn't mangled as DF16b but u6__bf16.
2224 2023-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
2226         * doc/xml/manual/documentation_hacking.xml: Move www.graphviz.org
2227         to https.
2228         * doc/html/manual/documentation_hacking.html: Regenerate.
2230 2023-03-10  Jonathan Wakely  <jwakely@redhat.com>
2232         PR libstdc++/109064
2233         * python/libstdcxx/v6/xmethods.py (SharedPtrUseCountWorker):
2234         Remove self-recursion in __init__. Add missing _supports.
2235         * testsuite/libstdc++-xmethods/shared_ptr.cc: Check use_count()
2236         and unique().
2238 2023-03-09  Patrick Palka  <ppalka@redhat.com>
2240         * include/std/ranges
2241         (cartesian_product_view::_Iterator::_Iterator): Remove
2242         constraint on default constructor as per LWG 3849.
2243         (cartesian_product_view::_Iterator::_M_prev): Adjust position
2244         of _Nm > 0 test as per LWG 3820.
2245         (cartesian_product_view::_Iterator::_M_advance): Perform bounds
2246         checking only on sized cartesian products.
2247         * testsuite/std/ranges/cartesian_product/1.cc (test08): New test.
2249 2023-03-09  Patrick Palka  <ppalka@redhat.com>
2251         PR libstdc++/109024
2252         * include/std/ranges (chunk_by_view::_M_pred): Remove DMI as per
2253         LWG 3796.
2254         (repeat_view::_M_pred): Likewise.
2255         * testsuite/std/ranges/adaptors/chunk_by/1.cc (test03): New test.
2256         * testsuite/std/ranges/repeat/1.cc (test05): New test.
2258 2023-03-09  Patrick Palka  <ppalka@redhat.com>
2260         PR libstdc++/108362
2261         * include/std/ranges (__detail::__can_single_view): New concept.
2262         (_Single::operator()): Constrain it.  Move [[nodiscard]] to the
2263         end of the function declarator.
2264         (__detail::__can_iota_view): New concept.
2265         (_Iota::operator()): Constrain it.  Move [[nodiscard]] to the
2266         end of the function declarator.
2267         (__detail::__can_istream_view): New concept.
2268         (_Istream::operator()): Constrain it.  Move [[nodiscard]] to the
2269         end of the function declarator.
2270         * testsuite/std/ranges/iota/iota_view.cc (test07): New test.
2271         * testsuite/std/ranges/istream_view.cc (test08): New test.
2272         * testsuite/std/ranges/single_view.cc (test07): New test.
2274 2023-03-09  Patrick Palka  <ppalka@redhat.com>
2276         PR libstdc++/107572
2277         * include/std/ranges (cartesian_product_view::end): When
2278         building the tuple of iterators, avoid calling ranges::begin on
2279         the first range if __empty_tail is false.
2280         * testsuite/std/ranges/cartesian_product/1.cc (test07): New test.
2282 2023-03-09  Jonathan Wakely  <jwakely@redhat.com>
2284         PR libstdc++/108882
2285         * config/os/gnu-linux/ldbl-ieee128-extra.ver: Fix incorrect
2286         patterns.
2288 2023-03-07  Jakub Jelinek  <jakub@redhat.com>
2290         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
2291         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
2292         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
2293         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
2294         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
2296 2023-03-07  Jonathan Wakely  <jwakely@redhat.com>
2298         PR libstdc++/108882
2299         * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Adjust patterns to
2300         not match symbols in namespace std::__gnu_cxx11_ieee128.
2301         * config/os/gnu-linux/ldbl-ieee128-extra.ver: Add patterns for
2302         std::__gnu_cxx11_ieee128::money_{get,put}.
2304 2023-03-07  Jonathan Wakely  <jwakely@redhat.com>
2306         * libsupc++/eh_personality.cc: Fix spelling in comment.
2308 2023-03-03  Alexandre Oliva  <oliva@adacore.com>
2310         * testsuite/30_threads/async/async.cc (test04): Initialize
2311         steady_start, renamed from steady_begin, next to slow_start.
2312         Increase tolerance for final wait.
2314 2023-03-03  Alexandre Oliva  <oliva@adacore.com>
2316         * testsuite/libstdc++-prettyprinters/80276.cc: Add
2317         std::string to debug info.
2318         * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
2320 2023-03-03  Alexandre Oliva  <oliva@adacore.com>
2322         PR libstdc++/104852
2323         PR libstdc++/95989
2324         PR libstdc++/52590
2325         * include/bits/std_thread.h (thread::_M_thread_deps): New
2326         static implicitly-inline member function.
2327         (std::thread template ctor): Pass it to _M_start_thread.
2328         * src/c++11/thread.cc (thread::_M_start_thread): Name depend
2329         parameter, force it live on entry.
2331 2023-03-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2333         * config/abi/post/i386-solaris/baseline_symbols.txt: Regenerate.
2334         * config/abi/post/i386-solaris/amd64/baseline_symbols.txt:
2335         Likewise.
2336         * config/abi/post/sparc-solaris/baseline_symbols.txt: Likewise.
2337         * config/abi/post/sparc-solaris/sparcv9/baseline_symbols.txt:
2338         Likewise.
2340 2023-03-01  Jonathan Wakely  <jwakely@redhat.com>
2342         * include/bits/cow_string.h: Fix typo in comment.
2344 2023-03-01  Jonathan Wakely  <jwakely@redhat.com>
2346         * src/c++20/tzdb.cc (chrono::tzdb::current_zone()) Use "UTC" if
2347         current time zone cannot be determined.
2348         * testsuite/std/time/tzdb/1.cc: Remove conditions based on
2349         HAVE_TZDB macro and test all members unconditionally.
2351 2023-02-28  Jonathan Wakely  <jwakely@redhat.com>
2353         PR libstdc++/108952
2354         * include/bits/uses_allocator_args.h
2355         (uses_allocator_construction_args): Implement LWG 3527.
2356         * testsuite/20_util/pair/astuple/get-2.cc: New test.
2357         * testsuite/20_util/scoped_allocator/108952.cc: New test.
2358         * testsuite/20_util/uses_allocator/lwg3527.cc: New test.
2360 2023-02-28  Jonathan Wakely  <jwakely@redhat.com>
2362         PR libstdc++/108846
2363         * include/bits/stl_algobase.h (__copy_move<false, false, RA>)
2364         Add __assign_one static member function.
2365         (__copy_move<true, false, RA>): Likewise.
2366         (__copy_move<IsMove, true, RA>): Do not use memmove for a single
2367         value.
2368         (__copy_move_backward<IsMove, true, RA>): Likewise.
2369         * testsuite/25_algorithms/copy/108846.cc: New test.
2370         * testsuite/25_algorithms/copy_backward/108846.cc: New test.
2371         * testsuite/25_algorithms/copy_n/108846.cc: New test.
2372         * testsuite/25_algorithms/move/108846.cc: New test.
2373         * testsuite/25_algorithms/move_backward/108846.cc: New test.
2375 2023-02-28  Jonathan Wakely  <jwakely@redhat.com>
2377         * src/c++11/codecvt.cc: Add [[likely]] and [[unlikely]]
2378         attributes.
2380 2023-02-27  Jonathan Wakely  <jwakely@redhat.com>
2382         * include/bits/basic_ios.h (basic_ios::_M_setstate): Add
2383         caveat to comment.
2384         * include/bits/basic_string.h (resize_and_overwrite): Add
2385         doxygen comment.
2387 2023-02-24  Matthias Kretz  <m.kretz@gsi.de>
2389         * include/experimental/bits/simd.h: Line breaks and indenting
2390         fixed to follow the libstdc++ standard.
2391         * include/experimental/bits/simd_builtin.h: Likewise.
2392         * include/experimental/bits/simd_fixed_size.h: Likewise.
2393         * include/experimental/bits/simd_neon.h: Likewise.
2394         * include/experimental/bits/simd_ppc.h: Likewise.
2395         * include/experimental/bits/simd_scalar.h: Likewise.
2396         * include/experimental/bits/simd_x86.h: Likewise.
2398 2023-02-24  Matthias Kretz  <m.kretz@gsi.de>
2400         PR libstdc++/108030
2401         * include/experimental/bits/simd_fixed_size.h
2402         (_SimdImplFixedSize::_S_broadcast): Replace inline with
2403         _GLIBCXX_SIMD_INTRINSIC.
2404         (_SimdImplFixedSize::_S_generate): Likewise.
2405         (_SimdImplFixedSize::_S_load): Likewise.
2406         (_SimdImplFixedSize::_S_masked_load): Likewise.
2407         (_SimdImplFixedSize::_S_store): Likewise.
2408         (_SimdImplFixedSize::_S_masked_store): Likewise.
2409         (_SimdImplFixedSize::_S_min): Likewise.
2410         (_SimdImplFixedSize::_S_max): Likewise.
2411         (_SimdImplFixedSize::_S_complement): Likewise.
2412         (_SimdImplFixedSize::_S_unary_minus): Likewise.
2413         (_SimdImplFixedSize::_S_plus): Likewise.
2414         (_SimdImplFixedSize::_S_minus): Likewise.
2415         (_SimdImplFixedSize::_S_multiplies): Likewise.
2416         (_SimdImplFixedSize::_S_divides): Likewise.
2417         (_SimdImplFixedSize::_S_modulus): Likewise.
2418         (_SimdImplFixedSize::_S_bit_and): Likewise.
2419         (_SimdImplFixedSize::_S_bit_or): Likewise.
2420         (_SimdImplFixedSize::_S_bit_xor): Likewise.
2421         (_SimdImplFixedSize::_S_bit_shift_left): Likewise.
2422         (_SimdImplFixedSize::_S_bit_shift_right): Likewise.
2423         (_SimdImplFixedSize::_S_remquo): Add inline keyword (to be
2424         explicit about not always-inline, yet).
2425         (_SimdImplFixedSize::_S_isinf): Likewise.
2426         (_SimdImplFixedSize::_S_isfinite): Likewise.
2427         (_SimdImplFixedSize::_S_isnan): Likewise.
2428         (_SimdImplFixedSize::_S_isnormal): Likewise.
2429         (_SimdImplFixedSize::_S_signbit): Likewise.
2431 2023-02-24  Matthias Kretz  <m.kretz@gsi.de>
2433         PR libstdc++/108856
2434         * include/experimental/bits/simd_builtin.h
2435         (_SimdImplBuiltin::_S_masked_unary): More efficient
2436         implementation of masked inc-/decrement for integers and floats
2437         without AVX2.
2438         * include/experimental/bits/simd_x86.h
2439         (_SimdImplX86::_S_masked_unary): New. Use AVX512 masked subtract
2440         builtins for masked inc-/decrement.
2442 2023-02-24  Jonathan Wakely  <jwakely@redhat.com>
2444         * include/experimental/executor (executor): Constrain template
2445         constructors.
2447 2023-02-24  Jonathan Wakely  <jwakely@redhat.com>
2449         * include/experimental/internet (basic_endpoint): Add missing
2450         constexpr to comparison operators.
2451         * testsuite/experimental/net/internet/endpoint/cons.cc: New test.
2453 2023-02-24  Jonathan Wakely  <jwakely@redhat.com>
2455         * include/experimental/internet (network_v4::netmask()): Avoid
2456         undefined shift.
2457         (network_v4::broadcast()): Optimize and fix for targets with
2458         uint_least32_t wider than 32 bits.
2459         (network_v4::to_string(const Allocator&)): Fix for custom
2460         allocators and optimize using to_chars.
2461         (operator==(const network_v4&, const network_v4&)): Add missing
2462         constexpr.
2463         (operator==(const network_v6&, const network_v6&)): Likewise.
2464         * testsuite/experimental/net/internet/network/v4/cons.cc: New test.
2465         * testsuite/experimental/net/internet/network/v4/members.cc: New test.
2467 2023-02-24  Jonathan Wakely  <jwakely@redhat.com>
2469         * include/experimental/internet (address_4(const bytes_type&)):
2470         Use __builtin_bit_cast if available, otherwise convert to
2471         network byte order.
2472         (address_v4::to_bytes()): Likewise, but convert from network
2473         byte order.
2474         * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
2475         incorrect tests. Check for constexpr too.
2476         * testsuite/experimental/net/internet/address/v4/creation.cc:
2477         Likewise.
2478         * testsuite/experimental/net/internet/address/v4/members.cc:
2479         Check that bytes_type is a standard-layout type.
2481 2023-02-24  Jonathan Wakely  <jwakely@redhat.com>
2483         * include/experimental/internet (address_v4::to_string):
2484         Optimize.
2485         * testsuite/experimental/net/internet/address/v4/members.cc:
2486         Check more addresses.
2488 2023-02-24  Jonathan Wakely  <jwakely@redhat.com>
2490         * include/ext/aligned_buffer.h (__aligned_buffer): Add
2491         diagnostic pragmas.
2493 2023-02-24  Jonathan Wakely  <jwakely@redhat.com>
2495         * testsuite/std/format/arguments/lwg3810.cc: Move dg-options
2496         before dg-do.
2498 2023-02-23  Matthias Kretz  <m.kretz@gsi.de>
2500         * testsuite/experimental/simd/tests/reductions.cc: Introduce
2501         max_distance as the type-dependent max error.
2503 2023-02-23  Matthias Kretz  <m.kretz@gsi.de>
2505         * include/experimental/bits/simd_builtin.h (_S_set): Compare as
2506         int. The actual range of these indexes is very small.
2508 2023-02-23  Matthias Kretz  <m.kretz@gsi.de>
2510         * include/experimental/bits/simd_x86.h (_S_bit_shift_left)
2511         (_S_bit_shift_right): Declare constexpr. The implementation was
2512         already expecting constexpr evaluation.
2514 2023-02-23  Matthias Kretz  <m.kretz@gsi.de>
2516         PR libstdc++/108030
2517         * include/experimental/bits/simd_detail.h
2518         (_GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA): Define as empty for
2519         __clang__.
2521 2023-02-23  Matthias Kretz  <m.kretz@gsi.de>
2523         PR libstdc++/108030
2524         * include/experimental/bits/simd.h (__vector_broadcast):
2525         Implement via __vector_broadcast_impl instead of
2526         __call_with_n_evaluations + 2 lambdas.
2527         (__vector_broadcast_impl): New.
2529 2023-02-22  Alexandre Oliva  <oliva@adacore.com>
2531         * src/c++11/shared_ptr.cc (__gnu_internal::get_mutex):
2532         Avoid destruction of the mutex pool.
2534 2023-02-22  Alexandre Oliva  <oliva@adacore.com>
2536         * testsuite/27_io/basic_ofstream/open/char/noreplace.cc: xfail
2537         on vxworks.
2538         * testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc:
2539         Likewise.
2541 2023-02-22  Alexandre Oliva  <oliva@adacore.com>
2543         * testsuite/17_intro/names.cc: Undef func on vxworks >= 7 in
2544         kernel mode.
2546 2023-02-20  Andreas Schwab  <schwab@linux-m68k.org>
2548         * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
2550 2023-02-20  Matthias Kretz  <m.kretz@gsi.de>
2552         * include/experimental/bits/simd.h (__extract_part, split):
2553         Use reserved name for template parameter.
2555 2023-02-20  Andreas Schwab  <schwab@suse.de>
2557         * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
2559 2023-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
2561         * doc/xml/faq.xml: Switch two links to www.open-std.org to https.
2562         * doc/html/faq.html: Regenerate.
2564 2023-02-16  Matthias Kretz  <m.kretz@gsi.de>
2566         * include/experimental/bits/simd_math.h (__hypot): Bitcasting
2567         between scalars requires the __bit_cast helper function instead
2568         of simd_bit_cast.
2570 2023-02-16  Matthias Kretz  <m.kretz@gsi.de>
2572         * include/experimental/bits/simd_x86.h
2573         (_SimdImplX86::_S_not_equal_to, _SimdImplX86::_S_less)
2574         (_SimdImplX86::_S_less_equal): Do not call
2575         __builtin_is_constant_evaluated in constexpr-if.
2577 2023-02-16  Matthias Kretz  <m.kretz@gsi.de>
2579         * testsuite/experimental/simd/tests/bits/verify.h
2580         (verify::verify): Use %zx for size_t in format string.
2582 2023-02-16  Matthias Kretz  <m.kretz@gsi.de>
2584         * testsuite/experimental/simd/generate_makefile.sh: Generate and
2585         pre-compile pch.h, which includes all headers that do not depend
2586         on command-line macros.
2587         * testsuite/experimental/simd/tests/bits/main.h: New file.
2588         (iterate_abis, main): Moved from verify.h.
2589         * testsuite/experimental/simd/tests/bits/verify.h
2590         (iterate_abis, main): Moved to main.h.
2591         * testsuite/experimental/simd/tests/bits/conversions.h: Add
2592         include guard.
2593         (genHalfBits): Simplify.
2594         * testsuite/experimental/simd/tests/bits/make_vec.h: Add include
2595         guard.
2596         (make_alternating_mask): Moved from mask_loadstore.
2597         * testsuite/experimental/simd/tests/bits/mathreference.h: Add
2598         include guard.
2599         * testsuite/experimental/simd/tests/bits/test_values.h: Ditto.
2600         * testsuite/experimental/simd/tests/mask_loadstore.cc
2601         (make_mask, make_alternating_mask): Removed.
2602         * testsuite/experimental/simd/tests/mask_reductions.cc: Ditto.
2603         * testsuite/experimental/simd/tests/operators.cc (genHalfBits):
2604         Removed.
2605         * testsuite/experimental/simd/tests/abs.cc: Only include
2606         bits/main.h.
2607         Ditto.
2608         * testsuite/experimental/simd/tests/algorithms.cc: Ditto.
2609         * testsuite/experimental/simd/tests/broadcast.cc: Ditto.
2610         * testsuite/experimental/simd/tests/casts.cc: Ditto.
2611         * testsuite/experimental/simd/tests/fpclassify.cc: Ditto.
2612         * testsuite/experimental/simd/tests/frexp.cc: Ditto.
2613         * testsuite/experimental/simd/tests/generator.cc: Ditto.
2614         * testsuite/experimental/simd/tests/hypot3_fma.cc: Ditto.
2615         * testsuite/experimental/simd/tests/integer_operators.cc: Ditto.
2616         * testsuite/experimental/simd/tests/ldexp_scalbn_scalbln_modf.cc:
2617         * testsuite/experimental/simd/tests/loadstore.cc: Ditto.
2618         * testsuite/experimental/simd/tests/logarithm.cc: Ditto.
2619         * testsuite/experimental/simd/tests/mask_broadcast.cc: Ditto.
2620         * testsuite/experimental/simd/tests/mask_conversions.cc: Ditto.
2621         * testsuite/experimental/simd/tests/mask_implicit_cvt.cc: Ditto.
2622         * testsuite/experimental/simd/tests/mask_operator_cvt.cc: Ditto.
2623         * testsuite/experimental/simd/tests/mask_operators.cc: Ditto.
2624         * testsuite/experimental/simd/tests/math_1arg.cc: Ditto.
2625         * testsuite/experimental/simd/tests/math_2arg.cc: Ditto.
2626         * testsuite/experimental/simd/tests/operator_cvt.cc: Ditto.
2627         * testsuite/experimental/simd/tests/reductions.cc: Ditto.
2628         * testsuite/experimental/simd/tests/remqo.cc: Ditto.
2629         * testsuite/experimental/simd/tests/simd.cc: Ditto.
2630         * testsuite/experimental/simd/tests/sincos.cc: Ditto.
2631         * testsuite/experimental/simd/tests/split_concat.cc: Ditto.
2632         * testsuite/experimental/simd/tests/splits.cc: Ditto.
2633         * testsuite/experimental/simd/tests/trigonometric.cc: Ditto.
2634         * testsuite/experimental/simd/tests/trunc_ceil_floor.cc: Ditto.
2635         * testsuite/experimental/simd/tests/where.cc: Ditto.
2637 2023-02-16  Matthias Kretz  <m.kretz@gsi.de>
2639         * testsuite/experimental/simd/README.md: Document the timeout
2640         and timeout-factor directives. Minor typo fixed.
2642 2023-02-16  Matthias Kretz  <m.kretz@gsi.de>
2644         PR libstdc++/108030
2645         * include/experimental/bits/simd_detail.h: Define
2646         _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
2647         * include/experimental/bits/simd.h: Annotate lambdas with
2648         _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
2649         * include/experimental/bits/simd_builtin.h: Ditto.
2650         * include/experimental/bits/simd_converter.h: Ditto.
2651         * include/experimental/bits/simd_fixed_size.h: Ditto.
2652         * include/experimental/bits/simd_math.h: Ditto.
2653         * include/experimental/bits/simd_neon.h: Ditto.
2654         * include/experimental/bits/simd_x86.h: Ditto.
2656 2023-02-16  Matthias Kretz  <m.kretz@gsi.de>
2658         * include/experimental/bits/simd.h
2659         (_SimdWrapper::_M_is_constprop_none_of)
2660         (_SimdWrapper::_M_is_constprop_all_of): Return false unless the
2661         computed result still satisfies __builtin_constant_p.
2663 2023-02-16  Jonathan Wakely  <jwakely@redhat.com>
2665         * testsuite/std/format/arguments/lwg3810.cc: Replace UTF-8
2666         ellipsis character.
2668 2023-02-16  Jonathan Wakely  <jwakely@redhat.com>
2670         * include/Makefile.am: Add new header.
2671         * include/Makefile.in: Regenerate.
2672         * include/experimental/synchronized_value: New file.
2673         * testsuite/experimental/synchronized_value.cc: New test.
2675 2023-02-16  Jonathan Wakely  <jwakely@redhat.com>
2677         * include/experimental/optional: Fix header name in comment.
2679 2023-02-16  Jonathan Wakely  <jwakely@redhat.com>
2681         * include/std/format (__format::_Arg_store): New class template.
2682         (basic_format_args): Remove nested type _Store and add deduction
2683         guide from _Arg_store.
2684         (basic_format_arg, make_format_args): Adjust.
2685         * testsuite/std/format/arguments/lwg3810.cc: New test.
2687 2023-02-16  Jonathan Wakely  <jwakely@redhat.com>
2689         * include/bits/stl_pair.h (pair) [C++20]: Add non-dangling
2690         constraints to constructors and add deleted overloads for the
2691         dangling cases, as per P2255R2.
2692         (pair) [!C++20 && _GLIBCXX_DEBUG]: Add static assertions to
2693         make dangling cases ill-formed.
2694         * testsuite/20_util/pair/dangling_ref.cc: New test.
2696 2023-02-16  Jonathan Wakely  <jwakely@redhat.com>
2698         * testsuite/17_intro/names_pstl.cc: Require et tbb_backend.
2700 2023-02-16  Jonathan Wakely  <jwakely@redhat.com>
2702         * include/ext/throw_allocator.h: Use reserved names for
2703         parameters.
2705 2023-02-16  Jonathan Wakely  <jwakely@redhat.com>
2707         * testsuite/17_intro/names_pstl.cc: Add space after effective
2708         target name.
2710 2023-02-16  Jonathan Wakely  <jwakely@redhat.com>
2712         * include/pstl/algorithm_fwd.h (__pattern_search_n)
2713         (__brick_unique_copy, __brick_adjacent_find)
2714         (__brick_generate_n, __pattern_generate_n): Use reserved names
2715         for parameters.
2716         * include/pstl/algorithm_impl.h (__brick_unique_copy)
2717         (__pattern_reverse, __brick_generate_n): Likewise.
2718         * include/pstl/execution_impl.h (__prefer_unsequenced_tag)
2719         (__prefer_parallel_tag): Likewise.
2720         * include/pstl/glue_algorithm_impl.h (transform): Likewise.
2721         * include/pstl/glue_numeric_defs.h (adjacent_difference):
2722         Likewise.
2723         * include/pstl/numeric_impl.h (__brick_adjacent_difference):
2724         Likewise.
2725         * include/pstl/parallel_backend_tbb.h (__merge_func): Likewise.
2726         * include/pstl/unseq_backend_simd.h (_Combiner)
2727         (__simd_min_element, __simd_minmax_element): Likewise.
2728         * testsuite/17_intro/names_pstl.cc: New test.
2730 2023-02-16  Jonathan Wakely  <jwakely@redhat.com>
2732         * include/bits/fs_ops.h (create_directory): Use reserved name
2733         for parameter.
2734         * include/bits/ranges_algo.h (__contains_subrange_fn):
2735         Likewise.
2736         * include/bits/regex_automaton.h (_State_base::_M_print):
2737         Likewise.
2738         * include/bits/regex_automaton.tcc(_State_base::_M_print):
2739         Likewise.
2740         * include/bits/regex_scanner.tcc(_Scanner::_M_print): Likewise.
2741         * include/experimental/bits/fs_ops.h (create_directory):
2742         Likewise.
2743         * include/std/mutex (timed_mutex::_M_clocklock): Likewise.
2744         (recursive_timed_mutex:_M_clocklock): Likewise.
2745         * include/std/tuple (basic_common_reference): Likewise.
2746         * libsupc++/cxxabi_init_exception.h
2747         (__cxa_init_primary_exception): Likewise.
2748         * testsuite/17_intro/names.cc: Add checks.
2750 2023-02-14  Gerald Pfeifer  <gerald@pfeifer.com>
2752         * doc/xml/manual/status_cxx2017.xml: Update an open-std.org link
2753         to www.open-std.org and https.
2754         * doc/html/manual/status.html: Regenerate.
2756 2023-02-14  Thomas W Rodgers  <rodgert@twrodgers.com>
2758         PR libstdc++/103934
2759         * include/std/atomic (atomic_flag_wait): Add.
2760         (atomic_flag_wait_explicit): Add.
2761         (atomic_flag_notify): Add.
2762         (atomic_flag_notify_explicit): Add.
2763         * testsuite/29_atomics/atomic_flag/wait_notify/1.cc:
2764         Add test case to cover missing atomic_flag free functions.
2766 2023-02-14  Thomas W Rodgers  <rodgert@twrodgers.com>
2768         PR libstdc++/103934
2769         * include/std/atomic (atomic_flag_test): Add.
2770         (atomic_flag_test_explicit): Add.
2771         * testsuite/29_atomics/atomic_flag/test/explicit.cc: Add
2772         test case to cover missing atomic_flag free functions.
2773         * testsuite/29_atomics/atomic_flag/test/implicit.cc:
2774         Likewise.
2776 2023-02-13  Gerald Pfeifer  <gerald@pfeifer.com>
2778         * doc/xml/manual/policy_data_structures_biblio.xml: Adjust
2779         "The Component Object Model" reference.
2780         * doc/html/manual/policy_data_structures.html: Regenerate.
2782 2023-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
2784         * doc/xml/manual/containers.xml: Tweak a link to N1780
2785         (C++ standard).
2786         * doc/html/manual/associative.html: Regenerate.
2788 2023-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
2790         * doc/xml/manual/ctype.xml: Change www.unix.org to unix.org.
2791         * doc/html/manual/facets.html: Regenerate.
2793 2023-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
2795         * doc/xml/manual/policy_data_structures_biblio.xml: Update
2796         link to "Worst-case efficient priority queues".
2797         * doc/html/manual/policy_data_structures.html: Regenerate.
2799 2023-02-06  Arsen Arsenović  <arsen@aarsen.me>
2801         * doc/xml/manual/using.xml: Document newly-freestanding
2802         headers and the effect of the -ffreestanding flag.
2803         * doc/xml/manual/status_cxx2023.xml: Document P1642R11 as
2804         completed.
2805         * doc/xml/manual/configure.xml: Document that hosted installs
2806         respect __STDC_HOSTED__.
2807         * doc/xml/manual/test.xml: Document how to run tests in
2808         freestanding mode.
2809         * doc/html/*: Regenerate.
2811 2023-02-06  Jonathan Wakely  <jwakely@redhat.com>
2813         * include/bits/ranges_algo.h (__find_last_fn): Rename T to _Tp.
2814         (__find_last_if_fn): Likewise.
2816 2023-02-06  Jonathan Wakely  <jwakely@redhat.com>
2818         * include/std/type_traits: Add diagnostic pragmas around
2819         references to deprecated std::aligned_storage and
2820         std::aligned_union traits.
2821         * testsuite/20_util/aligned_storage/requirements/alias_decl.cc:
2822         Add dg-warning for et c++23.
2823         * testsuite/20_util/aligned_storage/requirements/explicit_instantiation.cc:
2824         Likewise.
2825         * testsuite/20_util/aligned_storage/value.cc: Likewise.
2826         * testsuite/20_util/aligned_union/1.cc: Likewise.
2827         * testsuite/20_util/aligned_union/requirements/alias_decl.cc:
2828         Likewise.
2830 2023-02-06  Nathaniel Shead  <nathanieloshead@gmail.com>
2832         * doc/doxygen/user.cfg.in (PREDEFINED): Add new macros.
2833         * include/bits/c++config (_GLIBCXX23_DEPRECATED)
2834         (_GLIBCXX23_DEPRECATED_SUGGEST): New macros.
2835         * include/std/type_traits (aligned_storage, aligned_union)
2836         (aligned_storage_t, aligned_union_t): Deprecate for C++23.
2837         * testsuite/20_util/aligned_storage/deprecated-2b.cc: New test.
2838         * testsuite/20_util/aligned_union/deprecated-2b.cc: New test.
2840 2023-02-06  Nathaniel Shead  <nathanieloshead@gmail.com>
2842         * doc/doxygen/user.cfg.in (PREDEFINED): Update macros.
2843         * include/bits/c++config (_GLIBCXX20_DEPRECATED): Make
2844         consistent with other 'deprecated' macros.
2845         * include/std/type_traits (is_pod, is_pod_v): Use
2846         _GLIBCXX20_DEPRECATED_SUGGEST instead.
2848 2023-02-06  Arsen Arsenović  <arsen@aarsen.me>
2850         * Makefile.am [!_GLIBCXX_HOSTED]: Enable src/ subdirectory.
2851         * Makefile.in: Regenerate.
2852         * src/Makefile.am [!_GLIBCXX_HOSTED]: Omit compatibility files.
2853         There's no history to be compatible with.
2854         * src/c++11/Makefile.am [!_GLIBCXX_HOSTED]: Omit hosted-only
2855         source files from the build.
2856         * src/c++17/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
2857         * src/c++20/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
2858         * src/c++98/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
2859         * src/Makefile.in: Regenerate.
2860         * src/c++11/Makefile.in: Regenerate.
2861         * src/c++17/Makefile.in: Regenerate.
2862         * src/c++20/Makefile.in: Regenerate.
2863         * src/c++98/Makefile.in: Regenerate.
2865 2023-02-06  Jonathan Wakely  <jwakely@redhat.com>
2867         * src/Makefile.am [GLIBCXX_HOSTED] (SUBDIRS): Do not add
2868         filesystem, libbacktrace and experimental.
2869         * src/Makefile.in: Regenerate.
2871 2023-02-04  Hans-Peter Nilsson  <hp@axis.com>
2873         PR libstdc++/108672
2874         * include/pstl/unseq_backend_simd.h (__simd_or): Use __INT32_TYPE__
2875         instead of int32_t.
2877 2023-02-04  Gerald Pfeifer  <gerald@pfeifer.com>
2879         * doc/xml/manual/documentation_hacking.xml: Adjust link to pdftex.
2880         * doc/html/manual/documentation_hacking.html: Regenerate.
2882 2023-02-04  François Dumont  <fdumont@gcc.gnu.org>
2884         * include/bits/basic_string.h (operator=(basic_string&&)): Transfer move-to
2885         storage to the move-from instance when allocators are equal.
2886         * testsuite/21_strings/basic_string/allocator/char/move_assign.cc (test04):
2887         New test case.
2889 2023-02-03  Samuel Thibault  <samuel.thibault@gnu.org>
2891         * config/os/gnu-linux/os_defines.h [!__linux__]
2892         (_GLIBCXX_NATIVE_THREAD_ID, _GLIBCXX_GTHREAD_USE_WEAK): Do not define.
2894 2023-02-03  Patrick Palka  <ppalka@redhat.com>
2896         * include/bits/ranges_algo.h (__find_last_fn, find_last):
2897         Define.
2898         (__find_last_if_fn, find_last_if): Define.
2899         (__find_last_if_not_fn, find_last_if_not): Define.
2900         * testsuite/25_algorithms/find_last/1.cc: New test.
2901         * testsuite/25_algorithms/find_last_if/1.cc: New test.
2902         * testsuite/25_algorithms/find_last_if_not/1.cc: New test.
2904 2023-02-03  Patrick Palka  <ppalka@redhat.com>
2906         * include/bits/ranges_algo.h (out_value_result): Define.
2907         (iota_result): Define.
2908         (__iota_fn, iota): Define.
2909         * testsuite/25_algorithms/iota/1.cc: New test.
2911 2023-02-03  Patrick Palka  <ppalka@redhat.com>
2913         * include/bits/ranges_algo.h (__contains_fn, contains): Define.
2914         (__contains_subrange_fn, contains_subrange): Define.
2915         * testsuite/25_algorithms/contains/1.cc: New test.
2916         * testsuite/25_algorithms/contains_subrange/1.cc: New test.
2918 2023-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
2920         * doc/xml/manual/abi.xml: Tweak link to ABIcheck project.
2921         * doc/html/manual/abi.html: Regenerate.
2923 2023-02-02  Jonathan Wakely  <jwakely@redhat.com>
2925         * src/filesystem/ops-common.h [AVR] (__unsupported): Always use
2926         errc::function_not_supported instead of errc::not_supported.
2928 2023-02-02  Jonathan Wakely  <jwakely@redhat.com>
2930         * include/std/sstream  (basic_stringbuf::view): Define for old
2931         std::string ABI.
2932         (basic_istringstream::view, basic_0stringstream::view)
2933         (basic_stringstream::view): Likewise.
2934         * testsuite/27_io/basic_istringstream/view/char/1.cc: Remove
2935         { dg-require-effective-target cxx11_abi }.
2936         * testsuite/27_io/basic_istringstream/view/wchar_t/1.cc:
2937         Likewise.
2938         * testsuite/27_io/basic_ostringstream/view/char/1.cc: Likewise.
2939         * testsuite/27_io/basic_ostringstream/view/wchar_t/1.cc:
2940         Likewise.
2941         * testsuite/27_io/basic_stringbuf/view/char/1.cc: Likewise.
2942         * testsuite/27_io/basic_stringbuf/view/wchar_t/1.cc: Likewise.
2943         * testsuite/27_io/basic_stringstream/view/char/1.cc: Likewise.
2944         * testsuite/27_io/basic_stringstream/view/wchar_t/1.cc:
2945         Likewise.
2947 2023-02-02  Jonathan Wakely  <jwakely@redhat.com>
2949         PR libstdc++/108636
2950         * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Export shared_ptr
2951         conversion operators for directory iterator comparisons with
2952         std::default_sentinel_t.
2953         * include/bits/fs_path.h (path::path(string_view, _Type))
2954         (path::_Cmpt::_Cmpt(string_view, _Type, size_t)): Move inline
2955         definitions to ...
2956         * src/c++17/fs_path.cc: ... here.
2957         * testsuite/27_io/filesystem/path/108636.cc: New test.
2959 2023-02-02  Jonathan Wakely  <jwakely@redhat.com>
2961         * include/std/variant (variant::operator=): Implement resolution
2962         of LWG 3585.
2963         * testsuite/20_util/variant/lwg3585.cc: New test.
2965 2023-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
2967         * doc/xml/manual/using_exceptions.xml: Update a www.open-std.org
2968         link to https.
2969         * doc/html/manual/using_exceptions.html: Regenerate.
2971 2023-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
2973         * doc/xml/manual/debug.xml: Fix link to online GDB manual.
2974         * doc/html/manual/debug.html: Regenerate.
2976 2023-02-01  Jonathan Wakely  <jwakely@redhat.com>
2978         * src/c++11/random.cc (random_device::_M_fini): Do not try to
2979         close the file handle if the target doesn't support the
2980         /dev/random and /dev/urandom files.
2982 2023-02-01  Jonathan Wakely  <jwakely@redhat.com>
2984         * config/os/generic/error_constants.h (errc::value_too_large)
2985         [__AVR__]: Define.
2986         * src/c++11/system_error.cc
2987         (system_category::default_error_condition) [__AVR__]: Only match
2988         recognize values equal to EDOM, ERANGE, ENOSYS and EINTR.
2989         * src/c++17/fs_ops.cc (fs::current_path) [__AVR__]: Do not check
2990         for ENOENT etc. in switch.
2991         (fs::remove_all) [__AVR__]: Likewise.
2992         * src/filesystem/ops-common.h [__AVR__]: Do not use POSIX open,
2993         close etc.
2995 2023-02-01  Jonathan Wakely  <jwakely@redhat.com>
2997         * acinclude.m4 (GLIBCXX_ZONEINFO_DIR) [avr-*-*, msp430-*-*]: Set
2998         embed_zoneinfo=no
2999         * configure: Regenerate.
3001 2023-02-01  Hans-Peter Nilsson  <hp@axis.com>
3003         PR testsuite/108632
3004         * testsuite/std/time/hh_mm_ss/1.cc (size): Add empty
3005         struct at end of S0.
3007 2023-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
3009         * doc/xml/manual/shared_ptr.xml: Move links from both
3010         http://open-std.org and http://www.open-std.org to
3011         https://www.open-std.org.
3012         * doc/html/manual/memory.html: Regenerate.
3014 2023-01-28  Gerald Pfeifer  <gerald@pfeifer.com>
3016         * doc/xml/manual/appendix_contributing.xml: Adjust link to
3017         ISO C++ standard at ANSI.
3018         Move link to www.open-std.org to https.
3019         * doc/html/manual/appendix_contributing.html: Regenerate.
3021 2023-01-28  Gerald Pfeifer  <gerald@pfeifer.com>
3023         * doc/xml/manual/documentation_hacking.xml: Move sourceforge.net
3024         links to https.
3025         * doc/html/manual/documentation_hacking.html: Regenerate.
3027 2023-01-28  Gerald Pfeifer  <gerald@pfeifer.com>
3029         * doc/xml/manual/abi.xml: Update www.open-std.org link to https.
3030         * doc/html/manual/abi.html: Regenerate.
3032 2023-01-27  Jakub Jelinek  <jakub@redhat.com>
3034         PR libstdc++/108568
3035         * testsuite/17_intro/names.cc (__unused): For linux or GNU hurd
3036         include features.h if present and then check __GLIBC__ and
3037         __GLIBC_MINOR__ macros for glibc prior to 2.19, instead of testing
3038         __GLIBC_PREREQ which isn't defined yet.
3040 2023-01-27  Jonathan Wakely  <jwakely@redhat.com>
3042         * src/c++20/tzdb.cc (tzdata_stream): Use constant instead of
3043         string literal.
3045 2023-01-27  Jonathan Wakely  <jwakely@redhat.com>
3047         PR libstdc++/108554
3048         * testsuite/23_containers/map/modifiers/108554.cc: Use dg-bogus.
3050 2023-01-26  Jonathan Wakely  <jwakely@redhat.com>
3052         * src/c++20/tzdb.cc (operator>>(istream&, ZoneInfo&)): Allow
3053         rules named "+" for compatibility with older tzdata.zi files.
3055 2023-01-26  Jonathan Wakely  <jwakely@redhat.com>
3057         PR libstdc++/108554
3058         * include/bits/stl_tree.h (_Rb_tree_insert_and_rebalance): Add
3059         nonnull attribute.
3060         (_Rb_tree_rebalance_for_erase): Add nonnull and returns_nonnull
3061         attributes.
3062         * testsuite/23_containers/map/modifiers/108554.cc: New test.
3064 2023-01-26  Jonathan Wakely  <jwakely@redhat.com>
3066         PR libstdc++/108530
3067         * src/c++20/tzdb.cc (current_zone): Look for TIMEZONE or ZONE in
3068         /etc/sysconfig/clock, not DEFAULT_TIMEZONE.
3070 2023-01-26  Gerald Pfeifer  <gerald@pfeifer.com>
3072         * doc/xml/manual/intro.xml: Update links to www.open-std.org to
3073         use https.
3074         * doc/html/manual/bugs.html: Regenerate.
3076 2023-01-24  Jonathan Wakely  <jwakely@redhat.com>
3078         PR libstdc++/108530
3079         * src/c++20/tzdb.cc (current_zone): Look for DEFAULT_TIMEZONE in
3080         /etc/sysconfig/clock.
3082 2023-01-24  Jonathan Wakely  <jwakely@redhat.com>
3084         PR libstdc++/102301
3085         * include/bits/ranges_base.h: Include <bits/stl_iterator.h> for
3086         std::make_reverse_iterator.
3087         * include/std/tuple: Include <bits/ranges_util.h> for subrange.
3088         (make_from_tuple): Add static assertion from P2255 to diagnose
3089         dangling references.
3090         * testsuite/20_util/tuple/make_from_tuple/dangling_ref.cc: New test.
3091         * testsuite/20_util/tuple/make_from_tuple/tuple_like.cc: New test.
3093 2023-01-23  François Dumont  <fdumont@gcc.gnu.org>
3095         * include/debug/safe_iterator.h (_Safe_iterator<>::_Unchecked): New.
3096         (_Safe_iterator(const _Safe_iterator&, _Unchecked)): New.
3097         (_Safe_iterator::operator++(int)): Use latter.
3098         (_Safe_iterator::operator--(int)): Likewise.
3099         (_Safe_iterator(_Iterator, const _Safe_sequence_base*)): Remove !_M_insular()
3100         check.
3101         * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::_Unchecked):
3102         New.
3103         (_Safe_local_iterator(const _Safe_local_iterator&, _Unchecked)): New.
3104         (_Safe_local_iterator::operator++(int)): Use latter.
3105         * src/c++11/debug.cc (_S_debug_messages): Add as comment the _Debug_msg_id
3106         entry associated to the array entry.
3108 2023-01-18  Jonathan Wakely  <jwakely@redhat.com>
3110         * include/bits/fs_path.h (u8path): Add deprecated attribute.
3111         * testsuite/27_io/filesystem/path/construct/90281.cc: Add
3112         -Wno-deprecated-declarations for C++20 and later.
3113         * testsuite/27_io/filesystem/path/factory/u8path-char8_t.cc:
3114         Likewise.
3115         * testsuite/27_io/filesystem/path/factory/u8path.cc: Likewise.
3116         * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
3117         * testsuite/27_io/filesystem/path/factory/u8path-depr.cc: New test.
3119 2023-01-18  Jonathan Wakely  <jwakely@redhat.com>
3121         * include/bits/random.h (random_device) [!_GLIBCXX_USE_DEV_RANDOM]:
3122         Always call _M_fini and _M_getentropy.
3124 2023-01-18  Gerald Pfeifer  <gerald@pfeifer.com>
3126         * doc/xml/manual/policy_data_structures_biblio.xml: Adjust links
3127         to www.open-std.org to use https.
3128         (COM: Component Model Object Technologies): Rename from...
3129         (The Component Object Model): ...to.
3130         * doc/html/manual/policy_data_structures.html: Regenerate.
3132 2023-01-18  Dimitrij Mijoski  <dmjpp@hotmail.com>
3134         * testsuite/22_locale/codecvt/codecvt_unicode.cc: Simplify.
3135         * testsuite/22_locale/codecvt/codecvt_unicode.h: Simplify.
3136         * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: Simplify.
3138 2023-01-17  Jonathan Wakely  <jwakely@redhat.com>
3140         * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Check $target_os instead
3141         of $host. Fix check for file being present during native build.
3142         * configure: Regenerate.
3144 2023-01-17  Martin Liska  <mliska@suse.cz>
3146         * src/libbacktrace/Makefile.in: Regenerate.
3148 2023-01-16  Jonathan Wakely  <jwakely@redhat.com>
3150         * src/c++20/tzdb.cc (_GLIBCXX_USE_CXX11_ABI): Define to 1.
3152 2023-01-16  Jonathan Wakely  <jwakely@redhat.com>
3154         PR libstdc++/108413
3155         * include/c_compatibility/stdatomic.h: Change copyright line to
3156         be consistent with other headers contributed under DCO terms.
3157         * include/std/expected: Add full stop to copyright line.
3158         * src/c++20/tzdb.cc: Likewise.
3160 2023-01-15  Gerald Pfeifer  <gerald@pfeifer.com>
3162         * doc/xml/manual/status_cxx2014.xml: Switch www.open-std.org to
3163         https.
3164         * doc/xml/manual/status_cxx2017.xml: Ditto.
3165         * doc/xml/manual/status_cxx2020.xml: Ditto.
3166         * doc/xml/manual/status_cxx2023.xml: Ditto.
3167         * doc/html/manual/status.html: Regenerate.
3169 2023-01-15  Jonathan Wakely  <jwakely@redhat.com>
3171         * testsuite/std/time/tzdb_list/1.cc: Remove dg-xfail-run-if
3172         and fail gracefully if defining the weak symbol doesn't work.
3174 2023-01-15  François Dumont  <fdumont@gcc.gnu.org>
3176         PR libstdc++/108288
3177         * include/debug/safe_iterator.h (_Safe_iterator<>::operator++(int)): Extend deadlock
3178         fix to other iterator category.
3179         (_Safe_iterator<>::operator--(int)): Likewise.
3180         * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::operator++(int)):
3181         Fix deadlock.
3182         * testsuite/util/debug/unordered_checks.h (invalid_local_iterator_pre_increment): New.
3183         (invalid_local_iterator_post_increment): New.
3184         * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_post_increment_neg.cc:
3185         New test.
3186         * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_pre_increment_neg.cc:
3187         New test.
3189 2023-01-15  Jonathan Wakely  <jwakely@redhat.com>
3191         * testsuite/30_threads/jthread/jthread.cc: Remove -pthread from
3192         dg-options.
3194 2023-01-15  Jonathan Wakely  <jwakely@redhat.com>
3196         * testsuite/std/time/clock/utc/io.cc: Use ctype to widen char.
3198 2023-01-14  Björn Schäpers  <bjoern@hazardy.de>
3200         * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Add check for
3201         windows.h. Add pecoff as FORMAT_FILE.
3202         * config.h.in: Regenerate.
3203         * configure: Regenerate.
3204         * src/libbacktrace/Makefile.am: Regenerate.
3205         * src/libbacktrace/Makefile.in: Add pecoff.c as FORMAT_FILE.
3207 2023-01-14  Björn Schäpers  <bjoern@hazardy.de>
3209         * include/std/stacktrace (stacktrace_entry::_S_demangle): Use
3210         raw __name if __cxa_demangle could not demangle it.
3212 2023-01-14  Jonathan Wakely  <jwakely@redhat.com>
3214         PR libstdc++/108409
3215         * src/c++20/tzdb.cc (current_zone()) [_AIX]: Use TZ environment
3216         variable.
3218 2023-01-14  Jonathan Wakely  <jwakely@redhat.com>
3220         * src/c++20/tzdb.cc (TZDB_DISABLED): Disable all code for
3221         loading tzdb.
3222         * testsuite/std/time/tzdb/leap_seconds.cc: Require tzdb
3223         effective target.
3224         * testsuite/std/time/tzdb_list/1.cc: Likewise.
3226 2023-01-14  Jonathan Wakely  <jwakely@redhat.com>
3228         * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Replace the
3229         --with-libstdcxx-zoneinfo-dir configure option with
3230         --with-libstdcxx-zoneinfo with yes/no/static choices as well as
3231         a directory.
3232         * config.h.in: Regenerate.
3233         * configure: Regenerate.
3234         * doc/xml/manual/configure.xml: Document configure option.
3235         * doc/html/manual/configure.html: Regenerate.
3236         * src/c++20/Makefile.am: Generate tzdata.zi.h header.
3237         * src/c++20/Makefile.in: Regenerate.
3238         * src/c++20/tzdb.cc (__gnu_cxx::zoneinfo_dir_override): Return a
3239         null pointer if no directory is configured.
3240         (zoneinfo_dir): Replace with ...
3241         (zoneinfo_file): New function.
3242         (tzdata_stream): New istream class.
3243         (remote_version, reload_tzdb): Use tzdata_stream.
3244         * testsuite/lib/libstdc++.exp (check_effective_target_tzdb):
3245         Check new _GLIBCXX_STATIC_TZDATA macro and ignore presence of
3246         tzdata.zi file in default location.
3247         * src/c++20/tzdata.zi: New file.
3249 2023-01-14  Jonathan Wakely  <jwakely@redhat.com>
3251         * include/bits/chrono_io.h (operator<<): Fix syntax errors.
3252         * testsuite/std/time/month_day/io.cc: New test.
3253         * testsuite/std/time/month_day_last/io.cc: New test.
3254         * testsuite/std/time/month_weekday/io.cc: New test.
3255         * testsuite/std/time/month_weekday_last/io.cc: New test.
3256         * testsuite/std/time/weekday_indexed/io.cc: New test.
3257         * testsuite/std/time/weekday_last/io.cc: New test.
3258         * testsuite/std/time/year_month/io.cc: New test.
3259         * testsuite/std/time/year_month_day_last/io.cc: New test.
3260         * testsuite/std/time/year_month_weekday/io.cc: New test.
3261         * testsuite/std/time/year_month_weekday_last/io.cc: New test.
3263 2023-01-14  François Dumont  <fdumont@gcc.gnu.org>
3265         * include/std/format [_GLIBCXX_INLINE_VERSION](to_chars): Adapt __asm symbol
3266         specifications.
3267         * config/abi/pre/gnu-versioned-namespace.ver: Add to_chars/from_chars symbols
3268         export.
3270 2023-01-13  Jonathan Wakely  <jwakely@redhat.com>
3272         * include/bits/std_mutex.h: Include <errno.h>.
3274 2023-01-13  Arsen Arsenović  <arsen@aarsen.me>
3276         * testsuite/20_util/to_chars/version.cc: Mark hosted-only.
3277         * testsuite/20_util/uses_allocator/lwg3677.cc: Ditto.
3278         * testsuite/20_util/weak_ptr/cons/self_move.cc: Ditto.
3279         * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Replace usage of
3280         std::make_unique with a freestanding-compatible wrapper around
3281         unique_ptr.
3282         * testsuite/21_strings/basic_string_view/operations/contains/char.cc:
3283         Don't test for presence of __cpp_lib_string_contains on !HOSTED.
3284         * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
3285         Ditto.
3286         * testsuite/std/ranges/version_c++23.cc: Don't test for presence
3287         of __cpp_lib_ranges in !HOSTED.
3289 2023-01-13  Arsen Arsenović  <arsen@aarsen.me>
3291         * include/Makefile.am: Install bits/char_traits.h,
3292         std/string_view
3293         * include/Makefile.in: Regenerate.
3294         * include/bits/char_traits.h: Gate hosted-only, wchar-only and
3295         mbstate-only bits behind appropriate #ifs.
3296         * include/std/string_view: Gate <iostream> functionality behind
3297         HOSTED.
3298         * include/std/version: Enable __cpp_lib_constexpr_string_view
3299         and __cpp_lib_starts_ends_with in !HOSTED.
3300         * include/std/ranges: Re-enable __is_basic_string_view on
3301         freestanding, include <string_view> directly.
3302         * include/precompiled/stdc++.h: Include <string_view> when
3303         !HOSTED too.
3304         * testsuite/20_util/function_objects/searchers.cc: Skip testing
3305         boyer_moore searchers on freestanding
3306         * testsuite/21_strings/basic_string_view/capacity/1.cc: Guard
3307         <string>-related tests behind __STDC_HOSTED__.
3308         * testsuite/21_strings/basic_string_view/cons/char/1.cc: Ditto.
3309         * testsuite/21_strings/basic_string_view/cons/char/2.cc: Remove
3310         unused <stdexcept> include.
3311         * testsuite/21_strings/basic_string_view/cons/char/3.cc: Remove
3312         unused <vector> include.
3313         * testsuite/21_strings/basic_string_view/cons/char/range.cc:
3314         Guard <string> related testing behind __STDC_HOSTED__.
3315         * testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc:
3316         Guard <stdexcept> related tests behind __STDC_HOSTED__.
3317         * testsuite/21_strings/basic_string_view/element_access/char/1.cc:
3318         Ditto.
3319         * testsuite/21_strings/basic_string_view/element_access/wchar_t/1.cc:
3320         Guard <stdexcept> tests behind __STDC_HOSTED__.
3321         * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
3322         Enable test on freestanding, guard <stdexcept> bits behind
3323         __STDC_HOSTED__.
3324         * testsuite/21_strings/basic_string_view/operations/substr/char.cc:
3325         Guard <stdexcept> bits behind __STDC_HOSTED__.
3326         * testsuite/21_strings/basic_string_view/operations/substr/wchar_t.cc:
3327         Ditto.
3329 2023-01-13  Dimitrij Mijoski  <dmjpp@hotmail.com>
3331         PR libstdc++/86419
3332         * src/c++11/codecvt.cc (read_utf8_code_point): Correctly detect
3333         errors in incomplete multibyte sequences.
3334         (utf16_in): Remove surrogates parameter. Fix conditions for
3335         returning partial.
3336         (utf16_out): Fix condition for returning partial.
3337         (ucs2_in): Do not pass surrogates argument to utf16_in.
3338         * testsuite/22_locale/codecvt/codecvt_unicode.cc: New test.
3339         * testsuite/22_locale/codecvt/codecvt_unicode.h: New header for
3340         tests.
3341         * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: New
3342         test.
3344 2023-01-13  Jonathan Wakely  <jwakely@redhat.com>
3346         PR libstdc++/108331
3347         * config/io/c_io_stdio.h (__c_lock): Define as a typedef for
3348         __GTHREAD_LEGACY_MUTEX_T if defined.
3350 2023-01-13  Jonathan Wakely  <jwakely@redhat.com>
3352         PR libstdc++/108327
3353         * config/os/gnu-linux/ldbl-extra.ver (GLIBCXX_LDBL_3.4.31):
3354         Export __try_use_facet specializations for facets in namespace
3355         __gnu_cxx_ldbl128.
3356         * config/os/gnu-linux/ldbl-ieee128-extra.ver
3357         (GLIBCXX_IEEE128_3.4.31): Likewise for facets in namespace
3358         __gnu_cxx_ieee128.
3359         * testsuite/util/testsuite_abi.cc: Add to lists of known and
3360         latest versions.
3362 2023-01-13  Jonathan Wakely  <jwakely@redhat.com>
3364         * include/bits/std_mutex.h: Remove <system_error> include.
3365         * include/std/condition_variable: Add <bits/error_constants.h>
3366         include.
3367         * include/std/mutex: Likewise.
3368         * include/std/shared_mutex: Likewise.
3370 2023-01-12  Jonathan Wakely  <jwakely@redhat.com>
3372         PR libstdc++/77691
3373         * include/experimental/memory_resource
3374         (_GLIBCXX_MAX_ALIGN_MATCHES_MALLOC): Define.
3375         (do_allocate, do_deallocate): Check it.
3376         * testsuite/experimental/memory_resource/new_delete_resource.cc:
3377         Relax expected behaviour for 64-bit hppa-hp-hpux11.11.
3379 2023-01-12  Jonathan Wakely  <jwakely@redhat.com>
3381         * doc/xml/manual/abi.xml: Add latest library versions.
3382         * doc/html/manual/abi.html: Regenerate.
3384 2023-01-12  François Dumont  <fdumont@gcc.gnu.org>
3386         PR libstdc++/107189
3387         * include/bits/stl_tree.h (_Rb_tree<>::_M_insert_range_equal): Remove
3388         unused _Alloc_node instance.
3390 2023-01-12  Jonathan Wakely  <jwakely@redhat.com>
3392         * include/bits/atomic_wait.h (__detail::__platform_wait_t):
3393         Define as unsigned long if always lock-free, and unsigned int
3394         otherwise.
3396 2023-01-10  Jonathan Wakely  <jwakely@redhat.com>
3398         * src/c++20/tzdb.cc (tzdb_list::_S_init_tzdb): Use __try and
3399         __catch macros for exception handling.
3401 2023-01-10  Jonathan Wakely  <jwakely@redhat.com>
3403         PR libstdc++/108221
3404         * include/bits/stl_algobase.h (__lg): Replace six overloads with
3405         a single function template for all integer types.
3406         * include/bits/stl_algo.h (__merge_adaptive_resize): Cast
3407         arithmetic results back to _Distance.
3409 2023-01-10  Jonathan Wakely  <jwakely@redhat.com>
3411         PR libstdc++/108221
3412         * include/std/span (span::span()): Un-simplify constraint to
3413         work for size_t of lesser rank than int.
3415 2023-01-07  LIU Hao  <lh_mouse@126.com>
3417         PR middle-end/108300
3418         * src/c++11/system_error.cc: Define `WIN32_LEAN_AND_MEAN` before
3419         <windows.h>.
3420         * src/c++11/thread.cc: Likewise.
3421         * src/c++17/fs_ops.cc: Likewise.
3422         * src/filesystem/ops.cc: Likewise.
3424 2023-01-06  Jonathan Wakely  <jwakely@redhat.com>
3426         PR libstdc++/108228
3427         * src/c++20/tzdb.cc (zoneinfo_dir): Add diagnostic pragma.
3429 2023-01-06  Jonathan Wakely  <jwakely@redhat.com>
3431         PR libstdc++/108235
3432         * src/c++20/tzdb.cc (time_zone::_Impl::RulesCounter): New class
3433         template and partial specialization for synchronizing access to
3434         time_zone::_Impl::infos.
3435         (time_zone::_M_get_sys_info, reload_tzdb): Adjust uses of
3436         rules_counter.
3438 2023-01-06  Patrick Palka  <ppalka@redhat.com>
3440         PR libstdc++/108260
3441         * include/bits/utility.h (__cpp_lib_ranges_zip): Define for C++23.
3442         * include/std/ranges (__cpp_lib_ranges_zip): Likewise.
3443         (__cpp_lib_ranges_chunk): Likewise.
3444         (__cpp_lib_ranges_slide): Likewise.
3445         (__cpp_lib_ranges_chunk_by): Likewise.
3446         (__cpp_lib_ranges_join_with): Likewise.
3447         (__cpp_lib_ranges_repeat): Likewise.
3448         (__cpp_lib_ranges_stride): Likewise.
3449         (__cpp_lib_ranges_cartesian_product): Likewise.
3450         (__cpp_lib_ranges_as_rvalue): Likewise.
3451         * include/std/version: Ditto.
3452         * testsuite/20_util/tuple/p2321r2.cc: Verify value of
3453         feature-test macro.
3454         * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Likewise.
3455         * testsuite/std/ranges/adaptors/chunk/1.cc: Likewise.
3456         * testsuite/std/ranges/adaptors/chunk_by/1.cc: Likewise.
3457         * testsuite/std/ranges/adaptors/join_with/1.cc: Likewise.
3458         * testsuite/std/ranges/adaptors/slide/1.cc: Likewise.
3459         * testsuite/std/ranges/adaptors/stride/1.cc: Likewise.
3460         * testsuite/std/ranges/cartesian_product/1.cc: Likewise.
3461         * testsuite/std/ranges/repeat/1.cc: Likewise.
3462         * testsuite/std/ranges/zip/1.cc: Likewise.
3463         * testsuite/std/ranges/version_c++23.cc: New test.
3465 2023-01-06  Jonathan Wakely  <jwakely@redhat.com>
3467         PR libstdc++/108214
3468         * include/std/bitset (operator>>): Use alloca in the right
3469         scope, not in a constructor.
3470         * testsuite/20_util/bitset/io/input.cc: Check case from PR.
3472 2023-01-06  Jonathan Wakely  <jwakely@redhat.com>
3474         PR libstdc++/108221
3475         * include/std/format (basic_format_arg) [!__cpp_lib_to_chars]:
3476         Disable visiting floating-point types.
3478 2023-01-06  Jonathan Wakely  <jwakely@redhat.com>
3480         PR libstdc++/108288
3481         * include/debug/safe_iterator.h (_Safe_iterator::operator++(int))
3482         (_Safe_iterator::operator--(int)): Do not hold lock around
3483         construction of return value.
3485 2023-01-05  John David Anglin  <danglin@gcc.gnu.org>
3487         * config/cpu/hppa/atomicity.h (_PA_LDCW_INSN): Define.
3488         (__exchange_and_add): Use _PA_LDCW_INSN.  Use ordered store for
3489         lock release.  Revise loop.
3490         (__atomic_add): Likewise.
3492 2023-01-05  Jonathan Wakely  <jwakely@redhat.com>
3494         PR libstdc++/108212
3495         * python/libstdcxx/v6/printers.py (_utc_timezone): New global
3496         variable.
3497         (StdChronoTimePointPrinter::to_string): Use it.
3499 2023-01-05  Jonathan Wakely  <jwakely@redhat.com>
3501         PR libstdc++/108290
3502         * include/std/functional (_Bind_front): Add no_unique_address
3503         attribute to data members.
3504         * testsuite/20_util/function_objects/bind_front/107784.cc: Check
3505         size of call wrappers with empty types for targets and bound
3506         arguments.
3508 2023-01-05  Jonathan Wakely  <jwakely@redhat.com>
3510         PR libstdc++/108211
3511         * src/c++20/tzdb.cc (chrono::current_zone()): Check for zone
3512         using only last component of the name.
3514 2023-01-05  Jonathan Wakely  <jwakely@redhat.com>
3516         PR libstdc++/108228
3517         PR libstdc++/108235
3518         * config/abi/pre/gnu.ver: Move zoneinfo_dir_override export to
3519         the latest symbol version.
3520         * src/c++20/tzdb.cc (USE_ATOMIC_SHARED_PTR): Define to 0 if
3521         atomic<_Node*> is not always lock free.
3522         (USE_ATOMIC_LIST_HEAD): New macro.
3523         [__hpux__] (__gnu_cxx::zoneinfo_dir_override()): Provide
3524         definition of weak symbol.
3525         (tzdb_list::_Node::_S_head): Rename to _S_head_cache.
3526         (tzdb_list::_Node::_S_list_head): New function for accessing
3527         list head efficiently.
3528         (tzdb_list::_Node::_S_cache_list_head): New function for
3529         updating _S_list_head.
3531 2023-01-05  Jonathan Wakely  <jwakely@redhat.com>
3533         PR libstdc++/108265
3534         * include/std/chrono (hh_mm_ss): Do not use chrono::abs if
3535         duration rep is unsigned.
3536         * testsuite/std/time/hh_mm_ss/1.cc: Check unsigned rep.
3538 2023-01-04  Iain Sandoe  <iain@sandoe.co.uk>
3540         PR libstdc++/108228
3541         * config/abi/pre/gnu.ver (GLIBCXX_3.4):
3542         Add __gnu_cxx::zoneinfo_dir_override().
3544 2023-01-04  Jonathan Wakely  <jwakely@redhat.com>
3546         PR libstdc++/108258
3547         * include/std/array (__array_traits<T, 0>::operator T*()): Add
3548         constexpr.
3549         * testsuite/23_containers/array/element_access/constexpr_c++17.cc: Check
3550         std::array<T, 0>::data().
3553 Copyright (C) 2023 Free Software Foundation, Inc.
3555 Copying and distribution of this file, with or without modification,
3556 are permitted in any medium without royalty provided the copyright
3557 notice and this notice are preserved.