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