1 2023-04-24 Patrick Palka <ppalka@redhat.com>
3 * include/bits/max_size_type.h (__max_diff_type::operator>>=):
4 Fix propagation of sign bit.
5 * testsuite/std/ranges/iota/max_size_type.cc: Avoid using the
6 non-standard 'signed typedef-name'. Add some compile-time tests
7 for right-shifting a negative __max_diff_type value by more than
10 2023-04-19 Patrick Palka <ppalka@redhat.com>
11 Jonathan Wakely <jwakely@redhat.com>
14 * include/bits/utility.h (_Nth_type): Conditionally define in
15 terms of __type_pack_element if available.
16 * testsuite/20_util/tuple/element_access/get_neg.cc: Prune
17 additional errors from the new built-in.
19 2023-04-19 Jonathan Wakely <jwakely@redhat.com>
22 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
25 * src/Makefile.am: Move globals_io.cc to here.
26 * src/Makefile.in: Regenerate.
27 * src/c++98/Makefile.am: Remove globals_io.cc from here.
28 * src/c++98/Makefile.in: Regenerate.
29 * src/c++98/globals_io.cc [_GLIBCXX_SYMVER_GNU] (cin): Adjust
30 symbol name and then export with GLIBCXX_3.4.31 symver.
31 (cout, cerr, clog, wcin, wcout, wcerr, wclog): Likewise.
32 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt:
34 * config/abi/post/i486-linux-gnu/baseline_symbols.txt:
36 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt:
38 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
40 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
42 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
44 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt:
46 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt:
48 * config/abi/pre/gnu.ver: Add iostream objects to new symver.
50 2023-04-19 Jonathan Wakely <jwakely@redhat.com>
53 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
56 * config/abi/pre/gnu.ver: Fix preprocessor condition.
58 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
60 * doc/xml/manual/extensions.xml: Fix example to declare and
61 qualify std::free, and use NULL instead of 0.
62 * doc/html/manual/ext_demangling.html: Regenerate.
63 * libsupc++/cxxabi.h: Adjust doxygen comments.
65 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
68 * config/abi/pre/gnu.ver: Fix preprocessor condition.
70 2023-04-18 Jonathan Wakely <jwakely@redhat.com>
73 * src/Makefile.am: Move globals_io.cc to here.
74 * src/Makefile.in: Regenerate.
75 * src/c++98/Makefile.am: Remove globals_io.cc from here.
76 * src/c++98/Makefile.in: Regenerate.
77 * src/c++98/globals_io.cc [_GLIBCXX_SYMVER_GNU] (cin): Adjust
78 symbol name and then export with GLIBCXX_3.4.31 symver.
79 (cout, cerr, clog, wcin, wcout, wcerr, wclog): Likewise.
80 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt:
82 * config/abi/post/i486-linux-gnu/baseline_symbols.txt:
84 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt:
86 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
88 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
90 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
92 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt:
94 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt:
96 * config/abi/pre/gnu.ver: Add iostream objects to new symver.
98 2023-04-18 Patrick Palka <ppalka@redhat.com>
101 * include/bits/ranges_cmp.h (__cpp_lib_ranges): Bump value
103 * include/std/ranges (range_adaptor_closure): Define for C++23.
104 * include/std/version (__cpp_lib_ranges): Bump value for
106 * testsuite/std/ranges/version_c++23.cc: Bump expected value
108 * testsuite/std/ranges/range_adaptor_closure.cc: New test.
110 2023-04-18 Patrick Palka <ppalka@redhat.com>
112 * include/bits/ranges_algo.h (__cpp_lib_ranges_contains):
114 (__cpp_lib_ranges_iota): Likewise.
115 (__cpp_lib_ranges_find_last): Likewise.
116 (__cpp_lib_fold): Rename to ...
117 (__cpp_lib_ranges_fold): ... this.
118 * include/std/version: As above.
119 * testsuite/25_algorithms/fold_left/1.cc: Adjust after
120 renaming __cpp_lib_fold.
121 * testsuite/std/ranges/version_c++23.cc: Verify values
122 of the above feature-test macros.
124 2023-04-18 Patrick Palka <ppalka@redhat.com>
127 * include/std/ranges (views::_AsConst::operator()): Add
128 missing const to constant_range test.
129 * testsuite/std/ranges/adaptors/as_const/1.cc (test02):
130 Improve formatting. Adjust expected type of v2.
133 2023-04-14 Patrick Palka <ppalka@redhat.com>
135 * include/bits/ranges_base.h (const_iterator_t): Define for C++23.
136 (const_sentinel_t): Likewise.
137 (range_const_reference_t): Likewise.
138 (constant_range): Likewise.
139 (__cust_access::__possibly_const_range): Likewise, replacing ...
140 (__cust_access::__as_const): ... this.
141 (__cust_access::_CBegin::operator()): Redefine for C++23 as per P2278R4.
142 (__cust_access::_CEnd::operator()): Likewise.
143 (__cust_access::_CRBegin::operator()): Likewise.
144 (__cust_access::_CREnd::operator()): Likewise.
145 (__cust_access::_CData::operator()): Likewise.
146 * include/bits/ranges_util.h (ranges::__detail::__different_from):
147 Make it an alias of std::__detail::__different_from.
148 (view_interface::cbegin): Define for C++23.
149 (view_interface::cend): Likewise.
150 * include/bits/stl_iterator.h (__detail::__different_from): Define.
151 (iter_const_reference_t): Define for C++23.
152 (__detail::__constant_iterator): Likewise.
153 (__detail::__is_const_iterator): Likewise.
154 (__detail::__not_a_const_iterator): Likewise.
155 (__detail::__iter_const_rvalue_reference_t): Likewise.
156 (__detail::__basic_const_iter_cat):: Likewise.
157 (const_iterator): Likewise.
158 (__detail::__const_sentinel): Likewise.
159 (const_sentinel): Likewise.
160 (basic_const_iterator): Likewise.
161 (common_type<basic_const_iterator<_Tp>, _Up>): Likewise.
162 (common_type<_Up, basic_const_iterator<_Tp>>): Likewise.
163 (common_type<basic_const_iterator<_Tp>, basic_const_iterator<Up>>):
165 (make_const_iterator): Define for C++23.
166 (make_const_sentinel): Likewise.
167 * include/std/ranges (__cpp_lib_ranges_as_const): Likewise.
168 (as_const_view): Likewise.
169 (enable_borrowed_range<as_const_view>): Likewise.
170 (views::__detail::__is_ref_view): Likewise.
171 (views::__detail::__can_is_const_view): Likewise.
172 (views::_AsConst, views::as_const): Likewise.
173 * include/std/span (span::const_iterator): Likewise.
174 (span::const_reverse_iterator): Likewise.
175 (span::cbegin): Likewise.
176 (span::cend): Likewise.
177 (span::crbegin): Likewise.
178 (span::crend): Likewise.
179 * include/std/version (__cpp_lib_ranges_as_const): Likewise.
180 * testsuite/std/ranges/adaptors/join.cc (test06): Adjust to
181 behave independently of C++20 vs C++23.
182 * testsuite/std/ranges/version_c++23.cc: Verify value of
183 __cpp_lib_ranges_as_const macro.
184 * testsuite/24_iterators/const_iterator/1.cc: New test.
185 * testsuite/std/ranges/adaptors/as_const/1.cc: New test.
187 2023-04-14 Patrick Palka <ppalka@redhat.com>
189 * include/bits/ranges_base.h (__cust_access::__as_const)
190 (__cust_access::_CBegin, __cust::cbegin)
191 (__cust_access::_CEnd, __cust::cend)
192 (__cust_access::_CRBegin, __cust::crbegin)
193 (__cust_access::_CREnd, __cust::crend)
194 (__cust_access::_CData, __cust::cdata): Move down definitions to
195 shortly after the definition of input_range.
197 2023-04-14 Patrick Palka <ppalka@redhat.com>
199 * include/bits/ranges_algo.h: Include <optional> for C++23.
200 (__cpp_lib_fold): Define for C++23.
201 (in_value_result): Likewise.
202 (__detail::__flipped): Likewise.
203 (__detail::__indirectly_binary_left_foldable_impl): Likewise.
204 (__detail::__indirectly_binary_left_foldable): Likewise.
205 (___detail:__indirectly_binary_right_foldable): Likewise.
206 (fold_left_with_iter_result): Likewise.
207 (__fold_left_with_iter_fn, fold_left_with_iter): Likewise.
208 (__fold_left_fn, fold_left): Likewise.
209 (__fold_left_first_with_iter_fn, fold_left_first_with_iter):
211 (__fold_left_first_fn, fold_left_first): Likewise.
212 (__fold_right_fn, fold_right): Likewise.
213 (__fold_right_last_fn, fold_right_last): Likewise.
214 * include/std/version (__cpp_lib_fold): Likewise.
215 * testsuite/25_algorithms/fold_left/1.cc: New test.
216 * testsuite/25_algorithms/fold_right/1.cc: New test.
218 2023-04-14 Jonathan Wakely <jwakely@redhat.com>
220 * include/std/format (formatter): Add comment to deleted default
221 constructor of primary template.
222 (_Checking_scanner): Add static_assert.
224 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
226 * doc/xml/manual/using.xml: Document libstdc++exp.a library.
227 * doc/html/*: Regenerate.
229 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
231 * testsuite/17_intro/names.cc [_AIX]: Do not define policy.
232 * testsuite/19_diagnostics/error_code/cons/lwg3629.cc: Rename
233 namespace to avoid clashing with libc struct.
234 * testsuite/19_diagnostics/error_condition/cons/lwg3629.cc:
236 * testsuite/23_containers/unordered_map/96088.cc: Skip on AIX.
237 * testsuite/23_containers/unordered_multimap/96088.cc: Likewise.
238 * testsuite/23_containers/unordered_multiset/96088.cc: Likewise.
239 * testsuite/23_containers/unordered_set/96088.cc: Likewise.
240 * testsuite/experimental/synchronized_value.cc: Require gthreads
241 and add missing option for pthreads targets.
243 2023-04-12 Patrick Palka <ppalka@redhat.com>
245 * include/std/ranges (__cpp_lib_ranges_enumerate): Define
247 (__detail::__range_with_movable_reference): Likewise.
248 (enumerate_view): Likewise.
249 (enumerate_view::_Iterator): Likewise.
250 (enumerate_view::_Sentinel): Likewise.
251 (views::__detail::__can_enumerate_view): Likewise.
252 (views::_Enumerate, views::enumerate): Likewise.
253 * include/std/version (__cpp_lib_ranges_enumerate): Likewise.
254 * testsuite/std/ranges/version_c++23.cc: Verify value of
255 __cpp_lib_ranges_enumerate.
256 * testsuite/std/ranges/adaptors/enumerate/1.cc: New test.
258 2023-04-12 Patrick Palka <ppalka@redhat.com>
260 * include/std/ranges (lazy_split_view::_OuterIter::_OuterIter):
261 Propagate _M_trailing_empty in the const-converting constructor
263 * testsuite/std/ranges/adaptors/adjacent/1.cc (test04): Correct
265 * testsuite/std/ranges/adaptors/lazy_split.cc (test12): New test.
267 2023-04-12 Patrick Palka <ppalka@redhat.com>
269 * src/c++17/floating_from_chars.cc: Include <algorithm>,
270 <iterator>, <limits> and <cstdint>.
272 2023-04-12 Patrick Palka <ppalka@redhat.com>
275 * include/std/ranges (chunk_by_view::_M_find_next): Generalize
276 parameter types of the lambda wrapper passed to adjacent_find.
277 (chunk_by_view::_M_find_prev): Likewise.
278 * testsuite/std/ranges/adaptors/chunk_by/1.cc (test04, test05):
281 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
284 * include/experimental/internet (basic_endpoint::basic_endpoint()):
285 Ensure that the required union members are active. Only define
286 as constexpr for C++20 and later.
287 (basic_endpoint::basic_endpoint(const protocol_type&, port_type)):
289 * testsuite/experimental/net/internet/endpoint/cons.cc: Only
290 check constexpr default constructor for C++20 and later.
291 * testsuite/experimental/net/internet/endpoint/extensible.cc:
294 2023-04-12 Jonathan Wakely <jwakely@redhat.com>
296 * src/c++20/tzdata.zi: Import new file from 2023c release.
298 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
300 * include/precompiled/stdc++.h (C++17): Don't double-include
301 <charconv>, once with wrong conditions.
302 * testsuite/18_support/96817.cc: Require hosted.
303 * testsuite/18_support/bad_exception/59392.cc: Ditto.
304 * testsuite/20_util/scoped_allocator/108952.cc: Ditto.
305 * testsuite/20_util/uses_allocator/lwg3527.cc: Ditto.
306 * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
309 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
311 * include/bits/c++config: When __STDC_HOSTED__ is zero,
312 disable _GLIBCXX_DEBUG and, if it was set, enable
314 * testsuite/lib/libstdc++.exp (check_v3_target_debug_mode):
315 Include <bits/c++config.h> when determining whether debug is
316 set, in order to inherit the logic from above
318 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
320 * testsuite/17_intro/versionconflict.cc: New test.
321 * include/std/version: Allow disabling the system_header pragma
322 via _GLIBCXX_TESTING_SYSHDR.
324 2023-04-05 Arsen Arsenović <arsen@aarsen.me>
326 * include/bits/unique_ptr.h (__cpp_lib_constexpr_memory):
327 Synchronize the definition block with...
328 * include/bits/ptr_traits.h (__cpp_lib_constexpr_memory):
329 ... this one here. Also define the 202202L value, rather than
330 leaving it up to purely unique_ptr.h, so that the value is
331 synchronized across all headers.
332 (__gnu_debug::_Safe_iterator_base): Move into new conditional
334 * include/std/memory (__cpp_lib_atomic_value_initialization):
335 Define on freestanding under the same conditions as in
337 * include/std/version (__cpp_lib_robust_nonmodifying_seq_ops):
338 Also define on freestanding.
339 (__cpp_lib_to_chars): Ditto.
340 (__cpp_lib_gcd): Ditto.
341 (__cpp_lib_gcd_lcm): Ditto.
342 (__cpp_lib_raw_memory_algorithms): Ditto.
343 (__cpp_lib_array_constexpr): Ditto.
344 (__cpp_lib_nonmember_container_access): Ditto.
345 (__cpp_lib_clamp): Ditto.
346 (__cpp_lib_constexpr_char_traits): Ditto.
347 (__cpp_lib_constexpr_string): Ditto.
348 (__cpp_lib_sample): Ditto.
349 (__cpp_lib_lcm): Ditto.
350 (__cpp_lib_constexpr_iterator): Ditto.
351 (__cpp_lib_constexpr_char_traits): Ditto.
352 (__cpp_lib_interpolate): Ditto.
353 (__cpp_lib_constexpr_utility): Ditto.
354 (__cpp_lib_shift): Ditto.
355 (__cpp_lib_ranges): Ditto.
356 (__cpp_lib_move_iterator_concept): Ditto.
357 (__cpp_lib_constexpr_numeric): Ditto.
358 (__cpp_lib_constexpr_functional): Ditto.
359 (__cpp_lib_constexpr_algorithms): Ditto.
360 (__cpp_lib_constexpr_tuple): Ditto.
361 (__cpp_lib_constexpr_memory): Ditto.
363 2023-04-05 John David Anglin <danglin@gcc.gnu.org>
365 * testsuite/22_locale/locale/cons/12658_thread-2.cc: Double
366 timeout factor on hppa*-*-*.
368 2023-04-05 Jonathan Wakely <jwakely@redhat.com>
370 * include/bits/regex.h (sub_match::swap): New function.
371 * testsuite/28_regex/sub_match/lwg3204.cc: New test.
373 2023-04-04 Jonathan Wakely <jwakely@redhat.com>
375 * doc/xml/manual/extensions.xml: Remove std::bad_exception from
377 * doc/html/manual/ext_demangling.html: Regenerate.
379 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
381 PR tree-optimization/107087
382 * include/bits/cow_string.h (basic_string::size()): Add
383 optimizer hint that _S_empty_rep()._M_length is always zero.
384 (basic_string::length()): Call size().
386 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
389 * include/std/stop_token (_Stop_state_ptr(const stop_source&)):
390 Add attribute access with access-mode 'none'.
391 * testsuite/30_threads/stop_token/stop_source/109339.cc: New test.
393 2023-03-31 Jonathan Wakely <jwakely@redhat.com>
395 * include/experimental/internet (ip::basic_endpoint::_M_if_v6):
396 Revert change from member function to data member. Fix for
397 constant evaluation by detecting which union member is active.
398 (ip::basic_endpoint::resize): Revert changes to update _M_is_v6
401 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
404 * testsuite/20_util/optional/monadic/pr109340.cc: Moved to...
405 * testsuite/20_util/optional/monadic/pr109242.cc: ...here.
407 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
409 * include/experimental/internet (ip::make_address): Implement
411 (ip::address_v4::broadcast()): Avoid undefined shift.
412 (ip::basic_endpoint): Fix member functions for constexpr.
413 (ip::basic_endpoint::_M_is_v6): Replace member function with
414 data member, adjust member functions using it.
415 (ip::basic_endpoint::resize): Update _M_is_v6 based on sockaddr
417 * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
418 constexpr checks to work in C++14.
419 * testsuite/experimental/net/internet/address/v4/creation.cc:
421 * testsuite/experimental/net/internet/endpoint/cons.cc:
423 * testsuite/experimental/net/internet/network/v4/cons.cc:
425 * testsuite/experimental/net/internet/network/v4/members.cc:
427 * testsuite/experimental/net/internet/endpoint/extensible.cc: New test.
429 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
431 * include/std/expected (expected::value() &): Use const lvalue
432 for unex member passed to bad_expected_access constructor, as
435 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
438 * include/std/expected (expected::transform): Use
439 std::remove_cv_t instead of std::remove_cvref_t.
440 (expected::transform_error): Likewise.
441 (expected<cv void, E>::transform): Likewise.
442 (expected<cv void, E>::transform_error): Likewise.
443 * include/std/optional (transform): Use std::remove_cv_t.
444 * testsuite/20_util/optional/monadic/pr109340.cc: New test.
446 2023-03-29 Jonathan Wakely <jwakely@redhat.com>
448 * include/std/optional (optional): Adjust static assertion to
449 reject arrays and functions as well as references.
450 * testsuite/20_util/optional/requirements_neg.cc: New test.
452 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
455 * include/bits/istream.tcc (istream::_M_extract(ValueT&)): Use
456 std::use_facet instead of cached _M_num_get facet.
457 (istream::operator>>(short&)): Likewise.
458 (istream::operator>>(int&)): Likewise.
459 * include/bits/ostream.tcc (ostream::_M_insert(ValueT)): Use
460 std::use_facet instead of cached _M_num_put facet.
462 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
464 * include/bits/char_traits.h (char_traits::copy): Return without
465 using memcpy if n==0.
466 (char_traits::assign): Likewise for memset.
468 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
471 * include/bits/basic_string.h (basic_string::_M_is_local()): Add
472 hint for compiler that local strings fit in the local buffer.
474 2023-03-28 Jonathan Wakely <jwakely@redhat.com>
477 * include/std/chrono (__detail::__get_leap_second_info): Update
478 expiry date of hardcoded leapseconds list.
479 * src/c++20/tzdb.cc (tzdb_list::_Node::_S_read_leap_seconds()):
481 * src/c++20/tzdata.zi: Import new file from 2023a release.
482 * testsuite/std/time/time_zone/get_info_local.cc: Only check
483 transitions for Egypt up to 2014.
485 2023-03-28 Matthias Kretz <m.kretz@gsi.de>
487 * include/experimental/bits/simd.h (is_simd_flag_type): New.
488 (_IsSimdFlagType): New.
489 (copy_from, copy_to, load ctors): Constrain _Flags using
492 2023-03-28 Matthias Kretz <m.kretz@gsi.de>
494 * include/experimental/bits/simd_x86.h (_SimdImplX86): Use
495 _Base::_S_divides if the optimized _S_divides function is hidden
496 via the preprocessor.
498 2023-03-27 Jakub Jelinek <jakub@redhat.com>
500 * testsuite/experimental/net/timer/waitable/dest.cc: Avoid -Wformat
501 warning if size_t is not unsigned long.
503 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
505 * include/bits/shared_ptr_atomic.h (atomic::operator=(nullptr_t)):
506 Add overload, as per LWG 3893.
507 * testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc:
508 Check assignment from nullptr.
510 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
512 * include/std/format (formatter<const charT[N], charT>): Do not
513 define partial speclialization, as per LWG 3833.
514 * testsuite/std/format/formatter/requirements.cc: Check it.
516 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
518 * include/std/utility (__cpp_lib_constexpr_algorithms): Define,
520 * testsuite/20_util/exchange/constexpr.cc: Check for it.
522 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
524 * include/std/version (__cpp_lib_format): Define.
525 * testsuite/std/format/functions/format.cc: Check it.
527 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
529 * include/bits/basic_string.tcc (basic_string::resize_and_overwrite):
530 Pass rvalues to the callback, as now allowed by LWG 3645.
531 Enforce preconditions on the return value.
532 * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
535 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
537 * include/std/format: Add a comment noting that the resolution
538 of LWG 3720 has been applied..
540 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
542 * include/bits/regex.h (match_results): Add allocator-extended
543 copy and move constructors, as per LWG 2195.
544 * testsuite/28_regex/match_results/ctors/char/alloc.cc: New test.
546 2023-03-22 Jonathan Wakely <jwakely@redhat.com>
548 * include/bits/stream_iterator.h (istream_iterator): Add
549 constexpr to copy constructor, as per LWG 3600.
550 * testsuite/24_iterators/istream_iterator/cons/constexpr.cc:
551 Check copy construction.
553 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
555 * include/experimental/bits/simd_x86.h
556 (_SimdImplX86::_S_divides): Replace test for __GCC_IEC_559 == 0
557 with __RECIPROCAL_MATH__.
559 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
561 * include/experimental/bits/simd_detail.h: Don't define
562 _GLIBCXX_SIMD_WORKAROUND_PR90993 for Clang.
563 * include/experimental/bits/simd_x86.h (_S_divides): Remove
566 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
568 * include/experimental/bits/simd_detail.h: Don't declare the
569 simd API as constexpr with Clang.
570 * include/experimental/bits/simd_x86.h (__movm): New.
571 (_S_blend_avx512): Resolve FIXME. Implement blend using __movm
573 (_SimdImplX86::_S_masked_unary): Clang does not implement the
574 same builtins. Implement the function using __movm, ?:, and -
575 operators on vector_size types instead.
577 2023-03-21 Matthias Kretz <m.kretz@gsi.de>
579 * testsuite/experimental/simd/tests/operators.cc: Clang doesn't
580 define __GCC_IEC_559. Use __STDC_IEC_559__ instead.
582 2023-03-20 Jonathan Wakely <jwakely@redhat.com>
584 * src/filesystem/ops-common.h (get_temp_directory_from_env): Fix
587 2023-03-20 Marek Polacek <polacek@redhat.com>
590 * testsuite/20_util/pair/cons/explicit_construct.cc: Adjust dg-error.
591 * testsuite/20_util/tuple/cons/explicit_construct.cc: Likewise.
592 * testsuite/23_containers/span/explicit.cc: Likewise.
594 2023-03-20 Jonathan Wakely <jwakely@redhat.com>
597 * include/std/expected (expected<void>::expected(in_place_t)):
598 Remove template-head.
600 2023-03-18 Jonathan Wakely <jwakely@redhat.com>
603 * testsuite/18_support/coroutines/hash.cc: Use const object
606 2023-03-17 Jonathan Wakely <jwakely@redhat.com>
609 * include/std/coroutine (hash<>::operator()): Add const.
610 * testsuite/18_support/coroutines/hash.cc: New test.
612 2023-03-14 Patrick Palka <ppalka@redhat.com>
615 * include/std/ranges (repeat_view): Remove redundant parentheses
617 (repeat_view::_Iterator): Correct the requires-clause.
619 2023-03-14 Patrick Palka <ppalka@redhat.com>
621 * include/bits/stl_iterator.h (move_iterator::_S_iter_concept):
623 (__cpp_lib_move_iterator_concept): Define for C++20.
624 (move_iterator::iterator_concept): Strengthen as per P2520R0.
625 * include/std/version (__cpp_lib_move_iterator_concept): Define
627 * testsuite/24_iterators/move_iterator/p2520r0.cc: New test.
629 2023-03-14 Patrick Palka <ppalka@redhat.com>
631 * include/bits/ranges_util.h (view_interface::empty): Add
632 preferred overloads that use ranges::size when the range is
633 sized as per LWG 3715.
634 * testsuite/std/ranges/adaptors/lwg3715.cc: New test.
636 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
638 * include/bits/chrono.h (__is_duration_v, __is_time_point_v):
639 Only define for C++17 and later.
641 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
643 * src/Makefile.am: Add comment about linker script fragments.
644 * src/Makefile.in: Regenerate.
646 2023-03-14 Jonathan Wakely <jwakely@redhat.com>
649 * include/bits/mask_array.h (mask_array): Add assertions to
650 assignment operators.
651 * include/std/valarray (valarray::operator[](valarray<bool>)):
653 * testsuite/26_numerics/valarray/mask-1_neg.cc: New test.
654 * testsuite/26_numerics/valarray/mask-2_neg.cc: New test.
655 * testsuite/26_numerics/valarray/mask-3_neg.cc: New test.
656 * testsuite/26_numerics/valarray/mask-4_neg.cc: New test.
657 * testsuite/26_numerics/valarray/mask-5_neg.cc: New test.
658 * testsuite/26_numerics/valarray/mask-6_neg.cc: New test.
659 * testsuite/26_numerics/valarray/mask-7_neg.cc: New test.
660 * testsuite/26_numerics/valarray/mask-8_neg.cc: New test.
661 * testsuite/26_numerics/valarray/mask.cc: New test.
663 2023-03-13 Jakub Jelinek <jakub@redhat.com>
665 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
666 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
668 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
670 * doc/Makefile.am: Add comment referring to documentation.
671 * doc/Makefile.in: Regenerate.
673 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
675 * doc/html/*: Regenerate.
677 2023-03-13 Jonny Grant <jg@jguk.org>
679 * doc/xml/faq.xml: Update copyright year.
681 2023-03-13 Jonathan Wakely <jwakely@redhat.com>
683 * include/bits/allocator.h: Fix typo in comment.
685 2023-03-12 Jakub Jelinek <jakub@redhat.com>
687 * config/abi/pre/gnu.ver (CXXABI_1.3.14): Also export __bf16 tinfos
688 if it isn't mangled as DF16b but u6__bf16.
690 2023-03-12 Gerald Pfeifer <gerald@pfeifer.com>
692 * doc/xml/manual/documentation_hacking.xml: Move www.graphviz.org
694 * doc/html/manual/documentation_hacking.html: Regenerate.
696 2023-03-10 Jonathan Wakely <jwakely@redhat.com>
699 * python/libstdcxx/v6/xmethods.py (SharedPtrUseCountWorker):
700 Remove self-recursion in __init__. Add missing _supports.
701 * testsuite/libstdc++-xmethods/shared_ptr.cc: Check use_count()
704 2023-03-09 Patrick Palka <ppalka@redhat.com>
707 (cartesian_product_view::_Iterator::_Iterator): Remove
708 constraint on default constructor as per LWG 3849.
709 (cartesian_product_view::_Iterator::_M_prev): Adjust position
710 of _Nm > 0 test as per LWG 3820.
711 (cartesian_product_view::_Iterator::_M_advance): Perform bounds
712 checking only on sized cartesian products.
713 * testsuite/std/ranges/cartesian_product/1.cc (test08): New test.
715 2023-03-09 Patrick Palka <ppalka@redhat.com>
718 * include/std/ranges (chunk_by_view::_M_pred): Remove DMI as per
720 (repeat_view::_M_pred): Likewise.
721 * testsuite/std/ranges/adaptors/chunk_by/1.cc (test03): New test.
722 * testsuite/std/ranges/repeat/1.cc (test05): New test.
724 2023-03-09 Patrick Palka <ppalka@redhat.com>
727 * include/std/ranges (__detail::__can_single_view): New concept.
728 (_Single::operator()): Constrain it. Move [[nodiscard]] to the
729 end of the function declarator.
730 (__detail::__can_iota_view): New concept.
731 (_Iota::operator()): Constrain it. Move [[nodiscard]] to the
732 end of the function declarator.
733 (__detail::__can_istream_view): New concept.
734 (_Istream::operator()): Constrain it. Move [[nodiscard]] to the
735 end of the function declarator.
736 * testsuite/std/ranges/iota/iota_view.cc (test07): New test.
737 * testsuite/std/ranges/istream_view.cc (test08): New test.
738 * testsuite/std/ranges/single_view.cc (test07): New test.
740 2023-03-09 Patrick Palka <ppalka@redhat.com>
743 * include/std/ranges (cartesian_product_view::end): When
744 building the tuple of iterators, avoid calling ranges::begin on
745 the first range if __empty_tail is false.
746 * testsuite/std/ranges/cartesian_product/1.cc (test07): New test.
748 2023-03-09 Jonathan Wakely <jwakely@redhat.com>
751 * config/os/gnu-linux/ldbl-ieee128-extra.ver: Fix incorrect
754 2023-03-07 Jakub Jelinek <jakub@redhat.com>
756 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
757 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
758 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
759 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
760 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
762 2023-03-07 Jonathan Wakely <jwakely@redhat.com>
765 * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Adjust patterns to
766 not match symbols in namespace std::__gnu_cxx11_ieee128.
767 * config/os/gnu-linux/ldbl-ieee128-extra.ver: Add patterns for
768 std::__gnu_cxx11_ieee128::money_{get,put}.
770 2023-03-07 Jonathan Wakely <jwakely@redhat.com>
772 * libsupc++/eh_personality.cc: Fix spelling in comment.
774 2023-03-03 Alexandre Oliva <oliva@adacore.com>
776 * testsuite/30_threads/async/async.cc (test04): Initialize
777 steady_start, renamed from steady_begin, next to slow_start.
778 Increase tolerance for final wait.
780 2023-03-03 Alexandre Oliva <oliva@adacore.com>
782 * testsuite/libstdc++-prettyprinters/80276.cc: Add
783 std::string to debug info.
784 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
786 2023-03-03 Alexandre Oliva <oliva@adacore.com>
791 * include/bits/std_thread.h (thread::_M_thread_deps): New
792 static implicitly-inline member function.
793 (std::thread template ctor): Pass it to _M_start_thread.
794 * src/c++11/thread.cc (thread::_M_start_thread): Name depend
795 parameter, force it live on entry.
797 2023-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
799 * config/abi/post/i386-solaris/baseline_symbols.txt: Regenerate.
800 * config/abi/post/i386-solaris/amd64/baseline_symbols.txt:
802 * config/abi/post/sparc-solaris/baseline_symbols.txt: Likewise.
803 * config/abi/post/sparc-solaris/sparcv9/baseline_symbols.txt:
806 2023-03-01 Jonathan Wakely <jwakely@redhat.com>
808 * include/bits/cow_string.h: Fix typo in comment.
810 2023-03-01 Jonathan Wakely <jwakely@redhat.com>
812 * src/c++20/tzdb.cc (chrono::tzdb::current_zone()) Use "UTC" if
813 current time zone cannot be determined.
814 * testsuite/std/time/tzdb/1.cc: Remove conditions based on
815 HAVE_TZDB macro and test all members unconditionally.
817 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
820 * include/bits/uses_allocator_args.h
821 (uses_allocator_construction_args): Implement LWG 3527.
822 * testsuite/20_util/pair/astuple/get-2.cc: New test.
823 * testsuite/20_util/scoped_allocator/108952.cc: New test.
824 * testsuite/20_util/uses_allocator/lwg3527.cc: New test.
826 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
829 * include/bits/stl_algobase.h (__copy_move<false, false, RA>)
830 Add __assign_one static member function.
831 (__copy_move<true, false, RA>): Likewise.
832 (__copy_move<IsMove, true, RA>): Do not use memmove for a single
834 (__copy_move_backward<IsMove, true, RA>): Likewise.
835 * testsuite/25_algorithms/copy/108846.cc: New test.
836 * testsuite/25_algorithms/copy_backward/108846.cc: New test.
837 * testsuite/25_algorithms/copy_n/108846.cc: New test.
838 * testsuite/25_algorithms/move/108846.cc: New test.
839 * testsuite/25_algorithms/move_backward/108846.cc: New test.
841 2023-02-28 Jonathan Wakely <jwakely@redhat.com>
843 * src/c++11/codecvt.cc: Add [[likely]] and [[unlikely]]
846 2023-02-27 Jonathan Wakely <jwakely@redhat.com>
848 * include/bits/basic_ios.h (basic_ios::_M_setstate): Add
850 * include/bits/basic_string.h (resize_and_overwrite): Add
853 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
855 * include/experimental/bits/simd.h: Line breaks and indenting
856 fixed to follow the libstdc++ standard.
857 * include/experimental/bits/simd_builtin.h: Likewise.
858 * include/experimental/bits/simd_fixed_size.h: Likewise.
859 * include/experimental/bits/simd_neon.h: Likewise.
860 * include/experimental/bits/simd_ppc.h: Likewise.
861 * include/experimental/bits/simd_scalar.h: Likewise.
862 * include/experimental/bits/simd_x86.h: Likewise.
864 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
867 * include/experimental/bits/simd_fixed_size.h
868 (_SimdImplFixedSize::_S_broadcast): Replace inline with
869 _GLIBCXX_SIMD_INTRINSIC.
870 (_SimdImplFixedSize::_S_generate): Likewise.
871 (_SimdImplFixedSize::_S_load): Likewise.
872 (_SimdImplFixedSize::_S_masked_load): Likewise.
873 (_SimdImplFixedSize::_S_store): Likewise.
874 (_SimdImplFixedSize::_S_masked_store): Likewise.
875 (_SimdImplFixedSize::_S_min): Likewise.
876 (_SimdImplFixedSize::_S_max): Likewise.
877 (_SimdImplFixedSize::_S_complement): Likewise.
878 (_SimdImplFixedSize::_S_unary_minus): Likewise.
879 (_SimdImplFixedSize::_S_plus): Likewise.
880 (_SimdImplFixedSize::_S_minus): Likewise.
881 (_SimdImplFixedSize::_S_multiplies): Likewise.
882 (_SimdImplFixedSize::_S_divides): Likewise.
883 (_SimdImplFixedSize::_S_modulus): Likewise.
884 (_SimdImplFixedSize::_S_bit_and): Likewise.
885 (_SimdImplFixedSize::_S_bit_or): Likewise.
886 (_SimdImplFixedSize::_S_bit_xor): Likewise.
887 (_SimdImplFixedSize::_S_bit_shift_left): Likewise.
888 (_SimdImplFixedSize::_S_bit_shift_right): Likewise.
889 (_SimdImplFixedSize::_S_remquo): Add inline keyword (to be
890 explicit about not always-inline, yet).
891 (_SimdImplFixedSize::_S_isinf): Likewise.
892 (_SimdImplFixedSize::_S_isfinite): Likewise.
893 (_SimdImplFixedSize::_S_isnan): Likewise.
894 (_SimdImplFixedSize::_S_isnormal): Likewise.
895 (_SimdImplFixedSize::_S_signbit): Likewise.
897 2023-02-24 Matthias Kretz <m.kretz@gsi.de>
900 * include/experimental/bits/simd_builtin.h
901 (_SimdImplBuiltin::_S_masked_unary): More efficient
902 implementation of masked inc-/decrement for integers and floats
904 * include/experimental/bits/simd_x86.h
905 (_SimdImplX86::_S_masked_unary): New. Use AVX512 masked subtract
906 builtins for masked inc-/decrement.
908 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
910 * include/experimental/executor (executor): Constrain template
913 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
915 * include/experimental/internet (basic_endpoint): Add missing
916 constexpr to comparison operators.
917 * testsuite/experimental/net/internet/endpoint/cons.cc: New test.
919 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
921 * include/experimental/internet (network_v4::netmask()): Avoid
923 (network_v4::broadcast()): Optimize and fix for targets with
924 uint_least32_t wider than 32 bits.
925 (network_v4::to_string(const Allocator&)): Fix for custom
926 allocators and optimize using to_chars.
927 (operator==(const network_v4&, const network_v4&)): Add missing
929 (operator==(const network_v6&, const network_v6&)): Likewise.
930 * testsuite/experimental/net/internet/network/v4/cons.cc: New test.
931 * testsuite/experimental/net/internet/network/v4/members.cc: New test.
933 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
935 * include/experimental/internet (address_4(const bytes_type&)):
936 Use __builtin_bit_cast if available, otherwise convert to
938 (address_v4::to_bytes()): Likewise, but convert from network
940 * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
941 incorrect tests. Check for constexpr too.
942 * testsuite/experimental/net/internet/address/v4/creation.cc:
944 * testsuite/experimental/net/internet/address/v4/members.cc:
945 Check that bytes_type is a standard-layout type.
947 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
949 * include/experimental/internet (address_v4::to_string):
951 * testsuite/experimental/net/internet/address/v4/members.cc:
952 Check more addresses.
954 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
956 * include/ext/aligned_buffer.h (__aligned_buffer): Add
959 2023-02-24 Jonathan Wakely <jwakely@redhat.com>
961 * testsuite/std/format/arguments/lwg3810.cc: Move dg-options
964 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
966 * testsuite/experimental/simd/tests/reductions.cc: Introduce
967 max_distance as the type-dependent max error.
969 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
971 * include/experimental/bits/simd_builtin.h (_S_set): Compare as
972 int. The actual range of these indexes is very small.
974 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
976 * include/experimental/bits/simd_x86.h (_S_bit_shift_left)
977 (_S_bit_shift_right): Declare constexpr. The implementation was
978 already expecting constexpr evaluation.
980 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
983 * include/experimental/bits/simd_detail.h
984 (_GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA): Define as empty for
987 2023-02-23 Matthias Kretz <m.kretz@gsi.de>
990 * include/experimental/bits/simd.h (__vector_broadcast):
991 Implement via __vector_broadcast_impl instead of
992 __call_with_n_evaluations + 2 lambdas.
993 (__vector_broadcast_impl): New.
995 2023-02-22 Alexandre Oliva <oliva@adacore.com>
997 * src/c++11/shared_ptr.cc (__gnu_internal::get_mutex):
998 Avoid destruction of the mutex pool.
1000 2023-02-22 Alexandre Oliva <oliva@adacore.com>
1002 * testsuite/27_io/basic_ofstream/open/char/noreplace.cc: xfail
1004 * testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc:
1007 2023-02-22 Alexandre Oliva <oliva@adacore.com>
1009 * testsuite/17_intro/names.cc: Undef func on vxworks >= 7 in
1012 2023-02-20 Andreas Schwab <schwab@linux-m68k.org>
1014 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
1016 2023-02-20 Matthias Kretz <m.kretz@gsi.de>
1018 * include/experimental/bits/simd.h (__extract_part, split):
1019 Use reserved name for template parameter.
1021 2023-02-20 Andreas Schwab <schwab@suse.de>
1023 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
1025 2023-02-18 Gerald Pfeifer <gerald@pfeifer.com>
1027 * doc/xml/faq.xml: Switch two links to www.open-std.org to https.
1028 * doc/html/faq.html: Regenerate.
1030 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
1032 * include/experimental/bits/simd_math.h (__hypot): Bitcasting
1033 between scalars requires the __bit_cast helper function instead
1036 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
1038 * include/experimental/bits/simd_x86.h
1039 (_SimdImplX86::_S_not_equal_to, _SimdImplX86::_S_less)
1040 (_SimdImplX86::_S_less_equal): Do not call
1041 __builtin_is_constant_evaluated in constexpr-if.
1043 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
1045 * testsuite/experimental/simd/tests/bits/verify.h
1046 (verify::verify): Use %zx for size_t in format string.
1048 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
1050 * testsuite/experimental/simd/generate_makefile.sh: Generate and
1051 pre-compile pch.h, which includes all headers that do not depend
1052 on command-line macros.
1053 * testsuite/experimental/simd/tests/bits/main.h: New file.
1054 (iterate_abis, main): Moved from verify.h.
1055 * testsuite/experimental/simd/tests/bits/verify.h
1056 (iterate_abis, main): Moved to main.h.
1057 * testsuite/experimental/simd/tests/bits/conversions.h: Add
1059 (genHalfBits): Simplify.
1060 * testsuite/experimental/simd/tests/bits/make_vec.h: Add include
1062 (make_alternating_mask): Moved from mask_loadstore.
1063 * testsuite/experimental/simd/tests/bits/mathreference.h: Add
1065 * testsuite/experimental/simd/tests/bits/test_values.h: Ditto.
1066 * testsuite/experimental/simd/tests/mask_loadstore.cc
1067 (make_mask, make_alternating_mask): Removed.
1068 * testsuite/experimental/simd/tests/mask_reductions.cc: Ditto.
1069 * testsuite/experimental/simd/tests/operators.cc (genHalfBits):
1071 * testsuite/experimental/simd/tests/abs.cc: Only include
1074 * testsuite/experimental/simd/tests/algorithms.cc: Ditto.
1075 * testsuite/experimental/simd/tests/broadcast.cc: Ditto.
1076 * testsuite/experimental/simd/tests/casts.cc: Ditto.
1077 * testsuite/experimental/simd/tests/fpclassify.cc: Ditto.
1078 * testsuite/experimental/simd/tests/frexp.cc: Ditto.
1079 * testsuite/experimental/simd/tests/generator.cc: Ditto.
1080 * testsuite/experimental/simd/tests/hypot3_fma.cc: Ditto.
1081 * testsuite/experimental/simd/tests/integer_operators.cc: Ditto.
1082 * testsuite/experimental/simd/tests/ldexp_scalbn_scalbln_modf.cc:
1083 * testsuite/experimental/simd/tests/loadstore.cc: Ditto.
1084 * testsuite/experimental/simd/tests/logarithm.cc: Ditto.
1085 * testsuite/experimental/simd/tests/mask_broadcast.cc: Ditto.
1086 * testsuite/experimental/simd/tests/mask_conversions.cc: Ditto.
1087 * testsuite/experimental/simd/tests/mask_implicit_cvt.cc: Ditto.
1088 * testsuite/experimental/simd/tests/mask_operator_cvt.cc: Ditto.
1089 * testsuite/experimental/simd/tests/mask_operators.cc: Ditto.
1090 * testsuite/experimental/simd/tests/math_1arg.cc: Ditto.
1091 * testsuite/experimental/simd/tests/math_2arg.cc: Ditto.
1092 * testsuite/experimental/simd/tests/operator_cvt.cc: Ditto.
1093 * testsuite/experimental/simd/tests/reductions.cc: Ditto.
1094 * testsuite/experimental/simd/tests/remqo.cc: Ditto.
1095 * testsuite/experimental/simd/tests/simd.cc: Ditto.
1096 * testsuite/experimental/simd/tests/sincos.cc: Ditto.
1097 * testsuite/experimental/simd/tests/split_concat.cc: Ditto.
1098 * testsuite/experimental/simd/tests/splits.cc: Ditto.
1099 * testsuite/experimental/simd/tests/trigonometric.cc: Ditto.
1100 * testsuite/experimental/simd/tests/trunc_ceil_floor.cc: Ditto.
1101 * testsuite/experimental/simd/tests/where.cc: Ditto.
1103 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
1105 * testsuite/experimental/simd/README.md: Document the timeout
1106 and timeout-factor directives. Minor typo fixed.
1108 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
1111 * include/experimental/bits/simd_detail.h: Define
1112 _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
1113 * include/experimental/bits/simd.h: Annotate lambdas with
1114 _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
1115 * include/experimental/bits/simd_builtin.h: Ditto.
1116 * include/experimental/bits/simd_converter.h: Ditto.
1117 * include/experimental/bits/simd_fixed_size.h: Ditto.
1118 * include/experimental/bits/simd_math.h: Ditto.
1119 * include/experimental/bits/simd_neon.h: Ditto.
1120 * include/experimental/bits/simd_x86.h: Ditto.
1122 2023-02-16 Matthias Kretz <m.kretz@gsi.de>
1124 * include/experimental/bits/simd.h
1125 (_SimdWrapper::_M_is_constprop_none_of)
1126 (_SimdWrapper::_M_is_constprop_all_of): Return false unless the
1127 computed result still satisfies __builtin_constant_p.
1129 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
1131 * testsuite/std/format/arguments/lwg3810.cc: Replace UTF-8
1134 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
1136 * include/Makefile.am: Add new header.
1137 * include/Makefile.in: Regenerate.
1138 * include/experimental/synchronized_value: New file.
1139 * testsuite/experimental/synchronized_value.cc: New test.
1141 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
1143 * include/experimental/optional: Fix header name in comment.
1145 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
1147 * include/std/format (__format::_Arg_store): New class template.
1148 (basic_format_args): Remove nested type _Store and add deduction
1149 guide from _Arg_store.
1150 (basic_format_arg, make_format_args): Adjust.
1151 * testsuite/std/format/arguments/lwg3810.cc: New test.
1153 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
1155 * include/bits/stl_pair.h (pair) [C++20]: Add non-dangling
1156 constraints to constructors and add deleted overloads for the
1157 dangling cases, as per P2255R2.
1158 (pair) [!C++20 && _GLIBCXX_DEBUG]: Add static assertions to
1159 make dangling cases ill-formed.
1160 * testsuite/20_util/pair/dangling_ref.cc: New test.
1162 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
1164 * testsuite/17_intro/names_pstl.cc: Require et tbb_backend.
1166 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
1168 * include/ext/throw_allocator.h: Use reserved names for
1171 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
1173 * testsuite/17_intro/names_pstl.cc: Add space after effective
1176 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
1178 * include/pstl/algorithm_fwd.h (__pattern_search_n)
1179 (__brick_unique_copy, __brick_adjacent_find)
1180 (__brick_generate_n, __pattern_generate_n): Use reserved names
1182 * include/pstl/algorithm_impl.h (__brick_unique_copy)
1183 (__pattern_reverse, __brick_generate_n): Likewise.
1184 * include/pstl/execution_impl.h (__prefer_unsequenced_tag)
1185 (__prefer_parallel_tag): Likewise.
1186 * include/pstl/glue_algorithm_impl.h (transform): Likewise.
1187 * include/pstl/glue_numeric_defs.h (adjacent_difference):
1189 * include/pstl/numeric_impl.h (__brick_adjacent_difference):
1191 * include/pstl/parallel_backend_tbb.h (__merge_func): Likewise.
1192 * include/pstl/unseq_backend_simd.h (_Combiner)
1193 (__simd_min_element, __simd_minmax_element): Likewise.
1194 * testsuite/17_intro/names_pstl.cc: New test.
1196 2023-02-16 Jonathan Wakely <jwakely@redhat.com>
1198 * include/bits/fs_ops.h (create_directory): Use reserved name
1200 * include/bits/ranges_algo.h (__contains_subrange_fn):
1202 * include/bits/regex_automaton.h (_State_base::_M_print):
1204 * include/bits/regex_automaton.tcc(_State_base::_M_print):
1206 * include/bits/regex_scanner.tcc(_Scanner::_M_print): Likewise.
1207 * include/experimental/bits/fs_ops.h (create_directory):
1209 * include/std/mutex (timed_mutex::_M_clocklock): Likewise.
1210 (recursive_timed_mutex:_M_clocklock): Likewise.
1211 * include/std/tuple (basic_common_reference): Likewise.
1212 * libsupc++/cxxabi_init_exception.h
1213 (__cxa_init_primary_exception): Likewise.
1214 * testsuite/17_intro/names.cc: Add checks.
1216 2023-02-14 Gerald Pfeifer <gerald@pfeifer.com>
1218 * doc/xml/manual/status_cxx2017.xml: Update an open-std.org link
1219 to www.open-std.org and https.
1220 * doc/html/manual/status.html: Regenerate.
1222 2023-02-14 Thomas W Rodgers <rodgert@twrodgers.com>
1225 * include/std/atomic (atomic_flag_wait): Add.
1226 (atomic_flag_wait_explicit): Add.
1227 (atomic_flag_notify): Add.
1228 (atomic_flag_notify_explicit): Add.
1229 * testsuite/29_atomics/atomic_flag/wait_notify/1.cc:
1230 Add test case to cover missing atomic_flag free functions.
1232 2023-02-14 Thomas W Rodgers <rodgert@twrodgers.com>
1235 * include/std/atomic (atomic_flag_test): Add.
1236 (atomic_flag_test_explicit): Add.
1237 * testsuite/29_atomics/atomic_flag/test/explicit.cc: Add
1238 test case to cover missing atomic_flag free functions.
1239 * testsuite/29_atomics/atomic_flag/test/implicit.cc:
1242 2023-02-13 Gerald Pfeifer <gerald@pfeifer.com>
1244 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust
1245 "The Component Object Model" reference.
1246 * doc/html/manual/policy_data_structures.html: Regenerate.
1248 2023-02-12 Gerald Pfeifer <gerald@pfeifer.com>
1250 * doc/xml/manual/containers.xml: Tweak a link to N1780
1252 * doc/html/manual/associative.html: Regenerate.
1254 2023-02-12 Gerald Pfeifer <gerald@pfeifer.com>
1256 * doc/xml/manual/ctype.xml: Change www.unix.org to unix.org.
1257 * doc/html/manual/facets.html: Regenerate.
1259 2023-02-11 Gerald Pfeifer <gerald@pfeifer.com>
1261 * doc/xml/manual/policy_data_structures_biblio.xml: Update
1262 link to "Worst-case efficient priority queues".
1263 * doc/html/manual/policy_data_structures.html: Regenerate.
1265 2023-02-06 Arsen Arsenović <arsen@aarsen.me>
1267 * doc/xml/manual/using.xml: Document newly-freestanding
1268 headers and the effect of the -ffreestanding flag.
1269 * doc/xml/manual/status_cxx2023.xml: Document P1642R11 as
1271 * doc/xml/manual/configure.xml: Document that hosted installs
1272 respect __STDC_HOSTED__.
1273 * doc/xml/manual/test.xml: Document how to run tests in
1275 * doc/html/*: Regenerate.
1277 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
1279 * include/bits/ranges_algo.h (__find_last_fn): Rename T to _Tp.
1280 (__find_last_if_fn): Likewise.
1282 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
1284 * include/std/type_traits: Add diagnostic pragmas around
1285 references to deprecated std::aligned_storage and
1286 std::aligned_union traits.
1287 * testsuite/20_util/aligned_storage/requirements/alias_decl.cc:
1288 Add dg-warning for et c++23.
1289 * testsuite/20_util/aligned_storage/requirements/explicit_instantiation.cc:
1291 * testsuite/20_util/aligned_storage/value.cc: Likewise.
1292 * testsuite/20_util/aligned_union/1.cc: Likewise.
1293 * testsuite/20_util/aligned_union/requirements/alias_decl.cc:
1296 2023-02-06 Nathaniel Shead <nathanieloshead@gmail.com>
1298 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macros.
1299 * include/bits/c++config (_GLIBCXX23_DEPRECATED)
1300 (_GLIBCXX23_DEPRECATED_SUGGEST): New macros.
1301 * include/std/type_traits (aligned_storage, aligned_union)
1302 (aligned_storage_t, aligned_union_t): Deprecate for C++23.
1303 * testsuite/20_util/aligned_storage/deprecated-2b.cc: New test.
1304 * testsuite/20_util/aligned_union/deprecated-2b.cc: New test.
1306 2023-02-06 Nathaniel Shead <nathanieloshead@gmail.com>
1308 * doc/doxygen/user.cfg.in (PREDEFINED): Update macros.
1309 * include/bits/c++config (_GLIBCXX20_DEPRECATED): Make
1310 consistent with other 'deprecated' macros.
1311 * include/std/type_traits (is_pod, is_pod_v): Use
1312 _GLIBCXX20_DEPRECATED_SUGGEST instead.
1314 2023-02-06 Arsen Arsenović <arsen@aarsen.me>
1316 * Makefile.am [!_GLIBCXX_HOSTED]: Enable src/ subdirectory.
1317 * Makefile.in: Regenerate.
1318 * src/Makefile.am [!_GLIBCXX_HOSTED]: Omit compatibility files.
1319 There's no history to be compatible with.
1320 * src/c++11/Makefile.am [!_GLIBCXX_HOSTED]: Omit hosted-only
1321 source files from the build.
1322 * src/c++17/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
1323 * src/c++20/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
1324 * src/c++98/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
1325 * src/Makefile.in: Regenerate.
1326 * src/c++11/Makefile.in: Regenerate.
1327 * src/c++17/Makefile.in: Regenerate.
1328 * src/c++20/Makefile.in: Regenerate.
1329 * src/c++98/Makefile.in: Regenerate.
1331 2023-02-06 Jonathan Wakely <jwakely@redhat.com>
1333 * src/Makefile.am [GLIBCXX_HOSTED] (SUBDIRS): Do not add
1334 filesystem, libbacktrace and experimental.
1335 * src/Makefile.in: Regenerate.
1337 2023-02-04 Hans-Peter Nilsson <hp@axis.com>
1340 * include/pstl/unseq_backend_simd.h (__simd_or): Use __INT32_TYPE__
1343 2023-02-04 Gerald Pfeifer <gerald@pfeifer.com>
1345 * doc/xml/manual/documentation_hacking.xml: Adjust link to pdftex.
1346 * doc/html/manual/documentation_hacking.html: Regenerate.
1348 2023-02-04 François Dumont <fdumont@gcc.gnu.org>
1350 * include/bits/basic_string.h (operator=(basic_string&&)): Transfer move-to
1351 storage to the move-from instance when allocators are equal.
1352 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc (test04):
1355 2023-02-03 Samuel Thibault <samuel.thibault@gnu.org>
1357 * config/os/gnu-linux/os_defines.h [!__linux__]
1358 (_GLIBCXX_NATIVE_THREAD_ID, _GLIBCXX_GTHREAD_USE_WEAK): Do not define.
1360 2023-02-03 Patrick Palka <ppalka@redhat.com>
1362 * include/bits/ranges_algo.h (__find_last_fn, find_last):
1364 (__find_last_if_fn, find_last_if): Define.
1365 (__find_last_if_not_fn, find_last_if_not): Define.
1366 * testsuite/25_algorithms/find_last/1.cc: New test.
1367 * testsuite/25_algorithms/find_last_if/1.cc: New test.
1368 * testsuite/25_algorithms/find_last_if_not/1.cc: New test.
1370 2023-02-03 Patrick Palka <ppalka@redhat.com>
1372 * include/bits/ranges_algo.h (out_value_result): Define.
1373 (iota_result): Define.
1374 (__iota_fn, iota): Define.
1375 * testsuite/25_algorithms/iota/1.cc: New test.
1377 2023-02-03 Patrick Palka <ppalka@redhat.com>
1379 * include/bits/ranges_algo.h (__contains_fn, contains): Define.
1380 (__contains_subrange_fn, contains_subrange): Define.
1381 * testsuite/25_algorithms/contains/1.cc: New test.
1382 * testsuite/25_algorithms/contains_subrange/1.cc: New test.
1384 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
1386 * doc/xml/manual/abi.xml: Tweak link to ABIcheck project.
1387 * doc/html/manual/abi.html: Regenerate.
1389 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
1391 * src/filesystem/ops-common.h [AVR] (__unsupported): Always use
1392 errc::function_not_supported instead of errc::not_supported.
1394 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
1396 * include/std/sstream (basic_stringbuf::view): Define for old
1398 (basic_istringstream::view, basic_0stringstream::view)
1399 (basic_stringstream::view): Likewise.
1400 * testsuite/27_io/basic_istringstream/view/char/1.cc: Remove
1401 { dg-require-effective-target cxx11_abi }.
1402 * testsuite/27_io/basic_istringstream/view/wchar_t/1.cc:
1404 * testsuite/27_io/basic_ostringstream/view/char/1.cc: Likewise.
1405 * testsuite/27_io/basic_ostringstream/view/wchar_t/1.cc:
1407 * testsuite/27_io/basic_stringbuf/view/char/1.cc: Likewise.
1408 * testsuite/27_io/basic_stringbuf/view/wchar_t/1.cc: Likewise.
1409 * testsuite/27_io/basic_stringstream/view/char/1.cc: Likewise.
1410 * testsuite/27_io/basic_stringstream/view/wchar_t/1.cc:
1413 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
1416 * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Export shared_ptr
1417 conversion operators for directory iterator comparisons with
1418 std::default_sentinel_t.
1419 * include/bits/fs_path.h (path::path(string_view, _Type))
1420 (path::_Cmpt::_Cmpt(string_view, _Type, size_t)): Move inline
1422 * src/c++17/fs_path.cc: ... here.
1423 * testsuite/27_io/filesystem/path/108636.cc: New test.
1425 2023-02-02 Jonathan Wakely <jwakely@redhat.com>
1427 * include/std/variant (variant::operator=): Implement resolution
1429 * testsuite/20_util/variant/lwg3585.cc: New test.
1431 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
1433 * doc/xml/manual/using_exceptions.xml: Update a www.open-std.org
1435 * doc/html/manual/using_exceptions.html: Regenerate.
1437 2023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
1439 * doc/xml/manual/debug.xml: Fix link to online GDB manual.
1440 * doc/html/manual/debug.html: Regenerate.
1442 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
1444 * src/c++11/random.cc (random_device::_M_fini): Do not try to
1445 close the file handle if the target doesn't support the
1446 /dev/random and /dev/urandom files.
1448 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
1450 * config/os/generic/error_constants.h (errc::value_too_large)
1452 * src/c++11/system_error.cc
1453 (system_category::default_error_condition) [__AVR__]: Only match
1454 recognize values equal to EDOM, ERANGE, ENOSYS and EINTR.
1455 * src/c++17/fs_ops.cc (fs::current_path) [__AVR__]: Do not check
1456 for ENOENT etc. in switch.
1457 (fs::remove_all) [__AVR__]: Likewise.
1458 * src/filesystem/ops-common.h [__AVR__]: Do not use POSIX open,
1461 2023-02-01 Jonathan Wakely <jwakely@redhat.com>
1463 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR) [avr-*-*, msp430-*-*]: Set
1465 * configure: Regenerate.
1467 2023-02-01 Hans-Peter Nilsson <hp@axis.com>
1470 * testsuite/std/time/hh_mm_ss/1.cc (size): Add empty
1471 struct at end of S0.
1473 2023-01-30 Gerald Pfeifer <gerald@pfeifer.com>
1475 * doc/xml/manual/shared_ptr.xml: Move links from both
1476 http://open-std.org and http://www.open-std.org to
1477 https://www.open-std.org.
1478 * doc/html/manual/memory.html: Regenerate.
1480 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
1482 * doc/xml/manual/appendix_contributing.xml: Adjust link to
1483 ISO C++ standard at ANSI.
1484 Move link to www.open-std.org to https.
1485 * doc/html/manual/appendix_contributing.html: Regenerate.
1487 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
1489 * doc/xml/manual/documentation_hacking.xml: Move sourceforge.net
1491 * doc/html/manual/documentation_hacking.html: Regenerate.
1493 2023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
1495 * doc/xml/manual/abi.xml: Update www.open-std.org link to https.
1496 * doc/html/manual/abi.html: Regenerate.
1498 2023-01-27 Jakub Jelinek <jakub@redhat.com>
1501 * testsuite/17_intro/names.cc (__unused): For linux or GNU hurd
1502 include features.h if present and then check __GLIBC__ and
1503 __GLIBC_MINOR__ macros for glibc prior to 2.19, instead of testing
1504 __GLIBC_PREREQ which isn't defined yet.
1506 2023-01-27 Jonathan Wakely <jwakely@redhat.com>
1508 * src/c++20/tzdb.cc (tzdata_stream): Use constant instead of
1511 2023-01-27 Jonathan Wakely <jwakely@redhat.com>
1514 * testsuite/23_containers/map/modifiers/108554.cc: Use dg-bogus.
1516 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
1518 * src/c++20/tzdb.cc (operator>>(istream&, ZoneInfo&)): Allow
1519 rules named "+" for compatibility with older tzdata.zi files.
1521 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
1524 * include/bits/stl_tree.h (_Rb_tree_insert_and_rebalance): Add
1526 (_Rb_tree_rebalance_for_erase): Add nonnull and returns_nonnull
1528 * testsuite/23_containers/map/modifiers/108554.cc: New test.
1530 2023-01-26 Jonathan Wakely <jwakely@redhat.com>
1533 * src/c++20/tzdb.cc (current_zone): Look for TIMEZONE or ZONE in
1534 /etc/sysconfig/clock, not DEFAULT_TIMEZONE.
1536 2023-01-26 Gerald Pfeifer <gerald@pfeifer.com>
1538 * doc/xml/manual/intro.xml: Update links to www.open-std.org to
1540 * doc/html/manual/bugs.html: Regenerate.
1542 2023-01-24 Jonathan Wakely <jwakely@redhat.com>
1545 * src/c++20/tzdb.cc (current_zone): Look for DEFAULT_TIMEZONE in
1546 /etc/sysconfig/clock.
1548 2023-01-24 Jonathan Wakely <jwakely@redhat.com>
1551 * include/bits/ranges_base.h: Include <bits/stl_iterator.h> for
1552 std::make_reverse_iterator.
1553 * include/std/tuple: Include <bits/ranges_util.h> for subrange.
1554 (make_from_tuple): Add static assertion from P2255 to diagnose
1555 dangling references.
1556 * testsuite/20_util/tuple/make_from_tuple/dangling_ref.cc: New test.
1557 * testsuite/20_util/tuple/make_from_tuple/tuple_like.cc: New test.
1559 2023-01-23 François Dumont <fdumont@gcc.gnu.org>
1561 * include/debug/safe_iterator.h (_Safe_iterator<>::_Unchecked): New.
1562 (_Safe_iterator(const _Safe_iterator&, _Unchecked)): New.
1563 (_Safe_iterator::operator++(int)): Use latter.
1564 (_Safe_iterator::operator--(int)): Likewise.
1565 (_Safe_iterator(_Iterator, const _Safe_sequence_base*)): Remove !_M_insular()
1567 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::_Unchecked):
1569 (_Safe_local_iterator(const _Safe_local_iterator&, _Unchecked)): New.
1570 (_Safe_local_iterator::operator++(int)): Use latter.
1571 * src/c++11/debug.cc (_S_debug_messages): Add as comment the _Debug_msg_id
1572 entry associated to the array entry.
1574 2023-01-18 Jonathan Wakely <jwakely@redhat.com>
1576 * include/bits/fs_path.h (u8path): Add deprecated attribute.
1577 * testsuite/27_io/filesystem/path/construct/90281.cc: Add
1578 -Wno-deprecated-declarations for C++20 and later.
1579 * testsuite/27_io/filesystem/path/factory/u8path-char8_t.cc:
1581 * testsuite/27_io/filesystem/path/factory/u8path.cc: Likewise.
1582 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
1583 * testsuite/27_io/filesystem/path/factory/u8path-depr.cc: New test.
1585 2023-01-18 Jonathan Wakely <jwakely@redhat.com>
1587 * include/bits/random.h (random_device) [!_GLIBCXX_USE_DEV_RANDOM]:
1588 Always call _M_fini and _M_getentropy.
1590 2023-01-18 Gerald Pfeifer <gerald@pfeifer.com>
1592 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust links
1593 to www.open-std.org to use https.
1594 (COM: Component Model Object Technologies): Rename from...
1595 (The Component Object Model): ...to.
1596 * doc/html/manual/policy_data_structures.html: Regenerate.
1598 2023-01-18 Dimitrij Mijoski <dmjpp@hotmail.com>
1600 * testsuite/22_locale/codecvt/codecvt_unicode.cc: Simplify.
1601 * testsuite/22_locale/codecvt/codecvt_unicode.h: Simplify.
1602 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: Simplify.
1604 2023-01-17 Jonathan Wakely <jwakely@redhat.com>
1606 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Check $target_os instead
1607 of $host. Fix check for file being present during native build.
1608 * configure: Regenerate.
1610 2023-01-17 Martin Liska <mliska@suse.cz>
1612 * src/libbacktrace/Makefile.in: Regenerate.
1614 2023-01-16 Jonathan Wakely <jwakely@redhat.com>
1616 * src/c++20/tzdb.cc (_GLIBCXX_USE_CXX11_ABI): Define to 1.
1618 2023-01-16 Jonathan Wakely <jwakely@redhat.com>
1621 * include/c_compatibility/stdatomic.h: Change copyright line to
1622 be consistent with other headers contributed under DCO terms.
1623 * include/std/expected: Add full stop to copyright line.
1624 * src/c++20/tzdb.cc: Likewise.
1626 2023-01-15 Gerald Pfeifer <gerald@pfeifer.com>
1628 * doc/xml/manual/status_cxx2014.xml: Switch www.open-std.org to
1630 * doc/xml/manual/status_cxx2017.xml: Ditto.
1631 * doc/xml/manual/status_cxx2020.xml: Ditto.
1632 * doc/xml/manual/status_cxx2023.xml: Ditto.
1633 * doc/html/manual/status.html: Regenerate.
1635 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
1637 * testsuite/std/time/tzdb_list/1.cc: Remove dg-xfail-run-if
1638 and fail gracefully if defining the weak symbol doesn't work.
1640 2023-01-15 François Dumont <fdumont@gcc.gnu.org>
1643 * include/debug/safe_iterator.h (_Safe_iterator<>::operator++(int)): Extend deadlock
1644 fix to other iterator category.
1645 (_Safe_iterator<>::operator--(int)): Likewise.
1646 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::operator++(int)):
1648 * testsuite/util/debug/unordered_checks.h (invalid_local_iterator_pre_increment): New.
1649 (invalid_local_iterator_post_increment): New.
1650 * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_post_increment_neg.cc:
1652 * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_pre_increment_neg.cc:
1655 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
1657 * testsuite/30_threads/jthread/jthread.cc: Remove -pthread from
1660 2023-01-15 Jonathan Wakely <jwakely@redhat.com>
1662 * testsuite/std/time/clock/utc/io.cc: Use ctype to widen char.
1664 2023-01-14 Björn Schäpers <bjoern@hazardy.de>
1666 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Add check for
1667 windows.h. Add pecoff as FORMAT_FILE.
1668 * config.h.in: Regenerate.
1669 * configure: Regenerate.
1670 * src/libbacktrace/Makefile.am: Regenerate.
1671 * src/libbacktrace/Makefile.in: Add pecoff.c as FORMAT_FILE.
1673 2023-01-14 Björn Schäpers <bjoern@hazardy.de>
1675 * include/std/stacktrace (stacktrace_entry::_S_demangle): Use
1676 raw __name if __cxa_demangle could not demangle it.
1678 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
1681 * src/c++20/tzdb.cc (current_zone()) [_AIX]: Use TZ environment
1684 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
1686 * src/c++20/tzdb.cc (TZDB_DISABLED): Disable all code for
1688 * testsuite/std/time/tzdb/leap_seconds.cc: Require tzdb
1690 * testsuite/std/time/tzdb_list/1.cc: Likewise.
1692 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
1694 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Replace the
1695 --with-libstdcxx-zoneinfo-dir configure option with
1696 --with-libstdcxx-zoneinfo with yes/no/static choices as well as
1698 * config.h.in: Regenerate.
1699 * configure: Regenerate.
1700 * doc/xml/manual/configure.xml: Document configure option.
1701 * doc/html/manual/configure.html: Regenerate.
1702 * src/c++20/Makefile.am: Generate tzdata.zi.h header.
1703 * src/c++20/Makefile.in: Regenerate.
1704 * src/c++20/tzdb.cc (__gnu_cxx::zoneinfo_dir_override): Return a
1705 null pointer if no directory is configured.
1706 (zoneinfo_dir): Replace with ...
1707 (zoneinfo_file): New function.
1708 (tzdata_stream): New istream class.
1709 (remote_version, reload_tzdb): Use tzdata_stream.
1710 * testsuite/lib/libstdc++.exp (check_effective_target_tzdb):
1711 Check new _GLIBCXX_STATIC_TZDATA macro and ignore presence of
1712 tzdata.zi file in default location.
1713 * src/c++20/tzdata.zi: New file.
1715 2023-01-14 Jonathan Wakely <jwakely@redhat.com>
1717 * include/bits/chrono_io.h (operator<<): Fix syntax errors.
1718 * testsuite/std/time/month_day/io.cc: New test.
1719 * testsuite/std/time/month_day_last/io.cc: New test.
1720 * testsuite/std/time/month_weekday/io.cc: New test.
1721 * testsuite/std/time/month_weekday_last/io.cc: New test.
1722 * testsuite/std/time/weekday_indexed/io.cc: New test.
1723 * testsuite/std/time/weekday_last/io.cc: New test.
1724 * testsuite/std/time/year_month/io.cc: New test.
1725 * testsuite/std/time/year_month_day_last/io.cc: New test.
1726 * testsuite/std/time/year_month_weekday/io.cc: New test.
1727 * testsuite/std/time/year_month_weekday_last/io.cc: New test.
1729 2023-01-14 François Dumont <fdumont@gcc.gnu.org>
1731 * include/std/format [_GLIBCXX_INLINE_VERSION](to_chars): Adapt __asm symbol
1733 * config/abi/pre/gnu-versioned-namespace.ver: Add to_chars/from_chars symbols
1736 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
1738 * include/bits/std_mutex.h: Include <errno.h>.
1740 2023-01-13 Arsen Arsenović <arsen@aarsen.me>
1742 * testsuite/20_util/to_chars/version.cc: Mark hosted-only.
1743 * testsuite/20_util/uses_allocator/lwg3677.cc: Ditto.
1744 * testsuite/20_util/weak_ptr/cons/self_move.cc: Ditto.
1745 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Replace usage of
1746 std::make_unique with a freestanding-compatible wrapper around
1748 * testsuite/21_strings/basic_string_view/operations/contains/char.cc:
1749 Don't test for presence of __cpp_lib_string_contains on !HOSTED.
1750 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
1752 * testsuite/std/ranges/version_c++23.cc: Don't test for presence
1753 of __cpp_lib_ranges in !HOSTED.
1755 2023-01-13 Arsen Arsenović <arsen@aarsen.me>
1757 * include/Makefile.am: Install bits/char_traits.h,
1759 * include/Makefile.in: Regenerate.
1760 * include/bits/char_traits.h: Gate hosted-only, wchar-only and
1761 mbstate-only bits behind appropriate #ifs.
1762 * include/std/string_view: Gate <iostream> functionality behind
1764 * include/std/version: Enable __cpp_lib_constexpr_string_view
1765 and __cpp_lib_starts_ends_with in !HOSTED.
1766 * include/std/ranges: Re-enable __is_basic_string_view on
1767 freestanding, include <string_view> directly.
1768 * include/precompiled/stdc++.h: Include <string_view> when
1770 * testsuite/20_util/function_objects/searchers.cc: Skip testing
1771 boyer_moore searchers on freestanding
1772 * testsuite/21_strings/basic_string_view/capacity/1.cc: Guard
1773 <string>-related tests behind __STDC_HOSTED__.
1774 * testsuite/21_strings/basic_string_view/cons/char/1.cc: Ditto.
1775 * testsuite/21_strings/basic_string_view/cons/char/2.cc: Remove
1776 unused <stdexcept> include.
1777 * testsuite/21_strings/basic_string_view/cons/char/3.cc: Remove
1778 unused <vector> include.
1779 * testsuite/21_strings/basic_string_view/cons/char/range.cc:
1780 Guard <string> related testing behind __STDC_HOSTED__.
1781 * testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc:
1782 Guard <stdexcept> related tests behind __STDC_HOSTED__.
1783 * testsuite/21_strings/basic_string_view/element_access/char/1.cc:
1785 * testsuite/21_strings/basic_string_view/element_access/wchar_t/1.cc:
1786 Guard <stdexcept> tests behind __STDC_HOSTED__.
1787 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
1788 Enable test on freestanding, guard <stdexcept> bits behind
1790 * testsuite/21_strings/basic_string_view/operations/substr/char.cc:
1791 Guard <stdexcept> bits behind __STDC_HOSTED__.
1792 * testsuite/21_strings/basic_string_view/operations/substr/wchar_t.cc:
1795 2023-01-13 Dimitrij Mijoski <dmjpp@hotmail.com>
1798 * src/c++11/codecvt.cc (read_utf8_code_point): Correctly detect
1799 errors in incomplete multibyte sequences.
1800 (utf16_in): Remove surrogates parameter. Fix conditions for
1802 (utf16_out): Fix condition for returning partial.
1803 (ucs2_in): Do not pass surrogates argument to utf16_in.
1804 * testsuite/22_locale/codecvt/codecvt_unicode.cc: New test.
1805 * testsuite/22_locale/codecvt/codecvt_unicode.h: New header for
1807 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: New
1810 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
1813 * config/io/c_io_stdio.h (__c_lock): Define as a typedef for
1814 __GTHREAD_LEGACY_MUTEX_T if defined.
1816 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
1819 * config/os/gnu-linux/ldbl-extra.ver (GLIBCXX_LDBL_3.4.31):
1820 Export __try_use_facet specializations for facets in namespace
1822 * config/os/gnu-linux/ldbl-ieee128-extra.ver
1823 (GLIBCXX_IEEE128_3.4.31): Likewise for facets in namespace
1825 * testsuite/util/testsuite_abi.cc: Add to lists of known and
1828 2023-01-13 Jonathan Wakely <jwakely@redhat.com>
1830 * include/bits/std_mutex.h: Remove <system_error> include.
1831 * include/std/condition_variable: Add <bits/error_constants.h>
1833 * include/std/mutex: Likewise.
1834 * include/std/shared_mutex: Likewise.
1836 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
1839 * include/experimental/memory_resource
1840 (_GLIBCXX_MAX_ALIGN_MATCHES_MALLOC): Define.
1841 (do_allocate, do_deallocate): Check it.
1842 * testsuite/experimental/memory_resource/new_delete_resource.cc:
1843 Relax expected behaviour for 64-bit hppa-hp-hpux11.11.
1845 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
1847 * doc/xml/manual/abi.xml: Add latest library versions.
1848 * doc/html/manual/abi.html: Regenerate.
1850 2023-01-12 François Dumont <fdumont@gcc.gnu.org>
1853 * include/bits/stl_tree.h (_Rb_tree<>::_M_insert_range_equal): Remove
1854 unused _Alloc_node instance.
1856 2023-01-12 Jonathan Wakely <jwakely@redhat.com>
1858 * include/bits/atomic_wait.h (__detail::__platform_wait_t):
1859 Define as unsigned long if always lock-free, and unsigned int
1862 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
1864 * src/c++20/tzdb.cc (tzdb_list::_S_init_tzdb): Use __try and
1865 __catch macros for exception handling.
1867 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
1870 * include/bits/stl_algobase.h (__lg): Replace six overloads with
1871 a single function template for all integer types.
1872 * include/bits/stl_algo.h (__merge_adaptive_resize): Cast
1873 arithmetic results back to _Distance.
1875 2023-01-10 Jonathan Wakely <jwakely@redhat.com>
1878 * include/std/span (span::span()): Un-simplify constraint to
1879 work for size_t of lesser rank than int.
1881 2023-01-07 LIU Hao <lh_mouse@126.com>
1883 PR middle-end/108300
1884 * src/c++11/system_error.cc: Define `WIN32_LEAN_AND_MEAN` before
1886 * src/c++11/thread.cc: Likewise.
1887 * src/c++17/fs_ops.cc: Likewise.
1888 * src/filesystem/ops.cc: Likewise.
1890 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
1893 * src/c++20/tzdb.cc (zoneinfo_dir): Add diagnostic pragma.
1895 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
1898 * src/c++20/tzdb.cc (time_zone::_Impl::RulesCounter): New class
1899 template and partial specialization for synchronizing access to
1900 time_zone::_Impl::infos.
1901 (time_zone::_M_get_sys_info, reload_tzdb): Adjust uses of
1904 2023-01-06 Patrick Palka <ppalka@redhat.com>
1907 * include/bits/utility.h (__cpp_lib_ranges_zip): Define for C++23.
1908 * include/std/ranges (__cpp_lib_ranges_zip): Likewise.
1909 (__cpp_lib_ranges_chunk): Likewise.
1910 (__cpp_lib_ranges_slide): Likewise.
1911 (__cpp_lib_ranges_chunk_by): Likewise.
1912 (__cpp_lib_ranges_join_with): Likewise.
1913 (__cpp_lib_ranges_repeat): Likewise.
1914 (__cpp_lib_ranges_stride): Likewise.
1915 (__cpp_lib_ranges_cartesian_product): Likewise.
1916 (__cpp_lib_ranges_as_rvalue): Likewise.
1917 * include/std/version: Ditto.
1918 * testsuite/20_util/tuple/p2321r2.cc: Verify value of
1920 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Likewise.
1921 * testsuite/std/ranges/adaptors/chunk/1.cc: Likewise.
1922 * testsuite/std/ranges/adaptors/chunk_by/1.cc: Likewise.
1923 * testsuite/std/ranges/adaptors/join_with/1.cc: Likewise.
1924 * testsuite/std/ranges/adaptors/slide/1.cc: Likewise.
1925 * testsuite/std/ranges/adaptors/stride/1.cc: Likewise.
1926 * testsuite/std/ranges/cartesian_product/1.cc: Likewise.
1927 * testsuite/std/ranges/repeat/1.cc: Likewise.
1928 * testsuite/std/ranges/zip/1.cc: Likewise.
1929 * testsuite/std/ranges/version_c++23.cc: New test.
1931 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
1934 * include/std/bitset (operator>>): Use alloca in the right
1935 scope, not in a constructor.
1936 * testsuite/20_util/bitset/io/input.cc: Check case from PR.
1938 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
1941 * include/std/format (basic_format_arg) [!__cpp_lib_to_chars]:
1942 Disable visiting floating-point types.
1944 2023-01-06 Jonathan Wakely <jwakely@redhat.com>
1947 * include/debug/safe_iterator.h (_Safe_iterator::operator++(int))
1948 (_Safe_iterator::operator--(int)): Do not hold lock around
1949 construction of return value.
1951 2023-01-05 John David Anglin <danglin@gcc.gnu.org>
1953 * config/cpu/hppa/atomicity.h (_PA_LDCW_INSN): Define.
1954 (__exchange_and_add): Use _PA_LDCW_INSN. Use ordered store for
1955 lock release. Revise loop.
1956 (__atomic_add): Likewise.
1958 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
1961 * python/libstdcxx/v6/printers.py (_utc_timezone): New global
1963 (StdChronoTimePointPrinter::to_string): Use it.
1965 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
1968 * include/std/functional (_Bind_front): Add no_unique_address
1969 attribute to data members.
1970 * testsuite/20_util/function_objects/bind_front/107784.cc: Check
1971 size of call wrappers with empty types for targets and bound
1974 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
1977 * src/c++20/tzdb.cc (chrono::current_zone()): Check for zone
1978 using only last component of the name.
1980 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
1984 * config/abi/pre/gnu.ver: Move zoneinfo_dir_override export to
1985 the latest symbol version.
1986 * src/c++20/tzdb.cc (USE_ATOMIC_SHARED_PTR): Define to 0 if
1987 atomic<_Node*> is not always lock free.
1988 (USE_ATOMIC_LIST_HEAD): New macro.
1989 [__hpux__] (__gnu_cxx::zoneinfo_dir_override()): Provide
1990 definition of weak symbol.
1991 (tzdb_list::_Node::_S_head): Rename to _S_head_cache.
1992 (tzdb_list::_Node::_S_list_head): New function for accessing
1993 list head efficiently.
1994 (tzdb_list::_Node::_S_cache_list_head): New function for
1995 updating _S_list_head.
1997 2023-01-05 Jonathan Wakely <jwakely@redhat.com>
2000 * include/std/chrono (hh_mm_ss): Do not use chrono::abs if
2001 duration rep is unsigned.
2002 * testsuite/std/time/hh_mm_ss/1.cc: Check unsigned rep.
2004 2023-01-04 Iain Sandoe <iain@sandoe.co.uk>
2007 * config/abi/pre/gnu.ver (GLIBCXX_3.4):
2008 Add __gnu_cxx::zoneinfo_dir_override().
2010 2023-01-04 Jonathan Wakely <jwakely@redhat.com>
2013 * include/std/array (__array_traits<T, 0>::operator T*()): Add
2015 * testsuite/23_containers/array/element_access/constexpr_c++17.cc: Check
2016 std::array<T, 0>::data().
2019 Copyright (C) 2023 Free Software Foundation, Inc.
2021 Copying and distribution of this file, with or without modification,
2022 are permitted in any medium without royalty provided the copyright
2023 notice and this notice are preserved.