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