1 2023-05-26 Matthias Kretz <m.kretz@gsi.de>
3 * include/experimental/bits/simd_ppc.h (_S_bit_shift_left):
4 Negative __y is UB, so prefer signed compare.
6 2023-05-25 Jonathan Wakely <jwakely@redhat.com>
8 * testsuite/util/testsuite_allocator.h (PointerBase): Add
11 2023-05-25 Alexandre Oliva <oliva@adacore.com>
13 * testsuite/20_util/to_chars/long_double.cc: Expect execution
16 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
19 * include/experimental/bits/simd.h (__intrinsic_type): If
20 __ALTIVEC__ is defined, map gnu::vector_size types to their
21 corresponding __vector T types without losing unsignedness of
22 integer types. Also prefer long long over long.
23 * include/experimental/bits/simd_ppc.h (_S_popcount): Cast mask
24 object to the expected unsigned vector type.
26 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
29 * include/experimental/bits/simd.h (__intrinsic_type):
30 Specialize __intrinsic_type<double, 8> and
31 __intrinsic_type<double, 16> in any case, but provide the member
32 type only with __aarch64__.
34 2023-05-24 Matthias Kretz <m.kretz@gsi.de>
37 * include/experimental/bits/simd_neon.h (_S_reduce): Add
38 constexpr and make NEON implementation conditional on
39 not __builtin_is_constant_evaluated.
41 2023-05-23 Matthias Kretz <m.kretz@gsi.de>
44 * include/experimental/bits/simd.h (_SimdWrapper::_M_set):
45 Avoid vector builtin subscripting in constant expressions.
46 (resizing_simd_cast): Avoid memcpy if constant_evaluated.
47 (const_where_expression, where_expression, where)
48 (__extract_part, simd_mask, _SimdIntOperators, simd): Add either
49 _GLIBCXX_SIMD_CONSTEXPR (on public APIs), or constexpr (on
51 * include/experimental/bits/simd_builtin.h (__vector_permute)
52 (__vector_shuffle, __extract_part, _GnuTraits::_SimdCastType1)
53 (_GnuTraits::_SimdCastType2, _SimdImplBuiltin)
54 (_MaskImplBuiltin::_S_store): Add constexpr.
55 (_CommonImplBuiltin::_S_store_bool_array)
56 (_SimdImplBuiltin::_S_load, _SimdImplBuiltin::_S_store)
57 (_SimdImplBuiltin::_S_reduce, _MaskImplBuiltin::_S_load): Add
58 constant_evaluated case.
59 * include/experimental/bits/simd_fixed_size.h
60 (_S_masked_load): Reword comment.
61 (__tuple_element_meta, __make_meta, _SimdTuple::_M_apply_r)
62 (_SimdTuple::_M_subscript_read, _SimdTuple::_M_subscript_write)
63 (__make_simd_tuple, __optimize_simd_tuple, __extract_part)
64 (__autocvt_to_simd, _Fixed::__traits::_SimdBase)
65 (_Fixed::__traits::_SimdCastType, _SimdImplFixedSize): Add
67 (_SimdTuple::operator[], _M_set): Add constexpr and add
68 constant_evaluated case.
69 (_MaskImplFixedSize::_S_load): Add constant_evaluated case.
70 * include/experimental/bits/simd_scalar.h: Add constexpr.
71 * include/experimental/bits/simd_x86.h (_CommonImplX86): Add
72 constexpr and add constant_evaluated case.
73 (_SimdImplX86::_S_equal_to, _S_not_equal_to, _S_less)
74 (_S_less_equal): Value-initialize to satisfy constexpr
76 (_MaskImplX86::_S_load): Add constant_evaluated case.
77 (_MaskImplX86::_S_store): Add constexpr and constant_evaluated
78 case. Value-initialize local variables.
79 (_MaskImplX86::_S_logical_and, _S_logical_or, _S_bit_not)
80 (_S_bit_and, _S_bit_or, _S_bit_xor): Add constant_evaluated
82 * testsuite/experimental/simd/pr109261_constexpr_simd.cc: New
85 2023-05-22 Matthias Kretz <m.kretz@gsi.de>
87 * include/experimental/bits/simd_builtin.h (_S_fpclassify): Move
88 __infn into #ifdef'ed block.
89 * testsuite/experimental/simd/tests/fpclassify.cc: Declare
90 constants only when used.
91 * testsuite/experimental/simd/tests/frexp.cc: Likewise.
92 * testsuite/experimental/simd/tests/logarithm.cc: Likewise.
93 * testsuite/experimental/simd/tests/trunc_ceil_floor.cc:
95 * testsuite/experimental/simd/tests/ldexp_scalbn_scalbln_modf.cc:
96 Move totest and expect1 into #ifdef'ed block.
98 2023-05-19 Gerald Pfeifer <gerald@pfeifer.com>
100 * doc/xml/manual/strings.xml: Move lafstern.org reference to https.
101 * doc/html/manual/strings.html: Regenerate.
103 2023-05-17 Jakub Jelinek <jakub@redhat.com>
106 * testsuite/26_numerics/headers/cmath/constexpr_std_c++23.cc: New test.
108 2023-05-17 Jakub Jelinek <jakub@redhat.com>
111 * include/c_global/cmath (atan2, fmod, pow): Move
112 __gnu_cxx::__promote_2 using templates after _Float{16,32,64,128} and
113 __gnu_cxx::__bfloat16_t overloads.
114 (copysign, fdim, fmax, fmin, hypot, nextafter, remainder, remquo):
116 (fma): Move __gnu_cxx::__promote_3 using template after
117 _Float{16,32,64,128} and __gnu_cxx::__bfloat16_t overloads.
119 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
121 * testsuite/18_support/headers/limits/synopsis.cc: Uncomment
122 checks for float_round_style and float_denorm_style.
124 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
126 * include/bits/c++config: Add system_header pragma.
128 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
130 * include/std/expected (expected::and_then, expected::or_else)
131 (expected::transform, expected::transform_error): Fix exception
132 specifications as per LWG 3877.
133 (expected<void, E>::and_then, expected<void, E>::transform):
135 * testsuite/20_util/expected/lwg3877.cc: New test.
137 2023-05-17 Ken Matsui <kmatsui@cs.washington.edu>
139 * include/std/type_traits: Use __bool_constant instead of
142 2023-05-17 Jonathan Wakely <jwakely@redhat.com>
144 * configure: Regenerate.
146 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
149 * acinclude.m4 (GLIBCXX_CHECK_ALIGNAS_CACHELINE): Define.
150 * config.h.in: Regenerate.
151 * configure: Regenerate.
152 * configure.ac: Use GLIBCXX_CHECK_ALIGNAS_CACHELINE.
153 * src/c++11/shared_ptr.cc (__gnu_internal::get_mutex): Do not
154 align lock table if not supported. use __GCC_DESTRUCTIVE_SIZE
155 instead of hardcoded 64.
157 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
159 * acinclude.m4 (GLIBCXX_USE_C99): Check for isblank in C++11
160 mode and define _GLIBCXX_USE_C99_CTYPE. Check for <fenv.h>
161 functions in C++11 mode and define _GLIBCXX_USE_C99_FENV.
162 * config.h.in: Regenerate.
163 * configure: Regenerate.
164 * include/c_compatibility/fenv.h: Check _GLIBCXX_USE_C99_FENV
165 instead of _GLIBCXX_USE_C99_FENV_TR1.
166 * include/c_global/cfenv: Likewise.
167 * include/c_global/cctype: Check _GLIBCXX_USE_C99_CTYPE instead
168 of _GLIBCXX_USE_C99_CTYPE_TR1.
170 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
172 * acinclude.m4 (GLIBCXX_USE_C99): Check for <stdint.h> types in
173 C++11 mode and define _GLIBCXX_USE_C99_STDINT. Check for
174 <inttypes.h> features in C++11 mode and define
175 _GLIBCXX_USE_C99_INTTYPES and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T.
176 * config.h.in: Regenerate.
177 * configure: Regenerate.
178 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macros.
179 * include/bits/chrono.h: Check _GLIBCXX_USE_C99_STDINT instead
180 of _GLIBCXX_USE_C99_STDINT_TR1.
181 * include/c_compatibility/inttypes.h: Check
182 _GLIBCXX_USE_C99_INTTYPES and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T
183 instead of _GLIBCXX_USE_C99_INTTYPES_TR1 and
184 _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
185 * include/c_compatibility/stdatomic.h: Check
186 _GLIBCXX_USE_C99_STDINT instead of _GLIBCXX_USE_C99_STDINT_TR1.
187 * include/c_compatibility/stdint.h: Likewise.
188 * include/c_global/cinttypes: Check _GLIBCXX_USE_C99_INTTYPES
189 and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T instead of
190 _GLIBCXX_USE_C99_INTTYPES_TR1 and
191 _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
192 * include/c_global/cstdint: Check _GLIBCXX_USE_C99_STDINT
193 instead of _GLIBCXX_USE_C99_STDINT_TR1.
194 * include/std/atomic: Likewise.
195 * src/c++11/cow-stdexcept.cc: Likewise.
196 * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc:
198 * testsuite/lib/libstdc++.exp (check_v3_target_cstdint):
201 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
203 * acinclude.m4 (GLIBCXX_USE_C99): Check for complex inverse trig
204 functions in C++11 mode and define _GLIBCXX_USE_C99_COMPLEX_ARC.
205 * config.h.in: Regenerate.
206 * configure: Regenerate.
207 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macro.
208 * include/std/complex: Check _GLIBCXX_USE_C99_COMPLEX_ARC
209 instead of _GLIBCXX_USE_C99_COMPLEX_TR1.
211 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
213 * testsuite/ext/debug_allocator/check_deallocate_null.cc: Add
214 assertion to ensure expected exception is throw.
216 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
218 * testsuite/libstdc++-prettyprinters/chrono.cc: Only test
219 printer for chrono::zoned_time for cx11 ABI and tzdb effective
222 2023-05-16 Jonathan Wakely <jwakely@redhat.com>
224 * acinclude.m4 (GLIBCXX_CHECK_PTHREAD_MUTEX_CLOCKLOCK): Define
225 _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK in terms of _GLIBCXX_TSAN.
226 * configure: Regenerate.
228 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
230 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Use a non-null pointer
231 to check for nan, nanf, and nanl.
232 * configure: Regenerate.
234 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
236 * include/bits/char_traits.h (char_traits<char16_t>): Do not
237 depend on _GLIBCXX_USE_C99_STDINT_TR1.
238 (char_traits<char32_t>): Likewise.
239 * include/experimental/source_location: Likewise.
241 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
243 * include/std/atomic (atomic_int_least8_t, atomic_uint_least8_t)
244 (atomic_int_least16_t, atomic_uint_least16_t)
245 (atomic_int_least32_t, atomic_uint_least32_t)
246 (atomic_int_least64_t, atomic_uint_least64_t)
247 (atomic_int_fast16_t, atomic_uint_fast16_t)
248 (atomic_int_fast32_t, atomic_uint_fast32_t)
249 (atomic_int_fast64_t, atomic_uint_fast64_t)
250 (atomic_intmax_t, atomic_uintmax_t): Define unconditionally.
251 * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc: Adjust.
253 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
255 * include/bits/algorithmfwd.h (shuffle): Do not depend on
256 _GLIBCXX_USE_C99_STDINT_TR1.
257 * include/bits/ranges_algo.h (shuffle): Likewise.
258 * include/bits/stl_algo.h (shuffle): Likewise.
259 * include/ext/random: Likewise.
260 * include/ext/throw_allocator.h (random_condition): Likewise.
261 * include/std/random: Likewise.
262 * src/c++11/cow-string-inst.cc: Likewise.
263 * src/c++11/random.cc: Likewise.
265 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
267 * testsuite/experimental/feat-cxx14.cc: Remove dependency on
268 _GLIBCXX_USE_C99_STDINT_TR1.
270 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
272 * testsuite/22_locale/locale/cons/unicode.cc: Remove dependency
273 on _GLIBCXX_USE_C99_STDINT_TR1.
275 2023-05-12 Jonathan Wakely <jwakely@redhat.com>
277 * testsuite/21_strings/basic_string_view/typedefs.cc: Remove
278 dependency on _GLIBCXX_USE_C99_STDINT_TR1.
279 * testsuite/experimental/string_view/typedefs.cc: Likewise.
281 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
283 * src/c++17/floating_from_chars.cc [USE_STRTOD_FOR_FROM_CHARS]
284 (auto_locale, auto_ferounding): New class types.
285 (from_chars_impl): Use auto_locale and auto_ferounding.
287 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
290 * include/std/chrono (hh_mm_ss::__fits): Remove variable
292 (hh_mm_ss::__subseconds): Remove __fits from constraints.
293 * testsuite/std/time/hh_mm_ss/109772.cc: New test.
294 * testsuite/std/time/hh_mm_ss/1.cc: Adjust expected size for
295 hh_mm_ss<duration<int, std::pico>>.
297 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
299 * config/abi/pre/gnu.ver: Export basic_string::_S_allocate.
300 * include/bits/basic_ios.h: Add static assertion checking
301 traits_type::value_type.
302 * include/bits/basic_string.h: Likewise. Do not rebind
303 allocator, and add static assertion checking its value_type.
304 (basic_string::_Alloc_traits_impl): Remove class template.
305 (basic_string::_S_allocate): New static member function.
306 (basic_string::assign): Use _S_allocate.
307 * include/bits/basic_string.tcc (basic_string::_M_create)
308 (basic_string::reserve, basic_string::_M_replace): Likewise.
309 * testsuite/21_strings/basic_string/requirements/explicit_instantiation/debug.cc:
310 Disable for C++20 and later.
311 * testsuite/21_strings/basic_string/requirements/explicit_instantiation/int.cc:
314 2023-05-11 Jonathan Wakely <jwakely@redhat.com>
317 * include/bits/std_abs.h (abs(__float128)): Handle negative NaN
318 and negative zero correctly.
319 * testsuite/26_numerics/headers/cmath/109758.cc: New test.
321 2023-05-10 François Dumont <fdumont@gcc.gnu.org>
323 * include/bits/hashtable_policy.h
324 (_NodeBuilder<>::_S_build): Use __node_ptr.
325 (_ReuseOrAllocNode<>): Use __node_ptr in place of __node_type*.
326 (_AllocNode<>): Likewise.
327 (_Equality<>::_M_equal): Remove const_iterator usages. Only preserved
328 to call std::is_permutation in the non-unique key implementation.
329 * include/bits/hashtable.h (_Hashtable<>::_M_update_begin()): Capture
331 (_Hashtable<>::_M_bucket_begin(size_type)): Implement implicitly inline.
332 (_Hashtable<>::_M_insert_bucket_begin): Likewise.
333 (_Hashtable<>::_M_remove_bucket_begin): Likewise.
334 (_Hashtable<>::_M_compute_hash_code): Use __node_ptr rather than
336 (_Hashtable<>::find): Likewise.
337 (_Hashtable<>::_M_emplace): Likewise.
338 (_Hashtable<>::_M_insert_unique): Likewise.
340 2023-05-09 Jonathan Wakely <jwakely@redhat.com>
342 * python/libstdcxx/v6/printers.py (StdChronoDurationPrinter):
343 Print floating-point durations correctly.
344 (StdChronoTimePointPrinter): Support printing only the value,
345 not the type name. Uncomment handling for known clocks.
346 (StdChronoZonedTimePrinter): Remove type names from output.
347 (StdChronoCalendarPrinter): Fix hh_mm_ss member access.
348 (StdChronoTimeZonePrinter): Add equals sign to output.
349 * testsuite/libstdc++-prettyprinters/chrono.cc: New test.
351 2023-05-05 Alexandre Oliva <oliva@adacore.com>
353 * testsuite/20_util/from_chars/4.cc: Skip long double test06
355 * testsuite/20_util/to_chars/long_double.cc: Xfail run on
358 2023-05-04 Jonathan Wakely <jwakely@redhat.com>
360 * doc/xml/manual/abi.xml (abi.versioning.history): Document
361 libstdc++.so.6.0.32 and GLIBCXX_3.4.32 version.
362 * doc/html/manual/abi.html: Regenerate.
364 2023-05-04 Florian Weimer <fweimer@redhat.com>
366 * doc/xml/manual/abi.xml (abi.versioning.history): Add
367 GCC_7.0.0, GCC_9.0.0, GCC_11.0, GCC_12.0.0, GCC_13.0.0 for
370 2023-05-03 Jakub Jelinek <jakub@redhat.com>
372 * src/c++17/floating_from_chars.cc
373 (_ZSt10from_charsPKcS0_RDF128_St12chars_format): New alias to
374 _ZSt10from_charsPKcS0_Ru9__ieee128St12chars_format.
375 * src/c++17/floating_to_chars.cc (_ZSt8to_charsPcS_DF128_): New alias to
376 _ZSt8to_charsPcS_u9__ieee128.
377 (_ZSt8to_charsPcS_DF128_St12chars_format): New alias to
378 _ZSt8to_charsPcS_u9__ieee128St12chars_format.
379 (_ZSt8to_charsPcS_DF128_St12chars_formati): New alias to
380 _ZSt8to_charsPcS_u9__ieee128St12chars_formati.
381 * config/abi/post/powerpc64le-linux-gnu/baseline_symbols.txt: Updated.
383 2023-05-03 Jakub Jelinek <jakub@redhat.com>
385 * configure.host (abi_baseline_pair): Use powerpc64le-linux-gnu
386 rather than powerpc64-linux-gnu for powerpc64le*-linux*.
387 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Remove
388 _ZTI*DF128_, _ZTI*DF64x symbols and symbols in
389 GLIBCXX_IEEE128_3.4.{29,30,31} and CXXABI_IEEE128_1.3.13 symbol
391 * config/abi/post/powerpc64le-linux-gnu/baseline_symbols.txt: New
394 2023-05-03 Kefu Chai <kefu.chai@scylladb.com>
395 Jonathan Wakely <jwakely@redhat.com>
398 * include/bits/basic_string.h (basic_string(Iter, Iter, Alloc)):
399 Initialize _M_string_length.
401 2023-05-02 Jakub Jelinek <jakub@redhat.com>
403 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
404 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
405 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
406 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
407 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
408 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
409 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
410 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
412 2023-05-02 Jakub Jelinek <jakub@redhat.com>
415 * src/c++98/ios_init.cc: Add #pragma GCC diagnostic ignored for
418 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
420 * include/bits/random.h (gamma_distribution): Add to the right
422 (discrete_distribution, piecewise_constant_distribution)
423 (piecewise_linear_distribution): Create a new doxygen group and
424 fix the incomplete doxygen comments.
425 * include/bits/uniform_int_dist.h (uniform_int_distribution):
426 Add to doxygen group.
428 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
430 * include/bits/uses_allocator.h: Add missing @file comment.
431 * include/bits/regex.tcc: Remove stray doxygen comments.
432 * include/experimental/memory_resource: Likewise.
433 * include/std/bit: Tweak doxygen @cond comments.
434 * include/std/expected: Likewise.
435 * include/std/numbers: Likewise.
437 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
439 * doc/doxygen/user.cfg.in (STRIP_FROM_PATH): Remove prefixes
442 2023-04-28 Jonathan Wakely <jwakely@redhat.com>
444 * include/bits/move.h: Simplify opening/closing namespace std.
446 2023-04-28 Jakub Jelinek <jakub@redhat.com>
449 * config/abi/pre/gnu.ver (GLIBCXX_3.4.32): Export
450 _ZSt21ios_base_library_initv.
451 * testsuite/util/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.32
452 symver and make it the latestp.
453 * src/c++98/ios_init.cc (ios_base_library_init): New alias.
454 * acinclude.m4 (libtool_VERSION): Change to 6:32:0.
455 * include/std/iostream: If init_priority attribute is supported
456 and _GLIBCXX_SYMVER_GNU, force undefined _ZSt21ios_base_library_initv
457 symbol into the object.
458 * configure: Regenerated.
460 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
462 * include/bits/mofunc_impl.h: Fix typo in doxygen comment.
463 * include/std/format: Likewise.
465 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
467 * doc/doxygen/user.cfg.in (FORMULA_TRANSPARENT, DOT_FONTNAME)
468 (DOT_FONTSIZE, DOT_TRANSPARENT): Remove obsolete options.
470 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
472 * doc/doxygen/user.cfg.in (SOURCE_BROWSER): Only set to YES for
474 * include/bits/gslice_array.h (_DEFINE_VALARRAY_OPERATOR): Omit
476 * include/bits/indirect_array.h (_DEFINE_VALARRAY_OPERATOR):
478 * include/bits/mask_array.h (_DEFINE_VALARRAY_OPERATOR):
480 * include/bits/slice_array.h (_DEFINE_VALARRAY_OPERATOR):
482 * include/std/valarray (_DEFINE_VALARRAY_UNARY_OPERATOR)
483 (_DEFINE_VALARRAY_AUGMENTED_ASSIGNMENT)
484 (_DEFINE_VALARRAY_EXPR_AUGMENTED_ASSIGNMENT)
485 (_DEFINE_BINARY_OPERATOR): Likewise.
487 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
489 * include/bits/memory_resource.h: Improve doxygen comments.
490 * include/std/memory_resource: Likewise.
492 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
495 * include/bits/basic_string.h: Improve doxygen comments.
496 * include/bits/cow_string.h: Likewise.
497 * include/bits/forward_list.h: Likewise.
498 * include/bits/fs_dir.h: Likewise.
499 * include/bits/fs_path.h: Likewise.
500 * include/bits/quoted_string.h: Likewise.
501 * include/bits/stl_bvector.h: Likewise.
502 * include/bits/stl_map.h: Likewise.
503 * include/bits/stl_multimap.h: Likewise.
504 * include/bits/stl_multiset.h: Likewise.
505 * include/bits/stl_set.h: Likewise.
506 * include/bits/stl_vector.h: Likewise.
507 * include/bits/unordered_map.h: Likewise.
508 * include/bits/unordered_set.h: Likewise.
509 * include/std/filesystem: Likewise.
510 * include/std/iomanip: Likewise.
512 2023-04-27 Jonathan Wakely <jwakely@redhat.com>
515 * src/c++11/random.cc (__throw_syserr): New function.
516 (random_device::_M_init, random_device::_M_init_pretr1): Use new
517 function for bad tokens.
518 (random_device::_M_getval): Use new function for read errors.
519 * testsuite/util/testsuite_random.h (random_device_available):
520 Change catch handler to use std::system_error.
522 2023-04-24 Patrick Palka <ppalka@redhat.com>
524 * include/bits/max_size_type.h (__max_diff_type::operator>>=):
525 Fix propagation of sign bit.
526 * testsuite/std/ranges/iota/max_size_type.cc: Avoid using the
527 non-standard 'signed typedef-name'. Add some compile-time tests
528 for right-shifting a negative __max_diff_type value by more than
531 2023-04-19 Patrick Palka <ppalka@redhat.com>
532 Jonathan Wakely <jwakely@redhat.com>
535 * include/bits/utility.h (_Nth_type): Conditionally define in
536 terms of __type_pack_element if available.
537 * testsuite/20_util/tuple/element_access/get_neg.cc: Prune
538 additional errors from the new built-in.
540 2023-04-19 Jonathan Wakely <jwakely@redhat.com>
543 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
546 * src/Makefile.am: Move globals_io.cc to here.
547 * src/Makefile.in: Regenerate.
548 * src/c++98/Makefile.am: Remove globals_io.cc from here.
549 * src/c++98/Makefile.in: Regenerate.
550 * src/c++98/globals_io.cc [_GLIBCXX_SYMVER_GNU] (cin): Adjust
551 symbol name and then export with GLIBCXX_3.4.31 symver.
552 (cout, cerr, clog, wcin, wcout, wcerr, wclog): Likewise.
553 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt:
555 * config/abi/post/i486-linux-gnu/baseline_symbols.txt:
557 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt:
559 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
561 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
563 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
565 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt:
567 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt:
569 * config/abi/pre/gnu.ver: Add iostream objects to new symver.
571 2023-04-19 Jonathan Wakely <jwakely@redhat.com>
574 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
577 * config/abi/pre/gnu.ver: Fix preprocessor condition.
579 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
581 * doc/xml/manual/extensions.xml: Fix example to declare and
582 qualify std::free, and use NULL instead of 0.
583 * doc/html/manual/ext_demangling.html: Regenerate.
584 * libsupc++/cxxabi.h: Adjust doxygen comments.
586 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
589 * config/abi/pre/gnu.ver: Fix preprocessor condition.
591 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
594 * src/Makefile.am: Move globals_io.cc to here.
595 * src/Makefile.in: Regenerate.
596 * src/c++98/Makefile.am: Remove globals_io.cc from here.
597 * src/c++98/Makefile.in: Regenerate.
598 * src/c++98/globals_io.cc [_GLIBCXX_SYMVER_GNU] (cin): Adjust
599 symbol name and then export with GLIBCXX_3.4.31 symver.
600 (cout, cerr, clog, wcin, wcout, wcerr, wclog): Likewise.
601 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt:
603 * config/abi/post/i486-linux-gnu/baseline_symbols.txt:
605 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt:
607 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
609 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
611 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
613 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt:
615 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt:
617 * config/abi/pre/gnu.ver: Add iostream objects to new symver.
619 2023-04-18 Patrick Palka <ppalka@redhat.com>
622 * include/bits/ranges_cmp.h (__cpp_lib_ranges): Bump value
624 * include/std/ranges (range_adaptor_closure): Define for C++23.
625 * include/std/version (__cpp_lib_ranges): Bump value for
627 * testsuite/std/ranges/version_c++23.cc: Bump expected value
629 * testsuite/std/ranges/range_adaptor_closure.cc: New test.
631 2023-04-18 Patrick Palka <ppalka@redhat.com>
633 * include/bits/ranges_algo.h (__cpp_lib_ranges_contains):
635 (__cpp_lib_ranges_iota): Likewise.
636 (__cpp_lib_ranges_find_last): Likewise.
637 (__cpp_lib_fold): Rename to ...
638 (__cpp_lib_ranges_fold): ... this.
639 * include/std/version: As above.
640 * testsuite/25_algorithms/fold_left/1.cc: Adjust after
641 renaming __cpp_lib_fold.
642 * testsuite/std/ranges/version_c++23.cc: Verify values
643 of the above feature-test macros.
645 2023-04-18 Patrick Palka <ppalka@redhat.com>
648 * include/std/ranges (views::_AsConst::operator()): Add
649 missing const to constant_range test.
650 * testsuite/std/ranges/adaptors/as_const/1.cc (test02):
651 Improve formatting. Adjust expected type of v2.
654 2023-04-14 Patrick Palka <ppalka@redhat.com>
656 * include/bits/ranges_base.h (const_iterator_t): Define for C++23.
657 (const_sentinel_t): Likewise.
658 (range_const_reference_t): Likewise.
659 (constant_range): Likewise.
660 (__cust_access::__possibly_const_range): Likewise, replacing ...
661 (__cust_access::__as_const): ... this.
662 (__cust_access::_CBegin::operator()): Redefine for C++23 as per P2278R4.
663 (__cust_access::_CEnd::operator()): Likewise.
664 (__cust_access::_CRBegin::operator()): Likewise.
665 (__cust_access::_CREnd::operator()): Likewise.
666 (__cust_access::_CData::operator()): Likewise.
667 * include/bits/ranges_util.h (ranges::__detail::__different_from):
668 Make it an alias of std::__detail::__different_from.
669 (view_interface::cbegin): Define for C++23.
670 (view_interface::cend): Likewise.
671 * include/bits/stl_iterator.h (__detail::__different_from): Define.
672 (iter_const_reference_t): Define for C++23.
673 (__detail::__constant_iterator): Likewise.
674 (__detail::__is_const_iterator): Likewise.
675 (__detail::__not_a_const_iterator): Likewise.
676 (__detail::__iter_const_rvalue_reference_t): Likewise.
677 (__detail::__basic_const_iter_cat):: Likewise.
678 (const_iterator): Likewise.
679 (__detail::__const_sentinel): Likewise.
680 (const_sentinel): Likewise.
681 (basic_const_iterator): Likewise.
682 (common_type<basic_const_iterator<_Tp>, _Up>): Likewise.
683 (common_type<_Up, basic_const_iterator<_Tp>>): Likewise.
684 (common_type<basic_const_iterator<_Tp>, basic_const_iterator<Up>>):
686 (make_const_iterator): Define for C++23.
687 (make_const_sentinel): Likewise.
688 * include/std/ranges (__cpp_lib_ranges_as_const): Likewise.
689 (as_const_view): Likewise.
690 (enable_borrowed_range<as_const_view>): Likewise.
691 (views::__detail::__is_ref_view): Likewise.
692 (views::__detail::__can_is_const_view): Likewise.
693 (views::_AsConst, views::as_const): Likewise.
694 * include/std/span (span::const_iterator): Likewise.
695 (span::const_reverse_iterator): Likewise.
696 (span::cbegin): Likewise.
697 (span::cend): Likewise.
698 (span::crbegin): Likewise.
699 (span::crend): Likewise.
700 * include/std/version (__cpp_lib_ranges_as_const): Likewise.
701 * testsuite/std/ranges/adaptors/join.cc (test06): Adjust to
702 behave independently of C++20 vs C++23.
703 * testsuite/std/ranges/version_c++23.cc: Verify value of
704 __cpp_lib_ranges_as_const macro.
705 * testsuite/24_iterators/const_iterator/1.cc: New test.
706 * testsuite/std/ranges/adaptors/as_const/1.cc: New test.
708 2023-04-14 Patrick Palka <ppalka@redhat.com>
710 * include/bits/ranges_base.h (__cust_access::__as_const)
711 (__cust_access::_CBegin, __cust::cbegin)
712 (__cust_access::_CEnd, __cust::cend)
713 (__cust_access::_CRBegin, __cust::crbegin)
714 (__cust_access::_CREnd, __cust::crend)
715 (__cust_access::_CData, __cust::cdata): Move down definitions to
716 shortly after the definition of input_range.
718 2023-04-14 Patrick Palka <ppalka@redhat.com>
720 * include/bits/ranges_algo.h: Include <optional> for C++23.
721 (__cpp_lib_fold): Define for C++23.
722 (in_value_result): Likewise.
723 (__detail::__flipped): Likewise.
724 (__detail::__indirectly_binary_left_foldable_impl): Likewise.
725 (__detail::__indirectly_binary_left_foldable): Likewise.
726 (___detail:__indirectly_binary_right_foldable): Likewise.
727 (fold_left_with_iter_result): Likewise.
728 (__fold_left_with_iter_fn, fold_left_with_iter): Likewise.
729 (__fold_left_fn, fold_left): Likewise.
730 (__fold_left_first_with_iter_fn, fold_left_first_with_iter):
732 (__fold_left_first_fn, fold_left_first): Likewise.
733 (__fold_right_fn, fold_right): Likewise.
734 (__fold_right_last_fn, fold_right_last): Likewise.
735 * include/std/version (__cpp_lib_fold): Likewise.
736 * testsuite/25_algorithms/fold_left/1.cc: New test.
737 * testsuite/25_algorithms/fold_right/1.cc: New test.
739 2023-04-14 Jonathan Wakely <jwakely@redhat.com>
741 * include/std/format (formatter): Add comment to deleted default
742 constructor of primary template.
743 (_Checking_scanner): Add static_assert.
745 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
747 * doc/xml/manual/using.xml: Document libstdc++exp.a library.
748 * doc/html/*: Regenerate.
750 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
752 * testsuite/17_intro/names.cc [_AIX]: Do not define policy.
753 * testsuite/19_diagnostics/error_code/cons/lwg3629.cc: Rename
754 namespace to avoid clashing with libc struct.
755 * testsuite/19_diagnostics/error_condition/cons/lwg3629.cc:
757 * testsuite/23_containers/unordered_map/96088.cc: Skip on AIX.
758 * testsuite/23_containers/unordered_multimap/96088.cc: Likewise.
759 * testsuite/23_containers/unordered_multiset/96088.cc: Likewise.
760 * testsuite/23_containers/unordered_set/96088.cc: Likewise.
761 * testsuite/experimental/synchronized_value.cc: Require gthreads
762 and add missing option for pthreads targets.
764 2023-04-12 Patrick Palka <ppalka@redhat.com>
766 * include/std/ranges (__cpp_lib_ranges_enumerate): Define
768 (__detail::__range_with_movable_reference): Likewise.
769 (enumerate_view): Likewise.
770 (enumerate_view::_Iterator): Likewise.
771 (enumerate_view::_Sentinel): Likewise.
772 (views::__detail::__can_enumerate_view): Likewise.
773 (views::_Enumerate, views::enumerate): Likewise.
774 * include/std/version (__cpp_lib_ranges_enumerate): Likewise.
775 * testsuite/std/ranges/version_c++23.cc: Verify value of
776 __cpp_lib_ranges_enumerate.
777 * testsuite/std/ranges/adaptors/enumerate/1.cc: New test.
779 2023-04-12 Patrick Palka <ppalka@redhat.com>
781 * include/std/ranges (lazy_split_view::_OuterIter::_OuterIter):
782 Propagate _M_trailing_empty in the const-converting constructor
784 * testsuite/std/ranges/adaptors/adjacent/1.cc (test04): Correct
786 * testsuite/std/ranges/adaptors/lazy_split.cc (test12): New test.
788 2023-04-12 Patrick Palka <ppalka@redhat.com>
790 * src/c++17/floating_from_chars.cc: Include <algorithm>,
791 <iterator>, <limits> and <cstdint>.
793 2023-04-12 Patrick Palka <ppalka@redhat.com>
796 * include/std/ranges (chunk_by_view::_M_find_next): Generalize
797 parameter types of the lambda wrapper passed to adjacent_find.
798 (chunk_by_view::_M_find_prev): Likewise.
799 * testsuite/std/ranges/adaptors/chunk_by/1.cc (test04, test05):
802 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
805 * include/experimental/internet (basic_endpoint::basic_endpoint()):
806 Ensure that the required union members are active. Only define
807 as constexpr for C++20 and later.
808 (basic_endpoint::basic_endpoint(const protocol_type&, port_type)):
810 * testsuite/experimental/net/internet/endpoint/cons.cc: Only
811 check constexpr default constructor for C++20 and later.
812 * testsuite/experimental/net/internet/endpoint/extensible.cc:
815 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
817 * src/c++20/tzdata.zi: Import new file from 2023c release.
819 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
821 * include/precompiled/stdc++.h (C++17): Don't double-include
822 <charconv>, once with wrong conditions.
823 * testsuite/18_support/96817.cc: Require hosted.
824 * testsuite/18_support/bad_exception/59392.cc: Ditto.
825 * testsuite/20_util/scoped_allocator/108952.cc: Ditto.
826 * testsuite/20_util/uses_allocator/lwg3527.cc: Ditto.
827 * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
830 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
832 * include/bits/c++config: When __STDC_HOSTED__ is zero,
833 disable _GLIBCXX_DEBUG and, if it was set, enable
835 * testsuite/lib/libstdc++.exp (check_v3_target_debug_mode):
836 Include <bits/c++config.h> when determining whether debug is
837 set, in order to inherit the logic from above
839 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
841 * testsuite/17_intro/versionconflict.cc: New test.
842 * include/std/version: Allow disabling the system_header pragma
843 via _GLIBCXX_TESTING_SYSHDR.
845 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
847 * include/bits/unique_ptr.h (__cpp_lib_constexpr_memory):
848 Synchronize the definition block with...
849 * include/bits/ptr_traits.h (__cpp_lib_constexpr_memory):
850 ... this one here. Also define the 202202L value, rather than
851 leaving it up to purely unique_ptr.h, so that the value is
852 synchronized across all headers.
853 (__gnu_debug::_Safe_iterator_base): Move into new conditional
855 * include/std/memory (__cpp_lib_atomic_value_initialization):
856 Define on freestanding under the same conditions as in
858 * include/std/version (__cpp_lib_robust_nonmodifying_seq_ops):
859 Also define on freestanding.
860 (__cpp_lib_to_chars): Ditto.
861 (__cpp_lib_gcd): Ditto.
862 (__cpp_lib_gcd_lcm): Ditto.
863 (__cpp_lib_raw_memory_algorithms): Ditto.
864 (__cpp_lib_array_constexpr): Ditto.
865 (__cpp_lib_nonmember_container_access): Ditto.
866 (__cpp_lib_clamp): Ditto.
867 (__cpp_lib_constexpr_char_traits): Ditto.
868 (__cpp_lib_constexpr_string): Ditto.
869 (__cpp_lib_sample): Ditto.
870 (__cpp_lib_lcm): Ditto.
871 (__cpp_lib_constexpr_iterator): Ditto.
872 (__cpp_lib_constexpr_char_traits): Ditto.
873 (__cpp_lib_interpolate): Ditto.
874 (__cpp_lib_constexpr_utility): Ditto.
875 (__cpp_lib_shift): Ditto.
876 (__cpp_lib_ranges): Ditto.
877 (__cpp_lib_move_iterator_concept): Ditto.
878 (__cpp_lib_constexpr_numeric): Ditto.
879 (__cpp_lib_constexpr_functional): Ditto.
880 (__cpp_lib_constexpr_algorithms): Ditto.
881 (__cpp_lib_constexpr_tuple): Ditto.
882 (__cpp_lib_constexpr_memory): Ditto.
884 2023-04-05 John David Anglin <danglin@gcc.gnu.org>
886 * testsuite/22_locale/locale/cons/12658_thread-2.cc: Double
887 timeout factor on hppa*-*-*.
889 2023-04-05 Jonathan Wakely <jwakely@redhat.com>
891 * include/bits/regex.h (sub_match::swap): New function.
892 * testsuite/28_regex/sub_match/lwg3204.cc: New test.
894 2023-04-04 Jonathan Wakely <jwakely@redhat.com>
896 * doc/xml/manual/extensions.xml: Remove std::bad_exception from
898 * doc/html/manual/ext_demangling.html: Regenerate.
900 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
902 PR tree-optimization/107087
903 * include/bits/cow_string.h (basic_string::size()): Add
904 optimizer hint that _S_empty_rep()._M_length is always zero.
905 (basic_string::length()): Call size().
907 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
910 * include/std/stop_token (_Stop_state_ptr(const stop_source&)):
911 Add attribute access with access-mode 'none'.
912 * testsuite/30_threads/stop_token/stop_source/109339.cc: New test.
914 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
916 * include/experimental/internet (ip::basic_endpoint::_M_if_v6):
917 Revert change from member function to data member. Fix for
918 constant evaluation by detecting which union member is active.
919 (ip::basic_endpoint::resize): Revert changes to update _M_is_v6
922 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
925 * testsuite/20_util/optional/monadic/pr109340.cc: Moved to...
926 * testsuite/20_util/optional/monadic/pr109242.cc: ...here.
928 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
930 * include/experimental/internet (ip::make_address): Implement
932 (ip::address_v4::broadcast()): Avoid undefined shift.
933 (ip::basic_endpoint): Fix member functions for constexpr.
934 (ip::basic_endpoint::_M_is_v6): Replace member function with
935 data member, adjust member functions using it.
936 (ip::basic_endpoint::resize): Update _M_is_v6 based on sockaddr
938 * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
939 constexpr checks to work in C++14.
940 * testsuite/experimental/net/internet/address/v4/creation.cc:
942 * testsuite/experimental/net/internet/endpoint/cons.cc:
944 * testsuite/experimental/net/internet/network/v4/cons.cc:
946 * testsuite/experimental/net/internet/network/v4/members.cc:
948 * testsuite/experimental/net/internet/endpoint/extensible.cc: New test.
950 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
952 * include/std/expected (expected::value() &): Use const lvalue
953 for unex member passed to bad_expected_access constructor, as
956 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
959 * include/std/expected (expected::transform): Use
960 std::remove_cv_t instead of std::remove_cvref_t.
961 (expected::transform_error): Likewise.
962 (expected<cv void, E>::transform): Likewise.
963 (expected<cv void, E>::transform_error): Likewise.
964 * include/std/optional (transform): Use std::remove_cv_t.
965 * testsuite/20_util/optional/monadic/pr109340.cc: New test.
967 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
969 * include/std/optional (optional): Adjust static assertion to
970 reject arrays and functions as well as references.
971 * testsuite/20_util/optional/requirements_neg.cc: New test.
973 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
976 * include/bits/istream.tcc (istream::_M_extract(ValueT&)): Use
977 std::use_facet instead of cached _M_num_get facet.
978 (istream::operator>>(short&)): Likewise.
979 (istream::operator>>(int&)): Likewise.
980 * include/bits/ostream.tcc (ostream::_M_insert(ValueT)): Use
981 std::use_facet instead of cached _M_num_put facet.
983 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
985 * include/bits/char_traits.h (char_traits::copy): Return without
986 using memcpy if n==0.
987 (char_traits::assign): Likewise for memset.
989 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
992 * include/bits/basic_string.h (basic_string::_M_is_local()): Add
993 hint for compiler that local strings fit in the local buffer.
995 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
998 * include/std/chrono (__detail::__get_leap_second_info): Update
999 expiry date of hardcoded leapseconds list.
1000 * src/c++20/tzdb.cc (tzdb_list::_Node::_S_read_leap_seconds()):
1002 * src/c++20/tzdata.zi: Import new file from 2023a release.
1003 * testsuite/std/time/time_zone/get_info_local.cc: Only check
1004 transitions for Egypt up to 2014.
1006 2023-03-28 Matthias Kretz <m.kretz@gsi.de>
1008 * include/experimental/bits/simd.h (is_simd_flag_type): New.
1009 (_IsSimdFlagType): New.
1010 (copy_from, copy_to, load ctors): Constrain _Flags using
1013 2023-03-28 Matthias Kretz <m.kretz@gsi.de>
1015 * include/experimental/bits/simd_x86.h (_SimdImplX86): Use
1016 _Base::_S_divides if the optimized _S_divides function is hidden
1017 via the preprocessor.
1019 2023-03-27 Jakub Jelinek <jakub@redhat.com>
1021 * testsuite/experimental/net/timer/waitable/dest.cc: Avoid -Wformat
1022 warning if size_t is not unsigned long.
1024 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
1026 * include/bits/shared_ptr_atomic.h (atomic::operator=(nullptr_t)):
1027 Add overload, as per LWG 3893.
1028 * testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc:
1029 Check assignment from nullptr.
1031 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
1033 * include/std/format (formatter<const charT[N], charT>): Do not
1034 define partial speclialization, as per LWG 3833.
1035 * testsuite/std/format/formatter/requirements.cc: Check it.
1037 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
1039 * include/std/utility (__cpp_lib_constexpr_algorithms): Define,
1041 * testsuite/20_util/exchange/constexpr.cc: Check for it.
1043 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
1045 * include/std/version (__cpp_lib_format): Define.
1046 * testsuite/std/format/functions/format.cc: Check it.
1048 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
1050 * include/bits/basic_string.tcc (basic_string::resize_and_overwrite):
1051 Pass rvalues to the callback, as now allowed by LWG 3645.
1052 Enforce preconditions on the return value.
1053 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
1056 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
1058 * include/std/format: Add a comment noting that the resolution
1059 of LWG 3720 has been applied..
1061 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
1063 * include/bits/regex.h (match_results): Add allocator-extended
1064 copy and move constructors, as per LWG 2195.
1065 * testsuite/28_regex/match_results/ctors/char/alloc.cc: New test.
1067 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
1069 * include/bits/stream_iterator.h (istream_iterator): Add
1070 constexpr to copy constructor, as per LWG 3600.
1071 * testsuite/24_iterators/istream_iterator/cons/constexpr.cc:
1072 Check copy construction.
1074 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
1076 * include/experimental/bits/simd_x86.h
1077 (_SimdImplX86::_S_divides): Replace test for __GCC_IEC_559 == 0
1078 with __RECIPROCAL_MATH__.
1080 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
1082 * include/experimental/bits/simd_detail.h: Don't define
1083 _GLIBCXX_SIMD_WORKAROUND_PR90993 for Clang.
1084 * include/experimental/bits/simd_x86.h (_S_divides): Remove
1085 check for __clang__.
1087 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
1089 * include/experimental/bits/simd_detail.h: Don't declare the
1090 simd API as constexpr with Clang.
1091 * include/experimental/bits/simd_x86.h (__movm): New.
1092 (_S_blend_avx512): Resolve FIXME. Implement blend using __movm
1094 (_SimdImplX86::_S_masked_unary): Clang does not implement the
1095 same builtins. Implement the function using __movm, ?:, and -
1096 operators on vector_size types instead.
1098 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
1100 * testsuite/experimental/simd/tests/operators.cc: Clang doesn't
1101 define __GCC_IEC_559. Use __STDC_IEC_559__ instead.
1103 2023-03-20 Jonathan Wakely <jwakely@redhat.com>
1105 * src/filesystem/ops-common.h (get_temp_directory_from_env): Fix
1108 2023-03-20 Marek Polacek <polacek@redhat.com>
1111 * testsuite/20_util/pair/cons/explicit_construct.cc: Adjust dg-error.
1112 * testsuite/20_util/tuple/cons/explicit_construct.cc: Likewise.
1113 * testsuite/23_containers/span/explicit.cc: Likewise.
1115 2023-03-20 Jonathan Wakely <jwakely@redhat.com>
1118 * include/std/expected (expected<void>::expected(in_place_t)):
1119 Remove template-head.
1121 2023-03-18 Jonathan Wakely <jwakely@redhat.com>
1124 * testsuite/18_support/coroutines/hash.cc: Use const object
1127 2023-03-17 Jonathan Wakely <jwakely@redhat.com>
1130 * include/std/coroutine (hash<>::operator()): Add const.
1131 * testsuite/18_support/coroutines/hash.cc: New test.
1133 2023-03-14 Patrick Palka <ppalka@redhat.com>
1136 * include/std/ranges (repeat_view): Remove redundant parentheses
1138 (repeat_view::_Iterator): Correct the requires-clause.
1140 2023-03-14 Patrick Palka <ppalka@redhat.com>
1142 * include/bits/stl_iterator.h (move_iterator::_S_iter_concept):
1144 (__cpp_lib_move_iterator_concept): Define for C++20.
1145 (move_iterator::iterator_concept): Strengthen as per P2520R0.
1146 * include/std/version (__cpp_lib_move_iterator_concept): Define
1148 * testsuite/24_iterators/move_iterator/p2520r0.cc: New test.
1150 2023-03-14 Patrick Palka <ppalka@redhat.com>
1152 * include/bits/ranges_util.h (view_interface::empty): Add
1153 preferred overloads that use ranges::size when the range is
1154 sized as per LWG 3715.
1155 * testsuite/std/ranges/adaptors/lwg3715.cc: New test.
1157 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
1159 * include/bits/chrono.h (__is_duration_v, __is_time_point_v):
1160 Only define for C++17 and later.
1162 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
1164 * src/Makefile.am: Add comment about linker script fragments.
1165 * src/Makefile.in: Regenerate.
1167 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
1170 * include/bits/mask_array.h (mask_array): Add assertions to
1171 assignment operators.
1172 * include/std/valarray (valarray::operator[](valarray<bool>)):
1174 * testsuite/26_numerics/valarray/mask-1_neg.cc: New test.
1175 * testsuite/26_numerics/valarray/mask-2_neg.cc: New test.
1176 * testsuite/26_numerics/valarray/mask-3_neg.cc: New test.
1177 * testsuite/26_numerics/valarray/mask-4_neg.cc: New test.
1178 * testsuite/26_numerics/valarray/mask-5_neg.cc: New test.
1179 * testsuite/26_numerics/valarray/mask-6_neg.cc: New test.
1180 * testsuite/26_numerics/valarray/mask-7_neg.cc: New test.
1181 * testsuite/26_numerics/valarray/mask-8_neg.cc: New test.
1182 * testsuite/26_numerics/valarray/mask.cc: New test.
1184 2023-03-13 Jakub Jelinek <jakub@redhat.com>
1186 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
1187 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
1189 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
1191 * doc/Makefile.am: Add comment referring to documentation.
1192 * doc/Makefile.in: Regenerate.
1194 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
1196 * doc/html/*: Regenerate.
1198 2023-03-13 Jonny Grant <jg@jguk.org>
1200 * doc/xml/faq.xml: Update copyright year.
1202 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
1204 * include/bits/allocator.h: Fix typo in comment.
1206 2023-03-12 Jakub Jelinek <jakub@redhat.com>
1208 * config/abi/pre/gnu.ver (CXXABI_1.3.14): Also export __bf16 tinfos
1209 if it isn't mangled as DF16b but u6__bf16.
1211 2023-03-12 Gerald Pfeifer <gerald@pfeifer.com>
1213 * doc/xml/manual/documentation_hacking.xml: Move www.graphviz.org
1215 * doc/html/manual/documentation_hacking.html: Regenerate.
1217 2023-03-10 Jonathan Wakely <jwakely@redhat.com>
1220 * python/libstdcxx/v6/xmethods.py (SharedPtrUseCountWorker):
1221 Remove self-recursion in __init__. Add missing _supports.
1222 * testsuite/libstdc++-xmethods/shared_ptr.cc: Check use_count()
1225 2023-03-09 Patrick Palka <ppalka@redhat.com>
1227 * include/std/ranges
1228 (cartesian_product_view::_Iterator::_Iterator): Remove
1229 constraint on default constructor as per LWG 3849.
1230 (cartesian_product_view::_Iterator::_M_prev): Adjust position
1231 of _Nm > 0 test as per LWG 3820.
1232 (cartesian_product_view::_Iterator::_M_advance): Perform bounds
1233 checking only on sized cartesian products.
1234 * testsuite/std/ranges/cartesian_product/1.cc (test08): New test.
1236 2023-03-09 Patrick Palka <ppalka@redhat.com>
1239 * include/std/ranges (chunk_by_view::_M_pred): Remove DMI as per
1241 (repeat_view::_M_pred): Likewise.
1242 * testsuite/std/ranges/adaptors/chunk_by/1.cc (test03): New test.
1243 * testsuite/std/ranges/repeat/1.cc (test05): New test.
1245 2023-03-09 Patrick Palka <ppalka@redhat.com>
1248 * include/std/ranges (__detail::__can_single_view): New concept.
1249 (_Single::operator()): Constrain it. Move [[nodiscard]] to the
1250 end of the function declarator.
1251 (__detail::__can_iota_view): New concept.
1252 (_Iota::operator()): Constrain it. Move [[nodiscard]] to the
1253 end of the function declarator.
1254 (__detail::__can_istream_view): New concept.
1255 (_Istream::operator()): Constrain it. Move [[nodiscard]] to the
1256 end of the function declarator.
1257 * testsuite/std/ranges/iota/iota_view.cc (test07): New test.
1258 * testsuite/std/ranges/istream_view.cc (test08): New test.
1259 * testsuite/std/ranges/single_view.cc (test07): New test.
1261 2023-03-09 Patrick Palka <ppalka@redhat.com>
1264 * include/std/ranges (cartesian_product_view::end): When
1265 building the tuple of iterators, avoid calling ranges::begin on
1266 the first range if __empty_tail is false.
1267 * testsuite/std/ranges/cartesian_product/1.cc (test07): New test.
1269 2023-03-09 Jonathan Wakely <jwakely@redhat.com>
1272 * config/os/gnu-linux/ldbl-ieee128-extra.ver: Fix incorrect
1275 2023-03-07 Jakub Jelinek <jakub@redhat.com>
1277 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1278 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
1279 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
1280 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
1281 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
1283 2023-03-07 Jonathan Wakely <jwakely@redhat.com>
1286 * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Adjust patterns to
1287 not match symbols in namespace std::__gnu_cxx11_ieee128.
1288 * config/os/gnu-linux/ldbl-ieee128-extra.ver: Add patterns for
1289 std::__gnu_cxx11_ieee128::money_{get,put}.
1291 2023-03-07 Jonathan Wakely <jwakely@redhat.com>
1293 * libsupc++/eh_personality.cc: Fix spelling in comment.
1295 2023-03-03 Alexandre Oliva <oliva@adacore.com>
1297 * testsuite/30_threads/async/async.cc (test04): Initialize
1298 steady_start, renamed from steady_begin, next to slow_start.
1299 Increase tolerance for final wait.
1301 2023-03-03 Alexandre Oliva <oliva@adacore.com>
1303 * testsuite/libstdc++-prettyprinters/80276.cc: Add
1304 std::string to debug info.
1305 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
1307 2023-03-03 Alexandre Oliva <oliva@adacore.com>
1312 * include/bits/std_thread.h (thread::_M_thread_deps): New
1313 static implicitly-inline member function.
1314 (std::thread template ctor): Pass it to _M_start_thread.
1315 * src/c++11/thread.cc (thread::_M_start_thread): Name depend
1316 parameter, force it live on entry.
1318 2023-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1320 * config/abi/post/i386-solaris/baseline_symbols.txt: Regenerate.
1321 * config/abi/post/i386-solaris/amd64/baseline_symbols.txt:
1323 * config/abi/post/sparc-solaris/baseline_symbols.txt: Likewise.
1324 * config/abi/post/sparc-solaris/sparcv9/baseline_symbols.txt:
1327 2023-03-01 Jonathan Wakely <jwakely@redhat.com>
1329 * include/bits/cow_string.h: Fix typo in comment.
1331 2023-03-01 Jonathan Wakely <jwakely@redhat.com>
1333 * src/c++20/tzdb.cc (chrono::tzdb::current_zone()) Use "UTC" if
1334 current time zone cannot be determined.
1335 * testsuite/std/time/tzdb/1.cc: Remove conditions based on
1336 HAVE_TZDB macro and test all members unconditionally.
1338 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
1341 * include/bits/uses_allocator_args.h
1342 (uses_allocator_construction_args): Implement LWG 3527.
1343 * testsuite/20_util/pair/astuple/get-2.cc: New test.
1344 * testsuite/20_util/scoped_allocator/108952.cc: New test.
1345 * testsuite/20_util/uses_allocator/lwg3527.cc: New test.
1347 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
1350 * include/bits/stl_algobase.h (__copy_move<false, false, RA>)
1351 Add __assign_one static member function.
1352 (__copy_move<true, false, RA>): Likewise.
1353 (__copy_move<IsMove, true, RA>): Do not use memmove for a single
1355 (__copy_move_backward<IsMove, true, RA>): Likewise.
1356 * testsuite/25_algorithms/copy/108846.cc: New test.
1357 * testsuite/25_algorithms/copy_backward/108846.cc: New test.
1358 * testsuite/25_algorithms/copy_n/108846.cc: New test.
1359 * testsuite/25_algorithms/move/108846.cc: New test.
1360 * testsuite/25_algorithms/move_backward/108846.cc: New test.
1362 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
1364 * src/c++11/codecvt.cc: Add [[likely]] and [[unlikely]]
1367 2023-02-27 Jonathan Wakely <jwakely@redhat.com>
1369 * include/bits/basic_ios.h (basic_ios::_M_setstate): Add
1371 * include/bits/basic_string.h (resize_and_overwrite): Add
1374 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
1376 * include/experimental/bits/simd.h: Line breaks and indenting
1377 fixed to follow the libstdc++ standard.
1378 * include/experimental/bits/simd_builtin.h: Likewise.
1379 * include/experimental/bits/simd_fixed_size.h: Likewise.
1380 * include/experimental/bits/simd_neon.h: Likewise.
1381 * include/experimental/bits/simd_ppc.h: Likewise.
1382 * include/experimental/bits/simd_scalar.h: Likewise.
1383 * include/experimental/bits/simd_x86.h: Likewise.
1385 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
1388 * include/experimental/bits/simd_fixed_size.h
1389 (_SimdImplFixedSize::_S_broadcast): Replace inline with
1390 _GLIBCXX_SIMD_INTRINSIC.
1391 (_SimdImplFixedSize::_S_generate): Likewise.
1392 (_SimdImplFixedSize::_S_load): Likewise.
1393 (_SimdImplFixedSize::_S_masked_load): Likewise.
1394 (_SimdImplFixedSize::_S_store): Likewise.
1395 (_SimdImplFixedSize::_S_masked_store): Likewise.
1396 (_SimdImplFixedSize::_S_min): Likewise.
1397 (_SimdImplFixedSize::_S_max): Likewise.
1398 (_SimdImplFixedSize::_S_complement): Likewise.
1399 (_SimdImplFixedSize::_S_unary_minus): Likewise.
1400 (_SimdImplFixedSize::_S_plus): Likewise.
1401 (_SimdImplFixedSize::_S_minus): Likewise.
1402 (_SimdImplFixedSize::_S_multiplies): Likewise.
1403 (_SimdImplFixedSize::_S_divides): Likewise.
1404 (_SimdImplFixedSize::_S_modulus): Likewise.
1405 (_SimdImplFixedSize::_S_bit_and): Likewise.
1406 (_SimdImplFixedSize::_S_bit_or): Likewise.
1407 (_SimdImplFixedSize::_S_bit_xor): Likewise.
1408 (_SimdImplFixedSize::_S_bit_shift_left): Likewise.
1409 (_SimdImplFixedSize::_S_bit_shift_right): Likewise.
1410 (_SimdImplFixedSize::_S_remquo): Add inline keyword (to be
1411 explicit about not always-inline, yet).
1412 (_SimdImplFixedSize::_S_isinf): Likewise.
1413 (_SimdImplFixedSize::_S_isfinite): Likewise.
1414 (_SimdImplFixedSize::_S_isnan): Likewise.
1415 (_SimdImplFixedSize::_S_isnormal): Likewise.
1416 (_SimdImplFixedSize::_S_signbit): Likewise.
1418 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
1421 * include/experimental/bits/simd_builtin.h
1422 (_SimdImplBuiltin::_S_masked_unary): More efficient
1423 implementation of masked inc-/decrement for integers and floats
1425 * include/experimental/bits/simd_x86.h
1426 (_SimdImplX86::_S_masked_unary): New. Use AVX512 masked subtract
1427 builtins for masked inc-/decrement.
1429 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
1431 * include/experimental/executor (executor): Constrain template
1434 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
1436 * include/experimental/internet (basic_endpoint): Add missing
1437 constexpr to comparison operators.
1438 * testsuite/experimental/net/internet/endpoint/cons.cc: New test.
1440 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
1442 * include/experimental/internet (network_v4::netmask()): Avoid
1444 (network_v4::broadcast()): Optimize and fix for targets with
1445 uint_least32_t wider than 32 bits.
1446 (network_v4::to_string(const Allocator&)): Fix for custom
1447 allocators and optimize using to_chars.
1448 (operator==(const network_v4&, const network_v4&)): Add missing
1450 (operator==(const network_v6&, const network_v6&)): Likewise.
1451 * testsuite/experimental/net/internet/network/v4/cons.cc: New test.
1452 * testsuite/experimental/net/internet/network/v4/members.cc: New test.
1454 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
1456 * include/experimental/internet (address_4(const bytes_type&)):
1457 Use __builtin_bit_cast if available, otherwise convert to
1459 (address_v4::to_bytes()): Likewise, but convert from network
1461 * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
1462 incorrect tests. Check for constexpr too.
1463 * testsuite/experimental/net/internet/address/v4/creation.cc:
1465 * testsuite/experimental/net/internet/address/v4/members.cc:
1466 Check that bytes_type is a standard-layout type.
1468 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
1470 * include/experimental/internet (address_v4::to_string):
1472 * testsuite/experimental/net/internet/address/v4/members.cc:
1473 Check more addresses.
1475 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
1477 * include/ext/aligned_buffer.h (__aligned_buffer): Add
1480 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
1482 * testsuite/std/format/arguments/lwg3810.cc: Move dg-options
1485 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
1487 * testsuite/experimental/simd/tests/reductions.cc: Introduce
1488 max_distance as the type-dependent max error.
1490 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
1492 * include/experimental/bits/simd_builtin.h (_S_set): Compare as
1493 int. The actual range of these indexes is very small.
1495 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
1497 * include/experimental/bits/simd_x86.h (_S_bit_shift_left)
1498 (_S_bit_shift_right): Declare constexpr. The implementation was
1499 already expecting constexpr evaluation.
1501 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
1504 * include/experimental/bits/simd_detail.h
1505 (_GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA): Define as empty for
1508 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
1511 * include/experimental/bits/simd.h (__vector_broadcast):
1512 Implement via __vector_broadcast_impl instead of
1513 __call_with_n_evaluations + 2 lambdas.
1514 (__vector_broadcast_impl): New.
1516 2023-02-22 Alexandre Oliva <oliva@adacore.com>
1518 * src/c++11/shared_ptr.cc (__gnu_internal::get_mutex):
1519 Avoid destruction of the mutex pool.
1521 2023-02-22 Alexandre Oliva <oliva@adacore.com>
1523 * testsuite/27_io/basic_ofstream/open/char/noreplace.cc: xfail
1525 * testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc:
1528 2023-02-22 Alexandre Oliva <oliva@adacore.com>
1530 * testsuite/17_intro/names.cc: Undef func on vxworks >= 7 in
1533 2023-02-20 Andreas Schwab <schwab@linux-m68k.org>
1535 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
1537 2023-02-20 Matthias Kretz <m.kretz@gsi.de>
1539 * include/experimental/bits/simd.h (__extract_part, split):
1540 Use reserved name for template parameter.
1542 2023-02-20 Andreas Schwab <schwab@suse.de>
1544 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
1546 2023-02-18 Gerald Pfeifer <gerald@pfeifer.com>
1548 * doc/xml/faq.xml: Switch two links to www.open-std.org to https.
1549 * doc/html/faq.html: Regenerate.
1551 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
1553 * include/experimental/bits/simd_math.h (__hypot): Bitcasting
1554 between scalars requires the __bit_cast helper function instead
1557 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
1559 * include/experimental/bits/simd_x86.h
1560 (_SimdImplX86::_S_not_equal_to, _SimdImplX86::_S_less)
1561 (_SimdImplX86::_S_less_equal): Do not call
1562 __builtin_is_constant_evaluated in constexpr-if.
1564 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
1566 * testsuite/experimental/simd/tests/bits/verify.h
1567 (verify::verify): Use %zx for size_t in format string.
1569 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
1571 * testsuite/experimental/simd/generate_makefile.sh: Generate and
1572 pre-compile pch.h, which includes all headers that do not depend
1573 on command-line macros.
1574 * testsuite/experimental/simd/tests/bits/main.h: New file.
1575 (iterate_abis, main): Moved from verify.h.
1576 * testsuite/experimental/simd/tests/bits/verify.h
1577 (iterate_abis, main): Moved to main.h.
1578 * testsuite/experimental/simd/tests/bits/conversions.h: Add
1580 (genHalfBits): Simplify.
1581 * testsuite/experimental/simd/tests/bits/make_vec.h: Add include
1583 (make_alternating_mask): Moved from mask_loadstore.
1584 * testsuite/experimental/simd/tests/bits/mathreference.h: Add
1586 * testsuite/experimental/simd/tests/bits/test_values.h: Ditto.
1587 * testsuite/experimental/simd/tests/mask_loadstore.cc
1588 (make_mask, make_alternating_mask): Removed.
1589 * testsuite/experimental/simd/tests/mask_reductions.cc: Ditto.
1590 * testsuite/experimental/simd/tests/operators.cc (genHalfBits):
1592 * testsuite/experimental/simd/tests/abs.cc: Only include
1595 * testsuite/experimental/simd/tests/algorithms.cc: Ditto.
1596 * testsuite/experimental/simd/tests/broadcast.cc: Ditto.
1597 * testsuite/experimental/simd/tests/casts.cc: Ditto.
1598 * testsuite/experimental/simd/tests/fpclassify.cc: Ditto.
1599 * testsuite/experimental/simd/tests/frexp.cc: Ditto.
1600 * testsuite/experimental/simd/tests/generator.cc: Ditto.
1601 * testsuite/experimental/simd/tests/hypot3_fma.cc: Ditto.
1602 * testsuite/experimental/simd/tests/integer_operators.cc: Ditto.
1603 * testsuite/experimental/simd/tests/ldexp_scalbn_scalbln_modf.cc:
1604 * testsuite/experimental/simd/tests/loadstore.cc: Ditto.
1605 * testsuite/experimental/simd/tests/logarithm.cc: Ditto.
1606 * testsuite/experimental/simd/tests/mask_broadcast.cc: Ditto.
1607 * testsuite/experimental/simd/tests/mask_conversions.cc: Ditto.
1608 * testsuite/experimental/simd/tests/mask_implicit_cvt.cc: Ditto.
1609 * testsuite/experimental/simd/tests/mask_operator_cvt.cc: Ditto.
1610 * testsuite/experimental/simd/tests/mask_operators.cc: Ditto.
1611 * testsuite/experimental/simd/tests/math_1arg.cc: Ditto.
1612 * testsuite/experimental/simd/tests/math_2arg.cc: Ditto.
1613 * testsuite/experimental/simd/tests/operator_cvt.cc: Ditto.
1614 * testsuite/experimental/simd/tests/reductions.cc: Ditto.
1615 * testsuite/experimental/simd/tests/remqo.cc: Ditto.
1616 * testsuite/experimental/simd/tests/simd.cc: Ditto.
1617 * testsuite/experimental/simd/tests/sincos.cc: Ditto.
1618 * testsuite/experimental/simd/tests/split_concat.cc: Ditto.
1619 * testsuite/experimental/simd/tests/splits.cc: Ditto.
1620 * testsuite/experimental/simd/tests/trigonometric.cc: Ditto.
1621 * testsuite/experimental/simd/tests/trunc_ceil_floor.cc: Ditto.
1622 * testsuite/experimental/simd/tests/where.cc: Ditto.
1624 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
1626 * testsuite/experimental/simd/README.md: Document the timeout
1627 and timeout-factor directives. Minor typo fixed.
1629 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
1632 * include/experimental/bits/simd_detail.h: Define
1633 _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
1634 * include/experimental/bits/simd.h: Annotate lambdas with
1635 _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
1636 * include/experimental/bits/simd_builtin.h: Ditto.
1637 * include/experimental/bits/simd_converter.h: Ditto.
1638 * include/experimental/bits/simd_fixed_size.h: Ditto.
1639 * include/experimental/bits/simd_math.h: Ditto.
1640 * include/experimental/bits/simd_neon.h: Ditto.
1641 * include/experimental/bits/simd_x86.h: Ditto.
1643 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
1645 * include/experimental/bits/simd.h
1646 (_SimdWrapper::_M_is_constprop_none_of)
1647 (_SimdWrapper::_M_is_constprop_all_of): Return false unless the
1648 computed result still satisfies __builtin_constant_p.
1650 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
1652 * testsuite/std/format/arguments/lwg3810.cc: Replace UTF-8
1655 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
1657 * include/Makefile.am: Add new header.
1658 * include/Makefile.in: Regenerate.
1659 * include/experimental/synchronized_value: New file.
1660 * testsuite/experimental/synchronized_value.cc: New test.
1662 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
1664 * include/experimental/optional: Fix header name in comment.
1666 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
1668 * include/std/format (__format::_Arg_store): New class template.
1669 (basic_format_args): Remove nested type _Store and add deduction
1670 guide from _Arg_store.
1671 (basic_format_arg, make_format_args): Adjust.
1672 * testsuite/std/format/arguments/lwg3810.cc: New test.
1674 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
1676 * include/bits/stl_pair.h (pair) [C++20]: Add non-dangling
1677 constraints to constructors and add deleted overloads for the
1678 dangling cases, as per P2255R2.
1679 (pair) [!C++20 && _GLIBCXX_DEBUG]: Add static assertions to
1680 make dangling cases ill-formed.
1681 * testsuite/20_util/pair/dangling_ref.cc: New test.
1683 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
1685 * testsuite/17_intro/names_pstl.cc: Require et tbb_backend.
1687 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
1689 * include/ext/throw_allocator.h: Use reserved names for
1692 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
1694 * testsuite/17_intro/names_pstl.cc: Add space after effective
1697 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
1699 * include/pstl/algorithm_fwd.h (__pattern_search_n)
1700 (__brick_unique_copy, __brick_adjacent_find)
1701 (__brick_generate_n, __pattern_generate_n): Use reserved names
1703 * include/pstl/algorithm_impl.h (__brick_unique_copy)
1704 (__pattern_reverse, __brick_generate_n): Likewise.
1705 * include/pstl/execution_impl.h (__prefer_unsequenced_tag)
1706 (__prefer_parallel_tag): Likewise.
1707 * include/pstl/glue_algorithm_impl.h (transform): Likewise.
1708 * include/pstl/glue_numeric_defs.h (adjacent_difference):
1710 * include/pstl/numeric_impl.h (__brick_adjacent_difference):
1712 * include/pstl/parallel_backend_tbb.h (__merge_func): Likewise.
1713 * include/pstl/unseq_backend_simd.h (_Combiner)
1714 (__simd_min_element, __simd_minmax_element): Likewise.
1715 * testsuite/17_intro/names_pstl.cc: New test.
1717 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
1719 * include/bits/fs_ops.h (create_directory): Use reserved name
1721 * include/bits/ranges_algo.h (__contains_subrange_fn):
1723 * include/bits/regex_automaton.h (_State_base::_M_print):
1725 * include/bits/regex_automaton.tcc(_State_base::_M_print):
1727 * include/bits/regex_scanner.tcc(_Scanner::_M_print): Likewise.
1728 * include/experimental/bits/fs_ops.h (create_directory):
1730 * include/std/mutex (timed_mutex::_M_clocklock): Likewise.
1731 (recursive_timed_mutex:_M_clocklock): Likewise.
1732 * include/std/tuple (basic_common_reference): Likewise.
1733 * libsupc++/cxxabi_init_exception.h
1734 (__cxa_init_primary_exception): Likewise.
1735 * testsuite/17_intro/names.cc: Add checks.
1737 2023-02-14 Gerald Pfeifer <gerald@pfeifer.com>
1739 * doc/xml/manual/status_cxx2017.xml: Update an open-std.org link
1740 to www.open-std.org and https.
1741 * doc/html/manual/status.html: Regenerate.
1743 2023-02-14 Thomas W Rodgers <rodgert@twrodgers.com>
1746 * include/std/atomic (atomic_flag_wait): Add.
1747 (atomic_flag_wait_explicit): Add.
1748 (atomic_flag_notify): Add.
1749 (atomic_flag_notify_explicit): Add.
1750 * testsuite/29_atomics/atomic_flag/wait_notify/1.cc:
1751 Add test case to cover missing atomic_flag free functions.
1753 2023-02-14 Thomas W Rodgers <rodgert@twrodgers.com>
1756 * include/std/atomic (atomic_flag_test): Add.
1757 (atomic_flag_test_explicit): Add.
1758 * testsuite/29_atomics/atomic_flag/test/explicit.cc: Add
1759 test case to cover missing atomic_flag free functions.
1760 * testsuite/29_atomics/atomic_flag/test/implicit.cc:
1763 2023-02-13 Gerald Pfeifer <gerald@pfeifer.com>
1765 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust
1766 "The Component Object Model" reference.
1767 * doc/html/manual/policy_data_structures.html: Regenerate.
1769 2023-02-12 Gerald Pfeifer <gerald@pfeifer.com>
1771 * doc/xml/manual/containers.xml: Tweak a link to N1780
1773 * doc/html/manual/associative.html: Regenerate.
1775 2023-02-12 Gerald Pfeifer <gerald@pfeifer.com>
1777 * doc/xml/manual/ctype.xml: Change www.unix.org to unix.org.
1778 * doc/html/manual/facets.html: Regenerate.
1780 2023-02-11 Gerald Pfeifer <gerald@pfeifer.com>
1782 * doc/xml/manual/policy_data_structures_biblio.xml: Update
1783 link to "Worst-case efficient priority queues".
1784 * doc/html/manual/policy_data_structures.html: Regenerate.
1786 2023-02-06 Arsen Arsenović <arsen@aarsen.me>
1788 * doc/xml/manual/using.xml: Document newly-freestanding
1789 headers and the effect of the -ffreestanding flag.
1790 * doc/xml/manual/status_cxx2023.xml: Document P1642R11 as
1792 * doc/xml/manual/configure.xml: Document that hosted installs
1793 respect __STDC_HOSTED__.
1794 * doc/xml/manual/test.xml: Document how to run tests in
1796 * doc/html/*: Regenerate.
1798 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
1800 * include/bits/ranges_algo.h (__find_last_fn): Rename T to _Tp.
1801 (__find_last_if_fn): Likewise.
1803 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
1805 * include/std/type_traits: Add diagnostic pragmas around
1806 references to deprecated std::aligned_storage and
1807 std::aligned_union traits.
1808 * testsuite/20_util/aligned_storage/requirements/alias_decl.cc:
1809 Add dg-warning for et c++23.
1810 * testsuite/20_util/aligned_storage/requirements/explicit_instantiation.cc:
1812 * testsuite/20_util/aligned_storage/value.cc: Likewise.
1813 * testsuite/20_util/aligned_union/1.cc: Likewise.
1814 * testsuite/20_util/aligned_union/requirements/alias_decl.cc:
1817 2023-02-06 Nathaniel Shead <nathanieloshead@gmail.com>
1819 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macros.
1820 * include/bits/c++config (_GLIBCXX23_DEPRECATED)
1821 (_GLIBCXX23_DEPRECATED_SUGGEST): New macros.
1822 * include/std/type_traits (aligned_storage, aligned_union)
1823 (aligned_storage_t, aligned_union_t): Deprecate for C++23.
1824 * testsuite/20_util/aligned_storage/deprecated-2b.cc: New test.
1825 * testsuite/20_util/aligned_union/deprecated-2b.cc: New test.
1827 2023-02-06 Nathaniel Shead <nathanieloshead@gmail.com>
1829 * doc/doxygen/user.cfg.in (PREDEFINED): Update macros.
1830 * include/bits/c++config (_GLIBCXX20_DEPRECATED): Make
1831 consistent with other 'deprecated' macros.
1832 * include/std/type_traits (is_pod, is_pod_v): Use
1833 _GLIBCXX20_DEPRECATED_SUGGEST instead.
1835 2023-02-06 Arsen Arsenović <arsen@aarsen.me>
1837 * Makefile.am [!_GLIBCXX_HOSTED]: Enable src/ subdirectory.
1838 * Makefile.in: Regenerate.
1839 * src/Makefile.am [!_GLIBCXX_HOSTED]: Omit compatibility files.
1840 There's no history to be compatible with.
1841 * src/c++11/Makefile.am [!_GLIBCXX_HOSTED]: Omit hosted-only
1842 source files from the build.
1843 * src/c++17/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
1844 * src/c++20/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
1845 * src/c++98/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
1846 * src/Makefile.in: Regenerate.
1847 * src/c++11/Makefile.in: Regenerate.
1848 * src/c++17/Makefile.in: Regenerate.
1849 * src/c++20/Makefile.in: Regenerate.
1850 * src/c++98/Makefile.in: Regenerate.
1852 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
1854 * src/Makefile.am [GLIBCXX_HOSTED] (SUBDIRS): Do not add
1855 filesystem, libbacktrace and experimental.
1856 * src/Makefile.in: Regenerate.
1858 2023-02-04 Hans-Peter Nilsson <hp@axis.com>
1861 * include/pstl/unseq_backend_simd.h (__simd_or): Use __INT32_TYPE__
1864 2023-02-04 Gerald Pfeifer <gerald@pfeifer.com>
1866 * doc/xml/manual/documentation_hacking.xml: Adjust link to pdftex.
1867 * doc/html/manual/documentation_hacking.html: Regenerate.
1869 2023-02-04 François Dumont <fdumont@gcc.gnu.org>
1871 * include/bits/basic_string.h (operator=(basic_string&&)): Transfer move-to
1872 storage to the move-from instance when allocators are equal.
1873 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc (test04):
1876 2023-02-03 Samuel Thibault <samuel.thibault@gnu.org>
1878 * config/os/gnu-linux/os_defines.h [!__linux__]
1879 (_GLIBCXX_NATIVE_THREAD_ID, _GLIBCXX_GTHREAD_USE_WEAK): Do not define.
1881 2023-02-03 Patrick Palka <ppalka@redhat.com>
1883 * include/bits/ranges_algo.h (__find_last_fn, find_last):
1885 (__find_last_if_fn, find_last_if): Define.
1886 (__find_last_if_not_fn, find_last_if_not): Define.
1887 * testsuite/25_algorithms/find_last/1.cc: New test.
1888 * testsuite/25_algorithms/find_last_if/1.cc: New test.
1889 * testsuite/25_algorithms/find_last_if_not/1.cc: New test.
1891 2023-02-03 Patrick Palka <ppalka@redhat.com>
1893 * include/bits/ranges_algo.h (out_value_result): Define.
1894 (iota_result): Define.
1895 (__iota_fn, iota): Define.
1896 * testsuite/25_algorithms/iota/1.cc: New test.
1898 2023-02-03 Patrick Palka <ppalka@redhat.com>
1900 * include/bits/ranges_algo.h (__contains_fn, contains): Define.
1901 (__contains_subrange_fn, contains_subrange): Define.
1902 * testsuite/25_algorithms/contains/1.cc: New test.
1903 * testsuite/25_algorithms/contains_subrange/1.cc: New test.
1905 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
1907 * doc/xml/manual/abi.xml: Tweak link to ABIcheck project.
1908 * doc/html/manual/abi.html: Regenerate.
1910 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
1912 * src/filesystem/ops-common.h [AVR] (__unsupported): Always use
1913 errc::function_not_supported instead of errc::not_supported.
1915 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
1917 * include/std/sstream (basic_stringbuf::view): Define for old
1919 (basic_istringstream::view, basic_0stringstream::view)
1920 (basic_stringstream::view): Likewise.
1921 * testsuite/27_io/basic_istringstream/view/char/1.cc: Remove
1922 { dg-require-effective-target cxx11_abi }.
1923 * testsuite/27_io/basic_istringstream/view/wchar_t/1.cc:
1925 * testsuite/27_io/basic_ostringstream/view/char/1.cc: Likewise.
1926 * testsuite/27_io/basic_ostringstream/view/wchar_t/1.cc:
1928 * testsuite/27_io/basic_stringbuf/view/char/1.cc: Likewise.
1929 * testsuite/27_io/basic_stringbuf/view/wchar_t/1.cc: Likewise.
1930 * testsuite/27_io/basic_stringstream/view/char/1.cc: Likewise.
1931 * testsuite/27_io/basic_stringstream/view/wchar_t/1.cc:
1934 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
1937 * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Export shared_ptr
1938 conversion operators for directory iterator comparisons with
1939 std::default_sentinel_t.
1940 * include/bits/fs_path.h (path::path(string_view, _Type))
1941 (path::_Cmpt::_Cmpt(string_view, _Type, size_t)): Move inline
1943 * src/c++17/fs_path.cc: ... here.
1944 * testsuite/27_io/filesystem/path/108636.cc: New test.
1946 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
1948 * include/std/variant (variant::operator=): Implement resolution
1950 * testsuite/20_util/variant/lwg3585.cc: New test.
1952 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
1954 * doc/xml/manual/using_exceptions.xml: Update a www.open-std.org
1956 * doc/html/manual/using_exceptions.html: Regenerate.
1958 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
1960 * doc/xml/manual/debug.xml: Fix link to online GDB manual.
1961 * doc/html/manual/debug.html: Regenerate.
1963 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
1965 * src/c++11/random.cc (random_device::_M_fini): Do not try to
1966 close the file handle if the target doesn't support the
1967 /dev/random and /dev/urandom files.
1969 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
1971 * config/os/generic/error_constants.h (errc::value_too_large)
1973 * src/c++11/system_error.cc
1974 (system_category::default_error_condition) [__AVR__]: Only match
1975 recognize values equal to EDOM, ERANGE, ENOSYS and EINTR.
1976 * src/c++17/fs_ops.cc (fs::current_path) [__AVR__]: Do not check
1977 for ENOENT etc. in switch.
1978 (fs::remove_all) [__AVR__]: Likewise.
1979 * src/filesystem/ops-common.h [__AVR__]: Do not use POSIX open,
1982 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
1984 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR) [avr-*-*, msp430-*-*]: Set
1986 * configure: Regenerate.
1988 2023-02-01 Hans-Peter Nilsson <hp@axis.com>
1991 * testsuite/std/time/hh_mm_ss/1.cc (size): Add empty
1992 struct at end of S0.
1994 2023-01-30 Gerald Pfeifer <gerald@pfeifer.com>
1996 * doc/xml/manual/shared_ptr.xml: Move links from both
1997 http://open-std.org and http://www.open-std.org to
1998 https://www.open-std.org.
1999 * doc/html/manual/memory.html: Regenerate.
2001 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
2003 * doc/xml/manual/appendix_contributing.xml: Adjust link to
2004 ISO C++ standard at ANSI.
2005 Move link to www.open-std.org to https.
2006 * doc/html/manual/appendix_contributing.html: Regenerate.
2008 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
2010 * doc/xml/manual/documentation_hacking.xml: Move sourceforge.net
2012 * doc/html/manual/documentation_hacking.html: Regenerate.
2014 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
2016 * doc/xml/manual/abi.xml: Update www.open-std.org link to https.
2017 * doc/html/manual/abi.html: Regenerate.
2019 2023-01-27 Jakub Jelinek <jakub@redhat.com>
2022 * testsuite/17_intro/names.cc (__unused): For linux or GNU hurd
2023 include features.h if present and then check __GLIBC__ and
2024 __GLIBC_MINOR__ macros for glibc prior to 2.19, instead of testing
2025 __GLIBC_PREREQ which isn't defined yet.
2027 2023-01-27 Jonathan Wakely <jwakely@redhat.com>
2029 * src/c++20/tzdb.cc (tzdata_stream): Use constant instead of
2032 2023-01-27 Jonathan Wakely <jwakely@redhat.com>
2035 * testsuite/23_containers/map/modifiers/108554.cc: Use dg-bogus.
2037 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
2039 * src/c++20/tzdb.cc (operator>>(istream&, ZoneInfo&)): Allow
2040 rules named "+" for compatibility with older tzdata.zi files.
2042 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
2045 * include/bits/stl_tree.h (_Rb_tree_insert_and_rebalance): Add
2047 (_Rb_tree_rebalance_for_erase): Add nonnull and returns_nonnull
2049 * testsuite/23_containers/map/modifiers/108554.cc: New test.
2051 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
2054 * src/c++20/tzdb.cc (current_zone): Look for TIMEZONE or ZONE in
2055 /etc/sysconfig/clock, not DEFAULT_TIMEZONE.
2057 2023-01-26 Gerald Pfeifer <gerald@pfeifer.com>
2059 * doc/xml/manual/intro.xml: Update links to www.open-std.org to
2061 * doc/html/manual/bugs.html: Regenerate.
2063 2023-01-24 Jonathan Wakely <jwakely@redhat.com>
2066 * src/c++20/tzdb.cc (current_zone): Look for DEFAULT_TIMEZONE in
2067 /etc/sysconfig/clock.
2069 2023-01-24 Jonathan Wakely <jwakely@redhat.com>
2072 * include/bits/ranges_base.h: Include <bits/stl_iterator.h> for
2073 std::make_reverse_iterator.
2074 * include/std/tuple: Include <bits/ranges_util.h> for subrange.
2075 (make_from_tuple): Add static assertion from P2255 to diagnose
2076 dangling references.
2077 * testsuite/20_util/tuple/make_from_tuple/dangling_ref.cc: New test.
2078 * testsuite/20_util/tuple/make_from_tuple/tuple_like.cc: New test.
2080 2023-01-23 François Dumont <fdumont@gcc.gnu.org>
2082 * include/debug/safe_iterator.h (_Safe_iterator<>::_Unchecked): New.
2083 (_Safe_iterator(const _Safe_iterator&, _Unchecked)): New.
2084 (_Safe_iterator::operator++(int)): Use latter.
2085 (_Safe_iterator::operator--(int)): Likewise.
2086 (_Safe_iterator(_Iterator, const _Safe_sequence_base*)): Remove !_M_insular()
2088 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::_Unchecked):
2090 (_Safe_local_iterator(const _Safe_local_iterator&, _Unchecked)): New.
2091 (_Safe_local_iterator::operator++(int)): Use latter.
2092 * src/c++11/debug.cc (_S_debug_messages): Add as comment the _Debug_msg_id
2093 entry associated to the array entry.
2095 2023-01-18 Jonathan Wakely <jwakely@redhat.com>
2097 * include/bits/fs_path.h (u8path): Add deprecated attribute.
2098 * testsuite/27_io/filesystem/path/construct/90281.cc: Add
2099 -Wno-deprecated-declarations for C++20 and later.
2100 * testsuite/27_io/filesystem/path/factory/u8path-char8_t.cc:
2102 * testsuite/27_io/filesystem/path/factory/u8path.cc: Likewise.
2103 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
2104 * testsuite/27_io/filesystem/path/factory/u8path-depr.cc: New test.
2106 2023-01-18 Jonathan Wakely <jwakely@redhat.com>
2108 * include/bits/random.h (random_device) [!_GLIBCXX_USE_DEV_RANDOM]:
2109 Always call _M_fini and _M_getentropy.
2111 2023-01-18 Gerald Pfeifer <gerald@pfeifer.com>
2113 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust links
2114 to www.open-std.org to use https.
2115 (COM: Component Model Object Technologies): Rename from...
2116 (The Component Object Model): ...to.
2117 * doc/html/manual/policy_data_structures.html: Regenerate.
2119 2023-01-18 Dimitrij Mijoski <dmjpp@hotmail.com>
2121 * testsuite/22_locale/codecvt/codecvt_unicode.cc: Simplify.
2122 * testsuite/22_locale/codecvt/codecvt_unicode.h: Simplify.
2123 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: Simplify.
2125 2023-01-17 Jonathan Wakely <jwakely@redhat.com>
2127 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Check $target_os instead
2128 of $host. Fix check for file being present during native build.
2129 * configure: Regenerate.
2131 2023-01-17 Martin Liska <mliska@suse.cz>
2133 * src/libbacktrace/Makefile.in: Regenerate.
2135 2023-01-16 Jonathan Wakely <jwakely@redhat.com>
2137 * src/c++20/tzdb.cc (_GLIBCXX_USE_CXX11_ABI): Define to 1.
2139 2023-01-16 Jonathan Wakely <jwakely@redhat.com>
2142 * include/c_compatibility/stdatomic.h: Change copyright line to
2143 be consistent with other headers contributed under DCO terms.
2144 * include/std/expected: Add full stop to copyright line.
2145 * src/c++20/tzdb.cc: Likewise.
2147 2023-01-15 Gerald Pfeifer <gerald@pfeifer.com>
2149 * doc/xml/manual/status_cxx2014.xml: Switch www.open-std.org to
2151 * doc/xml/manual/status_cxx2017.xml: Ditto.
2152 * doc/xml/manual/status_cxx2020.xml: Ditto.
2153 * doc/xml/manual/status_cxx2023.xml: Ditto.
2154 * doc/html/manual/status.html: Regenerate.
2156 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
2158 * testsuite/std/time/tzdb_list/1.cc: Remove dg-xfail-run-if
2159 and fail gracefully if defining the weak symbol doesn't work.
2161 2023-01-15 François Dumont <fdumont@gcc.gnu.org>
2164 * include/debug/safe_iterator.h (_Safe_iterator<>::operator++(int)): Extend deadlock
2165 fix to other iterator category.
2166 (_Safe_iterator<>::operator--(int)): Likewise.
2167 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::operator++(int)):
2169 * testsuite/util/debug/unordered_checks.h (invalid_local_iterator_pre_increment): New.
2170 (invalid_local_iterator_post_increment): New.
2171 * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_post_increment_neg.cc:
2173 * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_pre_increment_neg.cc:
2176 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
2178 * testsuite/30_threads/jthread/jthread.cc: Remove -pthread from
2181 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
2183 * testsuite/std/time/clock/utc/io.cc: Use ctype to widen char.
2185 2023-01-14 Björn Schäpers <bjoern@hazardy.de>
2187 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Add check for
2188 windows.h. Add pecoff as FORMAT_FILE.
2189 * config.h.in: Regenerate.
2190 * configure: Regenerate.
2191 * src/libbacktrace/Makefile.am: Regenerate.
2192 * src/libbacktrace/Makefile.in: Add pecoff.c as FORMAT_FILE.
2194 2023-01-14 Björn Schäpers <bjoern@hazardy.de>
2196 * include/std/stacktrace (stacktrace_entry::_S_demangle): Use
2197 raw __name if __cxa_demangle could not demangle it.
2199 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
2202 * src/c++20/tzdb.cc (current_zone()) [_AIX]: Use TZ environment
2205 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
2207 * src/c++20/tzdb.cc (TZDB_DISABLED): Disable all code for
2209 * testsuite/std/time/tzdb/leap_seconds.cc: Require tzdb
2211 * testsuite/std/time/tzdb_list/1.cc: Likewise.
2213 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
2215 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Replace the
2216 --with-libstdcxx-zoneinfo-dir configure option with
2217 --with-libstdcxx-zoneinfo with yes/no/static choices as well as
2219 * config.h.in: Regenerate.
2220 * configure: Regenerate.
2221 * doc/xml/manual/configure.xml: Document configure option.
2222 * doc/html/manual/configure.html: Regenerate.
2223 * src/c++20/Makefile.am: Generate tzdata.zi.h header.
2224 * src/c++20/Makefile.in: Regenerate.
2225 * src/c++20/tzdb.cc (__gnu_cxx::zoneinfo_dir_override): Return a
2226 null pointer if no directory is configured.
2227 (zoneinfo_dir): Replace with ...
2228 (zoneinfo_file): New function.
2229 (tzdata_stream): New istream class.
2230 (remote_version, reload_tzdb): Use tzdata_stream.
2231 * testsuite/lib/libstdc++.exp (check_effective_target_tzdb):
2232 Check new _GLIBCXX_STATIC_TZDATA macro and ignore presence of
2233 tzdata.zi file in default location.
2234 * src/c++20/tzdata.zi: New file.
2236 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
2238 * include/bits/chrono_io.h (operator<<): Fix syntax errors.
2239 * testsuite/std/time/month_day/io.cc: New test.
2240 * testsuite/std/time/month_day_last/io.cc: New test.
2241 * testsuite/std/time/month_weekday/io.cc: New test.
2242 * testsuite/std/time/month_weekday_last/io.cc: New test.
2243 * testsuite/std/time/weekday_indexed/io.cc: New test.
2244 * testsuite/std/time/weekday_last/io.cc: New test.
2245 * testsuite/std/time/year_month/io.cc: New test.
2246 * testsuite/std/time/year_month_day_last/io.cc: New test.
2247 * testsuite/std/time/year_month_weekday/io.cc: New test.
2248 * testsuite/std/time/year_month_weekday_last/io.cc: New test.
2250 2023-01-14 François Dumont <fdumont@gcc.gnu.org>
2252 * include/std/format [_GLIBCXX_INLINE_VERSION](to_chars): Adapt __asm symbol
2254 * config/abi/pre/gnu-versioned-namespace.ver: Add to_chars/from_chars symbols
2257 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
2259 * include/bits/std_mutex.h: Include <errno.h>.
2261 2023-01-13 Arsen Arsenović <arsen@aarsen.me>
2263 * testsuite/20_util/to_chars/version.cc: Mark hosted-only.
2264 * testsuite/20_util/uses_allocator/lwg3677.cc: Ditto.
2265 * testsuite/20_util/weak_ptr/cons/self_move.cc: Ditto.
2266 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Replace usage of
2267 std::make_unique with a freestanding-compatible wrapper around
2269 * testsuite/21_strings/basic_string_view/operations/contains/char.cc:
2270 Don't test for presence of __cpp_lib_string_contains on !HOSTED.
2271 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
2273 * testsuite/std/ranges/version_c++23.cc: Don't test for presence
2274 of __cpp_lib_ranges in !HOSTED.
2276 2023-01-13 Arsen Arsenović <arsen@aarsen.me>
2278 * include/Makefile.am: Install bits/char_traits.h,
2280 * include/Makefile.in: Regenerate.
2281 * include/bits/char_traits.h: Gate hosted-only, wchar-only and
2282 mbstate-only bits behind appropriate #ifs.
2283 * include/std/string_view: Gate <iostream> functionality behind
2285 * include/std/version: Enable __cpp_lib_constexpr_string_view
2286 and __cpp_lib_starts_ends_with in !HOSTED.
2287 * include/std/ranges: Re-enable __is_basic_string_view on
2288 freestanding, include <string_view> directly.
2289 * include/precompiled/stdc++.h: Include <string_view> when
2291 * testsuite/20_util/function_objects/searchers.cc: Skip testing
2292 boyer_moore searchers on freestanding
2293 * testsuite/21_strings/basic_string_view/capacity/1.cc: Guard
2294 <string>-related tests behind __STDC_HOSTED__.
2295 * testsuite/21_strings/basic_string_view/cons/char/1.cc: Ditto.
2296 * testsuite/21_strings/basic_string_view/cons/char/2.cc: Remove
2297 unused <stdexcept> include.
2298 * testsuite/21_strings/basic_string_view/cons/char/3.cc: Remove
2299 unused <vector> include.
2300 * testsuite/21_strings/basic_string_view/cons/char/range.cc:
2301 Guard <string> related testing behind __STDC_HOSTED__.
2302 * testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc:
2303 Guard <stdexcept> related tests behind __STDC_HOSTED__.
2304 * testsuite/21_strings/basic_string_view/element_access/char/1.cc:
2306 * testsuite/21_strings/basic_string_view/element_access/wchar_t/1.cc:
2307 Guard <stdexcept> tests behind __STDC_HOSTED__.
2308 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
2309 Enable test on freestanding, guard <stdexcept> bits behind
2311 * testsuite/21_strings/basic_string_view/operations/substr/char.cc:
2312 Guard <stdexcept> bits behind __STDC_HOSTED__.
2313 * testsuite/21_strings/basic_string_view/operations/substr/wchar_t.cc:
2316 2023-01-13 Dimitrij Mijoski <dmjpp@hotmail.com>
2319 * src/c++11/codecvt.cc (read_utf8_code_point): Correctly detect
2320 errors in incomplete multibyte sequences.
2321 (utf16_in): Remove surrogates parameter. Fix conditions for
2323 (utf16_out): Fix condition for returning partial.
2324 (ucs2_in): Do not pass surrogates argument to utf16_in.
2325 * testsuite/22_locale/codecvt/codecvt_unicode.cc: New test.
2326 * testsuite/22_locale/codecvt/codecvt_unicode.h: New header for
2328 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: New
2331 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
2334 * config/io/c_io_stdio.h (__c_lock): Define as a typedef for
2335 __GTHREAD_LEGACY_MUTEX_T if defined.
2337 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
2340 * config/os/gnu-linux/ldbl-extra.ver (GLIBCXX_LDBL_3.4.31):
2341 Export __try_use_facet specializations for facets in namespace
2343 * config/os/gnu-linux/ldbl-ieee128-extra.ver
2344 (GLIBCXX_IEEE128_3.4.31): Likewise for facets in namespace
2346 * testsuite/util/testsuite_abi.cc: Add to lists of known and
2349 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
2351 * include/bits/std_mutex.h: Remove <system_error> include.
2352 * include/std/condition_variable: Add <bits/error_constants.h>
2354 * include/std/mutex: Likewise.
2355 * include/std/shared_mutex: Likewise.
2357 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
2360 * include/experimental/memory_resource
2361 (_GLIBCXX_MAX_ALIGN_MATCHES_MALLOC): Define.
2362 (do_allocate, do_deallocate): Check it.
2363 * testsuite/experimental/memory_resource/new_delete_resource.cc:
2364 Relax expected behaviour for 64-bit hppa-hp-hpux11.11.
2366 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
2368 * doc/xml/manual/abi.xml: Add latest library versions.
2369 * doc/html/manual/abi.html: Regenerate.
2371 2023-01-12 François Dumont <fdumont@gcc.gnu.org>
2374 * include/bits/stl_tree.h (_Rb_tree<>::_M_insert_range_equal): Remove
2375 unused _Alloc_node instance.
2377 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
2379 * include/bits/atomic_wait.h (__detail::__platform_wait_t):
2380 Define as unsigned long if always lock-free, and unsigned int
2383 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
2385 * src/c++20/tzdb.cc (tzdb_list::_S_init_tzdb): Use __try and
2386 __catch macros for exception handling.
2388 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
2391 * include/bits/stl_algobase.h (__lg): Replace six overloads with
2392 a single function template for all integer types.
2393 * include/bits/stl_algo.h (__merge_adaptive_resize): Cast
2394 arithmetic results back to _Distance.
2396 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
2399 * include/std/span (span::span()): Un-simplify constraint to
2400 work for size_t of lesser rank than int.
2402 2023-01-07 LIU Hao <lh_mouse@126.com>
2404 PR middle-end/108300
2405 * src/c++11/system_error.cc: Define `WIN32_LEAN_AND_MEAN` before
2407 * src/c++11/thread.cc: Likewise.
2408 * src/c++17/fs_ops.cc: Likewise.
2409 * src/filesystem/ops.cc: Likewise.
2411 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
2414 * src/c++20/tzdb.cc (zoneinfo_dir): Add diagnostic pragma.
2416 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
2419 * src/c++20/tzdb.cc (time_zone::_Impl::RulesCounter): New class
2420 template and partial specialization for synchronizing access to
2421 time_zone::_Impl::infos.
2422 (time_zone::_M_get_sys_info, reload_tzdb): Adjust uses of
2425 2023-01-06 Patrick Palka <ppalka@redhat.com>
2428 * include/bits/utility.h (__cpp_lib_ranges_zip): Define for C++23.
2429 * include/std/ranges (__cpp_lib_ranges_zip): Likewise.
2430 (__cpp_lib_ranges_chunk): Likewise.
2431 (__cpp_lib_ranges_slide): Likewise.
2432 (__cpp_lib_ranges_chunk_by): Likewise.
2433 (__cpp_lib_ranges_join_with): Likewise.
2434 (__cpp_lib_ranges_repeat): Likewise.
2435 (__cpp_lib_ranges_stride): Likewise.
2436 (__cpp_lib_ranges_cartesian_product): Likewise.
2437 (__cpp_lib_ranges_as_rvalue): Likewise.
2438 * include/std/version: Ditto.
2439 * testsuite/20_util/tuple/p2321r2.cc: Verify value of
2441 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Likewise.
2442 * testsuite/std/ranges/adaptors/chunk/1.cc: Likewise.
2443 * testsuite/std/ranges/adaptors/chunk_by/1.cc: Likewise.
2444 * testsuite/std/ranges/adaptors/join_with/1.cc: Likewise.
2445 * testsuite/std/ranges/adaptors/slide/1.cc: Likewise.
2446 * testsuite/std/ranges/adaptors/stride/1.cc: Likewise.
2447 * testsuite/std/ranges/cartesian_product/1.cc: Likewise.
2448 * testsuite/std/ranges/repeat/1.cc: Likewise.
2449 * testsuite/std/ranges/zip/1.cc: Likewise.
2450 * testsuite/std/ranges/version_c++23.cc: New test.
2452 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
2455 * include/std/bitset (operator>>): Use alloca in the right
2456 scope, not in a constructor.
2457 * testsuite/20_util/bitset/io/input.cc: Check case from PR.
2459 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
2462 * include/std/format (basic_format_arg) [!__cpp_lib_to_chars]:
2463 Disable visiting floating-point types.
2465 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
2468 * include/debug/safe_iterator.h (_Safe_iterator::operator++(int))
2469 (_Safe_iterator::operator--(int)): Do not hold lock around
2470 construction of return value.
2472 2023-01-05 John David Anglin <danglin@gcc.gnu.org>
2474 * config/cpu/hppa/atomicity.h (_PA_LDCW_INSN): Define.
2475 (__exchange_and_add): Use _PA_LDCW_INSN. Use ordered store for
2476 lock release. Revise loop.
2477 (__atomic_add): Likewise.
2479 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
2482 * python/libstdcxx/v6/printers.py (_utc_timezone): New global
2484 (StdChronoTimePointPrinter::to_string): Use it.
2486 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
2489 * include/std/functional (_Bind_front): Add no_unique_address
2490 attribute to data members.
2491 * testsuite/20_util/function_objects/bind_front/107784.cc: Check
2492 size of call wrappers with empty types for targets and bound
2495 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
2498 * src/c++20/tzdb.cc (chrono::current_zone()): Check for zone
2499 using only last component of the name.
2501 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
2505 * config/abi/pre/gnu.ver: Move zoneinfo_dir_override export to
2506 the latest symbol version.
2507 * src/c++20/tzdb.cc (USE_ATOMIC_SHARED_PTR): Define to 0 if
2508 atomic<_Node*> is not always lock free.
2509 (USE_ATOMIC_LIST_HEAD): New macro.
2510 [__hpux__] (__gnu_cxx::zoneinfo_dir_override()): Provide
2511 definition of weak symbol.
2512 (tzdb_list::_Node::_S_head): Rename to _S_head_cache.
2513 (tzdb_list::_Node::_S_list_head): New function for accessing
2514 list head efficiently.
2515 (tzdb_list::_Node::_S_cache_list_head): New function for
2516 updating _S_list_head.
2518 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
2521 * include/std/chrono (hh_mm_ss): Do not use chrono::abs if
2522 duration rep is unsigned.
2523 * testsuite/std/time/hh_mm_ss/1.cc: Check unsigned rep.
2525 2023-01-04 Iain Sandoe <iain@sandoe.co.uk>
2528 * config/abi/pre/gnu.ver (GLIBCXX_3.4):
2529 Add __gnu_cxx::zoneinfo_dir_override().
2531 2023-01-04 Jonathan Wakely <jwakely@redhat.com>
2534 * include/std/array (__array_traits<T, 0>::operator T*()): Add
2536 * testsuite/23_containers/array/element_access/constexpr_c++17.cc: Check
2537 std::array<T, 0>::data().
2540 Copyright (C) 2023 Free Software Foundation, Inc.
2542 Copying and distribution of this file, with or without modification,
2543 are permitted in any medium without royalty provided the copyright
2544 notice and this notice are preserved.