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