]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/ChangeLog
Daily bump.
[thirdparty/gcc.git] / libstdc++-v3 / ChangeLog
1 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
2
3 * testsuite/25_algorithms/copy/debug/constexpr_neg.cc: Adjust
4 expected errors.
5 * testsuite/25_algorithms/equal/debug/constexpr_neg.cc:
6 Likewise.
7
8 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
9
10 * testsuite/27_io/filesystem/iterators/91067.cc: Add
11 -Wno-self-move to options.
12 * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise.
13
14 2023-09-01 Vladimir Palevich <palevichva@gmail.com>
15
16 PR libstdc++/110879
17 * include/bits/vector.tcc (_M_realloc_insert): End guard
18 lifetime just before assignment to class members.
19 (_M_default_append): Likewise.
20
21 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
22
23 * src/c++17/fs_ops.cc (fs::absolute) [FILESYSTEM_IS_WINDOWS]:
24 Use __resize_and_overwrite to fill buffer.
25 (fs::read_symlink) [HAVE_READLINK]: Likewise.
26 * src/filesystem/ops-common.h (get_temp_directory_from_env)
27 [FILESYSTEM_IS_WINDOWS]: Likewise.
28
29 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
30
31 PR libstdc++/111077
32 * include/bits/atomic_base.h (__atomic_impl::__compare_exchange):
33 Add _AtomicRef non-type template parameter and use a loop if it
34 is true.
35 (__atomic_impl::compare_exchange_weak): Add _AtomicRef NTTP.
36 (__atomic_impl::compare_exchange_strong): Likewise.
37 (atomic_ref::compare_exchange_weak): Use true for NTTP.
38 (atomic_ref::compare_exchange_strong): Use true for NTTP.
39 * testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc:
40 Fix test to not rely on atomic_ref::load() to return an object
41 with padding preserved.
42
43 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
44
45 * testsuite/27_io/filesystem/path/108636.cc: Add dg-require for
46 filesystem support.
47
48 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
49
50 * src/c++20/tzdb.cc (tzdb::current_zone): Check configure macros
51 for POSIX readlink before using filesystem::read_symlink.
52
53 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
54
55 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Default to yes.
56 * configure: Regenerate.
57
58 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
59
60 * include/bits/chrono_io.h (_Parser::operator()): Set failbit
61 early if invalid values are read when _M_need & _TimeOfDay is
62 non-zero.
63 * testsuite/std/time/parse.cc: Check that "25:59" cannot be
64 parsed for "%H:%M".
65
66 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
67
68 PR libstdc++/111162
69 * include/bits/chrono_io.h (_Parser::Operator()): Check %C
70 values are in range of year::min() to year::max().
71 * testsuite/std/time/parse.cc: Check out of range centuries.
72
73 2023-09-01 Jonathan Wakely <jwakely@redhat.com>
74
75 * include/std/format (__format::_Sink::_M_reset): Change second
76 argument from iterator to offset.
77
78 2023-08-24 Paul Dreik <gccpatches@pauldreik.se>
79
80 PR libstdc++/111102
81 * testsuite/std/format/string.cc: Check wide character format
82 strings with out-of-range widths.
83
84 2023-08-24 Paul Dreik <gccpatches@pauldreik.se>
85
86 PR libstdc++/111102
87 * include/std/format (__format::__parse_integer): Check for
88 non-null pointer.
89
90 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
91
92 * testsuite/std/format/functions/format_to.cc: Avoid warning for
93 unused variables.
94
95 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
96
97 * include/std/atomic: Add comment to #ifdef and fix indentation.
98 * include/std/ostream: Check __glibcxx_syncbuf instead of
99 __cplusplus and _GLIBCXX_HOSTED.
100 * include/std/thread: Add comment to #ifdef.
101
102 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
103
104 * include/bits/version.def (__cpp_lib_ratio): Define.
105 * include/bits/version.h: Regenerate.
106 * include/std/ratio (quecto, ronto, yocto, zepto)
107 (zetta, yotta, ronna, quetta): Define.
108 * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Adjust
109 dg-error line numbers.
110
111 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
112
113 * python/libstdcxx/v6/printers.py (StdLocalePrinter): New
114 printer class.
115 * testsuite/libstdc++-prettyprinters/locale.cc: New test.
116
117 2023-08-24 Jonathan Wakely <jwakely@redhat.com>
118
119 PR libstdc++/110944
120 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Do
121 not show template arguments.
122 (StdVariantPrinter): Likewise.
123 * testsuite/libstdc++-prettyprinters/compat.cc: Adjust expected
124 output.
125 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
126 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
127
128 2023-08-23 François Dumont <fdumont@gcc.gnu.org>
129
130 * testsuite/util/replacement_memory_operators.h
131 (counter::scope): New, capture and reset counter count at construction and
132 restore it at destruction.
133 (counter::check_new): Add scope instantiation.
134 * testsuite/23_containers/unordered_map/96088.cc (main):
135 Add counter::scope instantiation.
136 * testsuite/23_containers/unordered_multimap/96088.cc (main): Likewise.
137 * testsuite/23_containers/unordered_multiset/96088.cc (main): Likewise.
138 * testsuite/23_containers/unordered_set/96088.cc (main): Likewise.
139 * testsuite/ext/malloc_allocator/deallocate_local.cc (main): Likewise.
140 * testsuite/ext/new_allocator/deallocate_local.cc (main): Likewise.
141 * testsuite/ext/throw_allocator/deallocate_local.cc (main): Likewise.
142 * testsuite/ext/pool_allocator/allocate_chunk.cc (started): New global.
143 (operator new(size_t)): Check started.
144 (main): Set/Unset started.
145 * testsuite/17_intro/no_library_allocation.cc: New test case.
146
147 2023-08-21 Jonathan Wakely <jwakely@redhat.com>
148
149 * testsuite/18_support/nested_exception/rethrow_if_nested-term.cc:
150 Call std::set_terminate before throwing the nested exception.
151
152 2023-08-18 Jonathan Wakely <jwakely@redhat.com>
153
154 PR target/111060
155 * include/std/format (formatter): Only define specializations
156 for 16-bit floating-point types for C++23.
157 * include/std/limits (numeric_limits): Likewise.
158
159 2023-08-18 Jonathan Wakely <jwakely@redhat.com>
160
161 * include/bits/chrono_io.h (operator<<): Make uses of wide
162 strings with streams and std::format type-dependent on _CharT.
163 * include/std/format [!_GLIBCXX_USE_WCHAR_T] Do not use
164 __to_wstring_numeric.
165
166 2023-08-18 Jonathan Wakely <jwakely@redhat.com>
167
168 * include/bits/chrono_io.h (operator<<): Use __format_context.
169 * include/std/format (__format::__format_context): New alias
170 template.
171 [!_GLIBCXX_USE_WCHAR_T] (wformat_args, make_wformat_arg):
172 Disable.
173
174 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
175
176 Revert:
177 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
178
179 * config/locale/generic/c_locale.cc (__convert_to_v): Reuse
180 double overload for long double if possible.
181
182 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
183
184 * src/c++20/tzdb.cc (tzdata_file, leaps_file): Change type to
185 std::string_view.
186
187 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
188
189 * config/locale/generic/c_locale.cc (__convert_to_v): Reuse
190 double overload for long double if possible.
191
192 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
193
194 * src/c++98/localename.cc (is_C_locale): New function.
195 (locale::locale(const char*)): Use is_C_locale.
196
197 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
198
199 PR libstdc++/110945
200 * include/bits/basic_string.h (basic_string::assign(Iter, Iter)):
201 Dispatch to _M_replace or move assignment from a temporary,
202 based on the iterator type.
203
204 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
205
206 * include/std/format (formatter): Add partial specializations
207 for extended floating-point types.
208 * testsuite/std/format/functions/format.cc: Move test_float128()
209 to ...
210 * testsuite/std/format/formatter/ext_float.cc: New test.
211
212 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
213
214 * include/bits/c++config (__gnu_cxx::__bfloat16_t): Define
215 whenever __BFLT16_DIG__ is defined, not only for C++23.
216 * include/std/limits (numeric_limits<bfloat16_t>): Likewise.
217 (numeric_limits<_Float16>, numeric_limits<_Float32>)
218 (numeric_limits<_Float64>): Likewise for other extended
219 floating-point types.
220
221 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
222
223 * include/experimental/internet (address_v4::to_string): Remove
224 unused parameter name.
225
226 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
227
228 * libsupc++/compare (__cmp_cat::__unseq): Make ctor consteval.
229 * testsuite/18_support/comparisons/categories/zero_neg.cc: Prune
230 excess errors caused by invalid consteval calls.
231
232 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
233
234 * include/bits/chrono_io.h (__units_suffix_misc): Remove.
235 (__units_suffix): Return a known suffix as string view, do not
236 write unknown suffixes to a buffer.
237 (__fmt_units_suffix): New function that formats the suffix using
238 std::format_to.
239 (operator<<, __chrono_formatter::_M_q): Use __fmt_units_suffix.
240 (__chrono_formatter::_M_Z): Correct lifetime of wstring.
241
242 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
243
244 * include/std/format [_GLIBCXX_USE_WCHAR_T]: Guard all wide
245 string formatters with this macro.
246 (__formatter_int::_M_format_int, __formatter_fp::format)
247 (formatter<const void*, C>::format): Use __to_wstring_numeric
248 instead of std::ctype::widen.
249 (__formatter_fp::_M_localize): Use hardcoded wchar_t values
250 instead of std::ctype::widen.
251 * testsuite/std/format/functions/format.cc: Add more checks for
252 wstring formatting of arithmetic types.
253
254 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
255
256 * include/bits/basic_string.h (to_string(floating-point-type)):
257 Implement using std::to_chars for C++26.
258 * include/bits/version.def (__cpp_lib_to_string): Define.
259 * include/bits/version.h: Regenerate.
260 * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
261 Adjust expected result in C++26 mode.
262 * testsuite/21_strings/basic_string/numeric_conversions/char/to_string.cc:
263 Likewise.
264 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/dr1261.cc:
265 Likewise.
266 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/to_wstring.cc:
267 Likewise.
268 * testsuite/21_strings/basic_string/numeric_conversions/char/to_string_float.cc:
269 New test.
270 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/to_wstring_float.cc:
271 New test.
272 * testsuite/21_strings/basic_string/numeric_conversions/version.cc:
273 New test.
274
275 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
276
277 * include/bits/basic_string.h (to_string(integral-type)): Use
278 resize_and_overwrite when available.
279 (__to_wstring_numeric): New helper functions.
280 (to_wstring): Use std::to_string then __to_wstring_numeric.
281 * testsuite/21_strings/basic_string/numeric_conversions/char/to_string_int.cc:
282 Remove check for no excess capacity.
283
284 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
285
286 * include/bits/basic_string.h (__resize_and_overwrite): New
287 function.
288 * include/bits/basic_string.tcc (__resize_and_overwrite): New
289 function.
290 (resize_and_overwrite): Simplify by using reserve instead of
291 growing the string manually. Adjust for C++11 compatibility.
292 * include/bits/cow_string.h (resize_and_overwrite): New
293 function.
294 (__resize_and_overwrite): New function.
295 * include/bits/version.def (__cpp_lib_string_resize_and_overwrite):
296 Do not depend on cxx11abi.
297 * include/bits/version.h: Regenerate.
298 * include/std/format (__formatter_fp::_S_resize_and_overwrite):
299 Remove.
300 (__formatter_fp::format, __formatter_fp::_M_localize): Use
301 __resize_and_overwrite instead of _S_resize_and_overwrite.
302 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
303 Adjust for C++11 compatibility when included by ...
304 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite_ext.cc:
305 New test.
306
307 2023-08-17 Patrick Palka <ppalka@redhat.com>
308
309 * include/bits/regex.h (regex_iterator::iterator_concept):
310 Define for C++20 as per P2770R0.
311 (regex_token_iterator::iterator_concept): Likewise.
312 * include/std/ranges (__detail::__as_lvalue): Define.
313 (join_view::_Iterator): Befriend join_view.
314 (join_view::_Iterator::_M_satisfy): Use _M_get_outer
315 instead of _M_outer.
316 (join_view::_Iterator::_M_get_outer): Define.
317 (join_view::_Iterator::_Iterator): Split constructor taking
318 _Parent argument into two as per P2770R0. Remove constraint on
319 default constructor.
320 (join_view::_Iterator::_M_outer): Make this data member present
321 only when the underlying range is forward.
322 (join_view::_Iterator::operator++): Use _M_get_outer instead of
323 _M_outer.
324 (join_view::_Iterator::operator--): Use __as_lvalue helper.
325 (join_view::_Iterator::operator==): Adjust constraints as per
326 P2770R0.
327 (join_view::_Sentinel::__equal): Use _M_get_outer instead of
328 _M_outer.
329 (join_view::_M_outer): New data member when the underlying range
330 is non-forward.
331 (join_view::begin): Adjust definition as per P2770R0.
332 (join_view::end): Likewise.
333 (join_with_view::_M_outer_it): New data member when the
334 underlying range is non-forward.
335 (join_with_view::begin): Adjust definition as per P2770R0.
336 (join_with_view::end): Likewise.
337 (join_with_view::_Iterator::_M_outer_it): Make this data member
338 present only when the underlying range is forward.
339 (join_with_view::_Iterator::_M_get_outer): Define.
340 (join_with_view::_Iterator::_Iterator): Split constructor
341 taking _Parent argument into two as per P2770R0. Remove
342 constraint on default constructor.
343 (join_with_view::_Iterator::_M_update_inner): Adjust definition
344 as per P2770R0.
345 (join_with_view::_Iterator::_M_get_inner): Likewise.
346 (join_with_view::_Iterator::_M_satisfy): Adjust calls to
347 _M_get_inner. Use _M_get_outer instead of _M_outer_it.
348 (join_with_view::_Iterator::operator==): Adjust constraints
349 as per P2770R0.
350 (join_with_view::_Sentinel::operator==): Use _M_get_outer
351 instead of _M_outer_it.
352 * testsuite/std/ranges/adaptors/p2770r0.cc: New test.
353
354 2023-08-17 Patrick Palka <ppalka@redhat.com>
355
356 PR libstdc++/108827
357 * include/std/ranges (__adaptor::_RangeAdaptorClosure):
358 Convert into a CRTP class template. Move hidden operator|
359 friends into namespace scope and adjust their constraints.
360 (__closure::__is_range_adaptor_closure_fn): Define.
361 (__closure::__is_range_adaptor_closure): Define.
362 (__adaptor::_Partial): Adjust use of _RangeAdaptorClosure.
363 (__adaptor::_Pipe): Likewise.
364 (views::_All): Likewise.
365 (views::_Join): Likewise.
366 (views::_Common): Likewise.
367 (views::_Reverse): Likewise.
368 (views::_Elements): Likewise.
369 (views::_Adjacent): Likewise.
370 (views::_AsRvalue): Likewise.
371 (views::_Enumerate): Likewise.
372 (views::_AsConst): Likewise.
373 * testsuite/std/ranges/adaptors/all.cc: Reinstate assertion
374 expecting that adding empty range adaptor closure objects to a
375 pipeline doesn't increase the size of a pipeline.
376
377 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
378
379 * include/std/format (__format::_Pres_type): Add _Pres_F.
380 (__formatter_fp::parse): Use _Pres_F for 'F'.
381 (__formatter_fp::format): Set __upper for _Pres_F.
382 * testsuite/std/format/functions/format.cc: Check formatting of
383 infinity and NaN for each presentation type.
384
385 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
386
387 * include/Makefile.in: Regenerate.
388
389 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
390
391 * testsuite/24_iterators/move_iterator/p2520r0.cc: Add no_pch.
392 * testsuite/std/format/functions/format.cc: Likewise.
393 * testsuite/std/format/functions/format_c++23.cc: Likewise.
394
395 2023-08-17 Jonathan Wakely <jwakely@redhat.com>
396
397 * testsuite/lib/dg-options.exp (add_options_for_no_pch): Remove
398 any "-include bits/stdc++.h" from options and add the macro to
399 the existing options instead of replacing them.
400
401 2023-08-16 Jonathan Wakely <jwakely@redhat.com>
402
403 * include/bits/basic_string.tcc (resize_and_overwrite): Invoke
404 the callable with the same size as resize_and_overwrite was
405 called with.
406 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
407 Check with small values for the new size.
408 * testsuite/std/format/functions/format.cc: Check wide
409 formatting of double values that produce small strings.
410 * testsuite/std/format/functions/format_c++23.cc: New test.
411
412 2023-08-16 Jonathan Wakely <jwakely@redhat.com>
413
414 * include/bits/version.def (stds): Update value for C++23.
415 * include/bits/version.h: Regenerate.
416
417 2023-08-16 Jonathan Wakely <jwakely@redhat.com>
418
419 * testsuite/25_algorithms/pstl/alg_sorting/set_difference.cc:
420 Fix name of upstream file this was derived from.
421 * testsuite/25_algorithms/pstl/alg_sorting/set_intersection.cc:
422 Likewise.
423 * testsuite/25_algorithms/pstl/alg_sorting/set_symmetric_difference.cc:
424 Likewise.
425 * testsuite/25_algorithms/pstl/alg_sorting/set_union.cc:
426 Likewise.
427 * testsuite/25_algorithms/pstl/alg_sorting/set_util.h: Likewise.
428
429 2023-08-16 Arsen Arsenović <arsen@aarsen.me>
430
431 * libsupc++/typeinfo: Switch to bits/version.h for
432 __cpp_lib_constexpr_typeinfo.
433 * libsupc++/new: Switch to bits/version.h for
434 __cpp_lib_{launder,hardware_interference_size,destroying_delete}.
435 (launder): Guard behind __cpp_lib_launder.
436 (hardware_destructive_interference_size)
437 (hardware_constructive_interference_size): Guard behind
438 __cpp_lib_hardware_interference_size.
439 * libsupc++/exception: Switch to bits/version.h for
440 __cpp_lib_uncaught_exceptions.
441 (uncaught_exceptions): Guard behind __cpp_lib_uncaught_exceptions.
442 * libsupc++/compare: Switch to bits/version.h for
443 __cpp_lib_three_way_comparison.
444 (three_way_comparable, three_way_comparable_with)
445 (compare_three_way, weak_order, strong_order, partial_order):
446 Guard behind __cpp_lib_three_way_comparison >= 201907L.
447 * include/std/chrono: Drop __cpp_lib_chrono definition.
448 * include/std/vector: Switch to bits/version.h for
449 __cpp_lib_erase_if.
450 (erase, erase_if): Guard behind __cpp_lib_erase_if.
451 * include/std/variant: Switch to bits/version.h for
452 __cpp_lib_variant. Guard whole header behind that FTM.
453 * include/std/utility: Switch to bits/version.h for
454 __cpp_lib_{exchange_function,constexpr_algorithms,as_const},
455 __cpp_lib_{integer_comparison_functions,to_underlying}, and
456 __cpp_lib_unreachable.
457 (exchange): Guard behind __cpp_lib_exchange_function.
458 (cmp_equal, cmp_not_equal, cmp_less, cmp_greater, cmp_less_equal)
459 (cmp_greater_equal, in_range): Guard behind
460 __cpp_lib_integer_comparison_functions.
461 (to_underlying): Guard behind __cpp_lib_to_underlying.
462 (unreachable): Guard behind __cpp_lib_unreachable.
463 * include/std/type_traits: Switch to bits/version.h for
464 __cpp_lib_is_{null_pointer,final,nothrow_convertible,aggregate},
465 __cpp_lib_is_{constant_evaluated,invocable,layout_compatible},
466 __cpp_lib_is_{pointer_interconvertible,scoped_enum,swappable},
467 __cpp_lib_{logical_traits,reference_from_temporary,remove_cvref},
468 __cpp_lib_{result_of_sfinae,transformation_trait_aliases},
469 __cpp_lib_{type_identity,type_trait_variable_templates},
470 __cpp_lib_{unwrap_ref,void_t,integral_constant_callable},
471 __cpp_lib_{bool_constant,bounded_array_traits}, and
472 __cpp_lib_has_unique_object_representations.
473 (integral_constant::operator()): Guard behind
474 __cpp_lib_integral_constant_callable.
475 (bool_constant): Guard behind __cpp_lib_bool_constant.
476 (conjunction, disjunction, negation, conjunction_v, disjunction_v)
477 (negation_v): Guard behind __cpp_lib_logical_traits.
478 (is_null_pointer): Guard behind __cpp_lib_is_null_pointer.
479 (is_final): Guard behind __cpp_lib_is_final.
480 (is_nothrow_convertible, is_nothrow_convertible_v): Guard behind
481 __cpp_lib_is_nothrow_convertible.
482 (remove_const_t, remove_volatile_t, remove_cv_t)
483 (add_const_t, add_volatile_t, add_cv_t): Guard behind
484 __cpp_lib_transformation_trait_aliases.
485 (void_t): Guard behind __cpp_lib_void_t.
486 (is_swappable_with_v, is_nothrow_swappable_with_v)
487 (is_swappable_with, is_nothrow_swappable_with): Guard behind
488 __cpp_lib_is_swappable.
489 (is_nothrow_invocable_r, is_invocable_r, invoke_result)
490 (is_invocable, invoke_result_t): Guard behind
491 __cpp_lib_is_invocable.
492 (alignment_of_v, extent_v, has_virtual_destructor_v)
493 (is_abstract_v, is_arithmetic_v, is_array_v)
494 (is_assignable_v, is_base_of_v, is_class_v, is_compound_v)
495 (is_constructible_v, is_const_v, is_convertible_v)
496 (is_copy_assignable_v, is_copy_constructible_v)
497 (is_default_constructible_v, is_destructible_v)
498 (is_empty_v, is_enum_v, is_final_v, is_floating_point_v)
499 (is_function_v, is_fundamental_v, is_integral_v)
500 (is_invocable_r_v, is_invocable_v, is_literal_type_v)
501 (is_lvalue_reference_v, is_member_function_pointer_v)
502 (is_member_object_pointer_v, is_member_pointer_v)
503 (is_move_assignable_v, is_move_constructible_v)
504 (is_nothrow_assignable_v, is_nothrow_constructible_v)
505 (is_nothrow_copy_assignable_v, is_nothrow_copy_constructible_v)
506 (is_nothrow_default_constructible_v, is_nothrow_destructible_v)
507 (is_nothrow_invocable_r_v, is_nothrow_invocable_v)
508 (is_nothrow_move_assignable_v, is_nothrow_move_constructible_v)
509 (is_null_pointer_v, is_object_v, is_pod_v, is_pointer_v)
510 (is_polymorphic_v, is_reference_v, is_rvalue_reference_v)
511 (is_same_v, is_scalar_v, is_signed_v, is_standard_layout_v)
512 (is_trivially_assignable_v, is_trivially_constructible_v)
513 (is_trivially_copyable_v, is_trivially_copy_assignable_v)
514 (is_trivially_copy_constructible_v)
515 (is_trivially_default_constructible_v)
516 (is_trivially_destructible_v, is_trivially_move_assignable_v)
517 (is_trivially_move_constructible_v, is_trivial_v, is_union_v)
518 (is_unsigned_v, is_void_v, is_volatile_v, rank_v, as variadic):
519 Guard behind __cpp_lib_type_trait_variable_templates.
520 (has_unique_object_representations)
521 (has_unique_object_representations_v): Guard behind
522 __cpp_lib_has_unique_object_representation.
523 (is_aggregate): Guard behind __cpp_lib_is_aggregate.
524 (remove_cvref, remove_cvref_t): Guard behind
525 __cpp_lib_remove_cvref.
526 (type_identity, type_identity_t): Guard behind
527 __cpp_lib_type_identity.
528 (unwrap_reference, unwrap_reference_t, unwrap_ref_decay)
529 (unwrap_ref_decay_t): Guard behind __cpp_lib_unwrap_ref.
530 (is_bounded_array_v, is_unbounded_array_v, is_bounded_array)
531 (is_unbounded_array): Guard behind __cpp_lib_bounded_array_traits.
532 (is_scoped_enum, is_scoped_enum_v): Guard behind
533 __cpp_lib_is_scoped_enum.
534 (reference_constructs_from_temporary)
535 (reference_constructs_from_temporary_v): Guard behind
536 __cpp_lib_reference_from_temporary.
537 * include/std/tuple: Switch to bits/version.h for
538 __cpp_lib_{constexpr_tuple,tuple_by_type,apply_make_from_tuple}.
539 (get<T>): Guard behind __cpp_lib_tuple_by_type.
540 (apply): Guard behind __cpp_lib_apply.
541 (make_from_tuple): Guard behind __cpp_lib_make_from_tuple.
542 * include/std/syncstream: Switch to bits/version.h for
543 __cpp_lib_syncbuf. Guard header behind that FTM.
544 * include/std/string_view: Switch to bits/version.h for
545 __cpp_lib_{string_{view,contains},constexpr_string_view} and
546 __cpp_lib_starts_ends_with.
547 (basic_string_view::starts_with, basic_string_view::ends_with):
548 Guard behind __cpp_lib_starts_ends_with.
549 [C++23 && _GLIBCXX_HOSTED && !defined(__cpp_lib_string_contains)]:
550 Assert as impossible ithout a bug in C++23.
551 * include/std/string: Switch to bits/version.h for
552 __cpp_lib_erase_if.
553 (erase, erase_if): Guard behind __cpp_lib_erase_if.
554 * include/std/thread: Switch to bits/version.h for
555 __cpp_lib_jthread.
556 * include/std/stop_token: Switch to bits/version.h for
557 __cpp_lib_jthread.
558 * include/std/spanstream: Switch to bits/version.h for
559 __cpp_lib_spanstream. Guard header behind that FTM.
560 * include/std/span: Switch to bits/version.h for __cpp_lib_span.
561 Guard header behind that FTM.
562 * include/std/source_location: Switch to bits/version.h for
563 __cpp_lib_source_location. Guard header with that FTM.
564 * include/std/shared_mutex: Switch to bits/version.h for
565 __cpp_lib_shared{,_timed}_mutex.
566 (shared_mutex): Guard behind __cpp_lib_shared_mutex.
567 * include/std/semaphore: Switch to bits/version.h for
568 __cpp_lib_semaphore. Guard header behind that FTM.
569 * include/std/ranges: Switch to bits/version.h for
570 __cpp_lib_ranges_{zip,chunk{,_by},slide,join_with},
571 __cpp_lib_ranges_{repeat_stride,cartesian_product,as_rvalue},
572 and __cpp_lib_ranges_{as_const,enumerate,iota}.
573 (ranges::zip et al, ranges::chunk et al, ranges::slide et al)
574 (ranges::chunk_by et al, ranges::join_with et al)
575 (ranges::stride et al, ranges::cartesian_product et al)
576 (ranges::as_rvalue et al, ranges::as_const et al)
577 (ranges::enumerate et al): Guard behind appropriate FTM.
578 * include/std/optional: Switch to bits/version.h for
579 __cpp_lib_optional. Guard header behind that FTM.
580 * include/std/numeric: Switch to bits/version.h for
581 __cpp_lib_{gcd{,_lcm},lcm,constexpr_numeric,interpolate}
582 and __cpp_lib_parallel_algorithm.
583 (gcd, lcm): Guard behind __cpp_lib_gcd_lcm.
584 (midpoint): Guard behind __cpp_lib_interpolate.
585 * include/std/numbers: Switch to bits/version.h for
586 __cpp_lib_math_constants. Guard header behind that FTM.
587 * include/std/mutex: Switch to bits/version.h for
588 __cpp_lib_scoped_lock.
589 (scoped_Lock): Guard behind __cpp_lib_scoped_lock.
590 * include/std/memory_resource: Switch to bits/version.h for
591 __cpp_lib_{polymorphic_allocator,memory_resource}.
592 (synchronized_pool_resource): Guard behind
593 __cpp_lib_memory_resource >= 201603L.
594 (polymorphic_allocator): Guard behind
595 __cpp_lib_polymorphic_allocator.
596 * include/std/memory: Switch to bits/version.h for
597 __cpp_lib_{parallel_algorithm,atomic_value_initialization}.
598 * include/std/list: Switch to bits/version.h for
599 __cpp_lib_erase_if.
600 (erase, erase_if): Guard behind __cpp_lib_erase_if.
601 * include/std/latch: Switch to bits/version.h for __cpp_lib_latch.
602 Guard header behind that FTM.
603 * include/std/iterator: Switch to bits/version.h for
604 __cpp_lib_null_iterators.
605 * include/std/iomanip: Switch to bits/version.h for
606 __cpp_lib_quoted_string_io.
607 (quoted): Guard behind __cpp_lib_quoted_string_io.
608 * include/std/functional: Switch to bits/version.h for
609 __cpp_lib_{invoke{,_r},constexpr_functional,bind_front} and
610 __cpp_lib_{not_fn,booyer_moore_searcher}.
611 (invoke): Guard behind __cpp_lib_invoke.
612 (invoke_r): Guard behind __cpp_lib_invoke_r.
613 (bind_front): Guard behind __cpp_lib_bind_front.
614 (not_fn): Guard behind __cpp_lib_not_fn.
615 (boyer_moore_searcher, boyer_moore_horspool_searcher): Guard
616 definition behind __cpp_lib_boyer_moore_searcher.
617 * include/std/forward_list: Switch to bits/version.h for
618 __cpp_lib_erase_if.
619 (erase, erase_if): Guard behind __cpp_lib_erase_if.
620 * include/std/format: Switch to bits/version.h for
621 __cpp_lib_format. Guard header behind that FTM.
622 * include/std/filesystem: Switch to bits/version.h for
623 __cpp_lib_filesystem. Guard header behind that FTM.
624 * include/std/expected: Switch to bits/version.h for
625 __cpp_lib_expected. Guard header behind it.
626 * include/std/execution: Switch to bits/version.h for
627 __cpp_lib_{execution,parallel_algorithm}. Guard header behind
628 either.
629 * include/std/deque: Switch to bits/version.h for
630 __cpp_lib_erase_if.
631 (erase, erase_if): Guard behind __cpp_lib_erase_if.
632 * include/std/coroutine: Switch to bits/version.h for
633 __cpp_lib_coroutine. Guard header behind that FTM.
634 * include/std/concepts: Switch to bits/version.h for
635 __cpp_lib_concepts. Guard header behind that FTM.
636 * include/std/complex: Switch to bits/version.h for
637 __cpp_lib_{complex_udls,constexpr_complex}.
638 (operator""if, operator""i, operator""il): Guard behind
639 __cpp_lib_complex_udls.
640 * include/std/charconv: Swtich to bits/version.h for
641 __cpp_lib_{to_chars,constexpr_charconv}.
642 * include/std/bitset: Switch to bits/version.h for
643 __cpp_lib_constexpr_bitset.
644 * include/std/bit: Switch to bits/version.h for
645 __cpp_lib_{bit_cast,byteswap,bitops,int_pow2,endian}.
646 (bit_cast): Guard behind __cpp_lib_bit_cast.
647 (byteswap): Guard behind __cpp_lib_byteswap.
648 (rotl, rotr, countl_zero, countl_one, countr_zero, countr_one)
649 (popcount): Guard behind __cpp_lib_bitops.
650 (has_single_bit, bit_ceil, bit_floor, bit_width): Guard behind
651 __cpp_lib_int_pow2.
652 (endian): Guard behind __cpp_lib_endian.
653 * include/std/barrier: Switch to bits/version.h for
654 __cpp_lib_barrier. Guard header behind that FTM.
655 * include/std/atomic: Switch to bits/version.h for
656 __cpp_lib_atomic_{is_always_lock_free,float,ref}
657 and __cpp_lib_lock_free_type_aliases.
658 (*::is_always_lock_free): Guard behind
659 __cpp_lib_atomic_is_always_lock_free.
660 (atomic<float>): Guard behind __cpp_lib_atomic_float.
661 (atomic_ref): Guard behind __cpp_lib_atomic_ref.
662 (atomic_signed_lock_free, atomic_unsigned_lock_free): Guard behind
663 __cpp_lib_atomic_lock_free_type_aliases.
664 * include/std/array: Switch to bits/version.h for
665 __cpp_lib_to_array.
666 (to_array): Guard behind __cpp_lib_to_array.
667 * include/std/any: Switch to bits/version.h for __cpp_lib_any.
668 Guard header behind that FTM.
669 * include/std/algorithm: Switch to bits/version.h for
670 __cpp_lib_parallel_algorithm.
671 * include/c_global/cstddef: Switch to bits/version.h for
672 __cpp_lib_byte.
673 (byte): Guard behind __cpp_lib_byte.
674 * include/c_global/cmath: Switch to bits/version.h for
675 __cpp_lib_{hypot,interpolate}.
676 (hypot3): Guard behind __cpp_lib_hypot.
677 (lerp): Guard behind __cpp_lib_interpolate.
678 * include/c_compatibility/stdatomic.h: Switch to
679 bits/stl_version.h for __cpp_lib_atomic. Guard header behind that
680 FTM.
681 * include/bits/utility.h: Switch to bits/version.h for
682 __cpp_lib_{tuple_element_t,integer_sequence,ranges_zip}.
683 (tuple_element_t): Guard behind __cpp_lib_tuple_element_t.
684 (integer_sequence et al): Guard behind __cpp_lib_integer_sequence.
685 * include/bits/uses_allocator_args.h: Switch to bits/version.h for
686 __cpp_lib_make_obj_using_allocator. Guard header behind that FTM.
687 * include/bits/unordered_map.h: Switch to bits/version.h for
688 __cpp_lib_unordered_map_try_emplace.
689 (try_emplace): Guard behind __cpp_lib_unordered_map_try_emplace.
690 * include/bits/unique_ptr.h: Switch to bits/version.h for
691 __cpp_lib_{constexpr_memory,make_unique}.
692 (make_unique): Guard behind __cpp_lib_make_unique.
693 * include/bits/stl_vector.h: Switch to bits/version.h for
694 __cpp_lib_constexpr_vector.
695 * include/bits/stl_uninitialized.h: Switch to bits/version.h for
696 __cpp_lib_raw_memory_algorithms.
697 (uninitialized_default_construct)
698 (uninitialized_default_construct_n, uninitialized_move)
699 (uninitialized_move_n, uninitialized_value_construct)
700 (uninitialized_value_construct_n): Guard behind
701 __cpp_lib_raw_memory_algorithms.
702 * include/bits/stl_tree.h: Switch to bits/version.h for
703 __cpp_lib_generic_associative_lookup.
704 * include/bits/stl_stack.h: Switch to bits/version.h for
705 __cpp_lib_adaptor_iterator_pair_constructor.
706 (stack): Guard iterator-pair constructor behind
707 __cpp_lib_adaptor_iterator_pair_constructor.
708 * include/bits/stl_queue.h: Switch to bits/version.h for
709 __cpp_lib_adaptor_iterator_pair_constructor.
710 (queue): Guard iterator-pair constructor behind
711 __cpp_lib_adaptor_iterator_pair_constructor.
712 * include/bits/stl_pair.h: Switch to bits/version.h for
713 __cpp_lib_{concepts,tuples_by_type}.
714 (get): Guard type-getting overloads behind
715 __cpp_lib_tuples_by_type.
716 * include/bits/stl_map.h: Switch to bits/version.h for
717 __cpp_lib_map_try_emplace.
718 (map<>::try_emplace): Guard behind __cpp_lib_map_try_emplace.
719 * include/bits/stl_list.h: Switch to bits/version.h for
720 __cpp_lib_list_remove_return_type.
721 (__remove_return_type, _GLIBCXX_LIST_REMOVE_RETURN_TYPE_TAG)
722 [C++20]: guard behind __cpp_lib_list_remove_return_type instead.
723 * include/bits/stl_iterator.h: Switch to bits/version.h for
724 __cpp_lib_{constexpr_iterator,array_constexpr} and
725 __cpp_lib_{make_reverse_iterator,move_iterator_concept}.
726 (make_reverse_iterator): Guard behind
727 __cpp_lib_make_reverse_iterator.
728 (iterator_concept et al): Guard __cpp_lib_move_iterator_concept
729 changes behind that FTM.
730 * include/bits/stl_function.h: Switch to bits/version.h for
731 __cpp_lib_transparent_operators.
732 (equal_to, not_equal_to, greater, less, greater_equal)
733 (less_equal, bit_and, bit_or, bit_xor, bit_not, logical_and)
734 (logical_or, logical_not, plus, minus, multiplies, divides)
735 (modulus, negate): Guard '= void' fwdecls behind
736 __cpp_lib_transparent_operators.
737 (plus<void>, minus<void>, multiplies<void>, divides<void>)
738 (modulus<void>, negate<void>, logical_and<void>, logical_or<void>)
739 (logical_not<void>, bit_and<void>, bit_or<void>, bit_xor<void>)
740 (equal_to<void>, not_equal_to<void>, greater<void>, less<void>)
741 (greater_equal<void>, less_equal<void>, bit_not<void>)
742 (__has_is_transparent): Guard behind
743 __cpp_lib_transparent_operators.
744 * include/bits/stl_algobase.h: Switch to bits/version.h for
745 __cpp_lib_robust_nonmodifying_seq_ops.
746 (robust equal, mismatch): Guard behind
747 __cpp_lib_nonmember_container_access.
748 * include/bits/stl_algo.h: Swtich to bits/version.h for
749 __cpp_lib_{clamp,sample}.
750 (clamp): Guard behind __cpp_lib_clamp.
751 (sample): Guard behind __cpp_lib_sample.
752 * include/bits/specfun.h: Switch to bits/version.h for
753 __cpp_lib_math_special_functions and __STDCPP_MATH_SPEC_FUNCS__.
754 * include/bits/shared_ptr_base.h: Switch to bits/version.h for
755 __cpp_lib_{smart_ptr_for_overwrite,shared_ptr_arrays}.
756 (_Sp_overwrite_tag): Guard behind
757 __cpp_lib_smart_ptr_for_overwrite.
758 * include/bits/shared_ptr_atomic.h: Switch to bits/version.h for
759 __cpp_lib_atomic_shared_ptr.
760 * include/bits/shared_ptr.h: Switch to bits/version.h for
761 __cpp_lib_{enable_shared_from_this,shared_ptr_weak_type}.
762 (shared_ptr<T>::weak_type): Guard behind
763 __cpp_lib_shared_ptr_weak_type.
764 (enable_shared_from_this<T>::weak_from_this): Guard behind
765 __cpp_lib_enable_shared_from_this.
766 * include/bits/ranges_cmp.h: Switch to bits/version.h for
767 __cpp_lib_ranges.
768 * include/bits/ranges_algo.h: Switch to bits/version.h for
769 __cpp_lib_{shift,ranges_{contains,find_last,fold,iota}}.
770 * include/bits/range_access.h: Switch to bits/version.h for
771 __cpp_lib_nonmember_container_access
772 (size, empty, data): Guard behind
773 __cpp_lib_nonmember_container_access.
774 (ssize): Guard behind __cpp_lib_ssize.
775 * include/bits/ptr_traits.h: Switch to bits/version.h. for
776 __cpp_lib_{constexpr_memory,to_address}.
777 (to_address): Guard behind __cpp_lib_to_address.
778 * include/bits/node_handle.h: Switch to bits/version.h for
779 __cpp_lib_node_extract. Guard header behind that FTM.
780 * include/bits/move_only_function.h: Switch to bits/version.h for
781 __cpp_lib_move_only_function. Guard header behind that FTM.
782 * include/bits/move.h: Switch to bits/version.h for
783 __cpp_lib_addressof_constexpr.
784 * include/bits/ios_base.h: Switch to bits/version.h for
785 __cpp_lib_ios_noreplace.
786 (noreplace): Guard with __cpp_lib_ios_noreplace.
787 * include/bits/hashtable.h: Switch to bits/version.h for
788 __cpp_lib_generic_unordered_lookup.
789 (_M_equal_range_tr, _M_count_tr, _M_find_tr): Guard behind
790 __cpp_lib_generic_unordered_lookup.
791 * include/bits/forward_list.h: Switch to bits/version.h for
792 __cpp_lib_list_remove_return_type.
793 (__remove_return_type): Guard behind
794 __cpp_lib_list_remove_return_type.
795 * include/bits/erase_if.h: Switch to bits/version.h for
796 __cpp_lib_erase_if.
797 * include/bits/cow_string.h: Switch to bits/version.h for
798 __cpp_lib_constexpr_string.
799 * include/bits/chrono.h: Swtich to bits/version.h for
800 __cpp_lib_chrono{,_udls}.
801 (ceil): Guard behind __cpp_lib_chrono.
802 (operator""ns et al): Guard behind __cpp_lib_chrono_udls.
803 * include/bits/char_traits.h: Switch to bits/version.h for
804 __cpp_lib_constexpr_char_traits.
805 * include/bits/basic_string.h: Switch to bits/version.h for
806 __cpp_lib_{constexpr_string,string_{resize_and_overwrite,udls}}.
807 (resize_and_overwrite): Guard behind
808 __cpp_lib_string_resize_and_overwrite.
809 (operator""s): Guard behind __cpp_lib_string_udls.
810 * include/bits/atomic_wait.h: Switch to bits/version.h for
811 __cpp_lib_atomic_wait. Guard header behind that FTM.
812 * include/bits/atomic_base.h: Switch to bits/version.h for
813 __cpp_lib_atomic_value_initialization and
814 __cpp_lib_atomic_flag_test.
815 (atomic_flag::test): Guard behind __cpp_lib_atomic_flag_test,
816 rather than C++20.
817 * include/bits/allocator.h: Switch to bits/version.h for
818 __cpp_lib_incomplete_container_elements.
819 * include/bits/alloc_traits.h: Switch to using bits/version.h for
820 __cpp_lib_constexpr_dynamic_alloc and
821 __cpp_lib_allocator_traits_is_always_equal.
822 * include/bits/align.h: Switch to bits/version.h for defining
823 __cpp_lib_assume_aligned.
824 (assume_aligned): Guard with __cpp_lib_assume_aligned.
825 * include/bits/algorithmfwd.h: Switch to bits/version.h for
826 defining __cpp_lib_constexpr_algorithms.
827 * include/std/stacktrace: Switch to bits/version.h for
828 __cpp_lib_stacktrace. Guard header behind that FTM.
829 * testsuite/23_containers/array/tuple_interface/get_neg.cc:
830 Update line numbers.
831
832 2023-08-16 Arsen Arsenović <arsen@aarsen.me>
833
834 * include/Makefile.am (bits_freestanding): Add version.h.
835 (allcreated): Add version.h.
836 (${bits_srcdir}/version.h): New rule. Regenerates
837 version.h out of version.{def,tpl}.
838 * include/Makefile.in: Regenerate.
839 * include/bits/version.def: New file. Declares a list of
840 all feature test macros, their values and their preconditions.
841 * include/bits/version.tpl: New file. Turns version.def
842 into a sequence of #if blocks.
843 * include/bits/version.h: New file. Generated from
844 version.def.
845 * include/std/version: Replace with a __glibcxx_want_all define
846 and bits/version.h include.
847
848 2023-08-14 Paul Dreik <gccpatches@pauldreik.se>
849
850 PR libstdc++/110860
851 * include/std/format (__formatter_fp::format): Use frexp instead
852 of log10.
853
854 2023-08-12 Ken Matsui <kmatsui@gcc.gnu.org>
855
856 * include/std/type_traits (true_type): Use __bool_constant
857 instead.
858 (false_type): Likewise.
859 (bool_constant): Likewise.
860
861 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
862
863 PR libstdc++/110990
864 * include/std/format (_Seq_sink::get): Only call _M_overflow if
865 its precondition is met.
866 (_Iter_sink::_M_finish): Likewise.
867 (_Iter_sink<C, ContigIter>::_M_overflow): Only switch to the
868 internal buffer after running out of space.
869 (_Iter_sink<C, ContigIter>::_M_finish): Do not use _M_overflow.
870 (_Counting_sink::count): Likewise.
871 * testsuite/std/format/functions/format_to_n.cc: Check cases
872 where the output fits into the buffer.
873
874 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
875
876 PR libstdc++/104167
877 * include/bits/chrono_io.h (operator|=, operator|): Add noexcept
878 to _ChronoParts operators.
879 (from_stream, parse): Define new functions.
880 (__detail::_Parse, __detail::_Parser): New class templates.
881 * include/std/chrono (__cpp_lib_chrono): Define to 201907L for
882 C++20.
883 * include/std/version (__cpp_lib_chrono): Likewise.
884 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc:
885 Adjust expected value of feature test macro.
886 * testsuite/20_util/duration/io.cc: Test parsing.
887 * testsuite/std/time/clock/file/io.cc: Likewise.
888 * testsuite/std/time/clock/gps/io.cc: Likewise.
889 * testsuite/std/time/clock/system/io.cc: Likewise.
890 * testsuite/std/time/clock/tai/io.cc: Likewise.
891 * testsuite/std/time/clock/utc/io.cc: Likewise.
892 * testsuite/std/time/day/io.cc: Likewise.
893 * testsuite/std/time/month/io.cc: Likewise.
894 * testsuite/std/time/month_day/io.cc: Likewise.
895 * testsuite/std/time/weekday/io.cc: Likewise.
896 * testsuite/std/time/year/io.cc: Likewise.
897 * testsuite/std/time/year_month/io.cc: Likewise.
898 * testsuite/std/time/year_month_day/io.cc: Likewise.
899 * testsuite/std/time/syn_c++20.cc: Check value of macro and for
900 the existence of parse and from_stream in namespace chrono.
901 * testsuite/std/time/clock/local/io.cc: New test.
902 * testsuite/std/time/parse.cc: New test.
903
904 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
905
906 PR libstdc++/110860
907 * include/std/format (__formatter_fp::format): Do not call log10
908 with zero values.
909
910 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
911
912 * python/libstdcxx/v6/printers.py (StdChronoCalendarPrinter):
913 Check for out-of-range month an weekday indices.
914 * testsuite/libstdc++-prettyprinters/chrono.cc: Check invalid
915 month and weekday values.
916
917 2023-08-11 Jonathan Wakely <jwakely@redhat.com>
918
919 * include/bits/stl_iterator.h (__clamped_iter_cat_t): Remove.
920
921 2023-08-10 Jonathan Wakely <jwakely@redhat.com>
922
923 PR libstdc++/110974
924 * include/std/format (_Spec::_S_parse_width_or_precision): Check
925 for empty range before dereferencing iterator.
926 * testsuite/std/format/string.cc: Check for expected exception.
927 Fix expected exception message in test_pr110862() and actually
928 call it.
929
930 2023-08-10 Jonathan Wakely <jwakely@redhat.com>
931
932 PR libstdc++/110968
933 * include/std/format (__formatter_fp::format): Check return
934 value of _M_localize.
935 * testsuite/std/format/functions/format.cc: Check classic
936 locale.
937
938 2023-08-10 Jonathan Wakely <jwakely@redhat.com>
939
940 PR libstdc++/110970
941 * include/bits/stl_iterator.h (__detail::__move_iter_cat): Use
942 __iter_category_t.
943 (iterator_traits<common_iterator<I, S>>::_S_iter_cat): Likewise.
944 (__detail::__basic_const_iterator_iter_cat): Likewise.
945 * include/bits/stl_iterator_base_types.h (__iterator_category_t):
946 Rename to __iter_category_t.
947
948 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
949
950 * include/bits/chrono.h (duration_cast): Do not use braces
951 around statements for C++11 constexpr rules.
952 * include/bits/stl_algobase.h (__lg): Rewrite as a single
953 statement for C++11 constexpr rules.
954 * include/experimental/bits/fs_path.h (path::string): Use
955 _GLIBCXX17_CONSTEXPR not _GLIBCXX_CONSTEXPR for 'if constexpr'.
956 * include/std/charconv (__to_chars_8): Initialize variable for
957 C++17 constexpr rules.
958
959 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
960
961 * include/bits/list.tcc (list::sort(Cmp)): Fix -Wsign-compare
962 warning for loop condition.
963
964 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
965
966 * include/std/complex: Add diagnostic pragma for clang.
967
968 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
969
970 * include/bits/shared_ptr_atomic.h (atomic): Change class-head
971 to struct.
972 * include/bits/stl_tree.h (_Rb_tree_merge_helper): Change
973 class-head to struct in friend declaration.
974 * include/std/chrono (tzdb_list::_Node): Likewise.
975 * include/std/future (_Task_state_base, _Task_state): Likewise.
976 * include/std/scoped_allocator (__inner_type_impl): Likewise.
977 * include/std/valarray (_BinClos, _SClos, _GClos, _IClos)
978 (_ValFunClos, _RefFunClos): Change class-head to struct.
979
980 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
981
982 * include/bits/alloc_traits.h (allocate): Add [[maybe_unused]]
983 attribute.
984 * include/bits/regex_executor.tcc: Remove name of unused
985 parameter.
986 * include/bits/shared_ptr_atomic.h (atomic_is_lock_free):
987 Likewise.
988 * include/bits/stl_uninitialized.h: Likewise.
989 * include/bits/streambuf_iterator.h (operator==): Likewise.
990 * include/bits/uses_allocator.h: Likewise.
991 * include/c_global/cmath (isfinite, isinf, isnan): Likewise.
992 * include/std/chrono (zoned_time): Likewise.
993 * include/std/future (__future_base::_S_allocate_result):
994 Likewise.
995 (packaged_task): Likewise.
996 * include/std/optional (_Optional_payload_base): Likewise.
997 * include/std/scoped_allocator (__inner_type_impl): Likewise.
998 * include/std/tuple (_Tuple_impl): Likewise.
999
1000 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
1001
1002 * include/bits/new_allocator.h (__new_allocator): Define copy
1003 assignment operator as defaulted.
1004 * include/std/complex (complex<float>, complex<double>)
1005 (complex<long double>): Define copy constructor as defaulted.
1006
1007 2023-08-09 Jonathan Wakely <jwakely@redhat.com>
1008
1009 * include/std/format: Fix some warnings.
1010 (__format::__write(Ctx&, basic_string_view<CharT>)): Remove
1011 unused function template.
1012
1013 2023-08-07 Jonathan Wakely <jwakely@redhat.com>
1014
1015 PR libstdc++/110860
1016 * include/std/format (__formatter_fp::format): Do not use
1017 __builtin_abs and __builtin_log10 with arbitrary floating-point
1018 types.
1019
1020 2023-08-07 Jonathan Wakely <jwakely@redhat.com>
1021
1022 PR libstdc++/110917
1023 * include/std/format (__format::_Iter_sink<CharT, OutIter>):
1024 Constrain partial specialization for contiguous iterators to
1025 require the value type to be CharT.
1026 * testsuite/std/format/functions/format_to.cc: New test.
1027
1028 2023-08-07 Jonathan Wakely <jwakely@redhat.com>
1029
1030 PR libstdc++/110862
1031 * include/std/format (_Scanner::_M_on_replacement_field):
1032 Check for expected '}' before incrementing iterator.
1033 * testsuite/std/format/string.cc: Check "{0:{0}" format string.
1034
1035 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
1036
1037 * configure: Regenerate.
1038
1039 2023-08-07 Alan Modra <amodra@gmail.com>
1040
1041 * configure: Regenerate.
1042
1043 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
1044
1045 * configure: Regenerate.
1046
1047 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
1048
1049 * configure: Regenerate.
1050
1051 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
1052
1053 * configure: Regenerate.
1054
1055 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
1056
1057 * configure: Regenerate.
1058
1059 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
1060
1061 * configure: Regenerate.
1062
1063 2023-08-06 François Dumont <fdumont@gcc.gnu.org>
1064
1065 * config/abi/pre/gnu-versioned-namespace.ver: Add __cxa_call_terminate
1066 symbol export.
1067
1068 2023-07-30 François Dumont <fdumont@gcc.gnu.org>
1069
1070 * src/c++11/compatibility-ldbl-facets-aliases.h: Replace #define with
1071 proper #error.
1072 * src/c++11/locale-inst-monetary.h: Likewise.
1073 * src/c++11/locale-inst-numeric.h: Likewise.
1074
1075 2023-07-27 Jonathan Wakely <jwakely@redhat.com>
1076
1077 PR libstdc++/108046
1078 * include/std/format (__formatter_fp::format): Ensure __expc is
1079 always set for all presentation types. Set __z correctly for
1080 zero precision.
1081 * testsuite/std/format/functions/format.cc: Check problem cases.
1082
1083 2023-07-26 Jonathan Wakely <jwakely@redhat.com>
1084
1085 PR libstdc++/110807
1086 * testsuite/23_containers/vector/bool/110807.cc: Require c++11.
1087
1088 2023-07-26 Jonathan Wakely <jwakely@redhat.com>
1089
1090 PR libstdc++/110807
1091 * include/bits/stl_bvector.h (vector(const vector&)): Access
1092 iterators before allocating.
1093 * include/bits/vector.tcc (vector<bool>::_M_insert_range):
1094 Likewise.
1095 * testsuite/23_containers/vector/bool/110807.cc: New test.
1096
1097 2023-07-26 Jonathan Wakely <jwakely@redhat.com>
1098
1099 * include/bits/algorithmfwd.h (random_shuffle): Add deprecated
1100 attribute.
1101 * include/bits/stl_algo.h (random_shuffle): Correct comments.
1102 * testsuite/25_algorithms/random_shuffle/1.cc: Disable
1103 deprecated warnings.
1104 * testsuite/25_algorithms/random_shuffle/59603.cc: Likewise.
1105 * testsuite/25_algorithms/random_shuffle/moveable.cc: Likewise.
1106 * testsuite/25_algorithms/random_shuffle/deprecated.cc: New
1107 test.
1108
1109 2023-07-26 Nathaniel Shead <nathanieloshead@gmail.com>
1110
1111 * testsuite/25_algorithms/equal/constexpr_neg.cc: Update diagnostic
1112 locations.
1113 * testsuite/26_numerics/gcd/105844.cc: Likewise.
1114 * testsuite/26_numerics/lcm/105844.cc: Likewise.
1115
1116 2023-07-24 Deev Patel <pateldeev@nevada.unr.edu>
1117
1118 * include/std/format (_Formatting_scanner::_M_on_chars): Add
1119 missing constexpr specifier.
1120 (_Formatting_scanner::_M_format_arg): Likewise.
1121
1122 2023-07-24 Jonathan Wakely <jwakely@redhat.com>
1123
1124 PR libstdc++/110653
1125 * include/bits/basic_string.h [!HAVE_STOF] (stof): Do not
1126 throw an exception for zero result.
1127 [HAVE_BROKEN_STRTOLD] (stold): Do not use strtold.
1128
1129 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1130
1131 PR libstdc++/110077
1132 * src/c++17/floating_from_chars.cc (from_chars): Only define
1133 _Float128 overload when using __strfromf128.
1134
1135 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1136
1137 PR libstdc++/110593
1138 * include/bits/chrono.h (duration): Improve static assert
1139 messages.
1140 (__is_ratio): Move to ...
1141 * include/std/ratio (__is_ratio): ... here.
1142 (__is_ratio_v): New variable template and partial
1143 specialization.
1144 (__are_both_ratios): New function template.
1145 (__ratio_multiply, ratio_equal, ratio_less, __ratio_add):
1146 Add static assertion.
1147 * testsuite/20_util/ratio/requirements/type_constraints.cc:
1148 New test.
1149 * testsuite/20_util/duration/requirements/typedefs_neg1.cc:
1150 Adjust expected error.
1151 * testsuite/20_util/duration/requirements/typedefs_neg2.cc:
1152 Likewise.
1153
1154 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1155
1156 * include/bits/chrono_io.h (__formatter_chrono::_M_format):
1157 Do not set __is_neg for hh_mm_ss before calling
1158 _M_format_to_ostream. Change __print_sign lambda to only check
1159 __is_neg for durations and hh_mm_ss types.
1160 (__formatter_chrono::_M_format_to_ostream): Only check __is_neg
1161 for duration types.
1162 * testsuite/std/time/hh_mm_ss/io.cc: Check negative values.
1163
1164 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1165
1166 PR libstdc++/110719
1167 * include/bits/chrono_io.h (__formatter_chrono::_S_floor_seconds):
1168 Handle duration and hh_mm_ss.
1169 * testsuite/20_util/duration/io.cc: Check locale-specific
1170 formats.
1171 * testsuite/std/time/hh_mm_ss/io.cc: Likewise.
1172
1173 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1174
1175 * include/std/format (__write_padded): Initialize first element
1176 of array to avoid a -Wmaybe-uninitialized warning.
1177
1178 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1179
1180 PR libstdc++/110719
1181 * include/bits/chrono_io.h (__formatter_chrono::_M_parse): Fix
1182 allowed modifiers for %z and %Z. Fix -Wparentheses and
1183 -Wnarrowing warnings.
1184 (__formatter_chrono::_M_format): Call new functions for %d, %e,
1185 %H, %I, %m and %M.
1186 (__formatter_chrono::_M_c): Use _S_floor_seconds to remove
1187 subsecond precision.
1188 (__formatter_chrono::_M_C_y_Y): Use _M_locale_fmt to handle
1189 modifiers.
1190 (__formatter_chrono::_M_e): Replace with _M_d_e and use
1191 _M_locale_fmt.
1192 (__formatter_chrono::_M_I): Replace with _M_H_I and use
1193 _M_locale_fmt.
1194 (__formatter_chrono::_M_m): New function.
1195 (__formatter_chrono::_M_M): New function.
1196 (__formatter_chrono::_M_r): Use _M_locale_fmt.
1197 (__formatter_chrono::_M_S): Likewise.
1198 (__formatter_chrono::_M_u_w): Likewise.
1199 (__formatter_chrono::_M_U_V_W): Likewise.
1200 (__formatter_chrono::_M_X): Use _S_floor_seconds.
1201 (__formatter_chrono::_M_Z): Fix untested branch for wchar_t.
1202 (__formatter_chrono::_S_altnum): Remove function.
1203 (__formatter_chrono::_S_dd_zero_fill): Remove function.
1204 (__formatter_chrono::_S_floor_seconds): New function.
1205 (__formatter_chrono::_M_locale_fmt): New function.
1206 * testsuite/std/time/clock/system/io.cc: Adjust expected output
1207 for locale-specific formats and check modified formats.
1208 * testsuite/std/time/clock/utc/io.cc: Likewise.
1209 * testsuite/std/time/zoned_time/io.cc: New test.
1210
1211 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1212
1213 PR libstdc++/110708
1214 * include/bits/chrono_io.h (__formatter_chrono::_M_parse): Only
1215 allow a single modifier.
1216 * testsuite/std/time/format.cc: Check multiple modifiers.
1217
1218 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1219
1220 PR libstdc++/110653
1221 * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
1222 Remove dg-require-string-conversions.
1223 * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
1224 Likewise.
1225 * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
1226 Likewise.
1227 * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
1228 Likewise.
1229 * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
1230 Likewise.
1231
1232 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1233
1234 PR libstdc++/110653
1235 * include/bits/basic_string.h [!_GLIBCXX_HAVE_STRTOF] (stof):
1236 Define in terms of std::stod.
1237
1238 2023-07-19 Jonathan Wakely <jwakely@redhat.com>
1239
1240 PR libstdc++/110653
1241 * include/bits/basic_string.h [_GLIBCXX_HAVE_STRTOF] (stof):
1242 Define.
1243 [_GLIBCXX_HAVE_STRTOLD] (stold): Define.
1244 * include/c_global/cstdlib [_GLIBCXX_HAVE_STRTOF] (strtof):
1245 Declare in namespace std.
1246 [_GLIBCXX_HAVE_STRTOLD] (strtold): Likewise.
1247
1248 2023-07-13 Jonathan Wakely <jwakely@redhat.com>
1249
1250 PR libstdc++/110653
1251 * include/bits/basic_string.h (stoi, stol, stoul, stod): Do not
1252 depend on _GLIBCXX_USE_C99_STDLIB.
1253 [__LONG_WIDTH__ == __LONG_LONG_WIDTH__] (stoll, stoull): Define
1254 in terms of stol and stoul respectively.
1255 [__DBL_MANT_DIG__ == __LDBL_MANT_DIG__] (stold): Define in terms
1256 of stod.
1257
1258 2023-07-12 Jonathan Wakely <jwakely@redhat.com>
1259
1260 PR libstdc++/95048
1261 * testsuite/27_io/filesystem/path/construct/95048.cc: Check
1262 conversions to wide strings.
1263 * testsuite/experimental/filesystem/path/construct/95048.cc:
1264 Likewise.
1265
1266 2023-07-12 Jonathan Wakely <jwakely@redhat.com>
1267
1268 * config/io/basic_file_stdio.cc: Define LFS macros.
1269 (__basic_file<char>::open): Use fopen unconditionally.
1270 (get_file_offset): Use lseek unconditionally.
1271 (__basic_file<char>::seekoff): Likewise.
1272 (__basic_file<char>::showmanyc): Use fstat unconditionally.
1273
1274 2023-07-12 Jonathan Wakely <jwakely@redhat.com>
1275
1276 PR libstdc++/110574
1277 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fseeko and ftello
1278 and define _GLIBCXX_USE_FSEEKO_FTELLO.
1279 * config.h.in: Regenerate.
1280 * configure: Regenerate.
1281 * config/io/basic_file_stdio.cc (xwrite) [_GLIBCXX_USE_STDIO_PURE]:
1282 Check for fwrite error correctly.
1283 (__basic_file<char>::xsgetn) [_GLIBCXX_USE_STDIO_PURE]: Check for
1284 fread error correctly.
1285 (get_file_offset): New function.
1286 (__basic_file<char>::seekoff) [_GLIBCXX_USE_STDIO_PURE]: Use
1287 fseeko if available. Use get_file_offset instead of return value
1288 of fseek.
1289 (__basic_file<char>::showmanyc): Use get_file_offset.
1290
1291 2023-07-12 Ken Matsui <kmatsui@gcc.gnu.org>
1292
1293 * include/std/type_traits (__make_unsigned_selector): Use
1294 __is_enum built-in trait.
1295 (__make_signed_selector): Likewise.
1296 (__underlying_type_impl): Likewise.
1297
1298 2023-07-06 Tianqiang Shuai <1101282468@qq.com>
1299
1300 * config/io/basic_file_stdio.cc (xwrite) [USE_STDIO_PURE]: Fix
1301 first argument.
1302
1303 2023-07-06 Jonathan Wakely <jwakely@redhat.com>
1304
1305 PR libstdc++/110574
1306 * doc/xml/manual/configure.xml: Describe stdio_pure argument to
1307 --enable-cstdio.
1308 * doc/html/manual/configure.html: Regenerate.
1309
1310 2023-07-05 Thomas Rodgers <trodgers@redhat.com>
1311
1312 * testsuite/25_algorithms/pstl/alg_sorting/set.cc: Delete
1313 file.
1314 * testsuite/25_algorithms/pstl/alg_sorting/set_difference.cc:
1315 New file.
1316 * testsuite/25_algorithms/pstl/alg_sorting/set_intersection.cc:
1317 Likewise.
1318 * testsuite/25_algorithms/pstl/alg_sorting/set_symmetric_difference.cc:
1319 Likewise.
1320 * testsuite/25_algorithms/pstl/alg_sorting/set_union.cc:
1321 Likewise.
1322 * testsuite/25_algorithms/pstl/alg_sorting/set_util.h:
1323 Likewise.
1324
1325 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
1326
1327 * testsuite/23_containers/forward_list/debug/iterator1_neg.cc:
1328 Skip as UNSUPPORTED for C++98 mode.
1329 * testsuite/23_containers/forward_list/debug/iterator3_neg.cc:
1330 Likewise.
1331
1332 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
1333
1334 PR libstdc++/110542
1335 * include/bits/stl_uninitialized.h (__uninitialized_default_n):
1336 Do not use std::fill_n during constant evaluation.
1337
1338 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
1339
1340 * include/bits/vector.tcc (_M_default_append): Replace try-block
1341 with RAII types.
1342
1343 2023-07-05 Jonathan Wakely <jwakely@redhat.com>
1344
1345 * include/bits/iterator_concepts.h (projected): Add typename.
1346
1347 2023-07-03 Jonathan Wakely <jwakely@redhat.com>
1348
1349 * testsuite/27_io/headers/iosfwd/synopsis.cc: Make wsyncbuf and
1350 wosyncstream depend on _GLIBCXX_USE_CXX11_ABI.
1351
1352 2023-07-03 Jonathan Wakely <jwakely@redhat.com>
1353
1354 * include/pstl/pstl_config.h (_PSTL_PRAGMA_SIMD_SCAN,
1355 _PSTL_PRAGMA_SIMD_INCLUSIVE_SCAN, _PSTL_PRAGMA_SIMD_EXCLUSIVE_SCAN):
1356 Define to OpenMP 5.0 pragmas even for GCC 10.0+.
1357 (_PSTL_UDS_PRESENT): Define to 1 for GCC 10.0+.
1358
1359 2023-07-03 Jonathan Wakely <jwakely@redhat.com>
1360
1361 * include/bits/alloc_traits.h (_Destroy): Qualify call.
1362 * include/bits/stl_construct.h (_Destroy, _Destroy_n): Likewise.
1363 * testsuite/23_containers/vector/cons/destroy-adl.cc: New test.
1364
1365 2023-07-03 Iain Sandoe <iain@sandoe.co.uk>
1366
1367 * testsuite/lib/libstdc++.exp: Remove additional flag handled
1368 by Darwin specs.
1369
1370 2023-06-30 Jonathan Wakely <jwakely@redhat.com>
1371
1372 PR libstdc++/110432
1373 * acinclude.m4 (GLIBCXX_CHECK_INIT_PRIORITY): New.
1374 * config.h.in: Regenerate.
1375 * configure: Regenerate.
1376 * configure.ac: Use GLIBCXX_CHECK_INIT_PRIORITY.
1377 * include/std/iostream: Use new autoconf macro as well as
1378 __has_attribute.
1379 * src/c++98/ios_base_init.h: Use new autoconf macro instead of
1380 __has_attribute.
1381
1382 2023-06-30 Jonathan Wakely <jwakely@redhat.com>
1383
1384 * src/c++11/random.cc (random_device::_M_init): Add maybe_unused
1385 attribute.
1386
1387 2023-06-30 Jonathan Wakely <jwakely@redhat.com>
1388
1389 PR libstdc++/105081
1390 * src/c++11/random.cc (random_device::_M_init): Throw
1391 std::system_error when the requested device is a valid token but
1392 not available at runtime.
1393
1394 2023-06-30 Hans-Peter Nilsson <hp@axis.com>
1395
1396 PR libstdc++/108672
1397 * include/pstl/unseq_backend_simd.h (__simd_or): Re-apply using
1398 __INT32_TYPE__ instead of int32_t.
1399
1400 2023-06-29 Jonathan Wakely <jwakely@redhat.com>
1401
1402 * src/c++20/tzdb.cc (USE_ATOMIC_SHARED_PTR): Define consistently
1403 with USE_ATOMIC_LIST_HEAD.
1404 (list_mutex): Replace global object with function. Use local
1405 static object when std::mutex constructor isn't constexpr.
1406
1407 2023-06-29 Jonathan Wakely <jwakely@redhat.com>
1408
1409 PR libstdc++/110462
1410 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check that
1411 copy_file_range can be called with loff_t* arguments.
1412 * configure: Regenerate.
1413 * src/filesystem/ops-common.h (copy_file_copy_file_range):
1414 Use loff_t for offsets.
1415
1416 2023-06-29 Tom Tromey <tromey@adacore.com>
1417
1418 * testsuite/lib/gdb-test.exp (gdb-test): Relax type-printer
1419 regexp.
1420
1421 2023-06-28 Jan Hubicka <jh@suse.cz>
1422
1423 PR middle-end/109849
1424 * include/bits/c++config (std::__terminate): Mark cold.
1425 * include/bits/functexcept.h: Mark everything as cold.
1426 * libsupc++/exception: Mark terminate and unexpected as cold.
1427
1428 2023-06-26 Thomas Rodgers <trodgers@redhat.com>
1429
1430 * include/pstl/algorithm_fwd.h: Synchronize with upstream.
1431 * include/pstl/algorithm_impl.h: Likewise.
1432 * include/pstl/execution_defs.h: Likewise.
1433 * include/pstl/execution_impl.h: Likewise.
1434 * include/pstl/glue_algorithm_impl.h: Likewise.
1435 * include/pstl/glue_execution_defs.h: Likewise.
1436 * include/pstl/glue_memory_impl.h: Likewise.
1437 * include/pstl/glue_numeric_impl.h: Likewise.
1438 * include/pstl/memory_impl.h: Likewise.
1439 * include/pstl/numeric_fwd.h: Likewise.
1440 * include/pstl/numeric_impl.h: Likewise.
1441 * include/pstl/parallel_backend.h: Likewise.
1442 * include/pstl/parallel_backend_serial.h: Likewise.
1443 * include/pstl/parallel_backend_tbb.h: Likewise.
1444 * include/pstl/parallel_impl.h: Likewise.
1445 * include/pstl/pstl_config.h: Likewise.
1446 * include/pstl/unseq_backend_simd.h: Likewise.
1447 * include/pstl/utils.h: Likewise.
1448 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc:
1449 Likewise.
1450 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc:
1451 Likewise.
1452 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc:
1453 Likewise.
1454 * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc:
1455 Likewise.
1456 * testsuite/25_algorithms/pstl/alg_merge/merge.cc: Likewise.
1457 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc:
1458 Likewise.
1459 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc:
1460 Likewise.
1461 * testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc:
1462 Likewise.
1463 * testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc:
1464 Likewise.
1465 * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc:
1466 Likewise.
1467 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc:
1468 Likewise.
1469 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc:
1470 Likewise.
1471 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc:
1472 Likewise.
1473 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc:
1474 Likewise.
1475 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc:
1476 Likewise.
1477 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc:
1478 Likewise.
1479 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc:
1480 Likewise.
1481 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc:
1482 Likewise.
1483 * testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc:
1484 Likewise.
1485 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc:
1486 Likewise.
1487 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc:
1488 Likewise.
1489 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc:
1490 Likewise.
1491 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc:
1492 Likewise.
1493 * testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc:
1494 Likewise.
1495 * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc:
1496 Likewise.
1497 * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc:
1498 Likewise.
1499 * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc:
1500 Likewise.
1501 * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc:
1502 Likewise.
1503 * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc:
1504 Likewise.
1505 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc:
1506 Likewise.
1507 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc:
1508 Likewise.
1509 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc:
1510 Likewise.
1511 * testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc:
1512 Likewise.
1513 * testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc:
1514 Likewise.
1515 * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc:
1516 Likewise.
1517 * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc:
1518 Likewise.
1519 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc:
1520 Likewise.
1521 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc:
1522 Likewise.
1523 * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc:
1524 Likewise.
1525 * testsuite/25_algorithms/pstl/alg_sorting/includes.cc:
1526 Likewise.
1527 * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc:
1528 Likewise.
1529 * testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc:
1530 Likewise.
1531 * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc:
1532 Likewise.
1533 * testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc:
1534 Likewise.
1535 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc:
1536 Likewise.
1537 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc:
1538 Likewise.
1539 * testsuite/25_algorithms/pstl/alg_sorting/set.cc:
1540 Likewise.
1541 * testsuite/25_algorithms/pstl/alg_sorting/sort.cc:
1542 Likewise.
1543 * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc:
1544 Likewise.
1545 * testsuite/26_numerics/pstl/numeric_ops/reduce.cc:
1546 Likewise.
1547 * testsuite/26_numerics/pstl/numeric_ops/scan.cc:
1548 Likewise.
1549 * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc:
1550 Likewise.
1551 * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc:
1552 Likewise.
1553 * testsuite/util/pstl/test_utils.h:
1554 Likewise.
1555
1556 2023-06-26 Jonathan Wakely <jwakely@redhat.com>
1557
1558 PR libstdc++/110239
1559 * include/std/format (__format::__parse_integer): Fix buffer
1560 overflow for wide chars.
1561 (formatter<const void*, C>::format): Cast to uintptr_t instead
1562 of uint64_t.
1563 * testsuite/std/format/string.cc: Test too-large widths.
1564
1565 2023-06-26 Jonathan Wakely <jwakely@redhat.com>
1566
1567 * include/bits/iterator_concepts.h (projected): Replace class
1568 template with alias template denoting an ADL-proofed helper.
1569 (incremental_traits<projected<Iter, Proj>>): Remove.
1570 * testsuite/24_iterators/indirect_callable/projected-adl.cc:
1571 New test.
1572
1573 2023-06-26 Jonathan Wakely <jwakely@redhat.com>
1574
1575 * include/debug/helper_functions.h (__get_distance)
1576 (__check_singular, __valid_range_aux, __valid_range): Qualify
1577 calls to disable ADL.
1578 (__check_singular_aux(const _Safe_iterator_base*)): Declare
1579 overload that was previously found via ADL.
1580
1581 2023-06-23 Jonathan Wakely <jwakely@redhat.com>
1582
1583 * include/bits/vector.tcc (_M_realloc_insert): Replace try-block
1584 with RAII types.
1585
1586 2023-06-20 Jonathan Wakely <jwakely@redhat.com>
1587
1588 * include/std/array (to_array(T(&)[N])): Remove redundant
1589 condition.
1590 (to_array(T(&&)[N])): Remove redundant std::move.
1591
1592 2023-06-16 Alexandre Oliva <oliva@adacore.com>
1593
1594 * testsuite/20_util/from_chars/4.cc: Skip long double on
1595 aarch64-rtems.
1596
1597 2023-06-16 Joel Brobecker <brobecker@adacore.com>
1598
1599 * configure.ac ["x${with_newlib}" = "xyes"]: Define
1600 HAVE_HYPOTF. Add compile-checks for various long double
1601 math functions as well.
1602 * configure: Regenerate.
1603
1604 2023-06-14 Jonny Grant <jg@jguk.org>
1605
1606 * doc/xml/manual/extensions.xml: Remove demangle exception
1607 description and include.
1608 * doc/html/manual/ext_demangling.html: Regenerate.
1609
1610 2023-06-10 Hans-Peter Nilsson <hp@axis.com>
1611
1612 * testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc (main)
1613 [! SIMULATOR_TEST]: Also exclude running test05.
1614 * testsuite/27_io/basic_istream/ignore/char/94749.cc: Ditto.
1615
1616 2023-06-09 Ken Matsui <kmatsui@cs.washington.edu>
1617
1618 * include/std/type_traits: Use using instead of typedef
1619
1620 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
1621
1622 PR libstdc++/110077
1623 * src/c++17/floating_from_chars.cc (from_chars) <_Float128>:
1624 Only define if _Float128 and long double have different
1625 representations.
1626
1627 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
1628
1629 PR libstdc++/100285
1630 * include/experimental/internet [IPPROTO_TCP || IPPROTO_UDP]
1631 (basic_endpoint, basic_resolver_entry, resolver_base)
1632 (basic_resolver_results, basic_resolver): Only define if the tcp
1633 or udp protocols will be defined.
1634
1635 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
1636
1637 * acinclude.m4 (libtool_VERSION): Update to 6.0.33.
1638 * configure: Regenerate.
1639 * doc/xml/manual/abi.xml: Add libstdc++.so.6.0.33.
1640 * doc/html/manual/abi.html: Regenerate.
1641
1642 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
1643
1644 PR libstdc++/110149
1645 * include/std/format (formatter<const void*, charT>::parse):
1646 Only alow 0 and P for C++26 and non-strict modes.
1647 (formatter<const void*, charT>::format): Use toupper for P
1648 type, and insert zero-fill characters for 0 option.
1649 * testsuite/std/format/functions/format.cc: Check pointer
1650 formatting. Only check P2510R3 extensions conditionally.
1651 * testsuite/std/format/parse_ctx.cc: Only check P2510R3
1652 extensions conditionally.
1653
1654 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
1655
1656 PR libstdc++/110167
1657 * include/std/array (to_array): Initialize arrays of trivial
1658 types using memcpy. For non-trivial types, use lambda
1659 expressions instead of a separate helper function.
1660 (__to_array): Remove.
1661 * testsuite/23_containers/array/creation/110167.cc: New test.
1662
1663 2023-06-09 Jonathan Wakely <jwakely@redhat.com>
1664
1665 * testsuite/23_containers/deque/modifiers/emplace/52799.cc:
1666 Removed.
1667 * testsuite/23_containers/deque/modifiers/emplace/const_iterator.cc:
1668 Removed.
1669 * testsuite/23_containers/list/modifiers/emplace/52799.cc:
1670 Removed.
1671 * testsuite/23_containers/list/modifiers/emplace/const_iterator.cc:
1672 Removed.
1673 * testsuite/23_containers/vector/modifiers/emplace/52799.cc:
1674 Removed.
1675 * testsuite/23_containers/vector/modifiers/emplace/const_iterator.cc:
1676 Removed.
1677 * testsuite/23_containers/deque/modifiers/emplace/1.cc: New
1678 test.
1679 * testsuite/23_containers/list/modifiers/emplace/1.cc: New
1680 test.
1681 * testsuite/23_containers/vector/modifiers/emplace/1.cc: New
1682 test.
1683
1684 2023-06-07 Jakub Jelinek <jakub@redhat.com>
1685
1686 PR libstdc++/110145
1687 * testsuite/20_util/to_chars/double.cc: Include <cfloat>.
1688 (double_to_chars_test_cases,
1689 double_scientific_precision_to_chars_test_cases_2,
1690 double_fixed_precision_to_chars_test_cases_2): #if out 1e126, 4.91e-6
1691 and 5.547e-6 tests if FLT_EVAL_METHOD is negative or larger than 1.
1692 Add unconditional tests with corresponding double constants
1693 0x1.7a2ecc414a03fp+418, 0x1.4981285e98e79p-18 and
1694 0x1.7440bbff418b9p-18.
1695
1696 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
1697
1698 * testsuite/util/testsuite_abi.cc (check_version): Re-add
1699 CXXABI_1.3.14.
1700
1701 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
1702
1703 * testsuite/18_support/nested_exception/rethrow_if_nested-term.cc:
1704 Require effective target exceptions_enabled instead of using
1705 dg-skip-if.
1706 * testsuite/23_containers/vector/capacity/constexpr.cc: Expect
1707 shrink_to_fit() to be a no-op without exceptions enabled.
1708 * testsuite/23_containers/vector/capacity/shrink_to_fit.cc:
1709 Likewise.
1710 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc:
1711 Require effective target exceptions_enabled.
1712 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc:
1713 Likewise.
1714 * testsuite/ext/mt_allocator/check_allocate_max_size.cc:
1715 Likewise.
1716 * testsuite/ext/new_allocator/check_allocate_max_size.cc:
1717 Likewise.
1718 * testsuite/ext/pool_allocator/check_allocate_max_size.cc:
1719 Likewise.
1720 * testsuite/ext/throw_allocator/check_allocate_max_size.cc:
1721 Likewise.
1722
1723 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
1724
1725 * testsuite/20_util/duration/cons/2.cc: Use values that aren't
1726 affected by rounding.
1727 * testsuite/20_util/from_chars/5.cc: Cast arithmetic result to
1728 double before comparing for equality.
1729 * testsuite/20_util/from_chars/6.cc: Likewise.
1730 * testsuite/20_util/variant/86874.cc: Use values that aren't
1731 affected by rounding.
1732 * testsuite/25_algorithms/lower_bound/partitioned.cc: Compare to
1733 original value instead of to floating-point-literal.
1734 * testsuite/26_numerics/random/discrete_distribution/cons/range.cc:
1735 Cast arithmetic result to double before comparing for equality.
1736 * testsuite/26_numerics/random/piecewise_constant_distribution/cons/range.cc:
1737 Likewise.
1738 * testsuite/26_numerics/random/piecewise_linear_distribution/cons/range.cc:
1739 Likewise.
1740 * testsuite/26_numerics/valarray/transcend.cc (eq): Check that
1741 the absolute difference is less than 0.01 instead of comparing
1742 to two decimal places.
1743 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
1744 Cast arithmetic result to double before comparing for equality.
1745 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
1746 Likewise.
1747 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1748 Likewise.
1749 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/01.cc:
1750 Likewise.
1751 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/09.cc:
1752 Likewise.
1753 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/10.cc:
1754 Likewise.
1755 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
1756
1757 2023-06-07 Jonathan Wakely <jwakely@redhat.com>
1758
1759 Revert:
1760 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
1761
1762 * configure.ac: Use AS_IF.
1763 * configure: Regenerate.
1764
1765 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
1766
1767 * testsuite/lib/prune.exp (libstdc++-dg-prune): Support
1768 'UNSUPPORTED: [...]: exception handling disabled'.
1769
1770 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
1771
1772 * testsuite/util/testsuite_abi.cc (check_version): Add
1773 CXXABI_1.3.15 symver and make it the latestp. Remove
1774 GLIBCXX_IEEE128_3.4.31 and GLIBCXX_LDBL_3.4.31 from latestp.
1775
1776 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
1777 Jakub Jelinek <jakub@redhat.com>
1778
1779 PR libstdc++/104772
1780 * include/std/limits: (numeric_limits<__float128>): Define
1781 for __STRICT_ANSI__ as well.
1782 * testsuite/18_support/numeric_limits/128bit.cc: Remove
1783 check for __STRICT_ANSI__.
1784
1785 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
1786
1787 * configure.ac: Use AS_IF.
1788 * configure: Regenerate.
1789
1790 2023-06-06 Matthias Kretz <m.kretz@gsi.de>
1791
1792 PR libstdc++/109822
1793 * include/experimental/bits/simd_builtin.h (_S_store): Rewrite
1794 to avoid casts to other vector types. Implement store as
1795 succession of power-of-2 sized memcpy to avoid PR90424.
1796
1797 2023-06-06 Matthias Kretz <m.kretz@gsi.de>
1798
1799 PR libstdc++/110054
1800 * include/experimental/bits/simd_builtin.h (_S_masked_store):
1801 Call into deduced ABI's SimdImpl after conversion.
1802 * include/experimental/bits/simd_x86.h (_S_masked_store_nocvt):
1803 Don't use _mm_maskmoveu_si128. Use the generic fall-back
1804 implementation. Also fix masked stores without SSE2, which
1805 were not doing anything before.
1806
1807 2023-06-06 Matthias Kretz <m.kretz@gsi.de>
1808
1809 * include/experimental/bits/simd.h (__bit_cast): Use
1810 __gnu__::__vector_size__ instead of gnu::vector_size.
1811
1812 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
1813
1814 PR libstdc++/110139
1815 * include/std/array (__array_traits<T, 0>::operator T*()): Make
1816 conversion operator explicit.
1817 (array::front): Use size_type as subscript operand.
1818 (array::data): Use static_cast to make conversion explicit.
1819 * testsuite/23_containers/array/element_access/110139.cc: New
1820 test.
1821
1822 2023-06-06 Joseph Faulls <Joseph.Faulls@imgtec.com>
1823
1824 * include/bits/locale_classes.tcc: Remove check for
1825 codecvt<char8_t, char, mbstate_t> facet.
1826
1827 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
1828
1829 * src/filesystem/ops-common.h (do_copy_file) [O_CLOEXEC]: Set
1830 close-on-exec flag on file descriptors.
1831
1832 2023-06-06 Jonathan Wakely <jwakely@redhat.com>
1833
1834 PR libstdc++/108178
1835 * src/filesystem/ops-common.h (do_copy_file): Check for empty
1836 files by trying to read a character.
1837 * testsuite/27_io/filesystem/operations/copy_file_108178.cc:
1838 New test.
1839
1840 2023-06-06 Jannik Glückert <jannik.glueckert@gmail.com>
1841
1842 * acinclude.m4 (_GLIBCXX_USE_COPY_FILE_RANGE): Define.
1843 * config.h.in: Regenerate.
1844 * configure: Regenerate.
1845 * src/filesystem/ops-common.h (copy_file_copy_file_range):
1846 Define new function.
1847 (do_copy_file): Use it.
1848
1849 2023-06-06 Jannik Glückert <jannik.glueckert@gmail.com>
1850
1851 * acinclude.m4 (_GLIBCXX_HAVE_LSEEK): Define.
1852 * config.h.in: Regenerate.
1853 * configure: Regenerate.
1854 * src/filesystem/ops-common.h (copy_file_sendfile): Define new
1855 function for sendfile logic. Loop to support large files. Skip
1856 zero-length files.
1857 (do_copy_file): Use it.
1858
1859 2023-06-04 Jason Merrill <jason@redhat.com>
1860
1861 PR c++/97720
1862 * libsupc++/eh_call.cc (__cxa_call_terminate): Take void*.
1863 * config/abi/pre/gnu.ver: Add it.
1864
1865 2023-06-02 François Dumont <fdumont@gcc.gnu.org>
1866
1867 * include/parallel/algobase.h: Include <parallel/search.h>.
1868
1869 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
1870
1871 * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc:
1872 Add const to equality operator.
1873
1874 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
1875
1876 * include/std/expected (expected::and_then, expected::or_else)
1877 (expected::transform_error): Use _M_val and _M_unex instead of
1878 calling value() and error(), as per LWG 3938.
1879 (expected::transform): Likewise. Remove incorrect std::move
1880 calls from lvalue overloads.
1881 (expected<void, E>::and_then, expected<void, E>::or_else)
1882 (expected<void, E>::transform): Use _M_unex instead of calling
1883 error().
1884 * testsuite/20_util/expected/lwg3877.cc: Add checks for and_then
1885 and transform, and for std::expected<void, E>.
1886 * testsuite/20_util/expected/lwg3938.cc: New test.
1887
1888 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
1889
1890 PR libstdc++/110060
1891 * include/bits/stl_vector.h (_Vector_base::_M_invariant):
1892 Remove.
1893 (vector::size, vector::capacity): Remove calls to _M_invariant.
1894 * include/bits/vector.tcc (vector::_M_fill_assign): Add
1895 optimization hint to reallocating path.
1896 (vector::_M_assign_aux(FwdIter, FwdIter, forward_iterator_tag)):
1897 Likewise.
1898 * testsuite/23_containers/vector/capacity/invariant.cc: Moved
1899 to...
1900 * testsuite/23_containers/vector/modifiers/assign/no_realloc.cc:
1901 ...here. Check assign(FwdIter, FwdIter) too.
1902 * testsuite/23_containers/vector/types/1.cc: Revert addition
1903 of -Wno-stringop-overread option.
1904
1905 2023-06-01 Jonathan Wakely <jwakely@redhat.com>
1906
1907 * doc/xml/manual/evolution.xml: Document removal of implicit
1908 allocator rebinding extensions in strict mode and for C++20.
1909 * doc/html/*: Regenerate.
1910
1911 2023-06-01 Jason Merrill <jason@redhat.com>
1912
1913 * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Don't check
1914 handlers in the cleanup phase.
1915
1916 2023-06-01 Matthias Kretz <m.kretz@gsi.de>
1917
1918 PR libstdc++/110050
1919 * include/experimental/bits/simd.h (__vectorized_sizeof): With
1920 __have_neon_a32 only single-precision float works (in addition
1921 to integers).
1922
1923 2023-06-01 François Dumont <fdumont@gcc.gnu.org>
1924
1925 * include/bits/stl_algo.h
1926 (std::__search, std::search(_FwdIt1, _FwdIt1, _FwdIt2, _FwdIt2, _BinPred)): Move...
1927 * include/bits/stl_algobase.h: ...here.
1928 * include/std/functional: Replace <stl_algo.h> include by <stl_algobase.h>.
1929 * include/parallel/algo.h (std::__parallel::search<_FIt1, _FIt2, _BinaryPred>)
1930 (std::__parallel::__search_switch<_FIt1, _FIt2, _BinaryPred, _ItTag1, _ItTag2>):
1931 Move...
1932 * include/parallel/algobase.h: ...here.
1933 * include/experimental/functional: Remove <bits/stl_algo.h> and <parallel/algorithm>
1934 includes. Include <bits/stl_algobase.h>.
1935
1936 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
1937
1938 PR libstdc++/109818
1939 * acinclude.m4 (GLIBCXX_ENABLE_C99): Add separate check for
1940 float_t and double_t and define HAVE_C99_FLT_EVAL_TYPES.
1941 * config.h.in: Regenerate.
1942 * configure: Regenerate.
1943 * include/c_global/cmath (float_t, double_t): Guard using new
1944 _GLIBCXX_HAVE_C99_FLT_EVAL_TYPES macro.
1945
1946 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
1947
1948 * acinclude.m4 (GLIBCXX_ENABLE_C99): Add checks for C99 math
1949 functions and define _GLIBCXX_USE_C99_MATH_FUNCS. Move checks
1950 for C99 rounding functions to here.
1951 (GLIBCXX_CHECK_C99_TR1): Remove checks for C99 rounding
1952 functions from here.
1953 * config.h.in: Regenerate.
1954 * configure: Regenerate.
1955 * include/bits/random.h: Use _GLIBCXX_USE_C99_MATH_FUNCS instead
1956 of _GLIBCXX_USE_C99_MATH_TR1.
1957 * include/bits/random.tcc: Likewise.
1958 * include/c_compatibility/math.h: Likewise.
1959 * include/c_global/cmath: Likewise.
1960 * include/ext/random: Likewise.
1961 * include/ext/random.tcc: Likewise.
1962 * include/std/complex: Likewise.
1963 * testsuite/20_util/from_chars/4.cc: Likewise.
1964 * testsuite/20_util/from_chars/8.cc: Likewise.
1965 * testsuite/26_numerics/complex/proj.cc: Likewise.
1966 * testsuite/26_numerics/headers/cmath/60401.cc: Likewise.
1967 * testsuite/26_numerics/headers/cmath/types_std_c++0x.cc:
1968 Likewise.
1969 * testsuite/lib/libstdc++.exp (check_v3_target_cstdint):
1970 Likewise.
1971 * testsuite/util/testsuite_random.h: Likewise.
1972
1973 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
1974
1975 * include/bits/stl_vector.h (_Vector_base::_M_invariant()): New
1976 function.
1977 (vector::size(), vector::capacity()): Call _M_invariant().
1978 * testsuite/23_containers/vector/capacity/invariant.cc: New test.
1979 * testsuite/23_containers/vector/types/1.cc: Add suppression for
1980 false positive warning (PR110060).
1981
1982 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
1983
1984 PR libstdc++/109921
1985 * src/c++17/floating_from_chars.cc: Check __FLT128_MANT_DIG__ is
1986 defined before trying to use _Float128.
1987
1988 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
1989
1990 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Fix for 32-bit pointers
1991 to check __INT_PTR_WIDTH__ instead of sizeof(void*).
1992 * configure: Regenerate.
1993
1994 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
1995
1996 * include/bits/unique_lock.h: Include <bits/error_constants.h>
1997 here for std::errc constants.
1998 * include/std/mutex: Do not include <bits/error_constants.h> and
1999 <exception> here.
2000
2001 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2002
2003 * configure.ac: Replace use of -o operator for test.
2004 * configure: Regenerate.
2005
2006 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2007
2008 * include/std/scoped_allocator (scoped_allocator_adaptor): Add
2009 noexcept to all constructors except the default constructor.
2010 (scoped_allocator_adaptor::inner_allocator): Add noexcept.
2011 (scoped_allocator_adaptor::outer_allocator): Likewise.
2012 * testsuite/20_util/scoped_allocator/noexcept.cc: New test.
2013
2014 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2015
2016 PR libstdc++/104772
2017 * include/std/limits (numeric_limits<__float128>): Define.
2018 * testsuite/18_support/numeric_limits/128bit.cc: New test.
2019
2020 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2021
2022 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Extend logic for avr and
2023 msp430 to all 16-bit targets.
2024 * configure: Regenerate.
2025
2026 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2027
2028 PR libstdc++/109921
2029 * src/c++17/floating_from_chars.cc (USE_STRTOF128_FOR_FROM_CHARS):
2030 Only define when USE_STRTOD_FOR_FROM_CHARS is also defined.
2031 (USE_STRTOD_FOR_FROM_CHARS): Do not undefine when long double is
2032 binary64.
2033 (from_chars(const char*, const char*, double&, chars_format)):
2034 Check __LDBL_MANT_DIG__ == __DBL_MANT_DIG__ here.
2035 (from_chars(const char*, const char*, _Float128&, chars_format))
2036 Only use from_chars_strtod when USE_STRTOD_FOR_FROM_CHARS is
2037 defined, otherwise parse a long double and convert to _Float128.
2038
2039 2023-05-31 Jonathan Wakely <jwakely@redhat.com>
2040
2041 PR libstdc++/109922
2042 * include/std/iomanip (operator>>(basic_istream&, _Setfill)):
2043 Add deprecated attribute to non-standard overload.
2044 * doc/xml/manual/evolution.xml: Document deprecation.
2045 * doc/html/*: Regenerate.
2046 * testsuite/27_io/manipulators/standard/char/1.cc: Add
2047 dg-warning for expected deprecated warning.
2048 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
2049 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
2050 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
2051
2052 2023-05-30 Alexandre Oliva <oliva@adacore.com>
2053
2054 * testsuite/20_util/from_chars/4.cc: Skip long double test06
2055 on x86_64-vxworks.
2056 * testsuite/20_util/to_chars/long_double.cc: Xfail run on
2057 x86_64-vxworks.
2058
2059 2023-05-30 Matthias Kretz <m.kretz@gsi.de>
2060
2061 PR libstdc++/109822
2062 * include/experimental/bits/simd.h (to_native): Use int NTTP
2063 as specified in PTS2.
2064 (to_compatible): Likewise. Add missing tag to call mask
2065 generator ctor.
2066 * testsuite/experimental/simd/pr109822_cast_functions.cc: New
2067 test.
2068
2069 2023-05-30 Matthias Kretz <m.kretz@gsi.de>
2070
2071 * testsuite/experimental/simd/tests/integer_operators.cc:
2072 Compute expected value differently to avoid getting turned into
2073 a vector shift.
2074
2075 2023-05-30 Matthias Kretz <m.kretz@gsi.de>
2076
2077 * testsuite/experimental/simd/tests/operator_cvt.cc: Make long
2078 double <-> (u)long conversion tests conditional on sizeof(long
2079 double) and sizeof(long).
2080
2081 2023-05-26 Matthias Kretz <m.kretz@gsi.de>
2082
2083 * include/experimental/bits/simd_ppc.h (_S_bit_shift_left):
2084 Negative __y is UB, so prefer signed compare.
2085
2086 2023-05-25 Jonathan Wakely <jwakely@redhat.com>
2087
2088 * testsuite/util/testsuite_allocator.h (PointerBase): Add
2089 relational operators.
2090
2091 2023-05-25 Alexandre Oliva <oliva@adacore.com>
2092
2093 * testsuite/20_util/to_chars/long_double.cc: Expect execution
2094 fail on x86-vxworks.
2095
2096 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
2097
2098 PR libstdc++/109949
2099 * include/experimental/bits/simd.h (__intrinsic_type): If
2100 __ALTIVEC__ is defined, map gnu::vector_size types to their
2101 corresponding __vector T types without losing unsignedness of
2102 integer types. Also prefer long long over long.
2103 * include/experimental/bits/simd_ppc.h (_S_popcount): Cast mask
2104 object to the expected unsigned vector type.
2105
2106 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
2107
2108 PR libstdc++/109261
2109 * include/experimental/bits/simd.h (__intrinsic_type):
2110 Specialize __intrinsic_type<double, 8> and
2111 __intrinsic_type<double, 16> in any case, but provide the member
2112 type only with __aarch64__.
2113
2114 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
2115
2116 PR libstdc++/109261
2117 * include/experimental/bits/simd_neon.h (_S_reduce): Add
2118 constexpr and make NEON implementation conditional on
2119 not __builtin_is_constant_evaluated.
2120
2121 2023-05-23 Matthias Kretz <m.kretz@gsi.de>
2122
2123 PR libstdc++/109261
2124 * include/experimental/bits/simd.h (_SimdWrapper::_M_set):
2125 Avoid vector builtin subscripting in constant expressions.
2126 (resizing_simd_cast): Avoid memcpy if constant_evaluated.
2127 (const_where_expression, where_expression, where)
2128 (__extract_part, simd_mask, _SimdIntOperators, simd): Add either
2129 _GLIBCXX_SIMD_CONSTEXPR (on public APIs), or constexpr (on
2130 internal APIs).
2131 * include/experimental/bits/simd_builtin.h (__vector_permute)
2132 (__vector_shuffle, __extract_part, _GnuTraits::_SimdCastType1)
2133 (_GnuTraits::_SimdCastType2, _SimdImplBuiltin)
2134 (_MaskImplBuiltin::_S_store): Add constexpr.
2135 (_CommonImplBuiltin::_S_store_bool_array)
2136 (_SimdImplBuiltin::_S_load, _SimdImplBuiltin::_S_store)
2137 (_SimdImplBuiltin::_S_reduce, _MaskImplBuiltin::_S_load): Add
2138 constant_evaluated case.
2139 * include/experimental/bits/simd_fixed_size.h
2140 (_S_masked_load): Reword comment.
2141 (__tuple_element_meta, __make_meta, _SimdTuple::_M_apply_r)
2142 (_SimdTuple::_M_subscript_read, _SimdTuple::_M_subscript_write)
2143 (__make_simd_tuple, __optimize_simd_tuple, __extract_part)
2144 (__autocvt_to_simd, _Fixed::__traits::_SimdBase)
2145 (_Fixed::__traits::_SimdCastType, _SimdImplFixedSize): Add
2146 constexpr.
2147 (_SimdTuple::operator[], _M_set): Add constexpr and add
2148 constant_evaluated case.
2149 (_MaskImplFixedSize::_S_load): Add constant_evaluated case.
2150 * include/experimental/bits/simd_scalar.h: Add constexpr.
2151 * include/experimental/bits/simd_x86.h (_CommonImplX86): Add
2152 constexpr and add constant_evaluated case.
2153 (_SimdImplX86::_S_equal_to, _S_not_equal_to, _S_less)
2154 (_S_less_equal): Value-initialize to satisfy constexpr
2155 evaluation.
2156 (_MaskImplX86::_S_load): Add constant_evaluated case.
2157 (_MaskImplX86::_S_store): Add constexpr and constant_evaluated
2158 case. Value-initialize local variables.
2159 (_MaskImplX86::_S_logical_and, _S_logical_or, _S_bit_not)
2160 (_S_bit_and, _S_bit_or, _S_bit_xor): Add constant_evaluated
2161 case.
2162 * testsuite/experimental/simd/pr109261_constexpr_simd.cc: New
2163 test.
2164
2165 2023-05-22 Matthias Kretz <m.kretz@gsi.de>
2166
2167 * include/experimental/bits/simd_builtin.h (_S_fpclassify): Move
2168 __infn into #ifdef'ed block.
2169 * testsuite/experimental/simd/tests/fpclassify.cc: Declare
2170 constants only when used.
2171 * testsuite/experimental/simd/tests/frexp.cc: Likewise.
2172 * testsuite/experimental/simd/tests/logarithm.cc: Likewise.
2173 * testsuite/experimental/simd/tests/trunc_ceil_floor.cc:
2174 Likewise.
2175 * testsuite/experimental/simd/tests/ldexp_scalbn_scalbln_modf.cc:
2176 Move totest and expect1 into #ifdef'ed block.
2177
2178 2023-05-19 Gerald Pfeifer <gerald@pfeifer.com>
2179
2180 * doc/xml/manual/strings.xml: Move lafstern.org reference to https.
2181 * doc/html/manual/strings.html: Regenerate.
2182
2183 2023-05-17 Jakub Jelinek <jakub@redhat.com>
2184
2185 PR libstdc++/109883
2186 * testsuite/26_numerics/headers/cmath/constexpr_std_c++23.cc: New test.
2187
2188 2023-05-17 Jakub Jelinek <jakub@redhat.com>
2189
2190 PR libstdc++/109883
2191 * include/c_global/cmath (atan2, fmod, pow): Move
2192 __gnu_cxx::__promote_2 using templates after _Float{16,32,64,128} and
2193 __gnu_cxx::__bfloat16_t overloads.
2194 (copysign, fdim, fmax, fmin, hypot, nextafter, remainder, remquo):
2195 Likewise.
2196 (fma): Move __gnu_cxx::__promote_3 using template after
2197 _Float{16,32,64,128} and __gnu_cxx::__bfloat16_t overloads.
2198
2199 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
2200
2201 * testsuite/18_support/headers/limits/synopsis.cc: Uncomment
2202 checks for float_round_style and float_denorm_style.
2203
2204 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
2205
2206 * include/bits/c++config: Add system_header pragma.
2207
2208 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
2209
2210 * include/std/expected (expected::and_then, expected::or_else)
2211 (expected::transform, expected::transform_error): Fix exception
2212 specifications as per LWG 3877.
2213 (expected<void, E>::and_then, expected<void, E>::transform):
2214 Likewise.
2215 * testsuite/20_util/expected/lwg3877.cc: New test.
2216
2217 2023-05-17 Ken Matsui <kmatsui@cs.washington.edu>
2218
2219 * include/std/type_traits: Use __bool_constant instead of
2220 integral_constant.
2221
2222 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
2223
2224 * configure: Regenerate.
2225
2226 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2227
2228 PR libstdc++/109741
2229 * acinclude.m4 (GLIBCXX_CHECK_ALIGNAS_CACHELINE): Define.
2230 * config.h.in: Regenerate.
2231 * configure: Regenerate.
2232 * configure.ac: Use GLIBCXX_CHECK_ALIGNAS_CACHELINE.
2233 * src/c++11/shared_ptr.cc (__gnu_internal::get_mutex): Do not
2234 align lock table if not supported. use __GCC_DESTRUCTIVE_SIZE
2235 instead of hardcoded 64.
2236
2237 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2238
2239 * acinclude.m4 (GLIBCXX_USE_C99): Check for isblank in C++11
2240 mode and define _GLIBCXX_USE_C99_CTYPE. Check for <fenv.h>
2241 functions in C++11 mode and define _GLIBCXX_USE_C99_FENV.
2242 * config.h.in: Regenerate.
2243 * configure: Regenerate.
2244 * include/c_compatibility/fenv.h: Check _GLIBCXX_USE_C99_FENV
2245 instead of _GLIBCXX_USE_C99_FENV_TR1.
2246 * include/c_global/cfenv: Likewise.
2247 * include/c_global/cctype: Check _GLIBCXX_USE_C99_CTYPE instead
2248 of _GLIBCXX_USE_C99_CTYPE_TR1.
2249
2250 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2251
2252 * acinclude.m4 (GLIBCXX_USE_C99): Check for <stdint.h> types in
2253 C++11 mode and define _GLIBCXX_USE_C99_STDINT. Check for
2254 <inttypes.h> features in C++11 mode and define
2255 _GLIBCXX_USE_C99_INTTYPES and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T.
2256 * config.h.in: Regenerate.
2257 * configure: Regenerate.
2258 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macros.
2259 * include/bits/chrono.h: Check _GLIBCXX_USE_C99_STDINT instead
2260 of _GLIBCXX_USE_C99_STDINT_TR1.
2261 * include/c_compatibility/inttypes.h: Check
2262 _GLIBCXX_USE_C99_INTTYPES and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T
2263 instead of _GLIBCXX_USE_C99_INTTYPES_TR1 and
2264 _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
2265 * include/c_compatibility/stdatomic.h: Check
2266 _GLIBCXX_USE_C99_STDINT instead of _GLIBCXX_USE_C99_STDINT_TR1.
2267 * include/c_compatibility/stdint.h: Likewise.
2268 * include/c_global/cinttypes: Check _GLIBCXX_USE_C99_INTTYPES
2269 and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T instead of
2270 _GLIBCXX_USE_C99_INTTYPES_TR1 and
2271 _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
2272 * include/c_global/cstdint: Check _GLIBCXX_USE_C99_STDINT
2273 instead of _GLIBCXX_USE_C99_STDINT_TR1.
2274 * include/std/atomic: Likewise.
2275 * src/c++11/cow-stdexcept.cc: Likewise.
2276 * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc:
2277 Likewise.
2278 * testsuite/lib/libstdc++.exp (check_v3_target_cstdint):
2279 Likewise.
2280
2281 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2282
2283 * acinclude.m4 (GLIBCXX_USE_C99): Check for complex inverse trig
2284 functions in C++11 mode and define _GLIBCXX_USE_C99_COMPLEX_ARC.
2285 * config.h.in: Regenerate.
2286 * configure: Regenerate.
2287 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macro.
2288 * include/std/complex: Check _GLIBCXX_USE_C99_COMPLEX_ARC
2289 instead of _GLIBCXX_USE_C99_COMPLEX_TR1.
2290
2291 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2292
2293 * testsuite/ext/debug_allocator/check_deallocate_null.cc: Add
2294 assertion to ensure expected exception is throw.
2295
2296 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2297
2298 * testsuite/libstdc++-prettyprinters/chrono.cc: Only test
2299 printer for chrono::zoned_time for cx11 ABI and tzdb effective
2300 target.
2301
2302 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
2303
2304 * acinclude.m4 (GLIBCXX_CHECK_PTHREAD_MUTEX_CLOCKLOCK): Define
2305 _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK in terms of _GLIBCXX_TSAN.
2306 * configure: Regenerate.
2307
2308 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2309
2310 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Use a non-null pointer
2311 to check for nan, nanf, and nanl.
2312 * configure: Regenerate.
2313
2314 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2315
2316 * include/bits/char_traits.h (char_traits<char16_t>): Do not
2317 depend on _GLIBCXX_USE_C99_STDINT_TR1.
2318 (char_traits<char32_t>): Likewise.
2319 * include/experimental/source_location: Likewise.
2320
2321 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2322
2323 * include/std/atomic (atomic_int_least8_t, atomic_uint_least8_t)
2324 (atomic_int_least16_t, atomic_uint_least16_t)
2325 (atomic_int_least32_t, atomic_uint_least32_t)
2326 (atomic_int_least64_t, atomic_uint_least64_t)
2327 (atomic_int_fast16_t, atomic_uint_fast16_t)
2328 (atomic_int_fast32_t, atomic_uint_fast32_t)
2329 (atomic_int_fast64_t, atomic_uint_fast64_t)
2330 (atomic_intmax_t, atomic_uintmax_t): Define unconditionally.
2331 * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc: Adjust.
2332
2333 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2334
2335 * include/bits/algorithmfwd.h (shuffle): Do not depend on
2336 _GLIBCXX_USE_C99_STDINT_TR1.
2337 * include/bits/ranges_algo.h (shuffle): Likewise.
2338 * include/bits/stl_algo.h (shuffle): Likewise.
2339 * include/ext/random: Likewise.
2340 * include/ext/throw_allocator.h (random_condition): Likewise.
2341 * include/std/random: Likewise.
2342 * src/c++11/cow-string-inst.cc: Likewise.
2343 * src/c++11/random.cc: Likewise.
2344
2345 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2346
2347 * testsuite/experimental/feat-cxx14.cc: Remove dependency on
2348 _GLIBCXX_USE_C99_STDINT_TR1.
2349
2350 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2351
2352 * testsuite/22_locale/locale/cons/unicode.cc: Remove dependency
2353 on _GLIBCXX_USE_C99_STDINT_TR1.
2354
2355 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
2356
2357 * testsuite/21_strings/basic_string_view/typedefs.cc: Remove
2358 dependency on _GLIBCXX_USE_C99_STDINT_TR1.
2359 * testsuite/experimental/string_view/typedefs.cc: Likewise.
2360
2361 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
2362
2363 * src/c++17/floating_from_chars.cc [USE_STRTOD_FOR_FROM_CHARS]
2364 (auto_locale, auto_ferounding): New class types.
2365 (from_chars_impl): Use auto_locale and auto_ferounding.
2366
2367 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
2368
2369 PR libstdc++/109772
2370 * include/std/chrono (hh_mm_ss::__fits): Remove variable
2371 template.
2372 (hh_mm_ss::__subseconds): Remove __fits from constraints.
2373 * testsuite/std/time/hh_mm_ss/109772.cc: New test.
2374 * testsuite/std/time/hh_mm_ss/1.cc: Adjust expected size for
2375 hh_mm_ss<duration<int, std::pico>>.
2376
2377 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
2378
2379 * config/abi/pre/gnu.ver: Export basic_string::_S_allocate.
2380 * include/bits/basic_ios.h: Add static assertion checking
2381 traits_type::value_type.
2382 * include/bits/basic_string.h: Likewise. Do not rebind
2383 allocator, and add static assertion checking its value_type.
2384 (basic_string::_Alloc_traits_impl): Remove class template.
2385 (basic_string::_S_allocate): New static member function.
2386 (basic_string::assign): Use _S_allocate.
2387 * include/bits/basic_string.tcc (basic_string::_M_create)
2388 (basic_string::reserve, basic_string::_M_replace): Likewise.
2389 * testsuite/21_strings/basic_string/requirements/explicit_instantiation/debug.cc:
2390 Disable for C++20 and later.
2391 * testsuite/21_strings/basic_string/requirements/explicit_instantiation/int.cc:
2392 Likweise.
2393
2394 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
2395
2396 PR libstdc++/109758
2397 * include/bits/std_abs.h (abs(__float128)): Handle negative NaN
2398 and negative zero correctly.
2399 * testsuite/26_numerics/headers/cmath/109758.cc: New test.
2400
2401 2023-05-10 François Dumont <fdumont@gcc.gnu.org>
2402
2403 * include/bits/hashtable_policy.h
2404 (_NodeBuilder<>::_S_build): Use __node_ptr.
2405 (_ReuseOrAllocNode<>): Use __node_ptr in place of __node_type*.
2406 (_AllocNode<>): Likewise.
2407 (_Equality<>::_M_equal): Remove const_iterator usages. Only preserved
2408 to call std::is_permutation in the non-unique key implementation.
2409 * include/bits/hashtable.h (_Hashtable<>::_M_update_begin()): Capture
2410 _M_begin() once.
2411 (_Hashtable<>::_M_bucket_begin(size_type)): Implement implicitly inline.
2412 (_Hashtable<>::_M_insert_bucket_begin): Likewise.
2413 (_Hashtable<>::_M_remove_bucket_begin): Likewise.
2414 (_Hashtable<>::_M_compute_hash_code): Use __node_ptr rather than
2415 const_iterator.
2416 (_Hashtable<>::find): Likewise.
2417 (_Hashtable<>::_M_emplace): Likewise.
2418 (_Hashtable<>::_M_insert_unique): Likewise.
2419
2420 2023-05-09 Jonathan Wakely <jwakely@redhat.com>
2421
2422 * python/libstdcxx/v6/printers.py (StdChronoDurationPrinter):
2423 Print floating-point durations correctly.
2424 (StdChronoTimePointPrinter): Support printing only the value,
2425 not the type name. Uncomment handling for known clocks.
2426 (StdChronoZonedTimePrinter): Remove type names from output.
2427 (StdChronoCalendarPrinter): Fix hh_mm_ss member access.
2428 (StdChronoTimeZonePrinter): Add equals sign to output.
2429 * testsuite/libstdc++-prettyprinters/chrono.cc: New test.
2430
2431 2023-05-05 Alexandre Oliva <oliva@adacore.com>
2432
2433 * testsuite/20_util/from_chars/4.cc: Skip long double test06
2434 on aarch64-vxworks.
2435 * testsuite/20_util/to_chars/long_double.cc: Xfail run on
2436 aarch64-vxworks.
2437
2438 2023-05-04 Jonathan Wakely <jwakely@redhat.com>
2439
2440 * doc/xml/manual/abi.xml (abi.versioning.history): Document
2441 libstdc++.so.6.0.32 and GLIBCXX_3.4.32 version.
2442 * doc/html/manual/abi.html: Regenerate.
2443
2444 2023-05-04 Florian Weimer <fweimer@redhat.com>
2445
2446 * doc/xml/manual/abi.xml (abi.versioning.history): Add
2447 GCC_7.0.0, GCC_9.0.0, GCC_11.0, GCC_12.0.0, GCC_13.0.0 for
2448 libgcc_s.
2449
2450 2023-05-03 Jakub Jelinek <jakub@redhat.com>
2451
2452 * src/c++17/floating_from_chars.cc
2453 (_ZSt10from_charsPKcS0_RDF128_St12chars_format): New alias to
2454 _ZSt10from_charsPKcS0_Ru9__ieee128St12chars_format.
2455 * src/c++17/floating_to_chars.cc (_ZSt8to_charsPcS_DF128_): New alias to
2456 _ZSt8to_charsPcS_u9__ieee128.
2457 (_ZSt8to_charsPcS_DF128_St12chars_format): New alias to
2458 _ZSt8to_charsPcS_u9__ieee128St12chars_format.
2459 (_ZSt8to_charsPcS_DF128_St12chars_formati): New alias to
2460 _ZSt8to_charsPcS_u9__ieee128St12chars_formati.
2461 * config/abi/post/powerpc64le-linux-gnu/baseline_symbols.txt: Updated.
2462
2463 2023-05-03 Jakub Jelinek <jakub@redhat.com>
2464
2465 * configure.host (abi_baseline_pair): Use powerpc64le-linux-gnu
2466 rather than powerpc64-linux-gnu for powerpc64le*-linux*.
2467 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Remove
2468 _ZTI*DF128_, _ZTI*DF64x symbols and symbols in
2469 GLIBCXX_IEEE128_3.4.{29,30,31} and CXXABI_IEEE128_1.3.13 symbol
2470 versions.
2471 * config/abi/post/powerpc64le-linux-gnu/baseline_symbols.txt: New
2472 file.
2473
2474 2023-05-03 Kefu Chai <kefu.chai@scylladb.com>
2475 Jonathan Wakely <jwakely@redhat.com>
2476
2477 PR libstdc++/109703
2478 * include/bits/basic_string.h (basic_string(Iter, Iter, Alloc)):
2479 Initialize _M_string_length.
2480
2481 2023-05-02 Jakub Jelinek <jakub@redhat.com>
2482
2483 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
2484 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
2485 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
2486 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
2487 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
2488 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
2489 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
2490 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
2491
2492 2023-05-02 Jakub Jelinek <jakub@redhat.com>
2493
2494 PR libstdc++/109694
2495 * src/c++98/ios_init.cc: Add #pragma GCC diagnostic ignored for
2496 -Wattribute-alias.
2497
2498 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
2499
2500 * include/bits/random.h (gamma_distribution): Add to the right
2501 doxygen group.
2502 (discrete_distribution, piecewise_constant_distribution)
2503 (piecewise_linear_distribution): Create a new doxygen group and
2504 fix the incomplete doxygen comments.
2505 * include/bits/uniform_int_dist.h (uniform_int_distribution):
2506 Add to doxygen group.
2507
2508 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
2509
2510 * include/bits/uses_allocator.h: Add missing @file comment.
2511 * include/bits/regex.tcc: Remove stray doxygen comments.
2512 * include/experimental/memory_resource: Likewise.
2513 * include/std/bit: Tweak doxygen @cond comments.
2514 * include/std/expected: Likewise.
2515 * include/std/numbers: Likewise.
2516
2517 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
2518
2519 * doc/doxygen/user.cfg.in (STRIP_FROM_PATH): Remove prefixes
2520 from header paths.
2521
2522 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
2523
2524 * include/bits/move.h: Simplify opening/closing namespace std.
2525
2526 2023-04-28 Jakub Jelinek <jakub@redhat.com>
2527
2528 PR libstdc++/108969
2529 * config/abi/pre/gnu.ver (GLIBCXX_3.4.32): Export
2530 _ZSt21ios_base_library_initv.
2531 * testsuite/util/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.32
2532 symver and make it the latestp.
2533 * src/c++98/ios_init.cc (ios_base_library_init): New alias.
2534 * acinclude.m4 (libtool_VERSION): Change to 6:32:0.
2535 * include/std/iostream: If init_priority attribute is supported
2536 and _GLIBCXX_SYMVER_GNU, force undefined _ZSt21ios_base_library_initv
2537 symbol into the object.
2538 * configure: Regenerated.
2539
2540 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
2541
2542 * include/bits/mofunc_impl.h: Fix typo in doxygen comment.
2543 * include/std/format: Likewise.
2544
2545 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
2546
2547 * doc/doxygen/user.cfg.in (FORMULA_TRANSPARENT, DOT_FONTNAME)
2548 (DOT_FONTSIZE, DOT_TRANSPARENT): Remove obsolete options.
2549
2550 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
2551
2552 * doc/doxygen/user.cfg.in (SOURCE_BROWSER): Only set to YES for
2553 HTML docs.
2554 * include/bits/gslice_array.h (_DEFINE_VALARRAY_OPERATOR): Omit
2555 from doxygen docs.
2556 * include/bits/indirect_array.h (_DEFINE_VALARRAY_OPERATOR):
2557 Likewise.
2558 * include/bits/mask_array.h (_DEFINE_VALARRAY_OPERATOR):
2559 Likewise.
2560 * include/bits/slice_array.h (_DEFINE_VALARRAY_OPERATOR):
2561 Likewise.
2562 * include/std/valarray (_DEFINE_VALARRAY_UNARY_OPERATOR)
2563 (_DEFINE_VALARRAY_AUGMENTED_ASSIGNMENT)
2564 (_DEFINE_VALARRAY_EXPR_AUGMENTED_ASSIGNMENT)
2565 (_DEFINE_BINARY_OPERATOR): Likewise.
2566
2567 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
2568
2569 * include/bits/memory_resource.h: Improve doxygen comments.
2570 * include/std/memory_resource: Likewise.
2571
2572 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
2573
2574 PR libstdc++/40380
2575 * include/bits/basic_string.h: Improve doxygen comments.
2576 * include/bits/cow_string.h: Likewise.
2577 * include/bits/forward_list.h: Likewise.
2578 * include/bits/fs_dir.h: Likewise.
2579 * include/bits/fs_path.h: Likewise.
2580 * include/bits/quoted_string.h: Likewise.
2581 * include/bits/stl_bvector.h: Likewise.
2582 * include/bits/stl_map.h: Likewise.
2583 * include/bits/stl_multimap.h: Likewise.
2584 * include/bits/stl_multiset.h: Likewise.
2585 * include/bits/stl_set.h: Likewise.
2586 * include/bits/stl_vector.h: Likewise.
2587 * include/bits/unordered_map.h: Likewise.
2588 * include/bits/unordered_set.h: Likewise.
2589 * include/std/filesystem: Likewise.
2590 * include/std/iomanip: Likewise.
2591
2592 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
2593
2594 PR libstdc++/105081
2595 * src/c++11/random.cc (__throw_syserr): New function.
2596 (random_device::_M_init, random_device::_M_init_pretr1): Use new
2597 function for bad tokens.
2598 (random_device::_M_getval): Use new function for read errors.
2599 * testsuite/util/testsuite_random.h (random_device_available):
2600 Change catch handler to use std::system_error.
2601
2602 2023-04-24 Patrick Palka <ppalka@redhat.com>
2603
2604 * include/bits/max_size_type.h (__max_diff_type::operator>>=):
2605 Fix propagation of sign bit.
2606 * testsuite/std/ranges/iota/max_size_type.cc: Avoid using the
2607 non-standard 'signed typedef-name'. Add some compile-time tests
2608 for right-shifting a negative __max_diff_type value by more than
2609 one.
2610
2611 2023-04-19 Patrick Palka <ppalka@redhat.com>
2612 Jonathan Wakely <jwakely@redhat.com>
2613
2614 PR c++/100157
2615 * include/bits/utility.h (_Nth_type): Conditionally define in
2616 terms of __type_pack_element if available.
2617 * testsuite/20_util/tuple/element_access/get_neg.cc: Prune
2618 additional errors from the new built-in.
2619
2620 2023-04-19 Jonathan Wakely <jwakely@redhat.com>
2621
2622 Revert:
2623 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
2624
2625 PR libstdc++/108969
2626 * src/Makefile.am: Move globals_io.cc to here.
2627 * src/Makefile.in: Regenerate.
2628 * src/c++98/Makefile.am: Remove globals_io.cc from here.
2629 * src/c++98/Makefile.in: Regenerate.
2630 * src/c++98/globals_io.cc [_GLIBCXX_SYMVER_GNU] (cin): Adjust
2631 symbol name and then export with GLIBCXX_3.4.31 symver.
2632 (cout, cerr, clog, wcin, wcout, wcerr, wclog): Likewise.
2633 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt:
2634 Regenerate.
2635 * config/abi/post/i486-linux-gnu/baseline_symbols.txt:
2636 Regenerate.
2637 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt:
2638 Regenerate.
2639 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
2640 Regenerate.
2641 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
2642 Regenerate.
2643 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
2644 Regenerate.
2645 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt:
2646 Regenerate.
2647 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt:
2648 Regenerate.
2649 * config/abi/pre/gnu.ver: Add iostream objects to new symver.
2650
2651 2023-04-19 Jonathan Wakely <jwakely@redhat.com>
2652
2653 Revert:
2654 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
2655
2656 PR libstdc++/108969
2657 * config/abi/pre/gnu.ver: Fix preprocessor condition.
2658
2659 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
2660
2661 * doc/xml/manual/extensions.xml: Fix example to declare and
2662 qualify std::free, and use NULL instead of 0.
2663 * doc/html/manual/ext_demangling.html: Regenerate.
2664 * libsupc++/cxxabi.h: Adjust doxygen comments.
2665
2666 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
2667
2668 PR libstdc++/108969
2669 * config/abi/pre/gnu.ver: Fix preprocessor condition.
2670
2671 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
2672
2673 PR libstdc++/108969
2674 * src/Makefile.am: Move globals_io.cc to here.
2675 * src/Makefile.in: Regenerate.
2676 * src/c++98/Makefile.am: Remove globals_io.cc from here.
2677 * src/c++98/Makefile.in: Regenerate.
2678 * src/c++98/globals_io.cc [_GLIBCXX_SYMVER_GNU] (cin): Adjust
2679 symbol name and then export with GLIBCXX_3.4.31 symver.
2680 (cout, cerr, clog, wcin, wcout, wcerr, wclog): Likewise.
2681 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt:
2682 Regenerate.
2683 * config/abi/post/i486-linux-gnu/baseline_symbols.txt:
2684 Regenerate.
2685 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt:
2686 Regenerate.
2687 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
2688 Regenerate.
2689 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
2690 Regenerate.
2691 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
2692 Regenerate.
2693 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt:
2694 Regenerate.
2695 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt:
2696 Regenerate.
2697 * config/abi/pre/gnu.ver: Add iostream objects to new symver.
2698
2699 2023-04-18 Patrick Palka <ppalka@redhat.com>
2700
2701 PR libstdc++/108827
2702 * include/bits/ranges_cmp.h (__cpp_lib_ranges): Bump value
2703 for C++23.
2704 * include/std/ranges (range_adaptor_closure): Define for C++23.
2705 * include/std/version (__cpp_lib_ranges): Bump value for
2706 C++23.
2707 * testsuite/std/ranges/version_c++23.cc: Bump expected value
2708 of __cpp_lib_ranges.
2709 * testsuite/std/ranges/range_adaptor_closure.cc: New test.
2710
2711 2023-04-18 Patrick Palka <ppalka@redhat.com>
2712
2713 * include/bits/ranges_algo.h (__cpp_lib_ranges_contains):
2714 Define for C++23.
2715 (__cpp_lib_ranges_iota): Likewise.
2716 (__cpp_lib_ranges_find_last): Likewise.
2717 (__cpp_lib_fold): Rename to ...
2718 (__cpp_lib_ranges_fold): ... this.
2719 * include/std/version: As above.
2720 * testsuite/25_algorithms/fold_left/1.cc: Adjust after
2721 renaming __cpp_lib_fold.
2722 * testsuite/std/ranges/version_c++23.cc: Verify values
2723 of the above feature-test macros.
2724
2725 2023-04-18 Patrick Palka <ppalka@redhat.com>
2726
2727 PR libstdc++/109525
2728 * include/std/ranges (views::_AsConst::operator()): Add
2729 missing const to constant_range test.
2730 * testsuite/std/ranges/adaptors/as_const/1.cc (test02):
2731 Improve formatting. Adjust expected type of v2.
2732 (test03): New test.
2733
2734 2023-04-14 Patrick Palka <ppalka@redhat.com>
2735
2736 * include/bits/ranges_base.h (const_iterator_t): Define for C++23.
2737 (const_sentinel_t): Likewise.
2738 (range_const_reference_t): Likewise.
2739 (constant_range): Likewise.
2740 (__cust_access::__possibly_const_range): Likewise, replacing ...
2741 (__cust_access::__as_const): ... this.
2742 (__cust_access::_CBegin::operator()): Redefine for C++23 as per P2278R4.
2743 (__cust_access::_CEnd::operator()): Likewise.
2744 (__cust_access::_CRBegin::operator()): Likewise.
2745 (__cust_access::_CREnd::operator()): Likewise.
2746 (__cust_access::_CData::operator()): Likewise.
2747 * include/bits/ranges_util.h (ranges::__detail::__different_from):
2748 Make it an alias of std::__detail::__different_from.
2749 (view_interface::cbegin): Define for C++23.
2750 (view_interface::cend): Likewise.
2751 * include/bits/stl_iterator.h (__detail::__different_from): Define.
2752 (iter_const_reference_t): Define for C++23.
2753 (__detail::__constant_iterator): Likewise.
2754 (__detail::__is_const_iterator): Likewise.
2755 (__detail::__not_a_const_iterator): Likewise.
2756 (__detail::__iter_const_rvalue_reference_t): Likewise.
2757 (__detail::__basic_const_iter_cat):: Likewise.
2758 (const_iterator): Likewise.
2759 (__detail::__const_sentinel): Likewise.
2760 (const_sentinel): Likewise.
2761 (basic_const_iterator): Likewise.
2762 (common_type<basic_const_iterator<_Tp>, _Up>): Likewise.
2763 (common_type<_Up, basic_const_iterator<_Tp>>): Likewise.
2764 (common_type<basic_const_iterator<_Tp>, basic_const_iterator<Up>>):
2765 Likewise.
2766 (make_const_iterator): Define for C++23.
2767 (make_const_sentinel): Likewise.
2768 * include/std/ranges (__cpp_lib_ranges_as_const): Likewise.
2769 (as_const_view): Likewise.
2770 (enable_borrowed_range<as_const_view>): Likewise.
2771 (views::__detail::__is_ref_view): Likewise.
2772 (views::__detail::__can_is_const_view): Likewise.
2773 (views::_AsConst, views::as_const): Likewise.
2774 * include/std/span (span::const_iterator): Likewise.
2775 (span::const_reverse_iterator): Likewise.
2776 (span::cbegin): Likewise.
2777 (span::cend): Likewise.
2778 (span::crbegin): Likewise.
2779 (span::crend): Likewise.
2780 * include/std/version (__cpp_lib_ranges_as_const): Likewise.
2781 * testsuite/std/ranges/adaptors/join.cc (test06): Adjust to
2782 behave independently of C++20 vs C++23.
2783 * testsuite/std/ranges/version_c++23.cc: Verify value of
2784 __cpp_lib_ranges_as_const macro.
2785 * testsuite/24_iterators/const_iterator/1.cc: New test.
2786 * testsuite/std/ranges/adaptors/as_const/1.cc: New test.
2787
2788 2023-04-14 Patrick Palka <ppalka@redhat.com>
2789
2790 * include/bits/ranges_base.h (__cust_access::__as_const)
2791 (__cust_access::_CBegin, __cust::cbegin)
2792 (__cust_access::_CEnd, __cust::cend)
2793 (__cust_access::_CRBegin, __cust::crbegin)
2794 (__cust_access::_CREnd, __cust::crend)
2795 (__cust_access::_CData, __cust::cdata): Move down definitions to
2796 shortly after the definition of input_range.
2797
2798 2023-04-14 Patrick Palka <ppalka@redhat.com>
2799
2800 * include/bits/ranges_algo.h: Include <optional> for C++23.
2801 (__cpp_lib_fold): Define for C++23.
2802 (in_value_result): Likewise.
2803 (__detail::__flipped): Likewise.
2804 (__detail::__indirectly_binary_left_foldable_impl): Likewise.
2805 (__detail::__indirectly_binary_left_foldable): Likewise.
2806 (___detail:__indirectly_binary_right_foldable): Likewise.
2807 (fold_left_with_iter_result): Likewise.
2808 (__fold_left_with_iter_fn, fold_left_with_iter): Likewise.
2809 (__fold_left_fn, fold_left): Likewise.
2810 (__fold_left_first_with_iter_fn, fold_left_first_with_iter):
2811 Likewise.
2812 (__fold_left_first_fn, fold_left_first): Likewise.
2813 (__fold_right_fn, fold_right): Likewise.
2814 (__fold_right_last_fn, fold_right_last): Likewise.
2815 * include/std/version (__cpp_lib_fold): Likewise.
2816 * testsuite/25_algorithms/fold_left/1.cc: New test.
2817 * testsuite/25_algorithms/fold_right/1.cc: New test.
2818
2819 2023-04-14 Jonathan Wakely <jwakely@redhat.com>
2820
2821 * include/std/format (formatter): Add comment to deleted default
2822 constructor of primary template.
2823 (_Checking_scanner): Add static_assert.
2824
2825 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
2826
2827 * doc/xml/manual/using.xml: Document libstdc++exp.a library.
2828 * doc/html/*: Regenerate.
2829
2830 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
2831
2832 * testsuite/17_intro/names.cc [_AIX]: Do not define policy.
2833 * testsuite/19_diagnostics/error_code/cons/lwg3629.cc: Rename
2834 namespace to avoid clashing with libc struct.
2835 * testsuite/19_diagnostics/error_condition/cons/lwg3629.cc:
2836 Likewise.
2837 * testsuite/23_containers/unordered_map/96088.cc: Skip on AIX.
2838 * testsuite/23_containers/unordered_multimap/96088.cc: Likewise.
2839 * testsuite/23_containers/unordered_multiset/96088.cc: Likewise.
2840 * testsuite/23_containers/unordered_set/96088.cc: Likewise.
2841 * testsuite/experimental/synchronized_value.cc: Require gthreads
2842 and add missing option for pthreads targets.
2843
2844 2023-04-12 Patrick Palka <ppalka@redhat.com>
2845
2846 * include/std/ranges (__cpp_lib_ranges_enumerate): Define
2847 for C++23.
2848 (__detail::__range_with_movable_reference): Likewise.
2849 (enumerate_view): Likewise.
2850 (enumerate_view::_Iterator): Likewise.
2851 (enumerate_view::_Sentinel): Likewise.
2852 (views::__detail::__can_enumerate_view): Likewise.
2853 (views::_Enumerate, views::enumerate): Likewise.
2854 * include/std/version (__cpp_lib_ranges_enumerate): Likewise.
2855 * testsuite/std/ranges/version_c++23.cc: Verify value of
2856 __cpp_lib_ranges_enumerate.
2857 * testsuite/std/ranges/adaptors/enumerate/1.cc: New test.
2858
2859 2023-04-12 Patrick Palka <ppalka@redhat.com>
2860
2861 * include/std/ranges (lazy_split_view::_OuterIter::_OuterIter):
2862 Propagate _M_trailing_empty in the const-converting constructor
2863 as per LWG 3904.
2864 * testsuite/std/ranges/adaptors/adjacent/1.cc (test04): Correct
2865 assertion.
2866 * testsuite/std/ranges/adaptors/lazy_split.cc (test12): New test.
2867
2868 2023-04-12 Patrick Palka <ppalka@redhat.com>
2869
2870 * src/c++17/floating_from_chars.cc: Include <algorithm>,
2871 <iterator>, <limits> and <cstdint>.
2872
2873 2023-04-12 Patrick Palka <ppalka@redhat.com>
2874
2875 PR libstdc++/108291
2876 * include/std/ranges (chunk_by_view::_M_find_next): Generalize
2877 parameter types of the lambda wrapper passed to adjacent_find.
2878 (chunk_by_view::_M_find_prev): Likewise.
2879 * testsuite/std/ranges/adaptors/chunk_by/1.cc (test04, test05):
2880 New tests.
2881
2882 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
2883
2884 PR libstdc++/109482
2885 * include/experimental/internet (basic_endpoint::basic_endpoint()):
2886 Ensure that the required union members are active. Only define
2887 as constexpr for C++20 and later.
2888 (basic_endpoint::basic_endpoint(const protocol_type&, port_type)):
2889 Likewise.
2890 * testsuite/experimental/net/internet/endpoint/cons.cc: Only
2891 check constexpr default constructor for C++20 and later.
2892 * testsuite/experimental/net/internet/endpoint/extensible.cc:
2893 Likewise.
2894
2895 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
2896
2897 * src/c++20/tzdata.zi: Import new file from 2023c release.
2898
2899 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
2900
2901 * include/precompiled/stdc++.h (C++17): Don't double-include
2902 <charconv>, once with wrong conditions.
2903 * testsuite/18_support/96817.cc: Require hosted.
2904 * testsuite/18_support/bad_exception/59392.cc: Ditto.
2905 * testsuite/20_util/scoped_allocator/108952.cc: Ditto.
2906 * testsuite/20_util/uses_allocator/lwg3527.cc: Ditto.
2907 * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
2908 Ditto.
2909
2910 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
2911
2912 * include/bits/c++config: When __STDC_HOSTED__ is zero,
2913 disable _GLIBCXX_DEBUG and, if it was set, enable
2914 _GLIBCXX_ASSERTIONS.
2915 * testsuite/lib/libstdc++.exp (check_v3_target_debug_mode):
2916 Include <bits/c++config.h> when determining whether debug is
2917 set, in order to inherit the logic from above
2918
2919 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
2920
2921 * testsuite/17_intro/versionconflict.cc: New test.
2922 * include/std/version: Allow disabling the system_header pragma
2923 via _GLIBCXX_TESTING_SYSHDR.
2924
2925 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
2926
2927 * include/bits/unique_ptr.h (__cpp_lib_constexpr_memory):
2928 Synchronize the definition block with...
2929 * include/bits/ptr_traits.h (__cpp_lib_constexpr_memory):
2930 ... this one here. Also define the 202202L value, rather than
2931 leaving it up to purely unique_ptr.h, so that the value is
2932 synchronized across all headers.
2933 (__gnu_debug::_Safe_iterator_base): Move into new conditional
2934 block.
2935 * include/std/memory (__cpp_lib_atomic_value_initialization):
2936 Define on freestanding under the same conditions as in
2937 atomic_base.h.
2938 * include/std/version (__cpp_lib_robust_nonmodifying_seq_ops):
2939 Also define on freestanding.
2940 (__cpp_lib_to_chars): Ditto.
2941 (__cpp_lib_gcd): Ditto.
2942 (__cpp_lib_gcd_lcm): Ditto.
2943 (__cpp_lib_raw_memory_algorithms): Ditto.
2944 (__cpp_lib_array_constexpr): Ditto.
2945 (__cpp_lib_nonmember_container_access): Ditto.
2946 (__cpp_lib_clamp): Ditto.
2947 (__cpp_lib_constexpr_char_traits): Ditto.
2948 (__cpp_lib_constexpr_string): Ditto.
2949 (__cpp_lib_sample): Ditto.
2950 (__cpp_lib_lcm): Ditto.
2951 (__cpp_lib_constexpr_iterator): Ditto.
2952 (__cpp_lib_constexpr_char_traits): Ditto.
2953 (__cpp_lib_interpolate): Ditto.
2954 (__cpp_lib_constexpr_utility): Ditto.
2955 (__cpp_lib_shift): Ditto.
2956 (__cpp_lib_ranges): Ditto.
2957 (__cpp_lib_move_iterator_concept): Ditto.
2958 (__cpp_lib_constexpr_numeric): Ditto.
2959 (__cpp_lib_constexpr_functional): Ditto.
2960 (__cpp_lib_constexpr_algorithms): Ditto.
2961 (__cpp_lib_constexpr_tuple): Ditto.
2962 (__cpp_lib_constexpr_memory): Ditto.
2963
2964 2023-04-05 John David Anglin <danglin@gcc.gnu.org>
2965
2966 * testsuite/22_locale/locale/cons/12658_thread-2.cc: Double
2967 timeout factor on hppa*-*-*.
2968
2969 2023-04-05 Jonathan Wakely <jwakely@redhat.com>
2970
2971 * include/bits/regex.h (sub_match::swap): New function.
2972 * testsuite/28_regex/sub_match/lwg3204.cc: New test.
2973
2974 2023-04-04 Jonathan Wakely <jwakely@redhat.com>
2975
2976 * doc/xml/manual/extensions.xml: Remove std::bad_exception from
2977 example program.
2978 * doc/html/manual/ext_demangling.html: Regenerate.
2979
2980 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
2981
2982 PR tree-optimization/107087
2983 * include/bits/cow_string.h (basic_string::size()): Add
2984 optimizer hint that _S_empty_rep()._M_length is always zero.
2985 (basic_string::length()): Call size().
2986
2987 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
2988
2989 PR libstdc++/109339
2990 * include/std/stop_token (_Stop_state_ptr(const stop_source&)):
2991 Add attribute access with access-mode 'none'.
2992 * testsuite/30_threads/stop_token/stop_source/109339.cc: New test.
2993
2994 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
2995
2996 * include/experimental/internet (ip::basic_endpoint::_M_if_v6):
2997 Revert change from member function to data member. Fix for
2998 constant evaluation by detecting which union member is active.
2999 (ip::basic_endpoint::resize): Revert changes to update _M_is_v6
3000 flag.
3001
3002 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
3003
3004 PR libstdc++/109242
3005 * testsuite/20_util/optional/monadic/pr109340.cc: Moved to...
3006 * testsuite/20_util/optional/monadic/pr109242.cc: ...here.
3007
3008 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
3009
3010 * include/experimental/internet (ip::make_address): Implement
3011 missing overload.
3012 (ip::address_v4::broadcast()): Avoid undefined shift.
3013 (ip::basic_endpoint): Fix member functions for constexpr.
3014 (ip::basic_endpoint::_M_is_v6): Replace member function with
3015 data member, adjust member functions using it.
3016 (ip::basic_endpoint::resize): Update _M_is_v6 based on sockaddr
3017 content.
3018 * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
3019 constexpr checks to work in C++14.
3020 * testsuite/experimental/net/internet/address/v4/creation.cc:
3021 Likewise.
3022 * testsuite/experimental/net/internet/endpoint/cons.cc:
3023 Likewise.
3024 * testsuite/experimental/net/internet/network/v4/cons.cc:
3025 Likewise.
3026 * testsuite/experimental/net/internet/network/v4/members.cc:
3027 Likewise.
3028 * testsuite/experimental/net/internet/endpoint/extensible.cc: New test.
3029
3030 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
3031
3032 * include/std/expected (expected::value() &): Use const lvalue
3033 for unex member passed to bad_expected_access constructor, as
3034 per LWG 3843.
3035
3036 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
3037
3038 PR libstdc++/109340
3039 * include/std/expected (expected::transform): Use
3040 std::remove_cv_t instead of std::remove_cvref_t.
3041 (expected::transform_error): Likewise.
3042 (expected<cv void, E>::transform): Likewise.
3043 (expected<cv void, E>::transform_error): Likewise.
3044 * include/std/optional (transform): Use std::remove_cv_t.
3045 * testsuite/20_util/optional/monadic/pr109340.cc: New test.
3046
3047 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
3048
3049 * include/std/optional (optional): Adjust static assertion to
3050 reject arrays and functions as well as references.
3051 * testsuite/20_util/optional/requirements_neg.cc: New test.
3052
3053 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
3054
3055 PR libstdc++/103387
3056 * include/bits/istream.tcc (istream::_M_extract(ValueT&)): Use
3057 std::use_facet instead of cached _M_num_get facet.
3058 (istream::operator>>(short&)): Likewise.
3059 (istream::operator>>(int&)): Likewise.
3060 * include/bits/ostream.tcc (ostream::_M_insert(ValueT)): Use
3061 std::use_facet instead of cached _M_num_put facet.
3062
3063 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
3064
3065 * include/bits/char_traits.h (char_traits::copy): Return without
3066 using memcpy if n==0.
3067 (char_traits::assign): Likewise for memset.
3068
3069 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
3070
3071 PR libstdc++/109299
3072 * include/bits/basic_string.h (basic_string::_M_is_local()): Add
3073 hint for compiler that local strings fit in the local buffer.
3074
3075 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
3076
3077 PR libstdc++/109288
3078 * include/std/chrono (__detail::__get_leap_second_info): Update
3079 expiry date of hardcoded leapseconds list.
3080 * src/c++20/tzdb.cc (tzdb_list::_Node::_S_read_leap_seconds()):
3081 Likewise.
3082 * src/c++20/tzdata.zi: Import new file from 2023a release.
3083 * testsuite/std/time/time_zone/get_info_local.cc: Only check
3084 transitions for Egypt up to 2014.
3085
3086 2023-03-28 Matthias Kretz <m.kretz@gsi.de>
3087
3088 * include/experimental/bits/simd.h (is_simd_flag_type): New.
3089 (_IsSimdFlagType): New.
3090 (copy_from, copy_to, load ctors): Constrain _Flags using
3091 _IsSimdFlagType.
3092
3093 2023-03-28 Matthias Kretz <m.kretz@gsi.de>
3094
3095 * include/experimental/bits/simd_x86.h (_SimdImplX86): Use
3096 _Base::_S_divides if the optimized _S_divides function is hidden
3097 via the preprocessor.
3098
3099 2023-03-27 Jakub Jelinek <jakub@redhat.com>
3100
3101 * testsuite/experimental/net/timer/waitable/dest.cc: Avoid -Wformat
3102 warning if size_t is not unsigned long.
3103
3104 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3105
3106 * include/bits/shared_ptr_atomic.h (atomic::operator=(nullptr_t)):
3107 Add overload, as per LWG 3893.
3108 * testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc:
3109 Check assignment from nullptr.
3110
3111 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3112
3113 * include/std/format (formatter<const charT[N], charT>): Do not
3114 define partial speclialization, as per LWG 3833.
3115 * testsuite/std/format/formatter/requirements.cc: Check it.
3116
3117 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3118
3119 * include/std/utility (__cpp_lib_constexpr_algorithms): Define,
3120 as per LWG 3792.
3121 * testsuite/20_util/exchange/constexpr.cc: Check for it.
3122
3123 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3124
3125 * include/std/version (__cpp_lib_format): Define.
3126 * testsuite/std/format/functions/format.cc: Check it.
3127
3128 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3129
3130 * include/bits/basic_string.tcc (basic_string::resize_and_overwrite):
3131 Pass rvalues to the callback, as now allowed by LWG 3645.
3132 Enforce preconditions on the return value.
3133 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
3134 Adjust.
3135
3136 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3137
3138 * include/std/format: Add a comment noting that the resolution
3139 of LWG 3720 has been applied..
3140
3141 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3142
3143 * include/bits/regex.h (match_results): Add allocator-extended
3144 copy and move constructors, as per LWG 2195.
3145 * testsuite/28_regex/match_results/ctors/char/alloc.cc: New test.
3146
3147 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
3148
3149 * include/bits/stream_iterator.h (istream_iterator): Add
3150 constexpr to copy constructor, as per LWG 3600.
3151 * testsuite/24_iterators/istream_iterator/cons/constexpr.cc:
3152 Check copy construction.
3153
3154 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
3155
3156 * include/experimental/bits/simd_x86.h
3157 (_SimdImplX86::_S_divides): Replace test for __GCC_IEC_559 == 0
3158 with __RECIPROCAL_MATH__.
3159
3160 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
3161
3162 * include/experimental/bits/simd_detail.h: Don't define
3163 _GLIBCXX_SIMD_WORKAROUND_PR90993 for Clang.
3164 * include/experimental/bits/simd_x86.h (_S_divides): Remove
3165 check for __clang__.
3166
3167 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
3168
3169 * include/experimental/bits/simd_detail.h: Don't declare the
3170 simd API as constexpr with Clang.
3171 * include/experimental/bits/simd_x86.h (__movm): New.
3172 (_S_blend_avx512): Resolve FIXME. Implement blend using __movm
3173 and ?:.
3174 (_SimdImplX86::_S_masked_unary): Clang does not implement the
3175 same builtins. Implement the function using __movm, ?:, and -
3176 operators on vector_size types instead.
3177
3178 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
3179
3180 * testsuite/experimental/simd/tests/operators.cc: Clang doesn't
3181 define __GCC_IEC_559. Use __STDC_IEC_559__ instead.
3182
3183 2023-03-20 Jonathan Wakely <jwakely@redhat.com>
3184
3185 * src/filesystem/ops-common.h (get_temp_directory_from_env): Fix
3186 formatting.
3187
3188 2023-03-20 Marek Polacek <polacek@redhat.com>
3189
3190 PR c++/109159
3191 * testsuite/20_util/pair/cons/explicit_construct.cc: Adjust dg-error.
3192 * testsuite/20_util/tuple/cons/explicit_construct.cc: Likewise.
3193 * testsuite/23_containers/span/explicit.cc: Likewise.
3194
3195 2023-03-20 Jonathan Wakely <jwakely@redhat.com>
3196
3197 PR libstdc++/109182
3198 * include/std/expected (expected<void>::expected(in_place_t)):
3199 Remove template-head.
3200
3201 2023-03-18 Jonathan Wakely <jwakely@redhat.com>
3202
3203 PR libstdc++/109165
3204 * testsuite/18_support/coroutines/hash.cc: Use const object
3205 in second call.
3206
3207 2023-03-17 Jonathan Wakely <jwakely@redhat.com>
3208
3209 PR libstdc++/109165
3210 * include/std/coroutine (hash<>::operator()): Add const.
3211 * testsuite/18_support/coroutines/hash.cc: New test.
3212
3213 2023-03-14 Patrick Palka <ppalka@redhat.com>
3214
3215 PR libstdc++/109111
3216 * include/std/ranges (repeat_view): Remove redundant parentheses
3217 in requires-clause.
3218 (repeat_view::_Iterator): Correct the requires-clause.
3219
3220 2023-03-14 Patrick Palka <ppalka@redhat.com>
3221
3222 * include/bits/stl_iterator.h (move_iterator::_S_iter_concept):
3223 Define.
3224 (__cpp_lib_move_iterator_concept): Define for C++20.
3225 (move_iterator::iterator_concept): Strengthen as per P2520R0.
3226 * include/std/version (__cpp_lib_move_iterator_concept): Define
3227 for C++20.
3228 * testsuite/24_iterators/move_iterator/p2520r0.cc: New test.
3229
3230 2023-03-14 Patrick Palka <ppalka@redhat.com>
3231
3232 * include/bits/ranges_util.h (view_interface::empty): Add
3233 preferred overloads that use ranges::size when the range is
3234 sized as per LWG 3715.
3235 * testsuite/std/ranges/adaptors/lwg3715.cc: New test.
3236
3237 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
3238
3239 * include/bits/chrono.h (__is_duration_v, __is_time_point_v):
3240 Only define for C++17 and later.
3241
3242 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
3243
3244 * src/Makefile.am: Add comment about linker script fragments.
3245 * src/Makefile.in: Regenerate.
3246
3247 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
3248
3249 PR libstdc++/62196
3250 * include/bits/mask_array.h (mask_array): Add assertions to
3251 assignment operators.
3252 * include/std/valarray (valarray::operator[](valarray<bool>)):
3253 Add assertions.
3254 * testsuite/26_numerics/valarray/mask-1_neg.cc: New test.
3255 * testsuite/26_numerics/valarray/mask-2_neg.cc: New test.
3256 * testsuite/26_numerics/valarray/mask-3_neg.cc: New test.
3257 * testsuite/26_numerics/valarray/mask-4_neg.cc: New test.
3258 * testsuite/26_numerics/valarray/mask-5_neg.cc: New test.
3259 * testsuite/26_numerics/valarray/mask-6_neg.cc: New test.
3260 * testsuite/26_numerics/valarray/mask-7_neg.cc: New test.
3261 * testsuite/26_numerics/valarray/mask-8_neg.cc: New test.
3262 * testsuite/26_numerics/valarray/mask.cc: New test.
3263
3264 2023-03-13 Jakub Jelinek <jakub@redhat.com>
3265
3266 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
3267 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
3268
3269 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
3270
3271 * doc/Makefile.am: Add comment referring to documentation.
3272 * doc/Makefile.in: Regenerate.
3273
3274 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
3275
3276 * doc/html/*: Regenerate.
3277
3278 2023-03-13 Jonny Grant <jg@jguk.org>
3279
3280 * doc/xml/faq.xml: Update copyright year.
3281
3282 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
3283
3284 * include/bits/allocator.h: Fix typo in comment.
3285
3286 2023-03-12 Jakub Jelinek <jakub@redhat.com>
3287
3288 * config/abi/pre/gnu.ver (CXXABI_1.3.14): Also export __bf16 tinfos
3289 if it isn't mangled as DF16b but u6__bf16.
3290
3291 2023-03-12 Gerald Pfeifer <gerald@pfeifer.com>
3292
3293 * doc/xml/manual/documentation_hacking.xml: Move www.graphviz.org
3294 to https.
3295 * doc/html/manual/documentation_hacking.html: Regenerate.
3296
3297 2023-03-10 Jonathan Wakely <jwakely@redhat.com>
3298
3299 PR libstdc++/109064
3300 * python/libstdcxx/v6/xmethods.py (SharedPtrUseCountWorker):
3301 Remove self-recursion in __init__. Add missing _supports.
3302 * testsuite/libstdc++-xmethods/shared_ptr.cc: Check use_count()
3303 and unique().
3304
3305 2023-03-09 Patrick Palka <ppalka@redhat.com>
3306
3307 * include/std/ranges
3308 (cartesian_product_view::_Iterator::_Iterator): Remove
3309 constraint on default constructor as per LWG 3849.
3310 (cartesian_product_view::_Iterator::_M_prev): Adjust position
3311 of _Nm > 0 test as per LWG 3820.
3312 (cartesian_product_view::_Iterator::_M_advance): Perform bounds
3313 checking only on sized cartesian products.
3314 * testsuite/std/ranges/cartesian_product/1.cc (test08): New test.
3315
3316 2023-03-09 Patrick Palka <ppalka@redhat.com>
3317
3318 PR libstdc++/109024
3319 * include/std/ranges (chunk_by_view::_M_pred): Remove DMI as per
3320 LWG 3796.
3321 (repeat_view::_M_pred): Likewise.
3322 * testsuite/std/ranges/adaptors/chunk_by/1.cc (test03): New test.
3323 * testsuite/std/ranges/repeat/1.cc (test05): New test.
3324
3325 2023-03-09 Patrick Palka <ppalka@redhat.com>
3326
3327 PR libstdc++/108362
3328 * include/std/ranges (__detail::__can_single_view): New concept.
3329 (_Single::operator()): Constrain it. Move [[nodiscard]] to the
3330 end of the function declarator.
3331 (__detail::__can_iota_view): New concept.
3332 (_Iota::operator()): Constrain it. Move [[nodiscard]] to the
3333 end of the function declarator.
3334 (__detail::__can_istream_view): New concept.
3335 (_Istream::operator()): Constrain it. Move [[nodiscard]] to the
3336 end of the function declarator.
3337 * testsuite/std/ranges/iota/iota_view.cc (test07): New test.
3338 * testsuite/std/ranges/istream_view.cc (test08): New test.
3339 * testsuite/std/ranges/single_view.cc (test07): New test.
3340
3341 2023-03-09 Patrick Palka <ppalka@redhat.com>
3342
3343 PR libstdc++/107572
3344 * include/std/ranges (cartesian_product_view::end): When
3345 building the tuple of iterators, avoid calling ranges::begin on
3346 the first range if __empty_tail is false.
3347 * testsuite/std/ranges/cartesian_product/1.cc (test07): New test.
3348
3349 2023-03-09 Jonathan Wakely <jwakely@redhat.com>
3350
3351 PR libstdc++/108882
3352 * config/os/gnu-linux/ldbl-ieee128-extra.ver: Fix incorrect
3353 patterns.
3354
3355 2023-03-07 Jakub Jelinek <jakub@redhat.com>
3356
3357 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
3358 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
3359 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
3360 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
3361 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
3362
3363 2023-03-07 Jonathan Wakely <jwakely@redhat.com>
3364
3365 PR libstdc++/108882
3366 * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Adjust patterns to
3367 not match symbols in namespace std::__gnu_cxx11_ieee128.
3368 * config/os/gnu-linux/ldbl-ieee128-extra.ver: Add patterns for
3369 std::__gnu_cxx11_ieee128::money_{get,put}.
3370
3371 2023-03-07 Jonathan Wakely <jwakely@redhat.com>
3372
3373 * libsupc++/eh_personality.cc: Fix spelling in comment.
3374
3375 2023-03-03 Alexandre Oliva <oliva@adacore.com>
3376
3377 * testsuite/30_threads/async/async.cc (test04): Initialize
3378 steady_start, renamed from steady_begin, next to slow_start.
3379 Increase tolerance for final wait.
3380
3381 2023-03-03 Alexandre Oliva <oliva@adacore.com>
3382
3383 * testsuite/libstdc++-prettyprinters/80276.cc: Add
3384 std::string to debug info.
3385 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
3386
3387 2023-03-03 Alexandre Oliva <oliva@adacore.com>
3388
3389 PR libstdc++/104852
3390 PR libstdc++/95989
3391 PR libstdc++/52590
3392 * include/bits/std_thread.h (thread::_M_thread_deps): New
3393 static implicitly-inline member function.
3394 (std::thread template ctor): Pass it to _M_start_thread.
3395 * src/c++11/thread.cc (thread::_M_start_thread): Name depend
3396 parameter, force it live on entry.
3397
3398 2023-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3399
3400 * config/abi/post/i386-solaris/baseline_symbols.txt: Regenerate.
3401 * config/abi/post/i386-solaris/amd64/baseline_symbols.txt:
3402 Likewise.
3403 * config/abi/post/sparc-solaris/baseline_symbols.txt: Likewise.
3404 * config/abi/post/sparc-solaris/sparcv9/baseline_symbols.txt:
3405 Likewise.
3406
3407 2023-03-01 Jonathan Wakely <jwakely@redhat.com>
3408
3409 * include/bits/cow_string.h: Fix typo in comment.
3410
3411 2023-03-01 Jonathan Wakely <jwakely@redhat.com>
3412
3413 * src/c++20/tzdb.cc (chrono::tzdb::current_zone()) Use "UTC" if
3414 current time zone cannot be determined.
3415 * testsuite/std/time/tzdb/1.cc: Remove conditions based on
3416 HAVE_TZDB macro and test all members unconditionally.
3417
3418 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
3419
3420 PR libstdc++/108952
3421 * include/bits/uses_allocator_args.h
3422 (uses_allocator_construction_args): Implement LWG 3527.
3423 * testsuite/20_util/pair/astuple/get-2.cc: New test.
3424 * testsuite/20_util/scoped_allocator/108952.cc: New test.
3425 * testsuite/20_util/uses_allocator/lwg3527.cc: New test.
3426
3427 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
3428
3429 PR libstdc++/108846
3430 * include/bits/stl_algobase.h (__copy_move<false, false, RA>)
3431 Add __assign_one static member function.
3432 (__copy_move<true, false, RA>): Likewise.
3433 (__copy_move<IsMove, true, RA>): Do not use memmove for a single
3434 value.
3435 (__copy_move_backward<IsMove, true, RA>): Likewise.
3436 * testsuite/25_algorithms/copy/108846.cc: New test.
3437 * testsuite/25_algorithms/copy_backward/108846.cc: New test.
3438 * testsuite/25_algorithms/copy_n/108846.cc: New test.
3439 * testsuite/25_algorithms/move/108846.cc: New test.
3440 * testsuite/25_algorithms/move_backward/108846.cc: New test.
3441
3442 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
3443
3444 * src/c++11/codecvt.cc: Add [[likely]] and [[unlikely]]
3445 attributes.
3446
3447 2023-02-27 Jonathan Wakely <jwakely@redhat.com>
3448
3449 * include/bits/basic_ios.h (basic_ios::_M_setstate): Add
3450 caveat to comment.
3451 * include/bits/basic_string.h (resize_and_overwrite): Add
3452 doxygen comment.
3453
3454 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
3455
3456 * include/experimental/bits/simd.h: Line breaks and indenting
3457 fixed to follow the libstdc++ standard.
3458 * include/experimental/bits/simd_builtin.h: Likewise.
3459 * include/experimental/bits/simd_fixed_size.h: Likewise.
3460 * include/experimental/bits/simd_neon.h: Likewise.
3461 * include/experimental/bits/simd_ppc.h: Likewise.
3462 * include/experimental/bits/simd_scalar.h: Likewise.
3463 * include/experimental/bits/simd_x86.h: Likewise.
3464
3465 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
3466
3467 PR libstdc++/108030
3468 * include/experimental/bits/simd_fixed_size.h
3469 (_SimdImplFixedSize::_S_broadcast): Replace inline with
3470 _GLIBCXX_SIMD_INTRINSIC.
3471 (_SimdImplFixedSize::_S_generate): Likewise.
3472 (_SimdImplFixedSize::_S_load): Likewise.
3473 (_SimdImplFixedSize::_S_masked_load): Likewise.
3474 (_SimdImplFixedSize::_S_store): Likewise.
3475 (_SimdImplFixedSize::_S_masked_store): Likewise.
3476 (_SimdImplFixedSize::_S_min): Likewise.
3477 (_SimdImplFixedSize::_S_max): Likewise.
3478 (_SimdImplFixedSize::_S_complement): Likewise.
3479 (_SimdImplFixedSize::_S_unary_minus): Likewise.
3480 (_SimdImplFixedSize::_S_plus): Likewise.
3481 (_SimdImplFixedSize::_S_minus): Likewise.
3482 (_SimdImplFixedSize::_S_multiplies): Likewise.
3483 (_SimdImplFixedSize::_S_divides): Likewise.
3484 (_SimdImplFixedSize::_S_modulus): Likewise.
3485 (_SimdImplFixedSize::_S_bit_and): Likewise.
3486 (_SimdImplFixedSize::_S_bit_or): Likewise.
3487 (_SimdImplFixedSize::_S_bit_xor): Likewise.
3488 (_SimdImplFixedSize::_S_bit_shift_left): Likewise.
3489 (_SimdImplFixedSize::_S_bit_shift_right): Likewise.
3490 (_SimdImplFixedSize::_S_remquo): Add inline keyword (to be
3491 explicit about not always-inline, yet).
3492 (_SimdImplFixedSize::_S_isinf): Likewise.
3493 (_SimdImplFixedSize::_S_isfinite): Likewise.
3494 (_SimdImplFixedSize::_S_isnan): Likewise.
3495 (_SimdImplFixedSize::_S_isnormal): Likewise.
3496 (_SimdImplFixedSize::_S_signbit): Likewise.
3497
3498 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
3499
3500 PR libstdc++/108856
3501 * include/experimental/bits/simd_builtin.h
3502 (_SimdImplBuiltin::_S_masked_unary): More efficient
3503 implementation of masked inc-/decrement for integers and floats
3504 without AVX2.
3505 * include/experimental/bits/simd_x86.h
3506 (_SimdImplX86::_S_masked_unary): New. Use AVX512 masked subtract
3507 builtins for masked inc-/decrement.
3508
3509 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3510
3511 * include/experimental/executor (executor): Constrain template
3512 constructors.
3513
3514 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3515
3516 * include/experimental/internet (basic_endpoint): Add missing
3517 constexpr to comparison operators.
3518 * testsuite/experimental/net/internet/endpoint/cons.cc: New test.
3519
3520 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3521
3522 * include/experimental/internet (network_v4::netmask()): Avoid
3523 undefined shift.
3524 (network_v4::broadcast()): Optimize and fix for targets with
3525 uint_least32_t wider than 32 bits.
3526 (network_v4::to_string(const Allocator&)): Fix for custom
3527 allocators and optimize using to_chars.
3528 (operator==(const network_v4&, const network_v4&)): Add missing
3529 constexpr.
3530 (operator==(const network_v6&, const network_v6&)): Likewise.
3531 * testsuite/experimental/net/internet/network/v4/cons.cc: New test.
3532 * testsuite/experimental/net/internet/network/v4/members.cc: New test.
3533
3534 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3535
3536 * include/experimental/internet (address_4(const bytes_type&)):
3537 Use __builtin_bit_cast if available, otherwise convert to
3538 network byte order.
3539 (address_v4::to_bytes()): Likewise, but convert from network
3540 byte order.
3541 * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
3542 incorrect tests. Check for constexpr too.
3543 * testsuite/experimental/net/internet/address/v4/creation.cc:
3544 Likewise.
3545 * testsuite/experimental/net/internet/address/v4/members.cc:
3546 Check that bytes_type is a standard-layout type.
3547
3548 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3549
3550 * include/experimental/internet (address_v4::to_string):
3551 Optimize.
3552 * testsuite/experimental/net/internet/address/v4/members.cc:
3553 Check more addresses.
3554
3555 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3556
3557 * include/ext/aligned_buffer.h (__aligned_buffer): Add
3558 diagnostic pragmas.
3559
3560 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
3561
3562 * testsuite/std/format/arguments/lwg3810.cc: Move dg-options
3563 before dg-do.
3564
3565 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
3566
3567 * testsuite/experimental/simd/tests/reductions.cc: Introduce
3568 max_distance as the type-dependent max error.
3569
3570 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
3571
3572 * include/experimental/bits/simd_builtin.h (_S_set): Compare as
3573 int. The actual range of these indexes is very small.
3574
3575 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
3576
3577 * include/experimental/bits/simd_x86.h (_S_bit_shift_left)
3578 (_S_bit_shift_right): Declare constexpr. The implementation was
3579 already expecting constexpr evaluation.
3580
3581 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
3582
3583 PR libstdc++/108030
3584 * include/experimental/bits/simd_detail.h
3585 (_GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA): Define as empty for
3586 __clang__.
3587
3588 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
3589
3590 PR libstdc++/108030
3591 * include/experimental/bits/simd.h (__vector_broadcast):
3592 Implement via __vector_broadcast_impl instead of
3593 __call_with_n_evaluations + 2 lambdas.
3594 (__vector_broadcast_impl): New.
3595
3596 2023-02-22 Alexandre Oliva <oliva@adacore.com>
3597
3598 * src/c++11/shared_ptr.cc (__gnu_internal::get_mutex):
3599 Avoid destruction of the mutex pool.
3600
3601 2023-02-22 Alexandre Oliva <oliva@adacore.com>
3602
3603 * testsuite/27_io/basic_ofstream/open/char/noreplace.cc: xfail
3604 on vxworks.
3605 * testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc:
3606 Likewise.
3607
3608 2023-02-22 Alexandre Oliva <oliva@adacore.com>
3609
3610 * testsuite/17_intro/names.cc: Undef func on vxworks >= 7 in
3611 kernel mode.
3612
3613 2023-02-20 Andreas Schwab <schwab@linux-m68k.org>
3614
3615 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
3616
3617 2023-02-20 Matthias Kretz <m.kretz@gsi.de>
3618
3619 * include/experimental/bits/simd.h (__extract_part, split):
3620 Use reserved name for template parameter.
3621
3622 2023-02-20 Andreas Schwab <schwab@suse.de>
3623
3624 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
3625
3626 2023-02-18 Gerald Pfeifer <gerald@pfeifer.com>
3627
3628 * doc/xml/faq.xml: Switch two links to www.open-std.org to https.
3629 * doc/html/faq.html: Regenerate.
3630
3631 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
3632
3633 * include/experimental/bits/simd_math.h (__hypot): Bitcasting
3634 between scalars requires the __bit_cast helper function instead
3635 of simd_bit_cast.
3636
3637 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
3638
3639 * include/experimental/bits/simd_x86.h
3640 (_SimdImplX86::_S_not_equal_to, _SimdImplX86::_S_less)
3641 (_SimdImplX86::_S_less_equal): Do not call
3642 __builtin_is_constant_evaluated in constexpr-if.
3643
3644 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
3645
3646 * testsuite/experimental/simd/tests/bits/verify.h
3647 (verify::verify): Use %zx for size_t in format string.
3648
3649 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
3650
3651 * testsuite/experimental/simd/generate_makefile.sh: Generate and
3652 pre-compile pch.h, which includes all headers that do not depend
3653 on command-line macros.
3654 * testsuite/experimental/simd/tests/bits/main.h: New file.
3655 (iterate_abis, main): Moved from verify.h.
3656 * testsuite/experimental/simd/tests/bits/verify.h
3657 (iterate_abis, main): Moved to main.h.
3658 * testsuite/experimental/simd/tests/bits/conversions.h: Add
3659 include guard.
3660 (genHalfBits): Simplify.
3661 * testsuite/experimental/simd/tests/bits/make_vec.h: Add include
3662 guard.
3663 (make_alternating_mask): Moved from mask_loadstore.
3664 * testsuite/experimental/simd/tests/bits/mathreference.h: Add
3665 include guard.
3666 * testsuite/experimental/simd/tests/bits/test_values.h: Ditto.
3667 * testsuite/experimental/simd/tests/mask_loadstore.cc
3668 (make_mask, make_alternating_mask): Removed.
3669 * testsuite/experimental/simd/tests/mask_reductions.cc: Ditto.
3670 * testsuite/experimental/simd/tests/operators.cc (genHalfBits):
3671 Removed.
3672 * testsuite/experimental/simd/tests/abs.cc: Only include
3673 bits/main.h.
3674 Ditto.
3675 * testsuite/experimental/simd/tests/algorithms.cc: Ditto.
3676 * testsuite/experimental/simd/tests/broadcast.cc: Ditto.
3677 * testsuite/experimental/simd/tests/casts.cc: Ditto.
3678 * testsuite/experimental/simd/tests/fpclassify.cc: Ditto.
3679 * testsuite/experimental/simd/tests/frexp.cc: Ditto.
3680 * testsuite/experimental/simd/tests/generator.cc: Ditto.
3681 * testsuite/experimental/simd/tests/hypot3_fma.cc: Ditto.
3682 * testsuite/experimental/simd/tests/integer_operators.cc: Ditto.
3683 * testsuite/experimental/simd/tests/ldexp_scalbn_scalbln_modf.cc:
3684 * testsuite/experimental/simd/tests/loadstore.cc: Ditto.
3685 * testsuite/experimental/simd/tests/logarithm.cc: Ditto.
3686 * testsuite/experimental/simd/tests/mask_broadcast.cc: Ditto.
3687 * testsuite/experimental/simd/tests/mask_conversions.cc: Ditto.
3688 * testsuite/experimental/simd/tests/mask_implicit_cvt.cc: Ditto.
3689 * testsuite/experimental/simd/tests/mask_operator_cvt.cc: Ditto.
3690 * testsuite/experimental/simd/tests/mask_operators.cc: Ditto.
3691 * testsuite/experimental/simd/tests/math_1arg.cc: Ditto.
3692 * testsuite/experimental/simd/tests/math_2arg.cc: Ditto.
3693 * testsuite/experimental/simd/tests/operator_cvt.cc: Ditto.
3694 * testsuite/experimental/simd/tests/reductions.cc: Ditto.
3695 * testsuite/experimental/simd/tests/remqo.cc: Ditto.
3696 * testsuite/experimental/simd/tests/simd.cc: Ditto.
3697 * testsuite/experimental/simd/tests/sincos.cc: Ditto.
3698 * testsuite/experimental/simd/tests/split_concat.cc: Ditto.
3699 * testsuite/experimental/simd/tests/splits.cc: Ditto.
3700 * testsuite/experimental/simd/tests/trigonometric.cc: Ditto.
3701 * testsuite/experimental/simd/tests/trunc_ceil_floor.cc: Ditto.
3702 * testsuite/experimental/simd/tests/where.cc: Ditto.
3703
3704 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
3705
3706 * testsuite/experimental/simd/README.md: Document the timeout
3707 and timeout-factor directives. Minor typo fixed.
3708
3709 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
3710
3711 PR libstdc++/108030
3712 * include/experimental/bits/simd_detail.h: Define
3713 _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
3714 * include/experimental/bits/simd.h: Annotate lambdas with
3715 _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
3716 * include/experimental/bits/simd_builtin.h: Ditto.
3717 * include/experimental/bits/simd_converter.h: Ditto.
3718 * include/experimental/bits/simd_fixed_size.h: Ditto.
3719 * include/experimental/bits/simd_math.h: Ditto.
3720 * include/experimental/bits/simd_neon.h: Ditto.
3721 * include/experimental/bits/simd_x86.h: Ditto.
3722
3723 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
3724
3725 * include/experimental/bits/simd.h
3726 (_SimdWrapper::_M_is_constprop_none_of)
3727 (_SimdWrapper::_M_is_constprop_all_of): Return false unless the
3728 computed result still satisfies __builtin_constant_p.
3729
3730 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
3731
3732 * testsuite/std/format/arguments/lwg3810.cc: Replace UTF-8
3733 ellipsis character.
3734
3735 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
3736
3737 * include/Makefile.am: Add new header.
3738 * include/Makefile.in: Regenerate.
3739 * include/experimental/synchronized_value: New file.
3740 * testsuite/experimental/synchronized_value.cc: New test.
3741
3742 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
3743
3744 * include/experimental/optional: Fix header name in comment.
3745
3746 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
3747
3748 * include/std/format (__format::_Arg_store): New class template.
3749 (basic_format_args): Remove nested type _Store and add deduction
3750 guide from _Arg_store.
3751 (basic_format_arg, make_format_args): Adjust.
3752 * testsuite/std/format/arguments/lwg3810.cc: New test.
3753
3754 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
3755
3756 * include/bits/stl_pair.h (pair) [C++20]: Add non-dangling
3757 constraints to constructors and add deleted overloads for the
3758 dangling cases, as per P2255R2.
3759 (pair) [!C++20 && _GLIBCXX_DEBUG]: Add static assertions to
3760 make dangling cases ill-formed.
3761 * testsuite/20_util/pair/dangling_ref.cc: New test.
3762
3763 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
3764
3765 * testsuite/17_intro/names_pstl.cc: Require et tbb_backend.
3766
3767 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
3768
3769 * include/ext/throw_allocator.h: Use reserved names for
3770 parameters.
3771
3772 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
3773
3774 * testsuite/17_intro/names_pstl.cc: Add space after effective
3775 target name.
3776
3777 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
3778
3779 * include/pstl/algorithm_fwd.h (__pattern_search_n)
3780 (__brick_unique_copy, __brick_adjacent_find)
3781 (__brick_generate_n, __pattern_generate_n): Use reserved names
3782 for parameters.
3783 * include/pstl/algorithm_impl.h (__brick_unique_copy)
3784 (__pattern_reverse, __brick_generate_n): Likewise.
3785 * include/pstl/execution_impl.h (__prefer_unsequenced_tag)
3786 (__prefer_parallel_tag): Likewise.
3787 * include/pstl/glue_algorithm_impl.h (transform): Likewise.
3788 * include/pstl/glue_numeric_defs.h (adjacent_difference):
3789 Likewise.
3790 * include/pstl/numeric_impl.h (__brick_adjacent_difference):
3791 Likewise.
3792 * include/pstl/parallel_backend_tbb.h (__merge_func): Likewise.
3793 * include/pstl/unseq_backend_simd.h (_Combiner)
3794 (__simd_min_element, __simd_minmax_element): Likewise.
3795 * testsuite/17_intro/names_pstl.cc: New test.
3796
3797 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
3798
3799 * include/bits/fs_ops.h (create_directory): Use reserved name
3800 for parameter.
3801 * include/bits/ranges_algo.h (__contains_subrange_fn):
3802 Likewise.
3803 * include/bits/regex_automaton.h (_State_base::_M_print):
3804 Likewise.
3805 * include/bits/regex_automaton.tcc(_State_base::_M_print):
3806 Likewise.
3807 * include/bits/regex_scanner.tcc(_Scanner::_M_print): Likewise.
3808 * include/experimental/bits/fs_ops.h (create_directory):
3809 Likewise.
3810 * include/std/mutex (timed_mutex::_M_clocklock): Likewise.
3811 (recursive_timed_mutex:_M_clocklock): Likewise.
3812 * include/std/tuple (basic_common_reference): Likewise.
3813 * libsupc++/cxxabi_init_exception.h
3814 (__cxa_init_primary_exception): Likewise.
3815 * testsuite/17_intro/names.cc: Add checks.
3816
3817 2023-02-14 Gerald Pfeifer <gerald@pfeifer.com>
3818
3819 * doc/xml/manual/status_cxx2017.xml: Update an open-std.org link
3820 to www.open-std.org and https.
3821 * doc/html/manual/status.html: Regenerate.
3822
3823 2023-02-14 Thomas W Rodgers <rodgert@twrodgers.com>
3824
3825 PR libstdc++/103934
3826 * include/std/atomic (atomic_flag_wait): Add.
3827 (atomic_flag_wait_explicit): Add.
3828 (atomic_flag_notify): Add.
3829 (atomic_flag_notify_explicit): Add.
3830 * testsuite/29_atomics/atomic_flag/wait_notify/1.cc:
3831 Add test case to cover missing atomic_flag free functions.
3832
3833 2023-02-14 Thomas W Rodgers <rodgert@twrodgers.com>
3834
3835 PR libstdc++/103934
3836 * include/std/atomic (atomic_flag_test): Add.
3837 (atomic_flag_test_explicit): Add.
3838 * testsuite/29_atomics/atomic_flag/test/explicit.cc: Add
3839 test case to cover missing atomic_flag free functions.
3840 * testsuite/29_atomics/atomic_flag/test/implicit.cc:
3841 Likewise.
3842
3843 2023-02-13 Gerald Pfeifer <gerald@pfeifer.com>
3844
3845 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust
3846 "The Component Object Model" reference.
3847 * doc/html/manual/policy_data_structures.html: Regenerate.
3848
3849 2023-02-12 Gerald Pfeifer <gerald@pfeifer.com>
3850
3851 * doc/xml/manual/containers.xml: Tweak a link to N1780
3852 (C++ standard).
3853 * doc/html/manual/associative.html: Regenerate.
3854
3855 2023-02-12 Gerald Pfeifer <gerald@pfeifer.com>
3856
3857 * doc/xml/manual/ctype.xml: Change www.unix.org to unix.org.
3858 * doc/html/manual/facets.html: Regenerate.
3859
3860 2023-02-11 Gerald Pfeifer <gerald@pfeifer.com>
3861
3862 * doc/xml/manual/policy_data_structures_biblio.xml: Update
3863 link to "Worst-case efficient priority queues".
3864 * doc/html/manual/policy_data_structures.html: Regenerate.
3865
3866 2023-02-06 Arsen Arsenović <arsen@aarsen.me>
3867
3868 * doc/xml/manual/using.xml: Document newly-freestanding
3869 headers and the effect of the -ffreestanding flag.
3870 * doc/xml/manual/status_cxx2023.xml: Document P1642R11 as
3871 completed.
3872 * doc/xml/manual/configure.xml: Document that hosted installs
3873 respect __STDC_HOSTED__.
3874 * doc/xml/manual/test.xml: Document how to run tests in
3875 freestanding mode.
3876 * doc/html/*: Regenerate.
3877
3878 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
3879
3880 * include/bits/ranges_algo.h (__find_last_fn): Rename T to _Tp.
3881 (__find_last_if_fn): Likewise.
3882
3883 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
3884
3885 * include/std/type_traits: Add diagnostic pragmas around
3886 references to deprecated std::aligned_storage and
3887 std::aligned_union traits.
3888 * testsuite/20_util/aligned_storage/requirements/alias_decl.cc:
3889 Add dg-warning for et c++23.
3890 * testsuite/20_util/aligned_storage/requirements/explicit_instantiation.cc:
3891 Likewise.
3892 * testsuite/20_util/aligned_storage/value.cc: Likewise.
3893 * testsuite/20_util/aligned_union/1.cc: Likewise.
3894 * testsuite/20_util/aligned_union/requirements/alias_decl.cc:
3895 Likewise.
3896
3897 2023-02-06 Nathaniel Shead <nathanieloshead@gmail.com>
3898
3899 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macros.
3900 * include/bits/c++config (_GLIBCXX23_DEPRECATED)
3901 (_GLIBCXX23_DEPRECATED_SUGGEST): New macros.
3902 * include/std/type_traits (aligned_storage, aligned_union)
3903 (aligned_storage_t, aligned_union_t): Deprecate for C++23.
3904 * testsuite/20_util/aligned_storage/deprecated-2b.cc: New test.
3905 * testsuite/20_util/aligned_union/deprecated-2b.cc: New test.
3906
3907 2023-02-06 Nathaniel Shead <nathanieloshead@gmail.com>
3908
3909 * doc/doxygen/user.cfg.in (PREDEFINED): Update macros.
3910 * include/bits/c++config (_GLIBCXX20_DEPRECATED): Make
3911 consistent with other 'deprecated' macros.
3912 * include/std/type_traits (is_pod, is_pod_v): Use
3913 _GLIBCXX20_DEPRECATED_SUGGEST instead.
3914
3915 2023-02-06 Arsen Arsenović <arsen@aarsen.me>
3916
3917 * Makefile.am [!_GLIBCXX_HOSTED]: Enable src/ subdirectory.
3918 * Makefile.in: Regenerate.
3919 * src/Makefile.am [!_GLIBCXX_HOSTED]: Omit compatibility files.
3920 There's no history to be compatible with.
3921 * src/c++11/Makefile.am [!_GLIBCXX_HOSTED]: Omit hosted-only
3922 source files from the build.
3923 * src/c++17/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
3924 * src/c++20/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
3925 * src/c++98/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
3926 * src/Makefile.in: Regenerate.
3927 * src/c++11/Makefile.in: Regenerate.
3928 * src/c++17/Makefile.in: Regenerate.
3929 * src/c++20/Makefile.in: Regenerate.
3930 * src/c++98/Makefile.in: Regenerate.
3931
3932 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
3933
3934 * src/Makefile.am [GLIBCXX_HOSTED] (SUBDIRS): Do not add
3935 filesystem, libbacktrace and experimental.
3936 * src/Makefile.in: Regenerate.
3937
3938 2023-02-04 Hans-Peter Nilsson <hp@axis.com>
3939
3940 PR libstdc++/108672
3941 * include/pstl/unseq_backend_simd.h (__simd_or): Use __INT32_TYPE__
3942 instead of int32_t.
3943
3944 2023-02-04 Gerald Pfeifer <gerald@pfeifer.com>
3945
3946 * doc/xml/manual/documentation_hacking.xml: Adjust link to pdftex.
3947 * doc/html/manual/documentation_hacking.html: Regenerate.
3948
3949 2023-02-04 François Dumont <fdumont@gcc.gnu.org>
3950
3951 * include/bits/basic_string.h (operator=(basic_string&&)): Transfer move-to
3952 storage to the move-from instance when allocators are equal.
3953 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc (test04):
3954 New test case.
3955
3956 2023-02-03 Samuel Thibault <samuel.thibault@gnu.org>
3957
3958 * config/os/gnu-linux/os_defines.h [!__linux__]
3959 (_GLIBCXX_NATIVE_THREAD_ID, _GLIBCXX_GTHREAD_USE_WEAK): Do not define.
3960
3961 2023-02-03 Patrick Palka <ppalka@redhat.com>
3962
3963 * include/bits/ranges_algo.h (__find_last_fn, find_last):
3964 Define.
3965 (__find_last_if_fn, find_last_if): Define.
3966 (__find_last_if_not_fn, find_last_if_not): Define.
3967 * testsuite/25_algorithms/find_last/1.cc: New test.
3968 * testsuite/25_algorithms/find_last_if/1.cc: New test.
3969 * testsuite/25_algorithms/find_last_if_not/1.cc: New test.
3970
3971 2023-02-03 Patrick Palka <ppalka@redhat.com>
3972
3973 * include/bits/ranges_algo.h (out_value_result): Define.
3974 (iota_result): Define.
3975 (__iota_fn, iota): Define.
3976 * testsuite/25_algorithms/iota/1.cc: New test.
3977
3978 2023-02-03 Patrick Palka <ppalka@redhat.com>
3979
3980 * include/bits/ranges_algo.h (__contains_fn, contains): Define.
3981 (__contains_subrange_fn, contains_subrange): Define.
3982 * testsuite/25_algorithms/contains/1.cc: New test.
3983 * testsuite/25_algorithms/contains_subrange/1.cc: New test.
3984
3985 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
3986
3987 * doc/xml/manual/abi.xml: Tweak link to ABIcheck project.
3988 * doc/html/manual/abi.html: Regenerate.
3989
3990 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
3991
3992 * src/filesystem/ops-common.h [AVR] (__unsupported): Always use
3993 errc::function_not_supported instead of errc::not_supported.
3994
3995 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
3996
3997 * include/std/sstream (basic_stringbuf::view): Define for old
3998 std::string ABI.
3999 (basic_istringstream::view, basic_0stringstream::view)
4000 (basic_stringstream::view): Likewise.
4001 * testsuite/27_io/basic_istringstream/view/char/1.cc: Remove
4002 { dg-require-effective-target cxx11_abi }.
4003 * testsuite/27_io/basic_istringstream/view/wchar_t/1.cc:
4004 Likewise.
4005 * testsuite/27_io/basic_ostringstream/view/char/1.cc: Likewise.
4006 * testsuite/27_io/basic_ostringstream/view/wchar_t/1.cc:
4007 Likewise.
4008 * testsuite/27_io/basic_stringbuf/view/char/1.cc: Likewise.
4009 * testsuite/27_io/basic_stringbuf/view/wchar_t/1.cc: Likewise.
4010 * testsuite/27_io/basic_stringstream/view/char/1.cc: Likewise.
4011 * testsuite/27_io/basic_stringstream/view/wchar_t/1.cc:
4012 Likewise.
4013
4014 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
4015
4016 PR libstdc++/108636
4017 * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Export shared_ptr
4018 conversion operators for directory iterator comparisons with
4019 std::default_sentinel_t.
4020 * include/bits/fs_path.h (path::path(string_view, _Type))
4021 (path::_Cmpt::_Cmpt(string_view, _Type, size_t)): Move inline
4022 definitions to ...
4023 * src/c++17/fs_path.cc: ... here.
4024 * testsuite/27_io/filesystem/path/108636.cc: New test.
4025
4026 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
4027
4028 * include/std/variant (variant::operator=): Implement resolution
4029 of LWG 3585.
4030 * testsuite/20_util/variant/lwg3585.cc: New test.
4031
4032 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
4033
4034 * doc/xml/manual/using_exceptions.xml: Update a www.open-std.org
4035 link to https.
4036 * doc/html/manual/using_exceptions.html: Regenerate.
4037
4038 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
4039
4040 * doc/xml/manual/debug.xml: Fix link to online GDB manual.
4041 * doc/html/manual/debug.html: Regenerate.
4042
4043 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
4044
4045 * src/c++11/random.cc (random_device::_M_fini): Do not try to
4046 close the file handle if the target doesn't support the
4047 /dev/random and /dev/urandom files.
4048
4049 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
4050
4051 * config/os/generic/error_constants.h (errc::value_too_large)
4052 [__AVR__]: Define.
4053 * src/c++11/system_error.cc
4054 (system_category::default_error_condition) [__AVR__]: Only match
4055 recognize values equal to EDOM, ERANGE, ENOSYS and EINTR.
4056 * src/c++17/fs_ops.cc (fs::current_path) [__AVR__]: Do not check
4057 for ENOENT etc. in switch.
4058 (fs::remove_all) [__AVR__]: Likewise.
4059 * src/filesystem/ops-common.h [__AVR__]: Do not use POSIX open,
4060 close etc.
4061
4062 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
4063
4064 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR) [avr-*-*, msp430-*-*]: Set
4065 embed_zoneinfo=no
4066 * configure: Regenerate.
4067
4068 2023-02-01 Hans-Peter Nilsson <hp@axis.com>
4069
4070 PR testsuite/108632
4071 * testsuite/std/time/hh_mm_ss/1.cc (size): Add empty
4072 struct at end of S0.
4073
4074 2023-01-30 Gerald Pfeifer <gerald@pfeifer.com>
4075
4076 * doc/xml/manual/shared_ptr.xml: Move links from both
4077 http://open-std.org and http://www.open-std.org to
4078 https://www.open-std.org.
4079 * doc/html/manual/memory.html: Regenerate.
4080
4081 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
4082
4083 * doc/xml/manual/appendix_contributing.xml: Adjust link to
4084 ISO C++ standard at ANSI.
4085 Move link to www.open-std.org to https.
4086 * doc/html/manual/appendix_contributing.html: Regenerate.
4087
4088 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
4089
4090 * doc/xml/manual/documentation_hacking.xml: Move sourceforge.net
4091 links to https.
4092 * doc/html/manual/documentation_hacking.html: Regenerate.
4093
4094 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
4095
4096 * doc/xml/manual/abi.xml: Update www.open-std.org link to https.
4097 * doc/html/manual/abi.html: Regenerate.
4098
4099 2023-01-27 Jakub Jelinek <jakub@redhat.com>
4100
4101 PR libstdc++/108568
4102 * testsuite/17_intro/names.cc (__unused): For linux or GNU hurd
4103 include features.h if present and then check __GLIBC__ and
4104 __GLIBC_MINOR__ macros for glibc prior to 2.19, instead of testing
4105 __GLIBC_PREREQ which isn't defined yet.
4106
4107 2023-01-27 Jonathan Wakely <jwakely@redhat.com>
4108
4109 * src/c++20/tzdb.cc (tzdata_stream): Use constant instead of
4110 string literal.
4111
4112 2023-01-27 Jonathan Wakely <jwakely@redhat.com>
4113
4114 PR libstdc++/108554
4115 * testsuite/23_containers/map/modifiers/108554.cc: Use dg-bogus.
4116
4117 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
4118
4119 * src/c++20/tzdb.cc (operator>>(istream&, ZoneInfo&)): Allow
4120 rules named "+" for compatibility with older tzdata.zi files.
4121
4122 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
4123
4124 PR libstdc++/108554
4125 * include/bits/stl_tree.h (_Rb_tree_insert_and_rebalance): Add
4126 nonnull attribute.
4127 (_Rb_tree_rebalance_for_erase): Add nonnull and returns_nonnull
4128 attributes.
4129 * testsuite/23_containers/map/modifiers/108554.cc: New test.
4130
4131 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
4132
4133 PR libstdc++/108530
4134 * src/c++20/tzdb.cc (current_zone): Look for TIMEZONE or ZONE in
4135 /etc/sysconfig/clock, not DEFAULT_TIMEZONE.
4136
4137 2023-01-26 Gerald Pfeifer <gerald@pfeifer.com>
4138
4139 * doc/xml/manual/intro.xml: Update links to www.open-std.org to
4140 use https.
4141 * doc/html/manual/bugs.html: Regenerate.
4142
4143 2023-01-24 Jonathan Wakely <jwakely@redhat.com>
4144
4145 PR libstdc++/108530
4146 * src/c++20/tzdb.cc (current_zone): Look for DEFAULT_TIMEZONE in
4147 /etc/sysconfig/clock.
4148
4149 2023-01-24 Jonathan Wakely <jwakely@redhat.com>
4150
4151 PR libstdc++/102301
4152 * include/bits/ranges_base.h: Include <bits/stl_iterator.h> for
4153 std::make_reverse_iterator.
4154 * include/std/tuple: Include <bits/ranges_util.h> for subrange.
4155 (make_from_tuple): Add static assertion from P2255 to diagnose
4156 dangling references.
4157 * testsuite/20_util/tuple/make_from_tuple/dangling_ref.cc: New test.
4158 * testsuite/20_util/tuple/make_from_tuple/tuple_like.cc: New test.
4159
4160 2023-01-23 François Dumont <fdumont@gcc.gnu.org>
4161
4162 * include/debug/safe_iterator.h (_Safe_iterator<>::_Unchecked): New.
4163 (_Safe_iterator(const _Safe_iterator&, _Unchecked)): New.
4164 (_Safe_iterator::operator++(int)): Use latter.
4165 (_Safe_iterator::operator--(int)): Likewise.
4166 (_Safe_iterator(_Iterator, const _Safe_sequence_base*)): Remove !_M_insular()
4167 check.
4168 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::_Unchecked):
4169 New.
4170 (_Safe_local_iterator(const _Safe_local_iterator&, _Unchecked)): New.
4171 (_Safe_local_iterator::operator++(int)): Use latter.
4172 * src/c++11/debug.cc (_S_debug_messages): Add as comment the _Debug_msg_id
4173 entry associated to the array entry.
4174
4175 2023-01-18 Jonathan Wakely <jwakely@redhat.com>
4176
4177 * include/bits/fs_path.h (u8path): Add deprecated attribute.
4178 * testsuite/27_io/filesystem/path/construct/90281.cc: Add
4179 -Wno-deprecated-declarations for C++20 and later.
4180 * testsuite/27_io/filesystem/path/factory/u8path-char8_t.cc:
4181 Likewise.
4182 * testsuite/27_io/filesystem/path/factory/u8path.cc: Likewise.
4183 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
4184 * testsuite/27_io/filesystem/path/factory/u8path-depr.cc: New test.
4185
4186 2023-01-18 Jonathan Wakely <jwakely@redhat.com>
4187
4188 * include/bits/random.h (random_device) [!_GLIBCXX_USE_DEV_RANDOM]:
4189 Always call _M_fini and _M_getentropy.
4190
4191 2023-01-18 Gerald Pfeifer <gerald@pfeifer.com>
4192
4193 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust links
4194 to www.open-std.org to use https.
4195 (COM: Component Model Object Technologies): Rename from...
4196 (The Component Object Model): ...to.
4197 * doc/html/manual/policy_data_structures.html: Regenerate.
4198
4199 2023-01-18 Dimitrij Mijoski <dmjpp@hotmail.com>
4200
4201 * testsuite/22_locale/codecvt/codecvt_unicode.cc: Simplify.
4202 * testsuite/22_locale/codecvt/codecvt_unicode.h: Simplify.
4203 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: Simplify.
4204
4205 2023-01-17 Jonathan Wakely <jwakely@redhat.com>
4206
4207 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Check $target_os instead
4208 of $host. Fix check for file being present during native build.
4209 * configure: Regenerate.
4210
4211 2023-01-17 Martin Liska <mliska@suse.cz>
4212
4213 * src/libbacktrace/Makefile.in: Regenerate.
4214
4215 2023-01-16 Jonathan Wakely <jwakely@redhat.com>
4216
4217 * src/c++20/tzdb.cc (_GLIBCXX_USE_CXX11_ABI): Define to 1.
4218
4219 2023-01-16 Jonathan Wakely <jwakely@redhat.com>
4220
4221 PR libstdc++/108413
4222 * include/c_compatibility/stdatomic.h: Change copyright line to
4223 be consistent with other headers contributed under DCO terms.
4224 * include/std/expected: Add full stop to copyright line.
4225 * src/c++20/tzdb.cc: Likewise.
4226
4227 2023-01-15 Gerald Pfeifer <gerald@pfeifer.com>
4228
4229 * doc/xml/manual/status_cxx2014.xml: Switch www.open-std.org to
4230 https.
4231 * doc/xml/manual/status_cxx2017.xml: Ditto.
4232 * doc/xml/manual/status_cxx2020.xml: Ditto.
4233 * doc/xml/manual/status_cxx2023.xml: Ditto.
4234 * doc/html/manual/status.html: Regenerate.
4235
4236 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
4237
4238 * testsuite/std/time/tzdb_list/1.cc: Remove dg-xfail-run-if
4239 and fail gracefully if defining the weak symbol doesn't work.
4240
4241 2023-01-15 François Dumont <fdumont@gcc.gnu.org>
4242
4243 PR libstdc++/108288
4244 * include/debug/safe_iterator.h (_Safe_iterator<>::operator++(int)): Extend deadlock
4245 fix to other iterator category.
4246 (_Safe_iterator<>::operator--(int)): Likewise.
4247 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::operator++(int)):
4248 Fix deadlock.
4249 * testsuite/util/debug/unordered_checks.h (invalid_local_iterator_pre_increment): New.
4250 (invalid_local_iterator_post_increment): New.
4251 * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_post_increment_neg.cc:
4252 New test.
4253 * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_pre_increment_neg.cc:
4254 New test.
4255
4256 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
4257
4258 * testsuite/30_threads/jthread/jthread.cc: Remove -pthread from
4259 dg-options.
4260
4261 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
4262
4263 * testsuite/std/time/clock/utc/io.cc: Use ctype to widen char.
4264
4265 2023-01-14 Björn Schäpers <bjoern@hazardy.de>
4266
4267 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Add check for
4268 windows.h. Add pecoff as FORMAT_FILE.
4269 * config.h.in: Regenerate.
4270 * configure: Regenerate.
4271 * src/libbacktrace/Makefile.am: Regenerate.
4272 * src/libbacktrace/Makefile.in: Add pecoff.c as FORMAT_FILE.
4273
4274 2023-01-14 Björn Schäpers <bjoern@hazardy.de>
4275
4276 * include/std/stacktrace (stacktrace_entry::_S_demangle): Use
4277 raw __name if __cxa_demangle could not demangle it.
4278
4279 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
4280
4281 PR libstdc++/108409
4282 * src/c++20/tzdb.cc (current_zone()) [_AIX]: Use TZ environment
4283 variable.
4284
4285 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
4286
4287 * src/c++20/tzdb.cc (TZDB_DISABLED): Disable all code for
4288 loading tzdb.
4289 * testsuite/std/time/tzdb/leap_seconds.cc: Require tzdb
4290 effective target.
4291 * testsuite/std/time/tzdb_list/1.cc: Likewise.
4292
4293 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
4294
4295 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Replace the
4296 --with-libstdcxx-zoneinfo-dir configure option with
4297 --with-libstdcxx-zoneinfo with yes/no/static choices as well as
4298 a directory.
4299 * config.h.in: Regenerate.
4300 * configure: Regenerate.
4301 * doc/xml/manual/configure.xml: Document configure option.
4302 * doc/html/manual/configure.html: Regenerate.
4303 * src/c++20/Makefile.am: Generate tzdata.zi.h header.
4304 * src/c++20/Makefile.in: Regenerate.
4305 * src/c++20/tzdb.cc (__gnu_cxx::zoneinfo_dir_override): Return a
4306 null pointer if no directory is configured.
4307 (zoneinfo_dir): Replace with ...
4308 (zoneinfo_file): New function.
4309 (tzdata_stream): New istream class.
4310 (remote_version, reload_tzdb): Use tzdata_stream.
4311 * testsuite/lib/libstdc++.exp (check_effective_target_tzdb):
4312 Check new _GLIBCXX_STATIC_TZDATA macro and ignore presence of
4313 tzdata.zi file in default location.
4314 * src/c++20/tzdata.zi: New file.
4315
4316 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
4317
4318 * include/bits/chrono_io.h (operator<<): Fix syntax errors.
4319 * testsuite/std/time/month_day/io.cc: New test.
4320 * testsuite/std/time/month_day_last/io.cc: New test.
4321 * testsuite/std/time/month_weekday/io.cc: New test.
4322 * testsuite/std/time/month_weekday_last/io.cc: New test.
4323 * testsuite/std/time/weekday_indexed/io.cc: New test.
4324 * testsuite/std/time/weekday_last/io.cc: New test.
4325 * testsuite/std/time/year_month/io.cc: New test.
4326 * testsuite/std/time/year_month_day_last/io.cc: New test.
4327 * testsuite/std/time/year_month_weekday/io.cc: New test.
4328 * testsuite/std/time/year_month_weekday_last/io.cc: New test.
4329
4330 2023-01-14 François Dumont <fdumont@gcc.gnu.org>
4331
4332 * include/std/format [_GLIBCXX_INLINE_VERSION](to_chars): Adapt __asm symbol
4333 specifications.
4334 * config/abi/pre/gnu-versioned-namespace.ver: Add to_chars/from_chars symbols
4335 export.
4336
4337 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
4338
4339 * include/bits/std_mutex.h: Include <errno.h>.
4340
4341 2023-01-13 Arsen Arsenović <arsen@aarsen.me>
4342
4343 * testsuite/20_util/to_chars/version.cc: Mark hosted-only.
4344 * testsuite/20_util/uses_allocator/lwg3677.cc: Ditto.
4345 * testsuite/20_util/weak_ptr/cons/self_move.cc: Ditto.
4346 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Replace usage of
4347 std::make_unique with a freestanding-compatible wrapper around
4348 unique_ptr.
4349 * testsuite/21_strings/basic_string_view/operations/contains/char.cc:
4350 Don't test for presence of __cpp_lib_string_contains on !HOSTED.
4351 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
4352 Ditto.
4353 * testsuite/std/ranges/version_c++23.cc: Don't test for presence
4354 of __cpp_lib_ranges in !HOSTED.
4355
4356 2023-01-13 Arsen Arsenović <arsen@aarsen.me>
4357
4358 * include/Makefile.am: Install bits/char_traits.h,
4359 std/string_view
4360 * include/Makefile.in: Regenerate.
4361 * include/bits/char_traits.h: Gate hosted-only, wchar-only and
4362 mbstate-only bits behind appropriate #ifs.
4363 * include/std/string_view: Gate <iostream> functionality behind
4364 HOSTED.
4365 * include/std/version: Enable __cpp_lib_constexpr_string_view
4366 and __cpp_lib_starts_ends_with in !HOSTED.
4367 * include/std/ranges: Re-enable __is_basic_string_view on
4368 freestanding, include <string_view> directly.
4369 * include/precompiled/stdc++.h: Include <string_view> when
4370 !HOSTED too.
4371 * testsuite/20_util/function_objects/searchers.cc: Skip testing
4372 boyer_moore searchers on freestanding
4373 * testsuite/21_strings/basic_string_view/capacity/1.cc: Guard
4374 <string>-related tests behind __STDC_HOSTED__.
4375 * testsuite/21_strings/basic_string_view/cons/char/1.cc: Ditto.
4376 * testsuite/21_strings/basic_string_view/cons/char/2.cc: Remove
4377 unused <stdexcept> include.
4378 * testsuite/21_strings/basic_string_view/cons/char/3.cc: Remove
4379 unused <vector> include.
4380 * testsuite/21_strings/basic_string_view/cons/char/range.cc:
4381 Guard <string> related testing behind __STDC_HOSTED__.
4382 * testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc:
4383 Guard <stdexcept> related tests behind __STDC_HOSTED__.
4384 * testsuite/21_strings/basic_string_view/element_access/char/1.cc:
4385 Ditto.
4386 * testsuite/21_strings/basic_string_view/element_access/wchar_t/1.cc:
4387 Guard <stdexcept> tests behind __STDC_HOSTED__.
4388 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
4389 Enable test on freestanding, guard <stdexcept> bits behind
4390 __STDC_HOSTED__.
4391 * testsuite/21_strings/basic_string_view/operations/substr/char.cc:
4392 Guard <stdexcept> bits behind __STDC_HOSTED__.
4393 * testsuite/21_strings/basic_string_view/operations/substr/wchar_t.cc:
4394 Ditto.
4395
4396 2023-01-13 Dimitrij Mijoski <dmjpp@hotmail.com>
4397
4398 PR libstdc++/86419
4399 * src/c++11/codecvt.cc (read_utf8_code_point): Correctly detect
4400 errors in incomplete multibyte sequences.
4401 (utf16_in): Remove surrogates parameter. Fix conditions for
4402 returning partial.
4403 (utf16_out): Fix condition for returning partial.
4404 (ucs2_in): Do not pass surrogates argument to utf16_in.
4405 * testsuite/22_locale/codecvt/codecvt_unicode.cc: New test.
4406 * testsuite/22_locale/codecvt/codecvt_unicode.h: New header for
4407 tests.
4408 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: New
4409 test.
4410
4411 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
4412
4413 PR libstdc++/108331
4414 * config/io/c_io_stdio.h (__c_lock): Define as a typedef for
4415 __GTHREAD_LEGACY_MUTEX_T if defined.
4416
4417 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
4418
4419 PR libstdc++/108327
4420 * config/os/gnu-linux/ldbl-extra.ver (GLIBCXX_LDBL_3.4.31):
4421 Export __try_use_facet specializations for facets in namespace
4422 __gnu_cxx_ldbl128.
4423 * config/os/gnu-linux/ldbl-ieee128-extra.ver
4424 (GLIBCXX_IEEE128_3.4.31): Likewise for facets in namespace
4425 __gnu_cxx_ieee128.
4426 * testsuite/util/testsuite_abi.cc: Add to lists of known and
4427 latest versions.
4428
4429 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
4430
4431 * include/bits/std_mutex.h: Remove <system_error> include.
4432 * include/std/condition_variable: Add <bits/error_constants.h>
4433 include.
4434 * include/std/mutex: Likewise.
4435 * include/std/shared_mutex: Likewise.
4436
4437 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
4438
4439 PR libstdc++/77691
4440 * include/experimental/memory_resource
4441 (_GLIBCXX_MAX_ALIGN_MATCHES_MALLOC): Define.
4442 (do_allocate, do_deallocate): Check it.
4443 * testsuite/experimental/memory_resource/new_delete_resource.cc:
4444 Relax expected behaviour for 64-bit hppa-hp-hpux11.11.
4445
4446 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
4447
4448 * doc/xml/manual/abi.xml: Add latest library versions.
4449 * doc/html/manual/abi.html: Regenerate.
4450
4451 2023-01-12 François Dumont <fdumont@gcc.gnu.org>
4452
4453 PR libstdc++/107189
4454 * include/bits/stl_tree.h (_Rb_tree<>::_M_insert_range_equal): Remove
4455 unused _Alloc_node instance.
4456
4457 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
4458
4459 * include/bits/atomic_wait.h (__detail::__platform_wait_t):
4460 Define as unsigned long if always lock-free, and unsigned int
4461 otherwise.
4462
4463 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
4464
4465 * src/c++20/tzdb.cc (tzdb_list::_S_init_tzdb): Use __try and
4466 __catch macros for exception handling.
4467
4468 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
4469
4470 PR libstdc++/108221
4471 * include/bits/stl_algobase.h (__lg): Replace six overloads with
4472 a single function template for all integer types.
4473 * include/bits/stl_algo.h (__merge_adaptive_resize): Cast
4474 arithmetic results back to _Distance.
4475
4476 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
4477
4478 PR libstdc++/108221
4479 * include/std/span (span::span()): Un-simplify constraint to
4480 work for size_t of lesser rank than int.
4481
4482 2023-01-07 LIU Hao <lh_mouse@126.com>
4483
4484 PR middle-end/108300
4485 * src/c++11/system_error.cc: Define `WIN32_LEAN_AND_MEAN` before
4486 <windows.h>.
4487 * src/c++11/thread.cc: Likewise.
4488 * src/c++17/fs_ops.cc: Likewise.
4489 * src/filesystem/ops.cc: Likewise.
4490
4491 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
4492
4493 PR libstdc++/108228
4494 * src/c++20/tzdb.cc (zoneinfo_dir): Add diagnostic pragma.
4495
4496 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
4497
4498 PR libstdc++/108235
4499 * src/c++20/tzdb.cc (time_zone::_Impl::RulesCounter): New class
4500 template and partial specialization for synchronizing access to
4501 time_zone::_Impl::infos.
4502 (time_zone::_M_get_sys_info, reload_tzdb): Adjust uses of
4503 rules_counter.
4504
4505 2023-01-06 Patrick Palka <ppalka@redhat.com>
4506
4507 PR libstdc++/108260
4508 * include/bits/utility.h (__cpp_lib_ranges_zip): Define for C++23.
4509 * include/std/ranges (__cpp_lib_ranges_zip): Likewise.
4510 (__cpp_lib_ranges_chunk): Likewise.
4511 (__cpp_lib_ranges_slide): Likewise.
4512 (__cpp_lib_ranges_chunk_by): Likewise.
4513 (__cpp_lib_ranges_join_with): Likewise.
4514 (__cpp_lib_ranges_repeat): Likewise.
4515 (__cpp_lib_ranges_stride): Likewise.
4516 (__cpp_lib_ranges_cartesian_product): Likewise.
4517 (__cpp_lib_ranges_as_rvalue): Likewise.
4518 * include/std/version: Ditto.
4519 * testsuite/20_util/tuple/p2321r2.cc: Verify value of
4520 feature-test macro.
4521 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Likewise.
4522 * testsuite/std/ranges/adaptors/chunk/1.cc: Likewise.
4523 * testsuite/std/ranges/adaptors/chunk_by/1.cc: Likewise.
4524 * testsuite/std/ranges/adaptors/join_with/1.cc: Likewise.
4525 * testsuite/std/ranges/adaptors/slide/1.cc: Likewise.
4526 * testsuite/std/ranges/adaptors/stride/1.cc: Likewise.
4527 * testsuite/std/ranges/cartesian_product/1.cc: Likewise.
4528 * testsuite/std/ranges/repeat/1.cc: Likewise.
4529 * testsuite/std/ranges/zip/1.cc: Likewise.
4530 * testsuite/std/ranges/version_c++23.cc: New test.
4531
4532 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
4533
4534 PR libstdc++/108214
4535 * include/std/bitset (operator>>): Use alloca in the right
4536 scope, not in a constructor.
4537 * testsuite/20_util/bitset/io/input.cc: Check case from PR.
4538
4539 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
4540
4541 PR libstdc++/108221
4542 * include/std/format (basic_format_arg) [!__cpp_lib_to_chars]:
4543 Disable visiting floating-point types.
4544
4545 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
4546
4547 PR libstdc++/108288
4548 * include/debug/safe_iterator.h (_Safe_iterator::operator++(int))
4549 (_Safe_iterator::operator--(int)): Do not hold lock around
4550 construction of return value.
4551
4552 2023-01-05 John David Anglin <danglin@gcc.gnu.org>
4553
4554 * config/cpu/hppa/atomicity.h (_PA_LDCW_INSN): Define.
4555 (__exchange_and_add): Use _PA_LDCW_INSN. Use ordered store for
4556 lock release. Revise loop.
4557 (__atomic_add): Likewise.
4558
4559 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
4560
4561 PR libstdc++/108212
4562 * python/libstdcxx/v6/printers.py (_utc_timezone): New global
4563 variable.
4564 (StdChronoTimePointPrinter::to_string): Use it.
4565
4566 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
4567
4568 PR libstdc++/108290
4569 * include/std/functional (_Bind_front): Add no_unique_address
4570 attribute to data members.
4571 * testsuite/20_util/function_objects/bind_front/107784.cc: Check
4572 size of call wrappers with empty types for targets and bound
4573 arguments.
4574
4575 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
4576
4577 PR libstdc++/108211
4578 * src/c++20/tzdb.cc (chrono::current_zone()): Check for zone
4579 using only last component of the name.
4580
4581 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
4582
4583 PR libstdc++/108228
4584 PR libstdc++/108235
4585 * config/abi/pre/gnu.ver: Move zoneinfo_dir_override export to
4586 the latest symbol version.
4587 * src/c++20/tzdb.cc (USE_ATOMIC_SHARED_PTR): Define to 0 if
4588 atomic<_Node*> is not always lock free.
4589 (USE_ATOMIC_LIST_HEAD): New macro.
4590 [__hpux__] (__gnu_cxx::zoneinfo_dir_override()): Provide
4591 definition of weak symbol.
4592 (tzdb_list::_Node::_S_head): Rename to _S_head_cache.
4593 (tzdb_list::_Node::_S_list_head): New function for accessing
4594 list head efficiently.
4595 (tzdb_list::_Node::_S_cache_list_head): New function for
4596 updating _S_list_head.
4597
4598 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
4599
4600 PR libstdc++/108265
4601 * include/std/chrono (hh_mm_ss): Do not use chrono::abs if
4602 duration rep is unsigned.
4603 * testsuite/std/time/hh_mm_ss/1.cc: Check unsigned rep.
4604
4605 2023-01-04 Iain Sandoe <iain@sandoe.co.uk>
4606
4607 PR libstdc++/108228
4608 * config/abi/pre/gnu.ver (GLIBCXX_3.4):
4609 Add __gnu_cxx::zoneinfo_dir_override().
4610
4611 2023-01-04 Jonathan Wakely <jwakely@redhat.com>
4612
4613 PR libstdc++/108258
4614 * include/std/array (__array_traits<T, 0>::operator T*()): Add
4615 constexpr.
4616 * testsuite/23_containers/array/element_access/constexpr_c++17.cc: Check
4617 std::array<T, 0>::data().
4618
4619 \f
4620 Copyright (C) 2023 Free Software Foundation, Inc.
4621
4622 Copying and distribution of this file, with or without modification,
4623 are permitted in any medium without royalty provided the copyright
4624 notice and this notice are preserved.