rust: Implement TARGET_RUST_OS_INFO for *-*-darwin*
[official-gcc.git] / libstdc++-v3 / ChangeLog
bloba57959d706baa7a23202124be70e1430931d7205
1 2023-09-19  Marek Polacek  <polacek@redhat.com>
3         * testsuite/20_util/allocator/105975.cc: Add dg-error.
5 2023-09-18  Patrick Palka  <ppalka@redhat.com>
7         PR c++/63198
8         PR c++/18474
9         * testsuite/26_numerics/random/discard_block_engine/cons/seed_seq2.cc:
10         Make data member seed_seq::called mutable.
11         * testsuite/26_numerics/random/independent_bits_engine/cons/seed_seq2.cc:
12         Likewise.
13         * testsuite/26_numerics/random/linear_congruential_engine/cons/seed_seq2.cc:
14         Likewise.
15         * testsuite/26_numerics/random/mersenne_twister_engine/cons/seed_seq2.cc:
16         Likewise.
17         * testsuite/26_numerics/random/shuffle_order_engine/cons/seed_seq2.cc:
18         Likewise.
19         * testsuite/26_numerics/random/subtract_with_carry_engine/cons/seed_seq2.cc:
20         Likewise.
21         * testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/seed_seq2.cc:
22         Likewise.
24 2023-09-18  Jonathan Wakely  <jwakely@redhat.com>
26         * doc/xml/manual/status_cxx2020.xml: Tweak P1466R3 status.
27         * doc/html/manual/status.html: Regenerate.
29 2023-09-18  Jonathan Wakely  <jwakely@redhat.com>
31         * doc/xml/manual/configure.xml: Use conventional option name.
32         * doc/xml/manual/status_cxx2020.xml: Update.
33         * doc/xml/manual/status_cxx2023.xml: Update.
34         * doc/html/*: Regenerate.
36 2023-09-18  Jonathan Wakely  <jwakely@redhat.com>
38         * doc/xml/manual/intro.xml: Clarify that building libstdc++
39         separately from GCC is not supported.
40         * doc/xml/manual/prerequisites.xml: Note msgfmt prerequisite for
41         testing.
42         * doc/html/manual/setup.html: Regenerate.
44 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
46         * testsuite/29_atomics/atomic_ref/wait_notify.cc: Do not
47         restrict to pthreads targets.
48         * testsuite/30_threads/jthread/3.cc: Likewise.
49         * testsuite/30_threads/semaphore/100806.cc: Likewise.
50         * testsuite/30_threads/semaphore/try_acquire.cc: Likewise.
51         * testsuite/30_threads/semaphore/try_acquire_for.cc: Likewise.
52         * testsuite/30_threads/semaphore/try_acquire_posix.cc: Likewise.
54 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
56         * testsuite/18_support/coroutines/95917.cc: Remove dg-options
57         -std=gnu++2a.
58         * testsuite/18_support/coroutines/hash.cc: Likewise.
59         * testsuite/18_support/coroutines/lwg3460.cc: Likewise.
60         * testsuite/18_support/destroying_delete.cc: Likewise.
61         * testsuite/18_support/source_location/1.cc: Likewise.
62         * testsuite/18_support/source_location/consteval.cc: Likewise.
63         * testsuite/18_support/source_location/version.cc: Likewise.
64         * testsuite/19_diagnostics/error_category/operators/three_way.cc:
65         Likewise.
66         * testsuite/19_diagnostics/error_code/operators/three_way.cc:
67         Likewise.
68         * testsuite/19_diagnostics/error_condition/operators/three_way.cc:
69         Likewise.
70         * testsuite/19_diagnostics/stacktrace/output.cc: Likewise.
71         * testsuite/26_numerics/adjacent_difference/lwg2055.cc:
72         Likewise.
73         * testsuite/26_numerics/bit/bit.count/countl_zero.cc: Likewise.
74         * testsuite/26_numerics/bit/bit.count/countr_one.cc: Likewise.
75         * testsuite/26_numerics/bit/bit.count/countr_zero.cc: Likewise.
76         * testsuite/26_numerics/bit/bit.count/popcount.cc: Likewise.
77         * testsuite/26_numerics/bit/bit.pow.two/bit_ceil.cc: Likewise.
78         * testsuite/26_numerics/bit/bit.pow.two/has_single_bit.cc:
79         Likewise.
80         * testsuite/28_regex/iterators/regex_iterator/lwg3719.cc:
81         Likewise.
82         * testsuite/28_regex/iterators/regex_token_iterator/lwg3719.cc:
83         Likewise.
84         * testsuite/28_regex/sub_match/compare_c++20.cc: Likewise.
85         * testsuite/experimental/filesystem/iterators/106201.cc:
86         Likewise.
87         * testsuite/experimental/scopeguard/exit.cc: Likewise.
88         * testsuite/experimental/scopeguard/uniqueres.cc: Likewise.
90 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
92         * testsuite/30_threads/barrier/1.cc: Remove dg-options
93         -std=gnu++20.
94         * testsuite/30_threads/barrier/2.cc: Likewise.
95         * testsuite/30_threads/barrier/arrive.cc: Likewise.
96         * testsuite/30_threads/barrier/arrive_and_drop.cc: Likewise.
97         * testsuite/30_threads/barrier/arrive_and_wait.cc: Likewise.
98         * testsuite/30_threads/barrier/completion.cc: Likewise.
99         * testsuite/30_threads/condition_variable/members/clock_neg.cc:
100         Likewise.
101         * testsuite/30_threads/condition_variable_any/members/clock_neg.cc:
102         Likewise.
103         * testsuite/30_threads/condition_variable_any/stop_token/1.cc:
104         Likewise.
105         * testsuite/30_threads/condition_variable_any/stop_token/2.cc:
106         Likewise.
107         * testsuite/30_threads/future/members/clock_neg.cc: Likewise.
108         * testsuite/30_threads/headers/stop_token/synopsis.cc: Likewise.
109         * testsuite/30_threads/headers/thread/types_std_c++20.cc:
110         Likewise.
111         * testsuite/30_threads/jthread/1.cc: Likewise.
112         * testsuite/30_threads/jthread/100612.cc: Likewise.
113         * testsuite/30_threads/jthread/95989.cc: Likewise.
114         * testsuite/30_threads/jthread/jthread.cc: Likewise.
115         * testsuite/30_threads/jthread/version.cc: Likewise.
116         * testsuite/30_threads/latch/1.cc: Likewise.
117         * testsuite/30_threads/latch/2.cc: Likewise.
118         * testsuite/30_threads/latch/3.cc: Likewise.
119         * testsuite/30_threads/recursive_timed_mutex/try_lock_until/clock_neg.cc:
120         Likewise.
121         * testsuite/30_threads/semaphore/1.cc: Likewise.
122         * testsuite/30_threads/semaphore/2.cc: Likewise.
123         * testsuite/30_threads/semaphore/least_max_value_neg.cc:
124         Likewise.
125         * testsuite/30_threads/semaphore/try_acquire_until.cc: Likewise.
126         * testsuite/30_threads/shared_future/members/clock_neg.cc:
127         Likewise.
128         * testsuite/30_threads/shared_lock/locking/clock_neg.cc:
129         Likewise.
130         * testsuite/30_threads/shared_timed_mutex/try_lock_until/clock_neg.cc:
131         Likewise.
132         * testsuite/30_threads/stop_token/1.cc: Likewise.
133         * testsuite/30_threads/stop_token/2.cc: Likewise.
134         * testsuite/30_threads/stop_token/stop_callback.cc: Likewise.
135         * testsuite/30_threads/stop_token/stop_callback/deadlock.cc:
136         Likewise.
137         * testsuite/30_threads/stop_token/stop_callback/destructible_neg.cc:
138         Likewise.
139         * testsuite/30_threads/stop_token/stop_callback/invocable_neg.cc:
140         Likewise.
141         * testsuite/30_threads/stop_token/stop_callback/invoke.cc:
142         Likewise.
143         * testsuite/30_threads/stop_token/stop_source.cc: Likewise.
144         * testsuite/30_threads/stop_token/stop_source/assign.cc:
145         Likewise.
146         * testsuite/30_threads/stop_token/stop_token.cc: Likewise.
147         * testsuite/30_threads/stop_token/stop_token/stop_possible.cc:
148         Likewise.
149         * testsuite/30_threads/thread/id/operators_c++20.cc: Likewise.
150         * testsuite/30_threads/timed_mutex/try_lock_until/clock_neg.cc:
151         Likewise.
152         * testsuite/30_threads/unique_lock/locking/clock_neg.cc:
153         Likewise.
155 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
157         * testsuite/27_io/basic_istream/extractors_character/char/lwg2499.cc:
158         Remove dg-options -std=gnu++2a.
159         * testsuite/27_io/basic_istream/extractors_character/char/lwg2499_neg.cc:
160         Likewise.
161         * testsuite/27_io/basic_istream/extractors_character/wchar_t/lwg2499.cc:
162         Likewise.
163         * testsuite/27_io/basic_istream/extractors_character/wchar_t/lwg2499_neg.cc:
164         Likewise.
165         * testsuite/27_io/basic_istringstream/cons/char/1.cc: Likewise.
166         * testsuite/27_io/basic_istringstream/cons/wchar_t/1.cc:
167         Likewise.
168         * testsuite/27_io/basic_istringstream/str/char/2.cc: Likewise.
169         * testsuite/27_io/basic_istringstream/str/wchar_t/2.cc:
170         Likewise.
171         * testsuite/27_io/basic_istringstream/view/char/1.cc: Likewise.
172         * testsuite/27_io/basic_istringstream/view/wchar_t/1.cc:
173         Likewise.
174         * testsuite/27_io/basic_ostream/emit/1.cc: Likewise.
175         * testsuite/27_io/basic_ostream/inserters_character/char/deleted.cc:
176         Likewise.
177         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/deleted.cc:
178         Likewise.
179         * testsuite/27_io/basic_ostringstream/cons/char/1.cc: Likewise.
180         * testsuite/27_io/basic_ostringstream/cons/wchar_t/1.cc:
181         Likewise.
182         * testsuite/27_io/basic_ostringstream/str/char/3.cc: Likewise.
183         * testsuite/27_io/basic_ostringstream/str/wchar_t/3.cc:
184         Likewise.
185         * testsuite/27_io/basic_ostringstream/view/char/1.cc: Likewise.
186         * testsuite/27_io/basic_ostringstream/view/wchar_t/1.cc:
187         Likewise.
188         * testsuite/27_io/basic_stringbuf/cons/char/2.cc: Likewise.
189         * testsuite/27_io/basic_stringbuf/cons/wchar_t/2.cc: Likewise.
190         * testsuite/27_io/basic_stringbuf/str/char/4.cc: Likewise.
191         * testsuite/27_io/basic_stringbuf/str/wchar_t/4.cc: Likewise.
192         * testsuite/27_io/basic_stringbuf/view/char/1.cc: Likewise.
193         * testsuite/27_io/basic_stringbuf/view/wchar_t/1.cc: Likewise.
194         * testsuite/27_io/basic_stringstream/cons/char/1.cc: Likewise.
195         * testsuite/27_io/basic_stringstream/cons/char/97719.cc:
196         Likewise.
197         * testsuite/27_io/basic_stringstream/cons/wchar_t/1.cc:
198         Likewise.
199         * testsuite/27_io/basic_stringstream/str/char/5.cc: Likewise.
200         * testsuite/27_io/basic_stringstream/str/wchar_t/5.cc.cc:
201         Likewise.
202         * testsuite/27_io/basic_stringstream/view/char/1.cc: Likewise.
203         * testsuite/27_io/basic_stringstream/view/wchar_t/1.cc:
204         Likewise.
205         * testsuite/27_io/basic_syncbuf/1.cc: Likewise.
206         * testsuite/27_io/basic_syncbuf/2.cc: Likewise.
207         * testsuite/27_io/basic_syncbuf/basic_ops/1.cc: Likewise.
208         * testsuite/27_io/basic_syncbuf/requirements/types.cc: Likewise.
209         * testsuite/27_io/basic_syncbuf/sync_ops/1.cc: Likewise.
210         * testsuite/27_io/basic_syncstream/1.cc: Likewise.
211         * testsuite/27_io/basic_syncstream/2.cc: Likewise.
212         * testsuite/27_io/basic_syncstream/basic_ops/1.cc: Likewise.
213         * testsuite/27_io/basic_syncstream/requirements/types.cc:
214         Likewise.
215         * testsuite/27_io/filesystem/iterators/106201.cc: Likewise.
216         * testsuite/27_io/filesystem/iterators/lwg3719.cc: Likewise.
217         * testsuite/27_io/filesystem/path/factory/u8path-depr.cc:
218         Likewise.
219         * testsuite/27_io/filesystem/path/nonmember/cmp_c++20.cc:
220         Likewise.
222 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
224         * testsuite/26_numerics/accumulate/constexpr.cc: Remove
225         dg-options -std=gnu++2a.
226         * testsuite/26_numerics/accumulate/lwg2055.cc: Likewise.
227         * testsuite/26_numerics/adjacent_difference/constexpr.cc:
228         Likewise.
229         * testsuite/26_numerics/bit/bit.cast/105027.cc: Likewise.
230         * testsuite/26_numerics/bit/bit.cast/bit_cast.cc: Likewise.
231         * testsuite/26_numerics/bit/bit.cast/version.cc: Likewise.
232         * testsuite/26_numerics/bit/bit.count/countl_one.cc: Likewise.
233         * testsuite/26_numerics/bit/bit.pow.two/bit_ceil_neg.cc:
234         Likewise.
235         * testsuite/26_numerics/bit/bit.pow.two/bit_floor.cc: Likewise.
236         * testsuite/26_numerics/bit/bit.pow.two/bit_width.cc: Likewise.
237         * testsuite/26_numerics/bit/bit.pow.two/lwg3656.cc: Likewise.
238         * testsuite/26_numerics/bit/bit.rotate/rotl.cc: Likewise.
239         * testsuite/26_numerics/bit/bit.rotate/rotr.cc: Likewise.
240         * testsuite/26_numerics/bit/header-2.cc: Likewise.
241         * testsuite/26_numerics/bit/header.cc: Likewise.
242         * testsuite/26_numerics/complex/1.cc: Likewise.
243         * testsuite/26_numerics/complex/2.cc: Likewise.
244         * testsuite/26_numerics/complex/comparison_operators/more_constexpr.cc:
245         Likewise.
246         * testsuite/26_numerics/complex/operators/more_constexpr.cc:
247         Likewise.
248         * testsuite/26_numerics/complex/requirements/more_constexpr.cc:
249         Likewise.
250         * testsuite/26_numerics/complex/value_operations/more_constexpr.cc:
251         Likewise.
252         * testsuite/26_numerics/endian/1.cc: Likewise.
253         * testsuite/26_numerics/endian/2.cc: Likewise.
254         * testsuite/26_numerics/endian/3.cc: Likewise.
255         * testsuite/26_numerics/exclusive_scan/constexpr.cc: Likewise.
256         * testsuite/26_numerics/inclusive_scan/constexpr.cc: Likewise.
257         * testsuite/26_numerics/inner_product/constexpr.cc: Likewise.
258         * testsuite/26_numerics/inner_product/lwg2055.cc: Likewise.
259         * testsuite/26_numerics/iota/constexpr.cc: Likewise.
260         * testsuite/26_numerics/lerp/1.cc: Likewise.
261         * testsuite/26_numerics/lerp/constexpr.cc: Likewise.
262         * testsuite/26_numerics/lerp/version.cc: Likewise.
263         * testsuite/26_numerics/midpoint/floating.cc: Likewise.
264         * testsuite/26_numerics/midpoint/integral.cc: Likewise.
265         * testsuite/26_numerics/midpoint/pointer.cc: Likewise.
266         * testsuite/26_numerics/midpoint/pointer_neg.cc: Likewise.
267         * testsuite/26_numerics/midpoint/version.cc: Likewise.
268         * testsuite/26_numerics/numbers/1.cc: Likewise.
269         * testsuite/26_numerics/numbers/2.cc: Likewise.
270         * testsuite/26_numerics/numbers/3.cc: Likewise.
271         * testsuite/26_numerics/numbers/float128.cc: Likewise.
272         * testsuite/26_numerics/numbers/nonfloat_neg.cc: Likewise.
273         * testsuite/26_numerics/partial_sum/constexpr.cc: Likewise.
274         * testsuite/26_numerics/partial_sum/lwg2055.cc: Likewise.
275         * testsuite/26_numerics/random/concept.cc: Likewise.
276         * testsuite/26_numerics/reduce/constexpr.cc: Likewise.
277         * testsuite/26_numerics/slice/compare.cc: Likewise.
278         * testsuite/26_numerics/transform_exclusive_scan/constexpr.cc:
279         Likewise.
280         * testsuite/26_numerics/transform_inclusive_scan/constexpr.cc:
281         Likewise.
282         * testsuite/26_numerics/transform_reduce/constexpr.cc: Likewise.
284 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
286         * testsuite/24_iterators/aliases.cc: Remove dg-options
287         -std=gnu++2a.
288         * testsuite/24_iterators/associated_types/incrementable.traits.cc:
289         Likewise.
290         * testsuite/24_iterators/associated_types/iterator.traits.cc:
291         Likewise.
292         * testsuite/24_iterators/associated_types/readable.traits.cc:
293         Likewise.
294         * testsuite/24_iterators/back_insert_iterator/constexpr.cc:
295         Likewise.
296         * testsuite/24_iterators/back_insert_iterator/pr93884.cc:
297         Likewise.
298         * testsuite/24_iterators/bidirectional/concept.cc: Likewise.
299         * testsuite/24_iterators/common_iterator/1.cc: Likewise.
300         * testsuite/24_iterators/common_iterator/100823.cc: Likewise.
301         * testsuite/24_iterators/common_iterator/2.cc: Likewise.
302         * testsuite/24_iterators/contiguous/concept.cc: Likewise.
303         * testsuite/24_iterators/contiguous/tag.cc: Likewise.
304         * testsuite/24_iterators/counted_iterator/1.cc: Likewise.
305         * testsuite/24_iterators/counted_iterator/lwg3389.cc: Likewise.
306         * testsuite/24_iterators/counted_iterator/lwg3643.cc: Likewise.
307         * testsuite/24_iterators/customization_points/92894.cc:
308         Likewise.
309         * testsuite/24_iterators/customization_points/iter_move.cc:
310         Likewise.
311         * testsuite/24_iterators/customization_points/iter_swap.cc:
312         Likewise.
313         * testsuite/24_iterators/customization_points/lwg3420.cc:
314         Likewise.
315         * testsuite/24_iterators/forward/concept.cc: Likewise.
316         * testsuite/24_iterators/front_insert_iterator/constexpr.cc:
317         Likewise.
318         * testsuite/24_iterators/front_insert_iterator/pr93884.cc:
319         Likewise.
320         * testsuite/24_iterators/headers/iterator/synopsis_c++20.cc:
321         Likewise.
322         * testsuite/24_iterators/indirect_callable/92894.cc: Likewise.
323         * testsuite/24_iterators/indirect_callable/projected-adl.cc:
324         Likewise.
325         * testsuite/24_iterators/indirect_callable/projected.cc:
326         Likewise.
327         * testsuite/24_iterators/input/concept.cc: Likewise.
328         * testsuite/24_iterators/insert_iterator/constexpr.cc: Likewise.
329         * testsuite/24_iterators/istream_iterator/cons/sentinel.cc:
330         Likewise.
331         * testsuite/24_iterators/istream_iterator/sentinel.cc: Likewise.
332         * testsuite/24_iterators/istreambuf_iterator/cons/sentinel.cc:
333         Likewise.
334         * testsuite/24_iterators/istreambuf_iterator/sentinel.cc:
335         Likewise.
336         * testsuite/24_iterators/move_iterator/cust.cc: Likewise.
337         * testsuite/24_iterators/move_iterator/dr3435.cc: Likewise.
338         * testsuite/24_iterators/move_iterator/input_iterator.cc:
339         Likewise.
340         * testsuite/24_iterators/move_iterator/lwg3390.cc: Likewise.
341         * testsuite/24_iterators/move_iterator/lwg3391.cc: Likewise.
342         * testsuite/24_iterators/move_iterator/move_only.cc: Likewise.
343         * testsuite/24_iterators/move_iterator/p2520r0.cc: Likewise.
344         * testsuite/24_iterators/move_iterator/rel_ops_c++20.cc:
345         Likewise.
346         * testsuite/24_iterators/move_iterator/sentinel.cc: Likewise.
347         * testsuite/24_iterators/normal_iterator/cmp_c++20.cc: Likewise.
348         * testsuite/24_iterators/output/concept.cc: Likewise.
349         * testsuite/24_iterators/random_access/concept.cc: Likewise.
350         * testsuite/24_iterators/range_access/range_access_cpp20.cc:
351         Likewise.
352         * testsuite/24_iterators/range_access/range_access_cpp20_neg.cc:
353         Likewise.
354         * testsuite/24_iterators/range_operations/100768.cc: Likewise.
355         * testsuite/24_iterators/range_operations/advance.cc: Likewise.
356         * testsuite/24_iterators/range_operations/advance_overflow.cc:
357         Likewise.
358         * testsuite/24_iterators/range_operations/distance.cc: Likewise.
359         * testsuite/24_iterators/range_operations/lwg3392.cc: Likewise.
360         * testsuite/24_iterators/range_operations/next.cc: Likewise.
361         * testsuite/24_iterators/range_operations/prev.cc: Likewise.
362         * testsuite/24_iterators/reverse_iterator/cust.cc: Likewise.
363         * testsuite/24_iterators/reverse_iterator/dr3435.cc: Likewise.
364         * testsuite/24_iterators/reverse_iterator/rel_ops_c++20.cc:
365         Likewise.
367 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
369         * testsuite/23_containers/array/comparison_operators/96851.cc:
370         Remove dg-options -std=gnu++2a.
371         * testsuite/23_containers/array/comparison_operators/constexpr.cc:
372         Likewise.
373         * testsuite/23_containers/array/creation/1.cc: Likewise.
374         * testsuite/23_containers/array/creation/110167.cc: Likewise.
375         * testsuite/23_containers/array/creation/2.cc: Likewise.
376         * testsuite/23_containers/array/creation/3_neg.cc: Likewise.
377         * testsuite/23_containers/array/requirements/constexpr_fill.cc:
378         Likewise.
379         * testsuite/23_containers/array/requirements/constexpr_swap.cc:
380         Likewise.
381         * testsuite/23_containers/deque/48101-3_neg.cc: Likewise.
382         * testsuite/23_containers/deque/erasure.cc: Likewise.
383         * testsuite/23_containers/deque/modifiers/emplace/92878_92947.cc:
384         Likewise.
385         * testsuite/23_containers/deque/operators/cmp_c++20.cc:
386         Likewise.
387         * testsuite/23_containers/forward_list/48101-3_neg.cc: Likewise.
388         * testsuite/23_containers/forward_list/cmp_c++20.cc: Likewise.
389         * testsuite/23_containers/forward_list/erasure.cc: Likewise.
390         * testsuite/23_containers/forward_list/modifiers/92878_92947.cc:
391         Likewise.
392         * testsuite/23_containers/forward_list/operations/remove_cxx20_return.cc:
393         Likewise.
394         * testsuite/23_containers/forward_list/operations/unique_cxx20_return.cc:
395         Likewise.
396         * testsuite/23_containers/list/48101-3_neg.cc: Likewise.
397         * testsuite/23_containers/list/cmp_c++20.cc: Likewise.
398         * testsuite/23_containers/list/erasure.cc: Likewise.
399         * testsuite/23_containers/list/modifiers/emplace/92878_92947.cc:
400         Likewise.
401         * testsuite/23_containers/list/operations/remove_cxx20_return.cc:
402         Likewise.
403         * testsuite/23_containers/list/operations/unique_cxx20_return.cc:
404         Likewise.
405         * testsuite/23_containers/map/48101-3_neg.cc: Likewise.
406         * testsuite/23_containers/map/erasure.cc: Likewise.
407         * testsuite/23_containers/map/modifiers/emplace/92878_92947.cc:
408         Likewise.
409         * testsuite/23_containers/map/operations/contains.cc: Likewise.
410         * testsuite/23_containers/map/operators/cmp_c++20.cc: Likewise.
411         * testsuite/23_containers/multimap/48101-3_neg.cc: Likewise.
412         * testsuite/23_containers/multimap/modifiers/emplace/92878_92947.cc:
413         Likewise.
414         * testsuite/23_containers/multimap/operations/contains.cc:
415         Likewise.
416         * testsuite/23_containers/multimap/operators/cmp_c++20.cc:
417         Likewise.
418         * testsuite/23_containers/multiset/48101-3_neg.cc: Likewise.
419         * testsuite/23_containers/multiset/modifiers/emplace/92878_92947.cc:
420         Likewise.
421         * testsuite/23_containers/multiset/operations/contains.cc:
422         Likewise.
423         * testsuite/23_containers/multiset/operators/cmp_c++20.cc:
424         Likewise.
425         * testsuite/23_containers/priority_queue/92878_92947.cc:
426         Likewise.
427         * testsuite/23_containers/queue/92878_92947.cc: Likewise.
428         * testsuite/23_containers/queue/cmp_c++20.cc: Likewise.
429         * testsuite/23_containers/set/48101-3_neg.cc: Likewise.
430         * testsuite/23_containers/set/erasure.cc: Likewise.
431         * testsuite/23_containers/set/modifiers/emplace/92878_92947.cc:
432         Likewise.
433         * testsuite/23_containers/set/operations/contains.cc: Likewise.
434         * testsuite/23_containers/set/operators/cmp_c++20.cc: Likewise.
435         * testsuite/23_containers/span/1.cc: Likewise.
436         * testsuite/23_containers/span/101411.cc: Likewise.
437         * testsuite/23_containers/span/2.cc: Likewise.
438         * testsuite/23_containers/span/deduction.cc: Likewise.
439         * testsuite/23_containers/span/explicit.cc: Likewise.
440         * testsuite/23_containers/span/layout_compat.cc: Likewise.
441         * testsuite/23_containers/span/lwg3255.cc: Likewise.
442         * testsuite/23_containers/span/nothrow_cons.cc: Likewise.
443         * testsuite/23_containers/span/trivially_copyable.cc: Likewise.
444         * testsuite/23_containers/stack/92878_92947.cc: Likewise.
445         * testsuite/23_containers/stack/cmp_c++20.cc: Likewise.
446         * testsuite/23_containers/unordered_map/48101-3_neg.cc:
447         Likewise.
448         * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
449         * testsuite/23_containers/unordered_map/modifiers/92878_92947.cc:
450         Likewise.
451         * testsuite/23_containers/unordered_map/operations/1.cc:
452         Likewise.
453         * testsuite/23_containers/unordered_map/operations/contains.cc:
454         Likewise.
455         * testsuite/23_containers/unordered_multimap/48101-3_neg.cc:
456         Likewise.
457         * testsuite/23_containers/unordered_multimap/modifiers/92878_92947.cc:
458         Likewise.
459         * testsuite/23_containers/unordered_multimap/operations/1.cc:
460         Likewise.
461         * testsuite/23_containers/unordered_multimap/operations/contains.cc:
462         Likewise.
463         * testsuite/23_containers/unordered_multiset/48101-3_neg.cc:
464         Likewise.
465         * testsuite/23_containers/unordered_multiset/modifiers/92878_92947.cc:
466         Likewise.
467         * testsuite/23_containers/unordered_multiset/operations/1.cc:
468         Likewise.
469         * testsuite/23_containers/unordered_multiset/operations/contains.cc:
470         Likewise.
471         * testsuite/23_containers/unordered_set/48101-3_neg.cc:
472         Likewise.
473         * testsuite/23_containers/unordered_set/erasure.cc: Likewise.
474         * testsuite/23_containers/unordered_set/modifiers/92878_92947.cc:
475         Likewise.
476         * testsuite/23_containers/unordered_set/operations/1.cc:
477         Likewise.
478         * testsuite/23_containers/unordered_set/operations/contains.cc:
479         Likewise.
480         * testsuite/23_containers/vector/48101-3_neg.cc: Likewise.
481         * testsuite/23_containers/vector/bool/capacity/constexpr.cc:
482         Likewise.
483         * testsuite/23_containers/vector/bool/cmp_c++20.cc: Likewise.
484         * testsuite/23_containers/vector/bool/cons/constexpr.cc:
485         Likewise.
486         * testsuite/23_containers/vector/bool/element_access/constexpr.cc:
487         Likewise.
488         * testsuite/23_containers/vector/bool/iterator_c++20.cc:
489         Likewise.
490         * testsuite/23_containers/vector/bool/modifiers/assign/constexpr.cc:
491         Likewise.
492         * testsuite/23_containers/vector/bool/modifiers/constexpr.cc:
493         Likewise.
494         * testsuite/23_containers/vector/bool/modifiers/swap/constexpr.cc:
495         Likewise.
496         * testsuite/23_containers/vector/capacity/constexpr.cc:
497         Likewise.
498         * testsuite/23_containers/vector/cmp_c++20.cc: Likewise.
499         * testsuite/23_containers/vector/cons/constexpr.cc: Likewise.
500         * testsuite/23_containers/vector/data_access/constexpr.cc:
501         Likewise.
502         * testsuite/23_containers/vector/element_access/constexpr.cc:
503         Likewise.
504         * testsuite/23_containers/vector/erasure.cc: Likewise.
505         * testsuite/23_containers/vector/modifiers/assign/constexpr.cc:
506         Likewise.
507         * testsuite/23_containers/vector/modifiers/constexpr.cc:
508         Likewise.
509         * testsuite/23_containers/vector/modifiers/emplace/92878_92947.cc:
510         Likewise.
511         * testsuite/23_containers/vector/modifiers/swap/constexpr.cc:
512         Likewise.
513         * testsuite/23_containers/vector/requirements/version.cc:
514         Likewise.
516 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
518         * testsuite/21_strings/basic_string/cons/char/105995.cc: Remove
519         dg-options -std=gnu++20.
520         * testsuite/21_strings/basic_string/cons/char/constexpr.cc:
521         Likewise.
522         * testsuite/21_strings/basic_string/cons/wchar_t/constexpr.cc:
523         Likewise.
524         * testsuite/21_strings/basic_string/erasure.cc: Likewise.
525         * testsuite/21_strings/basic_string/hash/hash_char8_t.cc:
526         Likewise.
527         * testsuite/21_strings/basic_string/literals/constexpr.cc:
528         Likewise.
529         * testsuite/21_strings/basic_string/modifiers/constexpr.cc:
530         Likewise.
531         * testsuite/21_strings/basic_string/modifiers/swap/constexpr-wchar_t.cc:
532         Likewise.
533         * testsuite/21_strings/basic_string/modifiers/swap/constexpr.cc:
534         Likewise.
535         * testsuite/21_strings/basic_string/operations/ends_with/char.cc:
536         Likewise.
537         * testsuite/21_strings/basic_string/operations/ends_with/nonnull.cc:
538         Likewise.
539         * testsuite/21_strings/basic_string/operations/ends_with/wchar_t.cc:
540         Likewise.
541         * testsuite/21_strings/basic_string/operations/starts_with/char.cc:
542         Likewise.
543         * testsuite/21_strings/basic_string/operations/starts_with/nonnull.cc:
544         Likewise.
545         * testsuite/21_strings/basic_string/operations/starts_with/wchar_t.cc:
546         Likewise.
547         * testsuite/21_strings/basic_string/operators/char/cmp_c++20.cc:
548         Likewise.
549         * testsuite/21_strings/basic_string/operators/wchar_t/cmp_c++20.cc:
550         Likewise.
551         * testsuite/21_strings/basic_string_view/cons/char/range.cc:
552         Likewise.
553         * testsuite/21_strings/basic_string_view/operations/copy/char/constexpr.cc:
554         Likewise.
555         * testsuite/21_strings/basic_string_view/operations/copy/wchar_t/constexpr.cc:
556         Likewise.
557         * testsuite/21_strings/basic_string_view/operations/ends_with/char.cc:
558         Likewise.
559         * testsuite/21_strings/basic_string_view/operations/ends_with/nonnull.cc:
560         Likewise.
561         * testsuite/21_strings/basic_string_view/operations/ends_with/wchar_t.cc:
562         Likewise.
563         * testsuite/21_strings/basic_string_view/operations/starts_with/char.cc:
564         Likewise.
565         * testsuite/21_strings/basic_string_view/operations/starts_with/nonnull.cc:
566         Likewise.
567         * testsuite/21_strings/basic_string_view/operations/starts_with/wchar_t.cc:
568         Likewise.
569         * testsuite/21_strings/basic_string_view/operators/char/cmp_c++20.cc:
570         Likewise.
571         * testsuite/21_strings/basic_string_view/operators/wchar_t/cmp_c++20.cc:
572         Likewise.
573         * testsuite/21_strings/basic_string_view/requirements/constexpr_iter.cc:
574         Likewise.
575         * testsuite/21_strings/char_traits/requirements/constexpr_functions_c++20.cc:
576         Likewise.
578 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
580         * testsuite/20_util/allocator/105975.cc: Remove dg-options
581         -std=gnu++2a.
582         * testsuite/20_util/allocator/rebind_c++20.cc: Likewise.
583         * testsuite/20_util/allocator/requirements/constexpr.cc:
584         Likewise.
585         * testsuite/20_util/allocator/requirements/typedefs_c++20.cc:
586         Likewise.
587         * testsuite/20_util/allocator_traits/header-2.cc: Likewise.
588         * testsuite/20_util/allocator_traits/header.cc: Likewise.
589         * testsuite/20_util/allocator_traits/members/92878_92947.cc:
590         Likewise.
591         * testsuite/20_util/any/assign/92878_92947.cc: Likewise.
592         * testsuite/20_util/any/cons/92878_92947.cc: Likewise.
593         * testsuite/20_util/assume_aligned/1.cc: Likewise.
594         * testsuite/20_util/assume_aligned/2_neg.cc: Likewise.
595         * testsuite/20_util/assume_aligned/3.cc: Likewise.
596         * testsuite/20_util/assume_aligned/97132.cc: Likewise.
597         * testsuite/20_util/bind/constexpr.cc: Likewise.
598         * testsuite/20_util/bitset/operations/96303.cc: Likewise.
599         * testsuite/20_util/common_reference/100894.cc: Likewise.
600         * testsuite/20_util/common_reference/requirements/alias_decl.cc:
601         Likewise.
602         * testsuite/20_util/common_reference/requirements/explicit_instantiation.cc:
603         Likewise.
604         * testsuite/20_util/common_reference/requirements/typedefs.cc:
605         Likewise.
606         * testsuite/20_util/duration/comparison_operators/three_way.cc:
607         Likewise.
608         * testsuite/20_util/exchange/constexpr.cc: Likewise.
609         * testsuite/20_util/exchange/noexcept.cc: Likewise.
610         * testsuite/20_util/from_chars/1_c++20_neg.cc: Likewise.
611         * testsuite/20_util/from_chars/compare.cc: Likewise.
612         * testsuite/20_util/function_objects/bind_front/1.cc: Likewise.
613         * testsuite/20_util/function_objects/bind_front/107784.cc:
614         Likewise.
615         * testsuite/20_util/function_objects/bind_front/111327.cc:
616         Likewise.
617         * testsuite/20_util/function_objects/bind_front/2.cc: Likewise.
618         * testsuite/20_util/function_objects/bind_front/97101.cc:
619         Likewise.
620         * testsuite/20_util/function_objects/bind_front/constexpr.cc:
621         Likewise.
622         * testsuite/20_util/function_objects/constexpr_searcher.cc:
623         Likewise.
624         * testsuite/20_util/function_objects/identity/1.cc: Likewise.
625         * testsuite/20_util/function_objects/invoke/constexpr.cc:
626         Likewise.
627         * testsuite/20_util/function_objects/mem_fn/constexpr.cc:
628         Likewise.
629         * testsuite/20_util/function_objects/not_fn/constexpr.cc:
630         Likewise.
631         * testsuite/20_util/integer_comparisons/1.cc: Likewise.
632         * testsuite/20_util/integer_comparisons/2.cc: Likewise.
633         * testsuite/20_util/integer_comparisons/equal.cc: Likewise.
634         * testsuite/20_util/integer_comparisons/equal_neg.cc: Likewise.
635         * testsuite/20_util/integer_comparisons/greater.cc: Likewise.
636         * testsuite/20_util/integer_comparisons/greater_equal.cc:
637         Likewise.
638         * testsuite/20_util/integer_comparisons/greater_equal_neg.cc:
639         Likewise.
640         * testsuite/20_util/integer_comparisons/greater_neg.cc:
641         Likewise.
642         * testsuite/20_util/integer_comparisons/in_range.cc: Likewise.
643         * testsuite/20_util/integer_comparisons/in_range_neg.cc:
644         Likewise.
645         * testsuite/20_util/integer_comparisons/less.cc: Likewise.
646         * testsuite/20_util/integer_comparisons/less_equal.cc: Likewise.
647         * testsuite/20_util/integer_comparisons/less_equal_neg.cc:
648         Likewise.
649         * testsuite/20_util/integer_comparisons/less_neg.cc: Likewise.
650         * testsuite/20_util/integer_comparisons/not_equal.cc: Likewise.
651         * testsuite/20_util/integer_comparisons/not_equal_neg.cc:
652         Likewise.
653         * testsuite/20_util/is_bounded_array/requirements/explicit_instantiation.cc:
654         Likewise.
655         * testsuite/20_util/is_bounded_array/requirements/typedefs.cc:
656         Likewise.
657         * testsuite/20_util/is_bounded_array/value.cc: Likewise.
658         * testsuite/20_util/is_constant_evaluated/1.cc: Likewise.
659         * testsuite/20_util/is_constant_evaluated/noexcept.cc: Likewise.
660         * testsuite/20_util/is_constructible/92878_92947.cc: Likewise.
661         * testsuite/20_util/is_layout_compatible/is_corresponding_member.cc:
662         Likewise.
663         * testsuite/20_util/is_layout_compatible/value.cc: Likewise.
664         * testsuite/20_util/is_layout_compatible/version.cc: Likewise.
665         * testsuite/20_util/is_nothrow_constructible/value_c++20.cc:
666         Likewise.
667         * testsuite/20_util/is_nothrow_convertible/requirements/explicit_instantiation.cc:
668         Likewise.
669         * testsuite/20_util/is_nothrow_convertible/requirements/typedefs.cc:
670         Likewise.
671         * testsuite/20_util/is_nothrow_convertible/value.cc: Likewise.
672         * testsuite/20_util/is_pod/deprecated-2a.cc: Likewise.
673         * testsuite/20_util/is_pointer_interconvertible/value.cc:
674         Likewise.
675         * testsuite/20_util/is_pointer_interconvertible/version.cc:
676         Likewise.
677         * testsuite/20_util/is_pointer_interconvertible/with_class.cc:
678         Likewise.
679         * testsuite/20_util/is_unbounded_array/requirements/explicit_instantiation.cc:
680         Likewise.
681         * testsuite/20_util/is_unbounded_array/requirements/typedefs.cc:
682         Likewise.
683         * testsuite/20_util/is_unbounded_array/value.cc: Likewise.
684         * testsuite/20_util/optional/assignment/92878_92947.cc:
685         Likewise.
686         * testsuite/20_util/optional/cons/92878_92947.cc: Likewise.
687         * testsuite/20_util/optional/constexpr/assign.cc: Likewise.
688         * testsuite/20_util/optional/constexpr/cons/conv.cc: Likewise.
689         * testsuite/20_util/optional/constexpr/modifiers.cc: Likewise.
690         * testsuite/20_util/optional/constexpr/swap.cc: Likewise.
691         * testsuite/20_util/optional/relops/96269.cc: Likewise.
692         * testsuite/20_util/optional/relops/three_way.cc: Likewise.
693         * testsuite/20_util/pair/comparison_operators/constexpr_c++20.cc:
694         Likewise.
695         * testsuite/20_util/pair/cons/92878_92947.cc: Likewise.
696         * testsuite/20_util/pair/constexpr_assign.cc: Likewise.
697         * testsuite/20_util/pair/constexpr_swap.cc: Likewise.
698         * testsuite/20_util/pair/requirements/structural.cc: Likewise.
699         * testsuite/20_util/pointer_traits/pointer_to_constexpr.cc:
700         Likewise.
701         * testsuite/20_util/polymorphic_allocator/allocate_object.cc:
702         Likewise.
703         * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc:
704         Likewise.
705         * testsuite/20_util/polymorphic_allocator/lwg3237.cc: Likewise.
706         * testsuite/20_util/reference_wrapper/constexpr.cc: Likewise.
707         * testsuite/20_util/reference_wrapper/incomplete.cc: Likewise.
708         * testsuite/20_util/remove_cvref/requirements/alias_decl.cc:
709         Likewise.
710         * testsuite/20_util/remove_cvref/requirements/explicit_instantiation.cc:
711         Likewise.
712         * testsuite/20_util/remove_cvref/value.cc: Likewise.
713         * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc:
714         Likewise.
715         * testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc:
716         Likewise.
717         * testsuite/20_util/shared_ptr/casts/rval.cc: Likewise.
718         * testsuite/20_util/shared_ptr/comparison/cmp_c++20.cc:
719         Likewise.
720         * testsuite/20_util/shared_ptr/cons/alias-rval.cc: Likewise.
721         * testsuite/20_util/shared_ptr/creation/92878_92947.cc:
722         Likewise.
723         * testsuite/20_util/shared_ptr/creation/array.cc: Likewise.
724         * testsuite/20_util/shared_ptr/creation/overwrite.cc: Likewise.
725         * testsuite/20_util/shared_ptr/creation/version.cc: Likewise.
726         * testsuite/20_util/time_point/4.cc: Likewise.
727         * testsuite/20_util/time_point/comparison_operators/three_way.cc:
728         Likewise.
729         * testsuite/20_util/to_address/1.cc: Likewise.
730         * testsuite/20_util/to_address/1_neg.cc: Likewise.
731         * testsuite/20_util/to_address/debug.cc: Likewise.
732         * testsuite/20_util/to_address/lwg3545.cc: Likewise.
733         * testsuite/20_util/to_chars/compare.cc: Likewise.
734         * testsuite/20_util/tuple/comparison_operators/three_way.cc:
735         Likewise.
736         * testsuite/20_util/tuple/cons/102270.cc: Likewise.
737         * testsuite/20_util/tuple/cons/constexpr_allocator_arg_t.cc:
738         Likewise.
739         * testsuite/20_util/tuple/constexpr_swap.cc: Likewise.
740         * testsuite/20_util/type_identity/requirements/alias_decl.cc:
741         Likewise.
742         * testsuite/20_util/type_identity/requirements/explicit_instantiation.cc:
743         Likewise.
744         * testsuite/20_util/type_identity/requirements/typedefs.cc:
745         Likewise.
746         * testsuite/20_util/typeindex/comparison_operators_c++20.cc:
747         Likewise.
748         * testsuite/20_util/unique_ptr/comparison/compare_c++20.cc:
749         Likewise.
750         * testsuite/20_util/unique_ptr/creation/92878_92947.cc:
751         Likewise.
752         * testsuite/20_util/unique_ptr/creation/for_overwrite.cc:
753         Likewise.
754         * testsuite/20_util/unique_ptr/creation/for_overwrite__neg.cc:
755         Likewise.
756         * testsuite/20_util/unique_ptr/io/lwg2948.cc: Likewise.
757         * testsuite/20_util/unwrap_reference/1.cc: Likewise.
758         * testsuite/20_util/unwrap_reference/2.cc: Likewise.
759         * testsuite/20_util/unwrap_reference/3.cc: Likewise.
760         * testsuite/20_util/uses_allocator/92878_92947.cc: Likewise.
761         * testsuite/20_util/uses_allocator/lwg3527.cc: Likewise.
762         * testsuite/20_util/uses_allocator/make_obj.cc: Likewise.
763         * testsuite/20_util/uses_allocator/uninitialized_construct.cc:
764         Likewise.
765         * testsuite/20_util/variant/92878_92947.cc: Likewise.
766         * testsuite/20_util/variant/95915.cc: Likewise.
767         * testsuite/20_util/variant/constexpr.cc: Likewise.
768         * testsuite/20_util/variant/relops/three_way.cc: Likewise.
769         * testsuite/20_util/variant/visit_neg.cc: Likewise.
770         * testsuite/20_util/variant/visit_r.cc: Likewise.
771         * testsuite/20_util/weak_ptr/atomic_weak_ptr.cc: Likewise.
773 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
775         * testsuite/18_support/comparisons/algorithms/fallback.cc:
776         Remove dg-options -std=gnu++2a.
777         * testsuite/18_support/comparisons/algorithms/partial_order.cc:
778         Likewise.
779         * testsuite/18_support/comparisons/algorithms/strong_order.cc:
780         Likewise.
781         * testsuite/18_support/comparisons/algorithms/strong_order_floats.cc:
782         Likewise.
783         * testsuite/18_support/comparisons/algorithms/weak_order.cc:
784         Likewise.
785         * testsuite/18_support/comparisons/categories/94565.cc:
786         Likewise.
787         * testsuite/18_support/comparisons/categories/partialord.cc:
788         Likewise.
789         * testsuite/18_support/comparisons/categories/strongord.cc:
790         Likewise.
791         * testsuite/18_support/comparisons/categories/weakord.cc:
792         Likewise.
793         * testsuite/18_support/comparisons/categories/zero_neg.cc:
794         Likewise.
795         * testsuite/18_support/comparisons/common/1.cc: Likewise.
796         * testsuite/18_support/comparisons/object/93479.cc: Likewise.
797         * testsuite/18_support/comparisons/object/lwg3530.cc: Likewise.
799 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
801         * testsuite/29_atomics/atomic/compare_exchange_padding.cc:
802         Remove dg-options -std=gnu++2a.
803         * testsuite/29_atomics/atomic/cons/value_init.cc: Likewise.
804         * testsuite/29_atomics/atomic/lock_free_aliases.cc: Likewise.
805         * testsuite/29_atomics/atomic/requirements/types_neg.cc:
806         Likewise.
807         * testsuite/29_atomics/atomic/wait_notify/1.cc: Likewise.
808         * testsuite/29_atomics/atomic/wait_notify/100334.cc: Likewise.
809         * testsuite/29_atomics/atomic/wait_notify/102994.cc: Likewise.
810         * testsuite/29_atomics/atomic/wait_notify/2.cc: Likewise.
811         * testsuite/29_atomics/atomic/wait_notify/bool.cc: Likewise.
812         * testsuite/29_atomics/atomic/wait_notify/generic.cc: Likewise.
813         * testsuite/29_atomics/atomic/wait_notify/pointers.cc: Likewise.
814         * testsuite/29_atomics/atomic_flag/cons/value_init.cc: Likewise.
815         * testsuite/29_atomics/atomic_flag/test/explicit.cc: Likewise.
816         * testsuite/29_atomics/atomic_flag/test/implicit.cc: Likewise.
817         * testsuite/29_atomics/atomic_flag/wait_notify/1.cc: Likewise.
818         * testsuite/29_atomics/atomic_float/1.cc: Likewise.
819         * testsuite/29_atomics/atomic_float/95282.cc: Likewise.
820         * testsuite/29_atomics/atomic_float/requirements.cc: Likewise.
821         * testsuite/29_atomics/atomic_float/value_init.cc: Likewise.
822         * testsuite/29_atomics/atomic_float/wait_notify.cc: Likewise.
823         * testsuite/29_atomics/atomic_integral/cons/value_init.cc:
824         Likewise.
825         * testsuite/29_atomics/atomic_integral/wait_notify.cc: Likewise.
826         * testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc:
827         Likewise.
828         * testsuite/29_atomics/atomic_ref/deduction.cc: Likewise.
829         * testsuite/29_atomics/atomic_ref/float.cc: Likewise.
830         * testsuite/29_atomics/atomic_ref/generic.cc: Likewise.
831         * testsuite/29_atomics/atomic_ref/integral.cc: Likewise.
832         * testsuite/29_atomics/atomic_ref/pointer.cc: Likewise.
833         * testsuite/29_atomics/atomic_ref/requirements.cc: Likewise.
834         * testsuite/29_atomics/headers/atomic/types_std_c++20.cc:
835         Likewise.
836         * testsuite/29_atomics/headers/atomic/types_std_c++20_neg.cc:
837         Likewise.
838         * testsuite/29_atomics/headers/atomic/types_std_c++2a.cc:
839         Likewise.
840         * testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc:
841         Likewise.
843 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
845         * testsuite/27_io/basic_filebuf/native_handle/char/1.cc: New test.
846         * testsuite/27_io/basic_filebuf/native_handle/wchar_t/1.cc: New test.
848 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
850         * acinclude.m4 (GLIBCXX_CHECK_FILEBUF_NATIVE_HANDLES): New
851         macro.
852         * config.h.in: Regenerate.
853         * config/abi/pre/gnu.ver (GLIBCXX_3.4.32): Export new
854         basic_filebuf members.
855         * config/io/basic_file_stdio.cc (__basic_file::native_handle):
856         Define new function.
857         * config/io/basic_file_stdio.h (__basic_file::native_handle):
858         Declare new function.
859         * configure: Regenerate.
860         * configure.ac: Use GLIBCXX_CHECK_FILEBUF_NATIVE_HANDLES.
861         * include/bits/version.def (fstream_native_handles): New macro.
862         * include/bits/version.h: Regenerate.
863         * include/std/fstream (basic_filebuf::native_handle)
864         (basic_fstream::native_handle, basic_ifstream::native_handle)
865         (basic_ofstream::native_handle): New functions.
866         * src/c++11/Makefile.am: Move compilation of basic_file.cc,
867         locale_init.cc and localename.cc to here.
868         * src/c++11/Makefile.in: Regenerate.
869         * src/c++98/locale_init.cc: Moved to...
870         * src/c++11/locale_init.cc: ...here.
871         * src/c++98/localename.cc: Moved to...
872         * src/c++11/localename.cc: ...here.
873         * src/c++98/Makefile.am: Remove basic_file.cc, locale_init.cc
874         and localename.cc from here.
875         * src/c++98/Makefile.in: Regenerate.
876         * testsuite/27_io/basic_filebuf/native_handle/version.cc: New test.
877         * testsuite/27_io/basic_fstream/native_handle/char/1.cc: New test.
878         * testsuite/27_io/basic_fstream/native_handle/wchar_t/1.cc: New test.
879         * testsuite/27_io/basic_ifstream/native_handle/char/1.cc: New test.
880         * testsuite/27_io/basic_ifstream/native_handle/wchar_t/1.cc: New test.
881         * testsuite/27_io/basic_ofstream/native_handle/char/1.cc: New test.
882         * testsuite/27_io/basic_ofstream/native_handle/wchar_t/1.cc: New test.
884 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
886         * testsuite/libstdc++-dg/conformance.exp: Add log line when
887         using testsuite_files.
889 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
891         * testsuite/20_util/shared_ptr/atomic/3.cc: Simplify dg
892         directives.
893         * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc:
894         Likewise.
895         * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc:
896         Likewise.
897         * testsuite/20_util/synchronized_pool_resource/allocate.cc:
898         Likewise.
899         * testsuite/20_util/synchronized_pool_resource/allocate_single.cc:
900         Likewise.
901         * testsuite/20_util/synchronized_pool_resource/cons.cc:
902         Likewise.
903         * testsuite/20_util/synchronized_pool_resource/cons_single.cc:
904         Likewise.
905         * testsuite/20_util/synchronized_pool_resource/is_equal.cc:
906         Likewise.
907         * testsuite/20_util/synchronized_pool_resource/multithreaded.cc:
908         Likewise.
909         * testsuite/20_util/synchronized_pool_resource/options.cc:
910         Likewise.
911         * testsuite/20_util/synchronized_pool_resource/release.cc:
912         Likewise.
913         * testsuite/20_util/synchronized_pool_resource/release_single.cc:
914         Likewise.
915         * testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc:
916         Likewise.
917         * testsuite/30_threads/stop_token/stop_callback/deadlock-mt.cc:
918         Likewise.
919         * testsuite/30_threads/stop_token/stop_callback/destroy.cc:
920         Likewise.
922 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
924         * testsuite/23_containers/span/back_assert_neg.cc: Remove
925         dg-options and add effective target selector to dg-do. Add
926         no_pch.
927         * testsuite/23_containers/span/back_neg.cc: Likewise.
928         * testsuite/23_containers/span/cons_1_assert_neg.cc: Likewise.
929         * testsuite/23_containers/span/cons_2_assert_neg.cc: Likewise.
930         * testsuite/23_containers/span/first_2_assert_neg.cc: Likewise.
931         * testsuite/23_containers/span/first_assert_neg.cc: Likewise.
932         * testsuite/23_containers/span/first_neg.cc: Likewise.
933         * testsuite/23_containers/span/front_assert_neg.cc: Likewise.
934         * testsuite/23_containers/span/front_neg.cc: Likewise.
935         * testsuite/23_containers/span/index_op_assert_neg.cc: Likewise.
936         * testsuite/23_containers/span/index_op_neg.cc: Likewise.
937         * testsuite/23_containers/span/last_2_assert_neg.cc: Likewise.
938         * testsuite/23_containers/span/last_assert_neg.cc: Likewise.
939         * testsuite/23_containers/span/last_neg.cc: Likewise.
940         * testsuite/23_containers/span/subspan_2_assert_neg.cc:
941         Likewise.
942         * testsuite/23_containers/span/subspan_3_assert_neg.cc:
943         Likewise.
944         * testsuite/23_containers/span/subspan_4_assert_neg.cc:
945         Likewise.
946         * testsuite/23_containers/span/subspan_5_assert_neg.cc:
947         Likewise.
948         * testsuite/23_containers/span/subspan_6_assert_neg.cc:
949         Likewise.
950         * testsuite/23_containers/span/subspan_assert_neg.cc: Likewise.
951         * testsuite/23_containers/span/subspan_neg.cc: Likewise.
952         * testsuite/24_iterators/range_operations/advance_debug_neg.cc:
953         Likewise.
955 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
957         * testsuite/18_support/headers/limits/synopsis_cxx23.cc: Remove
958         dg-options.
959         * testsuite/18_support/headers/stdfloat/types_std.cc: Likewise.
960         * testsuite/18_support/type_info/constexpr.cc: Likewise.
961         * testsuite/19_diagnostics/stacktrace/current.cc: Likewise.
962         * testsuite/19_diagnostics/stacktrace/entry.cc: Likewise.
963         * testsuite/19_diagnostics/stacktrace/stacktrace.cc: Likewise.
964         * testsuite/19_diagnostics/stacktrace/synopsis.cc: Likewise.
965         * testsuite/19_diagnostics/stacktrace/version.cc: Likewise.
966         * testsuite/20_util/aligned_storage/deprecated-2b.cc: Likewise.
967         * testsuite/20_util/aligned_union/deprecated-2b.cc: Likewise.
968         * testsuite/20_util/bitset/access/constexpr.cc: Likewise.
969         * testsuite/20_util/bitset/cons/constexpr_c++23.cc: Likewise.
970         * testsuite/20_util/bitset/count/constexpr.cc: Likewise.
971         * testsuite/20_util/bitset/ext/constexpr.cc: Likewise.
972         * testsuite/20_util/bitset/operations/constexpr_c++23.cc:
973         Likewise.
974         * testsuite/20_util/bitset/version.cc: Likewise.
975         * testsuite/20_util/from_chars/8.cc: Likewise.
976         * testsuite/20_util/from_chars/constexpr.cc: Likewise.
977         * testsuite/20_util/function/cons/deduction_c++23.cc: Likewise.
978         * testsuite/20_util/function_objects/invoke/4.cc: Likewise.
979         * testsuite/20_util/function_objects/invoke/dangling_ref.cc:
980         Likewise.
981         * testsuite/20_util/is_scoped_enum/value.cc: Likewise.
982         * testsuite/20_util/is_scoped_enum/version.cc: Likewise.
983         * testsuite/20_util/move_only_function/call.cc: Likewise.
984         * testsuite/20_util/move_only_function/cons.cc: Likewise.
985         * testsuite/20_util/move_only_function/move.cc: Likewise.
986         * testsuite/20_util/move_only_function/version.cc: Likewise.
987         * testsuite/20_util/optional/monadic/and_then.cc: Likewise.
988         * testsuite/20_util/optional/monadic/or_else.cc: Likewise.
989         * testsuite/20_util/optional/monadic/or_else_neg.cc: Likewise.
990         * testsuite/20_util/optional/monadic/pr109242.cc: Likewise.
991         * testsuite/20_util/optional/monadic/transform.cc: Likewise.
992         * testsuite/20_util/pair/p2321r2.cc: Likewise.
993         * testsuite/20_util/reference_from_temporary/value.cc: Likewise.
994         * testsuite/20_util/reference_from_temporary/value2.cc:
995         Likewise.
996         * testsuite/20_util/reference_from_temporary/version.cc:
997         Likewise.
998         * testsuite/20_util/to_chars/constexpr.cc: Likewise.
999         * testsuite/20_util/to_chars/float128_c++23.cc: Likewise.
1000         * testsuite/20_util/to_chars/float16_c++23.cc: Likewise.
1001         * testsuite/20_util/to_chars/version.cc: Likewise.
1002         * testsuite/20_util/to_underlying/1.cc: Likewise.
1003         * testsuite/20_util/to_underlying/version.cc: Likewise.
1004         * testsuite/20_util/tuple/p2321r2.cc: Likewise.
1005         * testsuite/20_util/unique_ptr/assign/constexpr.cc: Likewise.
1006         * testsuite/20_util/unique_ptr/comparison/constexpr.cc:
1007         Likewise.
1008         * testsuite/20_util/unique_ptr/cons/constexpr_c++20.cc:
1009         Likewise.
1010         * testsuite/20_util/unique_ptr/creation/constexpr.cc: Likewise.
1011         * testsuite/20_util/unique_ptr/modifiers/constexpr.cc: Likewise.
1012         * testsuite/20_util/unique_ptr/specialized_algorithms/constexpr.cc: Likewise.
1013         * testsuite/20_util/unreachable/1.cc: Likewise.
1014         * testsuite/20_util/unreachable/version.cc: Likewise.
1015         * testsuite/20_util/uses_allocator/lwg3677.cc: Likewise.
1016         * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc: Likewise.
1017         * testsuite/21_strings/basic_string/operations/contains/char.cc:
1018         Likewise.
1019         * testsuite/21_strings/basic_string/operations/contains/nonnull.cc: Likewise.
1020         * testsuite/21_strings/basic_string/operations/contains/wchar_t.cc: Likewise.
1021         * testsuite/21_strings/basic_string_view/cons/char/range_c++20.cc: Likewise.
1022         * testsuite/21_strings/basic_string_view/cons/wchar_t/range_c++20.cc: Likewise.
1023         * testsuite/21_strings/basic_string_view/operations/contains/char.cc: Likewise.
1024         * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc: Likewise.
1025         * testsuite/21_strings/basic_string_view/operations/contains/nonnull.cc: Likewise.
1026         * testsuite/21_strings/basic_string_view/operations/contains/wchar_t.cc: Likewise.
1027         * testsuite/23_containers/queue/cons_from_iters.cc: Likewise.
1028         * testsuite/23_containers/stack/cons_from_iters.cc: Likewise.
1029         * testsuite/23_containers/vector/bool/element_access/1.cc:
1030         Likewise.
1031         * testsuite/24_iterators/const_iterator/1.cc: Likewise.
1032         * testsuite/25_algorithms/contains/1.cc: Likewise.
1033         * testsuite/25_algorithms/contains_subrange/1.cc: Likewise.
1034         * testsuite/25_algorithms/find_last/1.cc: Likewise.
1035         * testsuite/25_algorithms/find_last_if/1.cc: Likewise.
1036         * testsuite/25_algorithms/find_last_if_not/1.cc: Likewise.
1037         * testsuite/25_algorithms/fold_left/1.cc: Likewise.
1038         * testsuite/25_algorithms/fold_right/1.cc: Likewise.
1039         * testsuite/25_algorithms/iota/1.cc: Likewise.
1040         * testsuite/26_numerics/bit/bit.byteswap/byteswap.cc: Likewise.
1041         * testsuite/26_numerics/bit/bit.byteswap/version.cc: Likewise.
1042         * testsuite/26_numerics/complex/ext_c++23.cc: Likewise.
1043         * testsuite/26_numerics/headers/cmath/c99_classification_macros_c++23.cc: Likewise.
1044         * testsuite/26_numerics/headers/cmath/constexpr_std_c++23.cc:
1045         Likewise.
1046         * testsuite/26_numerics/headers/cmath/functions_std_c++23.cc:
1047         Likewise.
1048         * testsuite/26_numerics/headers/cmath/nextafter_c++23.cc:
1049         Likewise.
1050         * testsuite/26_numerics/numbers/4.cc: Likewise.
1051         * testsuite/27_io/basic_ostream/inserters_other/char/volatile_ptr.cc: Likewise.
1052         * testsuite/27_io/filesystem/path/native/conv_c++23.cc:
1053         Likewise.
1054         * testsuite/27_io/spanstream/1.cc: Likewise.
1055         * testsuite/27_io/spanstream/2.cc: Likewise.
1056         * testsuite/27_io/spanstream/version.cc: Likewise.
1057         * testsuite/29_atomics/atomic_float/requirements_cxx23.cc:
1058         Likewise.
1059         * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc:
1060         Likewise.
1061         * testsuite/29_atomics/headers/stdatomic.h/version.cc: Likewise.
1062         * testsuite/30_threads/packaged_task/cons/deduction_c++23.cc:
1063         Likewise.
1064         * testsuite/experimental/filesystem/path/native/conv_c++23.cc:
1065         Likewise.
1066         * testsuite/std/ranges/adaptors/adjacent/1.cc: Likewise.
1067         * testsuite/std/ranges/adaptors/adjacent_transform/1.cc:
1068         Likewise.
1069         * testsuite/std/ranges/adaptors/as_const/1.cc: Likewise.
1070         * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Likewise.
1071         * testsuite/std/ranges/adaptors/chunk/1.cc: Likewise.
1072         * testsuite/std/ranges/adaptors/chunk_by/1.cc: Likewise.
1073         * testsuite/std/ranges/adaptors/enumerate/1.cc: Likewise.
1074         * testsuite/std/ranges/adaptors/join_with/1.cc: Likewise.
1075         * testsuite/std/ranges/adaptors/lwg3715.cc: Likewise.
1076         * testsuite/std/ranges/adaptors/slide/1.cc: Likewise.
1077         * testsuite/std/ranges/adaptors/stride/1.cc: Likewise.
1078         * testsuite/std/ranges/cartesian_product/1.cc: Likewise.
1079         * testsuite/std/ranges/range_adaptor_closure.cc: Likewise.
1080         * testsuite/std/ranges/repeat/1.cc: Likewise.
1081         * testsuite/std/ranges/version_c++23.cc: Likewise.
1082         * testsuite/std/ranges/zip/1.cc: Likewise.
1083         * testsuite/std/ranges/zip_transform/1.cc: Likewise.
1085 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
1087         * testsuite/20_util/expected/assign.cc: Remove dg-options.
1088         * testsuite/20_util/expected/bad.cc: Likewise.
1089         * testsuite/20_util/expected/cons.cc: Likewise.
1090         * testsuite/20_util/expected/equality.cc: Likewise.
1091         * testsuite/20_util/expected/illformed_neg.cc: Likewise.
1092         * testsuite/20_util/expected/lwg3877.cc: Likewise.
1093         * testsuite/20_util/expected/lwg3938.cc: Likewise.
1094         * testsuite/20_util/expected/monadic.cc: Likewise.
1095         * testsuite/20_util/expected/observers.cc: Likewise.
1096         * testsuite/20_util/expected/requirements.cc: Likewise.
1097         * testsuite/20_util/expected/swap.cc: Likewise.
1098         * testsuite/20_util/expected/synopsis.cc: Likewise.
1099         * testsuite/20_util/expected/unexpected.cc: Likewise.
1100         * testsuite/20_util/expected/version.cc: Likewise.
1102 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
1104         * testsuite/20_util/duration/arithmetic/overflow_c++20.cc:
1105         Remove dg-options.
1106         * testsuite/20_util/duration/io.cc: Likewise.
1107         * testsuite/std/time/clock/file/io.cc: Likewise.
1108         * testsuite/std/time/clock/file/members.cc: Likewise.
1109         * testsuite/std/time/clock/file/overview.cc: Likewise.
1110         * testsuite/std/time/clock/gps/1.cc: Likewise.
1111         * testsuite/std/time/clock/gps/io.cc: Likewise.
1112         * testsuite/std/time/clock/local/io.cc: Likewise.
1113         * testsuite/std/time/clock/system/io.cc: Likewise.
1114         * testsuite/std/time/clock/tai/1.cc: Likewise.
1115         * testsuite/std/time/clock/tai/io.cc: Likewise.
1116         * testsuite/std/time/clock/utc/1.cc: Likewise.
1117         * testsuite/std/time/clock/utc/io.cc: Likewise.
1118         * testsuite/std/time/clock/utc/leap_second_info.cc: Likewise.
1119         * testsuite/std/time/day/1.cc: Likewise.
1120         * testsuite/std/time/day/io.cc: Likewise.
1121         * testsuite/std/time/exceptions.cc: Likewise.
1122         * testsuite/std/time/format.cc: Likewise.
1123         * testsuite/std/time/hh_mm_ss/1.cc: Likewise.
1124         * testsuite/std/time/hh_mm_ss/109772.cc: Likewise.
1125         * testsuite/std/time/hh_mm_ss/io.cc: Likewise.
1126         * testsuite/std/time/is_am/1.cc: Likewise.
1127         * testsuite/std/time/is_pm/1.cc: Likewise.
1128         * testsuite/std/time/make12/1.cc: Likewise.
1129         * testsuite/std/time/make24/1.cc: Likewise.
1130         * testsuite/std/time/month/1.cc: Likewise.
1131         * testsuite/std/time/month/io.cc: Likewise.
1132         * testsuite/std/time/month_day/1.cc: Likewise.
1133         * testsuite/std/time/month_day/io.cc: Likewise.
1134         * testsuite/std/time/month_day_last/1.cc: Likewise.
1135         * testsuite/std/time/month_day_last/io.cc: Likewise.
1136         * testsuite/std/time/month_weekday/1.cc: Likewise.
1137         * testsuite/std/time/month_weekday/io.cc: Likewise.
1138         * testsuite/std/time/month_weekday_last/1.cc: Likewise.
1139         * testsuite/std/time/month_weekday_last/io.cc: Likewise.
1140         * testsuite/std/time/parse.cc: Likewise.
1141         * testsuite/std/time/syn_c++20.cc: Likewise.
1142         * testsuite/std/time/time_zone/get_info_local.cc: Likewise.
1143         * testsuite/std/time/time_zone/get_info_sys.cc: Likewise.
1144         * testsuite/std/time/time_zone/requirements.cc: Likewise.
1145         * testsuite/std/time/traits/is_clock.cc: Likewise.
1146         * testsuite/std/time/tzdb/1.cc: Likewise.
1147         * testsuite/std/time/tzdb/leap_seconds.cc: Likewise.
1148         * testsuite/std/time/tzdb_list/1.cc: Likewise.
1149         * testsuite/std/time/tzdb_list/requirements.cc: Likewise.
1150         * testsuite/std/time/weekday/1.cc: Likewise.
1151         * testsuite/std/time/weekday/io.cc: Likewise.
1152         * testsuite/std/time/weekday_indexed/io.cc: Likewise.
1153         * testsuite/std/time/weekday_last/1.cc: Likewise.
1154         * testsuite/std/time/weekday_last/io.cc: Likewise.
1155         * testsuite/std/time/year/1.cc: Likewise.
1156         * testsuite/std/time/year/2.cc: Likewise.
1157         * testsuite/std/time/year/io.cc: Likewise.
1158         * testsuite/std/time/weekday_indexed/1.cc: Likewise.
1159         * testsuite/std/time/year_month/1.cc: Likewise.
1160         * testsuite/std/time/year_month/2.cc: Likewise.
1161         * testsuite/std/time/year_month/io.cc: Likewise.
1162         * testsuite/std/time/year_month_day/1.cc: Likewise.
1163         * testsuite/std/time/year_month_day/2.cc: Likewise.
1164         * testsuite/std/time/year_month_day/3.cc: Likewise.
1165         * testsuite/std/time/year_month_day/4.cc: Likewise.
1166         * testsuite/std/time/year_month_day/io.cc: Likewise.
1167         * testsuite/std/time/year_month_day_last/1.cc: Likewise.
1168         * testsuite/std/time/year_month_day_last/2.cc: Likewise.
1169         * testsuite/std/time/year_month_day_last/io.cc: Likewise.
1170         * testsuite/std/time/year_month_weekday/1.cc: Likewise.
1171         * testsuite/std/time/year_month_weekday/2.cc: Likewise.
1172         * testsuite/std/time/year_month_weekday/3.cc: Likewise.
1173         * testsuite/std/time/year_month_weekday/io.cc: Likewise.
1174         * testsuite/std/time/year_month_weekday_last/1.cc: Likewise.
1175         * testsuite/std/time/year_month_weekday_last/2.cc: Likewise.
1176         * testsuite/std/time/year_month_weekday_last/io.cc: Likewise.
1177         * testsuite/std/time/zoned_time/1.cc: Likewise.
1178         * testsuite/std/time/zoned_time/custom.cc: Likewise.
1179         * testsuite/std/time/zoned_time/deduction.cc: Likewise.
1180         * testsuite/std/time/zoned_time/io.cc: Likewise.
1181         * testsuite/std/time/zoned_time/req_neg.cc: Likewise.
1182         * testsuite/std/time/zoned_time/requirements.cc: Likewise.
1183         * testsuite/std/time/zoned_traits.cc: Likewise.
1185 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
1187         * testsuite/std/format/arguments/args.cc: Remove dg-options.
1188         * testsuite/std/format/arguments/lwg3810.cc: Likewise.
1189         * testsuite/std/format/error.cc: Likewise.
1190         * testsuite/std/format/format_string.cc: Likewise.
1191         * testsuite/std/format/formatter/concept.cc: Likewise.
1192         * testsuite/std/format/formatter/ext_float.cc: Likewise.
1193         * testsuite/std/format/formatter/requirements.cc: Likewise.
1194         * testsuite/std/format/functions/107871.cc: Likewise.
1195         * testsuite/std/format/functions/format.cc: Likewise.
1196         * testsuite/std/format/functions/format_to.cc: Likewise.
1197         * testsuite/std/format/functions/format_to_n.cc: Likewise.
1198         * testsuite/std/format/functions/size.cc: Likewise.
1199         * testsuite/std/format/functions/vformat_to.cc: Likewise.
1200         * testsuite/std/format/parse_ctx.cc: Likewise.
1201         * testsuite/std/format/string.cc: Likewise.
1202         * testsuite/std/format/string_neg.cc: Likewise.
1203         * testsuite/std/format/functions/format_c++23.cc: Removed.
1205 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
1207         * testsuite/20_util/function_objects/range.cmp/equal_to.cc:
1208         Remove dg-options.
1209         * testsuite/20_util/function_objects/range.cmp/greater.cc:
1210         Likewise.
1211         * testsuite/20_util/function_objects/range.cmp/greater_equal.cc:
1212         Likewise.
1213         * testsuite/20_util/function_objects/range.cmp/less.cc:
1214         Likewise.
1215         * testsuite/20_util/function_objects/range.cmp/less_equal.cc:
1216         Likewise.
1217         * testsuite/20_util/function_objects/range.cmp/lwg3530.cc:
1218         Likewise.
1219         * testsuite/20_util/function_objects/range.cmp/not_equal_to.cc:
1220         Likewise.
1221         * testsuite/20_util/specialized_algorithms/construct_at/1.cc:
1222         Likewise.
1223         * testsuite/20_util/specialized_algorithms/construct_at/92878_92947.cc:
1224         Likewise.
1225         * testsuite/20_util/specialized_algorithms/construct_at/95788.cc:
1226         Likewise.
1227         * testsuite/20_util/specialized_algorithms/destroy/constrained.cc:
1228         Likewise.
1229         * testsuite/20_util/specialized_algorithms/uninitialized_copy/constrained.cc:
1230         Likewise.
1231         * testsuite/20_util/specialized_algorithms/uninitialized_default_construct/constrained.cc:
1232         Likewise.
1233         * testsuite/20_util/specialized_algorithms/uninitialized_fill/94017.cc:
1234         Likewise.
1235         * testsuite/20_util/specialized_algorithms/uninitialized_fill/constrained.cc:
1236         Likewise.
1237         * testsuite/20_util/specialized_algorithms/uninitialized_fill_n/94017.cc:
1238         Likewise.
1239         * testsuite/20_util/specialized_algorithms/uninitialized_move/constrained.cc:
1240         Likewise.
1241         * testsuite/20_util/specialized_algorithms/uninitialized_value_construct/constrained.cc:
1242         Likewise.
1243         * testsuite/25_algorithms/adjacent_find/constexpr.cc: Likewise.
1244         * testsuite/25_algorithms/adjacent_find/constrained.cc:
1245         Likewise.
1246         * testsuite/25_algorithms/all_of/constexpr.cc: Likewise.
1247         * testsuite/25_algorithms/all_of/constrained.cc: Likewise.
1248         * testsuite/25_algorithms/any_of/constexpr.cc: Likewise.
1249         * testsuite/25_algorithms/any_of/constrained.cc: Likewise.
1250         * testsuite/25_algorithms/binary_search/constexpr.cc: Likewise.
1251         * testsuite/25_algorithms/binary_search/constrained.cc:
1252         Likewise.
1253         * testsuite/25_algorithms/clamp/constrained.cc: Likewise.
1254         * testsuite/25_algorithms/constexpr_macro.cc: Likewise.
1255         * testsuite/25_algorithms/copy/95578.cc: Likewise.
1256         * testsuite/25_algorithms/copy/constexpr.cc: Likewise.
1257         * testsuite/25_algorithms/copy/constrained.cc: Likewise.
1258         * testsuite/25_algorithms/copy/debug/constexpr_neg.cc: Likewise.
1259         * testsuite/25_algorithms/copy_backward/95578.cc: Likewise.
1260         * testsuite/25_algorithms/copy_backward/constexpr.cc: Likewise.
1261         * testsuite/25_algorithms/copy_backward/constrained.cc:
1262         Likewise.
1263         * testsuite/25_algorithms/copy_backward/debug/constexpr_neg.cc:
1264         Likewise.
1265         * testsuite/25_algorithms/copy_if/constexpr.cc: Likewise.
1266         * testsuite/25_algorithms/copy_if/constrained.cc: Likewise.
1267         * testsuite/25_algorithms/copy_n/constexpr.cc: Likewise.
1268         * testsuite/25_algorithms/copy_n/constrained.cc: Likewise.
1269         * testsuite/25_algorithms/count/constexpr.cc: Likewise.
1270         * testsuite/25_algorithms/count/constrained.cc: Likewise.
1271         * testsuite/25_algorithms/count_if/constexpr.cc: Likewise.
1272         * testsuite/25_algorithms/count_if/constrained.cc: Likewise.
1273         * testsuite/25_algorithms/cpp_lib_constexpr.cc: Likewise.
1274         * testsuite/25_algorithms/equal/95578.cc: Likewise.
1275         * testsuite/25_algorithms/equal/constexpr.cc: Likewise.
1276         * testsuite/25_algorithms/equal/constexpr_neg.cc: Likewise.
1277         * testsuite/25_algorithms/equal/constrained.cc: Likewise.
1278         * testsuite/25_algorithms/equal/debug/constexpr_neg.cc:
1279         Likewise.
1280         * testsuite/25_algorithms/equal_range/constexpr.cc: Likewise.
1281         * testsuite/25_algorithms/equal_range/constrained.cc: Likewise.
1282         * testsuite/25_algorithms/fill/94017.cc: Likewise.
1283         * testsuite/25_algorithms/fill/constexpr.cc: Likewise.
1284         * testsuite/25_algorithms/fill/constrained.cc: Likewise.
1285         * testsuite/25_algorithms/fill_n/94017.cc: Likewise.
1286         * testsuite/25_algorithms/fill_n/constexpr.cc: Likewise.
1287         * testsuite/25_algorithms/fill_n/constrained.cc: Likewise.
1288         * testsuite/25_algorithms/find/constexpr.cc: Likewise.
1289         * testsuite/25_algorithms/find/constrained.cc: Likewise.
1290         * testsuite/25_algorithms/find_end/constexpr.cc: Likewise.
1291         * testsuite/25_algorithms/find_end/constrained.cc: Likewise.
1292         * testsuite/25_algorithms/find_first_of/constexpr.cc: Likewise.
1293         * testsuite/25_algorithms/find_first_of/constrained.cc:
1294         Likewise.
1295         * testsuite/25_algorithms/find_if/constexpr.cc: Likewise.
1296         * testsuite/25_algorithms/find_if/constrained.cc: Likewise.
1297         * testsuite/25_algorithms/find_if_not/constexpr.cc: Likewise.
1298         * testsuite/25_algorithms/find_if_not/constrained.cc: Likewise.
1299         * testsuite/25_algorithms/for_each/constexpr.cc: Likewise.
1300         * testsuite/25_algorithms/for_each/constrained.cc: Likewise.
1301         * testsuite/25_algorithms/generate/constexpr.cc: Likewise.
1302         * testsuite/25_algorithms/generate/constrained.cc: Likewise.
1303         * testsuite/25_algorithms/generate_n/constexpr.cc: Likewise.
1304         * testsuite/25_algorithms/generate_n/constrained.cc: Likewise.
1305         * testsuite/25_algorithms/heap/constrained.cc: Likewise.
1306         * testsuite/25_algorithms/includes/constrained.cc: Likewise.
1307         * testsuite/25_algorithms/inplace_merge/constrained.cc:
1308         Likewise.
1309         * testsuite/25_algorithms/is_heap/constexpr.cc: Likewise.
1310         * testsuite/25_algorithms/is_heap_until/constexpr.cc: Likewise.
1311         * testsuite/25_algorithms/is_partitioned/constexpr.cc: Likewise.
1312         * testsuite/25_algorithms/is_partitioned/constrained.cc:
1313         Likewise.
1314         * testsuite/25_algorithms/is_permutation/constexpr.cc: Likewise.
1315         * testsuite/25_algorithms/is_permutation/constrained.cc:
1316         Likewise.
1317         * testsuite/25_algorithms/is_sorted/constexpr.cc: Likewise.
1318         * testsuite/25_algorithms/is_sorted/constrained.cc: Likewise.
1319         * testsuite/25_algorithms/is_sorted_until/constexpr.cc:
1320         Likewise.
1321         * testsuite/25_algorithms/is_sorted_until/constrained.cc:
1322         Likewise.
1323         * testsuite/25_algorithms/iter_swap/constexpr.cc: Likewise.
1324         * testsuite/25_algorithms/lexicographical_compare/93972.cc:
1325         Likewise.
1326         * testsuite/25_algorithms/lexicographical_compare/95578.cc:
1327         Likewise.
1328         * testsuite/25_algorithms/lexicographical_compare/constexpr.cc:
1329         Likewise.
1330         * testsuite/25_algorithms/lexicographical_compare/constrained.cc:
1331         Likewise.
1332         * testsuite/25_algorithms/lexicographical_compare_three_way/1.cc:
1333         Likewise.
1334         * testsuite/25_algorithms/lexicographical_compare_three_way/constexpr.cc:
1335         Likewise.
1336         * testsuite/25_algorithms/lower_bound/constexpr.cc: Likewise.
1337         * testsuite/25_algorithms/lower_bound/constrained.cc: Likewise.
1338         * testsuite/25_algorithms/lower_bound/debug/constexpr_partitioned_neg.cc:
1339         Likewise.
1340         * testsuite/25_algorithms/lower_bound/debug/constexpr_partitioned_pred_neg.cc:
1341         Likewise.
1342         * testsuite/25_algorithms/lower_bound/debug/constexpr_valid_range_neg.cc:
1343         Likewise.
1344         * testsuite/25_algorithms/make_heap/constexpr.cc: Likewise.
1345         * testsuite/25_algorithms/max/constrained.cc: Likewise.
1346         * testsuite/25_algorithms/max_element/constrained.cc: Likewise.
1347         * testsuite/25_algorithms/merge/constexpr.cc: Likewise.
1348         * testsuite/25_algorithms/merge/constrained.cc: Likewise.
1349         * testsuite/25_algorithms/min/constrained.cc: Likewise.
1350         * testsuite/25_algorithms/min_element/constrained.cc: Likewise.
1351         * testsuite/25_algorithms/minmax/constrained.cc: Likewise.
1352         * testsuite/25_algorithms/minmax_element/constrained.cc:
1353         Likewise.
1354         * testsuite/25_algorithms/mismatch/constexpr.cc: Likewise.
1355         * testsuite/25_algorithms/mismatch/constrained.cc: Likewise.
1356         * testsuite/25_algorithms/move/93872.cc: Likewise.
1357         * testsuite/25_algorithms/move/95578.cc: Likewise.
1358         * testsuite/25_algorithms/move/constexpr.cc: Likewise.
1359         * testsuite/25_algorithms/move/constrained.cc: Likewise.
1360         * testsuite/25_algorithms/move_backward/93872.cc: Likewise.
1361         * testsuite/25_algorithms/move_backward/95578.cc: Likewise.
1362         * testsuite/25_algorithms/move_backward/constrained.cc:
1363         Likewise.
1364         * testsuite/25_algorithms/next_permutation/constexpr.cc:
1365         Likewise.
1366         * testsuite/25_algorithms/next_permutation/constrained.cc:
1367         Likewise.
1368         * testsuite/25_algorithms/none_of/constexpr.cc: Likewise.
1369         * testsuite/25_algorithms/none_of/constrained.cc: Likewise.
1370         * testsuite/25_algorithms/nth_element/constexpr.cc: Likewise.
1371         * testsuite/25_algorithms/nth_element/constrained.cc: Likewise.
1372         * testsuite/25_algorithms/partial_sort/constexpr.cc: Likewise.
1373         * testsuite/25_algorithms/partial_sort/constrained.cc: Likewise.
1374         * testsuite/25_algorithms/partial_sort_copy/constexpr.cc:
1375         Likewise.
1376         * testsuite/25_algorithms/partial_sort_copy/constrained.cc:
1377         Likewise.
1378         * testsuite/25_algorithms/partition/constexpr.cc: Likewise.
1379         * testsuite/25_algorithms/partition/constrained.cc: Likewise.
1380         * testsuite/25_algorithms/partition_copy/constexpr.cc: Likewise.
1381         * testsuite/25_algorithms/partition_copy/constrained.cc:
1382         Likewise.
1383         * testsuite/25_algorithms/partition_point/constexpr.cc:
1384         Likewise.
1385         * testsuite/25_algorithms/partition_point/constrained.cc:
1386         Likewise.
1387         * testsuite/25_algorithms/pop_heap/constexpr.cc: Likewise.
1388         * testsuite/25_algorithms/prev_permutation/constexpr.cc:
1389         Likewise.
1390         * testsuite/25_algorithms/prev_permutation/constrained.cc:
1391         Likewise.
1392         * testsuite/25_algorithms/push_heap/constexpr.cc: Likewise.
1393         * testsuite/25_algorithms/remove/constexpr.cc: Likewise.
1394         * testsuite/25_algorithms/remove/constrained.cc: Likewise.
1395         * testsuite/25_algorithms/remove_copy/constexpr.cc: Likewise.
1396         * testsuite/25_algorithms/remove_copy/constrained.cc: Likewise.
1397         * testsuite/25_algorithms/remove_copy_if/constexpr.cc: Likewise.
1398         * testsuite/25_algorithms/remove_copy_if/constrained.cc:
1399         Likewise.
1400         * testsuite/25_algorithms/remove_if/constexpr.cc: Likewise.
1401         * testsuite/25_algorithms/remove_if/constrained.cc: Likewise.
1402         * testsuite/25_algorithms/replace/constrained.cc: Likewise.
1403         * testsuite/25_algorithms/replace_copy/constexpr.cc: Likewise.
1404         * testsuite/25_algorithms/replace_copy/constrained.cc: Likewise.
1405         * testsuite/25_algorithms/replace_copy_if/constexpr.cc:
1406         Likewise.
1407         * testsuite/25_algorithms/replace_copy_if/constrained.cc:
1408         Likewise.
1409         * testsuite/25_algorithms/replace_if/constexpr.cc: Likewise.
1410         * testsuite/25_algorithms/replace_if/constrained.cc: Likewise.
1411         * testsuite/25_algorithms/reverse/constexpr.cc: Likewise.
1412         * testsuite/25_algorithms/reverse/constrained.cc: Likewise.
1413         * testsuite/25_algorithms/reverse_copy/constexpr.cc: Likewise.
1414         * testsuite/25_algorithms/reverse_copy/constrained.cc: Likewise.
1415         * testsuite/25_algorithms/rotate/constexpr.cc: Likewise.
1416         * testsuite/25_algorithms/rotate/constrained.cc: Likewise.
1417         * testsuite/25_algorithms/rotate_copy/constexpr.cc: Likewise.
1418         * testsuite/25_algorithms/rotate_copy/constrained.cc: Likewise.
1419         * testsuite/25_algorithms/sample/constrained.cc: Likewise.
1420         * testsuite/25_algorithms/search/constexpr.cc: Likewise.
1421         * testsuite/25_algorithms/search/constrained.cc: Likewise.
1422         * testsuite/25_algorithms/search_n/97828.cc: Likewise.
1423         * testsuite/25_algorithms/search_n/constexpr.cc: Likewise.
1424         * testsuite/25_algorithms/search_n/constrained.cc: Likewise.
1425         * testsuite/25_algorithms/set_difference/constexpr.cc: Likewise.
1426         * testsuite/25_algorithms/set_difference/constrained.cc:
1427         Likewise.
1428         * testsuite/25_algorithms/set_intersection/constexpr.cc:
1429         Likewise.
1430         * testsuite/25_algorithms/set_intersection/constrained.cc:
1431         Likewise.
1432         * testsuite/25_algorithms/set_symmetric_difference/constexpr.cc:
1433         Likewise.
1434         * testsuite/25_algorithms/set_symmetric_difference/constrained.cc:
1435         Likewise.
1436         * testsuite/25_algorithms/set_union/constexpr.cc: Likewise.
1437         * testsuite/25_algorithms/set_union/constrained.cc: Likewise.
1438         * testsuite/25_algorithms/shift_left/1.cc: Likewise.
1439         * testsuite/25_algorithms/shift_right/1.cc: Likewise.
1440         * testsuite/25_algorithms/shuffle/constrained.cc: Likewise.
1441         * testsuite/25_algorithms/sort/constexpr.cc: Likewise.
1442         * testsuite/25_algorithms/sort/constrained.cc: Likewise.
1443         * testsuite/25_algorithms/sort_heap/constexpr.cc: Likewise.
1444         * testsuite/25_algorithms/stable_partition/constrained.cc:
1445         Likewise.
1446         * testsuite/25_algorithms/stable_sort/constrained.cc: Likewise.
1447         * testsuite/25_algorithms/swap/constexpr.cc: Likewise.
1448         * testsuite/25_algorithms/swap_ranges/constexpr.cc: Likewise.
1449         * testsuite/25_algorithms/swap_ranges/constrained.cc: Likewise.
1450         * testsuite/25_algorithms/transform/constexpr.cc: Likewise.
1451         * testsuite/25_algorithms/transform/constrained.cc: Likewise.
1452         * testsuite/25_algorithms/unique/constexpr.cc: Likewise.
1453         * testsuite/25_algorithms/unique/constrained.cc: Likewise.
1454         * testsuite/25_algorithms/unique_copy/constexpr.cc: Likewise.
1455         * testsuite/25_algorithms/unique_copy/constrained.cc: Likewise.
1456         * testsuite/25_algorithms/upper_bound/constexpr.cc: Likewise.
1457         * testsuite/25_algorithms/upper_bound/constrained.cc: Likewise.
1458         * testsuite/25_algorithms/upper_bound/debug/constexpr_partitioned_neg.cc:
1459         Likewise.
1460         * testsuite/25_algorithms/upper_bound/debug/constexpr_partitioned_pred_neg.cc:
1461         Likewise.
1462         * testsuite/25_algorithms/upper_bound/debug/constexpr_valid_range_neg.cc:
1463         Likewise.
1465 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
1467         * testsuite/std/concepts/1.cc: Remove dg-options.
1468         * testsuite/std/concepts/2.cc: Likewise.
1469         * testsuite/std/concepts/concepts.callable/invocable.cc:
1470         Likewise.
1471         * testsuite/std/concepts/concepts.callable/regular_invocable.cc:
1472         Likewise.
1473         * testsuite/std/concepts/concepts.callable/relation.cc:
1474         Likewise.
1475         * testsuite/std/concepts/concepts.callable/strictweakorder.cc:
1476         Likewise.
1477         * testsuite/std/concepts/concepts.lang/concept.arithmetic/floating_point.cc: Likewise.
1478         * testsuite/std/concepts/concepts.lang/concept.arithmetic/integral.cc: Likewise.
1479         * testsuite/std/concepts/concepts.lang/concept.arithmetic/signed_integral.cc: Likewise.
1480         * testsuite/std/concepts/concepts.lang/concept.arithmetic/unsigned_integral.cc: Likewise.
1481         * testsuite/std/concepts/concepts.lang/concept.assignable/1.cc:
1482         Likewise.
1483         * testsuite/std/concepts/concepts.lang/concept.common/1.cc:
1484         Likewise.
1485         * testsuite/std/concepts/concepts.lang/concept.commonref/1.cc:
1486         Likewise.
1487         * testsuite/std/concepts/concepts.lang/concept.constructible/1.cc: Likewise.
1488         * testsuite/std/concepts/concepts.lang/concept.convertible/1.cc:
1489         Likewise.
1490         * testsuite/std/concepts/concepts.lang/concept.copyconstructible/1.cc: Likewise.
1491         * testsuite/std/concepts/concepts.lang/concept.defaultinitializable/1.cc: Likewise.
1492         * testsuite/std/concepts/concepts.lang/concept.defaultinitializable/lwg3149.cc: Likewise.
1493         * testsuite/std/concepts/concepts.lang/concept.derived/1.cc:
1494         Likewise.
1495         * testsuite/std/concepts/concepts.lang/concept.destructible/1.cc: Likewise.
1496         * testsuite/std/concepts/concepts.lang/concept.moveconstructible/1.cc: Likewise.
1497         * testsuite/std/concepts/concepts.lang/concept.same/1.cc:
1498         Likewise.
1499         * testsuite/std/concepts/concepts.lang/concept.swappable/swap.cc: Likewise.
1500         * testsuite/std/concepts/concepts.lang/concept.swappable/swappable.cc: Likewise.
1501         * testsuite/std/concepts/concepts.lang/concept.swappable/swappable_with.cc: Likewise.
1502         * testsuite/std/concepts/concepts.object/copyable.cc: Likewise.
1503         * testsuite/std/concepts/concepts.object/movable.cc: Likewise.
1504         * testsuite/std/concepts/concepts.object/regular.cc: Likewise.
1505         * testsuite/std/concepts/concepts.object/semiregular.cc:
1506         Likewise.
1507         * testsuite/std/ranges/97600.cc: Likewise.
1508         * testsuite/std/ranges/access/101782.cc: Likewise.
1509         * testsuite/std/ranges/access/begin.cc: Likewise.
1510         * testsuite/std/ranges/access/begin_neg.cc: Likewise.
1511         * testsuite/std/ranges/access/cbegin.cc: Likewise.
1512         * testsuite/std/ranges/access/cdata.cc: Likewise.
1513         * testsuite/std/ranges/access/cend.cc: Likewise.
1514         * testsuite/std/ranges/access/crbegin.cc: Likewise.
1515         * testsuite/std/ranges/access/crend.cc: Likewise.
1516         * testsuite/std/ranges/access/data.cc: Likewise.
1517         * testsuite/std/ranges/access/empty.cc: Likewise.
1518         * testsuite/std/ranges/access/end.cc: Likewise.
1519         * testsuite/std/ranges/access/end_neg.cc: Likewise.
1520         * testsuite/std/ranges/access/lwg3467.cc: Likewise.
1521         * testsuite/std/ranges/access/p2602.cc: Likewise.
1522         * testsuite/std/ranges/access/rbegin.cc: Likewise.
1523         * testsuite/std/ranges/access/rend.cc: Likewise.
1524         * testsuite/std/ranges/access/size.cc: Likewise.
1525         * testsuite/std/ranges/access/size_neg.cc: Likewise.
1526         * testsuite/std/ranges/access/ssize.cc: Likewise.
1527         * testsuite/std/ranges/adaptors/100479.cc: Likewise.
1528         * testsuite/std/ranges/adaptors/100577.cc: Likewise.
1529         * testsuite/std/ranges/adaptors/93978.cc: Likewise.
1530         * testsuite/std/ranges/adaptors/95322.cc: Likewise.
1531         * testsuite/std/ranges/adaptors/99433.cc: Likewise.
1532         * testsuite/std/ranges/adaptors/all.cc: Likewise.
1533         * testsuite/std/ranges/adaptors/common.cc: Likewise.
1534         * testsuite/std/ranges/adaptors/conditionally_borrowed.cc:
1535         Likewise.
1536         * testsuite/std/ranges/adaptors/counted.cc: Likewise.
1537         * testsuite/std/ranges/adaptors/detail/copyable_box.cc:
1538         Likewise.
1539         * testsuite/std/ranges/adaptors/drop.cc: Likewise.
1540         * testsuite/std/ranges/adaptors/drop_while.cc: Likewise.
1541         * testsuite/std/ranges/adaptors/elements.cc: Likewise.
1542         * testsuite/std/ranges/adaptors/filter.cc: Likewise.
1543         * testsuite/std/ranges/adaptors/join.cc: Likewise.
1544         * testsuite/std/ranges/adaptors/lazy_split.cc: Likewise.
1545         * testsuite/std/ranges/adaptors/lazy_split_neg.cc: Likewise.
1546         * testsuite/std/ranges/adaptors/lwg3286.cc: Likewise.
1547         * testsuite/std/ranges/adaptors/lwg3313_neg.cc: Likewise.
1548         * testsuite/std/ranges/adaptors/lwg3325_neg.cc: Likewise.
1549         * testsuite/std/ranges/adaptors/lwg3406.cc: Likewise.
1550         * testsuite/std/ranges/adaptors/p1739.cc: Likewise.
1551         * testsuite/std/ranges/adaptors/p2281.cc: Likewise.
1552         * testsuite/std/ranges/adaptors/p2770r0.cc: Likewise.
1553         * testsuite/std/ranges/adaptors/reverse.cc: Likewise.
1554         * testsuite/std/ranges/adaptors/sizeof.cc: Likewise.
1555         * testsuite/std/ranges/adaptors/split.cc: Likewise.
1556         * testsuite/std/ranges/adaptors/take.cc: Likewise.
1557         * testsuite/std/ranges/adaptors/take_while.cc: Likewise.
1558         * testsuite/std/ranges/adaptors/transform.cc: Likewise.
1559         * testsuite/std/ranges/empty_view.cc: Likewise.
1560         * testsuite/std/ranges/headers/ranges/synopsis.cc: Likewise.
1561         * testsuite/std/ranges/iota/difference_type.cc: Likewise.
1562         * testsuite/std/ranges/iota/iota_view.cc: Likewise.
1563         * testsuite/std/ranges/iota/iterator.cc: Likewise.
1564         * testsuite/std/ranges/iota/lwg3292_neg.cc: Likewise.
1565         * testsuite/std/ranges/iota/max_size_type.cc: Likewise.
1566         * testsuite/std/ranges/istream_view.cc: Likewise.
1567         * testsuite/std/ranges/p2259.cc: Likewise.
1568         * testsuite/std/ranges/p2325.cc: Likewise.
1569         * testsuite/std/ranges/p2367.cc: Likewise.
1570         * testsuite/std/ranges/range.cc: Likewise.
1571         * testsuite/std/ranges/refinements.cc: Likewise.
1572         * testsuite/std/ranges/safe_range.cc: Likewise.
1573         * testsuite/std/ranges/safe_range_types.cc: Likewise.
1574         * testsuite/std/ranges/single_view.cc: Likewise.
1575         * testsuite/std/ranges/sized.cc: Likewise.
1576         * testsuite/std/ranges/subrange/1.cc: Likewise.
1577         * testsuite/std/ranges/subrange/97512.cc: Likewise.
1578         * testsuite/std/ranges/subrange/constexpr.cc: Likewise.
1579         * testsuite/std/ranges/subrange/lwg3282_neg.cc: Likewise.
1580         * testsuite/std/ranges/subrange/lwg3286.cc: Likewise.
1581         * testsuite/std/ranges/subrange/lwg3433.cc: Likewise.
1582         * testsuite/std/ranges/subrange/sizeof.cc: Likewise.
1583         * testsuite/std/ranges/subrange/tuple_like.cc: Likewise.
1584         * testsuite/std/ranges/view.cc: Likewise.
1586 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
1588         * testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc:
1589         Remove dg-options.
1590         * testsuite/23_containers/span/contiguous_range_neg.cc:
1591         Likewise.
1592         * testsuite/23_containers/span/everything.cc: Likewise.
1594 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
1596         * testsuite/24_iterators/reverse_iterator/100639.cc: Remove
1597         dg-options and add dg-add-options strict_std.
1598         * testsuite/std/ranges/iota/93267.cc: Likewise.
1599         * testsuite/std/ranges/iota/96042.cc: Likewise.
1600         * testsuite/std/ranges/iota/size.cc: Likewise.
1601         * testsuite/std/ranges/subrange/96042.cc: Likewise.
1603 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
1605         * testsuite/tr1/5_numerical_facilities/special_functions/07_conf_hyperg/compile_cxx17.cc:
1606         Replace dg-options -std=c++17 with dg-add-options strict_std.
1607         * testsuite/tr1/5_numerical_facilities/special_functions/17_hyperg/compile_cxx17.cc:
1608         Likewise.
1610 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
1612         * testsuite/23_containers/deque/48101-2_neg.cc: Replace
1613         dg-options with target selector.
1614         * testsuite/23_containers/forward_list/48101-2_neg.cc: Likewise.
1615         * testsuite/23_containers/list/48101-2_neg.cc: Likewise.
1616         * testsuite/23_containers/map/48101-2_neg.cc: Likewise.
1617         * testsuite/23_containers/map/48101_neg.cc: Likewise.
1618         * testsuite/23_containers/multimap/48101-2_neg.cc: Likewise.
1619         * testsuite/23_containers/multimap/48101_neg.cc: Likewise.
1620         * testsuite/23_containers/multiset/48101-2_neg.cc: Likewise.
1621         * testsuite/23_containers/set/48101-2_neg.cc: Likewise.
1622         * testsuite/23_containers/unordered_map/48101-2_neg.cc:
1623         Likewise.
1624         * testsuite/23_containers/unordered_multimap/48101-2_neg.cc:
1625         Likewise.
1626         * testsuite/23_containers/unordered_multiset/48101-2_neg.cc:
1627         Likewise.
1628         * testsuite/23_containers/unordered_set/48101-2_neg.cc:
1629         Likewise.
1630         * testsuite/23_containers/vector/48101-2_neg.cc: Likewise.
1632 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
1634         * doc/xml/manual/test.xml: Update documentation on running and
1635         writing tests.
1636         * doc/html/manual/test.html: Regenerate.
1637         * testsuite/Makefile.am: Add v3-use-std-list to site.tmp
1638         * testsuite/Makefile.in: Regenerate.
1639         * testsuite/lib/dg-options.exp (add_options_for_strict_std): New
1640         proc.
1641         * testsuite/lib/libstdc++.exp (search_for): New utility proc.
1642         (v3-dg-runtest): New proc to replace dg-runtest.
1643         * testsuite/libstdc++-dg/conformance.exp: Use v3-dg-runtest.
1645 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
1647         * testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc:
1648         Fix test to work for C++23 and C++26 too.
1650 2023-09-15  Patrick Palka  <ppalka@redhat.com>
1652         * include/std/bit: Include <concepts>.
1653         (byteswap): Use a type-constraint instead of enable_if_t
1654         inside the return type, and use std::integral.
1655         (_If_is_unsigned_integer): Replace with ...
1656         (__unsigned_integer): ... this.
1657         (rotl): Use a type-constraint instead of enable_if_t inside
1658         the return type.
1659         (countl_zero): Likewise.
1660         (countl_one): Likewise.
1661         (countr_zero): Likewise.
1662         (countr_one): Likewise.
1663         (popcount): Likewise.
1664         (has_single_bit): Likewise.
1665         (bit_ceil): Likewise.
1666         (bit_floor): Likewise.
1667         (bit_width): Likewise.
1669 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
1671         * include/std/variant (variant): Remove derivation from
1672         _Enable_default_constructor base class.
1673         (variant::variant()): Constrain.
1674         * testsuite/20_util/variant/default_ctor.cc: New test.
1676 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
1678         PR libstdc++/111172
1679         * include/std/variant (get<T>): Remove !is_void static
1680         assertions.
1682 2023-09-15  Jonathan Wakely  <jwakely@redhat.com>
1684         * include/bits/version.def (to_chars): Define new value for
1685         C++26.
1686         * include/bits/version.h: Regenerate.
1687         * include/std/charconv (to_chars_result::operator bool): New
1688         function.
1689         (from_chars_result::operator bool): New function.
1690         * testsuite/20_util/to_chars/version.cc: Update expected value.
1691         * testsuite/20_util/from_chars/result.cc: New test.
1692         * testsuite/20_util/to_chars/result.cc: New test.
1694 2023-09-14  Jonathan Wakely  <jwakely@redhat.com>
1696         PR c++/111357
1697         * testsuite/20_util/integer_sequence/pr111357.cc: New test.
1699 2023-09-14  Jonathan Wakely  <jwakely@redhat.com>
1701         * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Use
1702         dg-additional-files. Remove @require@ and @diff@ comments.
1703         * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Likewise.
1704         * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Likewise.
1705         * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Likewise.
1706         * testsuite/lib/dg-options.exp (v3_additional_files): New
1707         global variable.
1708         (dg-additional-files): New proc.
1709         * testsuite/lib/libstdc++.exp (v3_target_compile): Copy
1710         additional files to test directory.
1712 2023-09-14  Jonathan Wakely  <jwakely@redhat.com>
1714         * include/experimental/io_context (io_context) [!_GLIBCXX_HAS_GTHREADS]:
1715         Use a plain integer for _M_work_count for single-threaded
1716         targets.
1717         * include/experimental/memory_resource (__get_default_resource)
1718         [!_GLIBCXX_HAS_GTHREADS]: Use unsynchronized type for
1719         single-threaded targets.
1720         * src/c++17/default_resource.h: Adjust preprocessor conditions
1721         to match memory_resource.cc.
1722         * src/c++17/memory_resource.cc [!_GLIBCXX_HAS_GTHREADS]
1723         (atomic_mem_res): Use unsynchronized type for single-threaded
1724         targets.
1726 2023-09-14  Christophe Lyon  <christophe.lyon@linaro.org>
1728         * testsuite/29_atomics/atomic/compare_exchange_padding.cc: Likewise.
1729         * testsuite/29_atomics/atomic/cons/value_init.cc: Likewise.
1730         * testsuite/29_atomics/atomic_float/value_init.cc: Likewise.
1731         * testsuite/29_atomics/atomic_integral/cons/value_init.cc: Likewise.
1732         * testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc: Likewise.
1733         * testsuite/29_atomics/atomic_ref/generic.cc: Likewise.
1734         * testsuite/29_atomics/atomic_ref/integral.cc: Likewise.
1735         * testsuite/29_atomics/atomic_ref/pointer.cc: Likewise.
1737 2023-09-14  François Dumont  <fdumont@gcc.gnu.org>
1739         * testsuite/19_diagnostics/stacktrace/synopsis.cc: Add
1740         { dg-require-normal-namespace "" }.
1742 2023-09-13  François Dumont  <fdumont@gcc.gnu.org>
1744         * include/std/format (std::__format::_Arg_store): Explicit version
1745         namespace on make_format_args friend declaration.
1747 2023-09-12  Patrick Palka  <ppalka@redhat.com>
1749         PR libstdc++/111327
1750         * include/std/functional (_GLIBCXX_NOT_FN_CALL_OP): Also define
1751         a deleted fallback operator() overload.  Constrain both the
1752         enabled and deleted overloads accordingly.
1753         * testsuite/20_util/function_objects/not_fn/111327.cc: New test.
1755 2023-09-12  Patrick Palka  <ppalka@redhat.com>
1757         PR libstdc++/111327
1758         * include/std/functional (_Bind_front::operator()): Add deleted
1759         fallback overloads for each const/ref qualifier pair.  Give the
1760         enabled overloads dummy constraints to make each one more
1761         specialized than the corresponding deleted overload.
1762         * testsuite/20_util/function_objects/bind_front/111327.cc: New test.
1764 2023-09-12  Patrick Palka  <ppalka@redhat.com>
1766         * include/std/functional (_Bind_front0): Remove.
1767         (_Bind_front_t): Adjust.
1769 2023-09-12  Jonathan Wakely  <jwakely@redhat.com>
1771         * python/libstdcxx/v6/printers.py: Reformat.
1772         * python/libstdcxx/v6/xmethods.py: Likewise.
1774 2023-09-11  Jonathan Wakely  <jwakely@redhat.com>
1776         * src/c++11/debug.cc (acquire_sequence_ptr_for_lock): New
1777         function.
1778         (reset_sequence_ptr): New function.
1779         (_Safe_iterator_base::_M_detach)
1780         (_Safe_local_iterator_base::_M_detach): Replace bare atomic_load
1781         with acquire_sequence_ptr_for_lock.
1782         (_Safe_iterator_base::_M_reset): Replace bare atomic_store with
1783         reset_sequence_ptr.
1785 2023-09-11  Jonathan Wakely  <jwakely@redhat.com>
1787         * src/c++11/Makefile.am: Add new file.
1788         * src/c++11/Makefile.in: Regenerate.
1789         * src/c++11/debug.cc (__glibcxx_assert_fail): Move to ...
1790         * src/c++11/assert_fail.cc: New file.
1792 2023-09-11  Ken Matsui  <kmatsui@gcc.gnu.org>
1794         * include/bits/c++config (_GLIBCXX_HAS_BUILTIN): Do not undef.
1795         (_GLIBCXX_USE_BUILTIN_TRAIT): Define.
1797 2023-09-11  Jonathan Wakely  <jwakely@redhat.com>
1799         * include/bits/version.def (__cpp_lib_formatters): Define.
1800         * include/bits/version.h: Regenerate.
1801         * include/std/stacktrace (formatter<stacktrace_entry>)
1802         (formatter<basic_stacktrace<Alloc>>): Define.
1803         * include/std/thread (formatter<thread::id, charT>): Define.
1804         * testsuite/19_diagnostics/stacktrace/output.cc: New test.
1805         * testsuite/19_diagnostics/stacktrace/synopsis.cc: Add
1806         std::formatter specializations.
1807         * testsuite/19_diagnostics/stacktrace/version.cc: Check
1808         __cpp_lib_formatters macro.
1809         * testsuite/30_threads/thread/id/hash.cc: Remove gthreads
1810         dependency.
1811         * testsuite/30_threads/thread/id/operators.cc: Likewise.
1812         * testsuite/30_threads/thread/id/operators_c++20.cc: Likewise.
1813         * testsuite/30_threads/thread/id/output.cc: New test.
1815 2023-09-11  Pekka Seppänen  <pexu@gcc.mail.kapsi.fi>
1817         * src/c++11/cow-locale_init.cc: Add [[maybe_unused]] attribute.
1818         * src/c++17/fs_path.cc (path::_S_convert_loc): Likewise.
1819         * src/filesystem/path.cc (path::_S_convert_loc): Likewise.
1821 2023-09-08  Jonathan Wakely  <jwakely@redhat.com>
1823         * acinclude.m4 (GLIBCXX_CONFIGURE): Add c++23 directory.
1824         * configure: Regenerate.
1825         * doc/html/manual/*: Regenerate.
1826         * doc/xml/manual/using.xml: Update documentation on linking.
1827         * include/std/stacktrace: Remove declarations of libbacktrace
1828         APIs.
1829         (stacktrace_entry::_S_err_handler, stacktrace_entry::_S_init):
1830         Remove.
1831         (stacktrace_entry::_Info): New class.
1832         (stacktrace_entry::_M_get_info): Use _Info.
1833         (__stacktrace_impl): New class.
1834         (basic_stacktrace): Derive from __stacktrace_impl.
1835         (basic_stacktrace::current): Use __stacktrace_impl::_S_current.
1836         * scripts/testsuite_flags.in: Adjust LDFLAGS to find
1837         libstdc++exp instead of libstdc++_libbacktrace.
1838         * src/Makefile.am (SUBDIRS): Add c++23 directory.
1839         * src/Makefile.in: Regenerate.
1840         * src/c++20/Makefile.am: Fix comment.
1841         * src/c++20/Makefile.in: Regenerate.
1842         * src/c++23/Makefile.am: New file.
1843         * src/c++23/Makefile.in: New file.
1844         * src/c++23/stacktrace.cc: New file with definitions of
1845         stacktrace_entry::_Info and __stacktrace_impl members.
1846         * src/experimental/Makefile.am: Use LIBADD to include other
1847         libraries.
1848         * src/experimental/Makefile.in: Regenerate.
1849         * src/libbacktrace/Makefile.am: Use noinst_LTLIBRARIES.
1850         * src/libbacktrace/Makefile.in: Regenerate.
1851         * testsuite/19_diagnostics/stacktrace/current.cc: Adjust
1852         dg-options to use -lstdc++exp.
1853         * testsuite/19_diagnostics/stacktrace/entry.cc: Likewise.
1854         * testsuite/19_diagnostics/stacktrace/stacktrace.cc: Likewise.
1855         * testsuite/23_containers/vector/debug/assign4_backtrace_neg.cc:
1856         Likewise.
1858 2023-09-08  Alexey Lapshin  <alexey.lapshin@espressif.com>
1860         * src/libbacktrace/Makefile.am: Remove -Werror.
1861         * src/libbacktrace/Makefile.in: Regenerate.
1863 2023-09-08  Jonathan Wakely  <jwakely@redhat.com>
1865         * testsuite/Makefile.am (check-DEJAGNU): Use @ in recipe.
1866         * testsuite/Makefile.in: Regenerate.
1868 2023-09-08  Yang Yujie  <yangyujie@loongson.cn>
1870         * configure.host: Register t-loongarch in tmake_file.
1871         * config/cpu/loongarch/t-loongarch: New file.  Manually refresh
1872         MULTISUBDIR with $(shell $(CXX) --print-multi-directory).
1874 2023-09-07  Bruno Victal  <mirai@makinata.eu>
1876         * acinclude.m4: Update docbook xsl URI.
1877         * configure: Regenerate.
1879 2023-09-07  Bruno Victal  <mirai@makinata.eu>
1881         * doc/Makefile.am: Fix 'doc-install-info' rule.
1882         Fix typo in commment.
1883         * doc/Makefile.in: Regenerate.
1885 2023-09-07  Jonathan Wakely  <jwakely@redhat.com>
1887         * testsuite/27_io/filesystem/path/concat/94063.cc: Simplify
1888         dg-do target selector.
1890 2023-09-07  Jonathan Wakely  <jwakely@redhat.com>
1892         * testsuite/config/default.exp: Remove trailing whitespace.
1893         * testsuite/lib/dg-options.exp: Likewise.
1894         * testsuite/lib/prune.exp: Likewise.
1895         * testsuite/libstdc++-abi/abi.exp: Likewise.
1896         * testsuite/libstdc++-dg/conformance.exp: Likewise.
1897         * testsuite/libstdc++-prettyprinters/prettyprinters.exp:
1898         Likewise.
1899         * testsuite/libstdc++-xmethods/xmethods.exp: Likewise.
1900         * testsuite/lib/libstdc++.exp: Likewise.
1901         (check_v3_target_c_std): Fix filename for temporary source file.
1903 2023-09-07  Jonathan Wakely  <jwakely@redhat.com>
1905         * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for mkdir,
1906         chmod, chdir, and getcwd.
1907         * config.h.in: Regenerate.
1908         * configure: Regenerate.
1909         * src/c++17/fs_ops.cc (create_dir): Use USE_MKDIR macro.
1910         (fs::current_path): Use USE_GETCWD and USE_CHDIR macros.
1911         (fs::permissions): Use USE_CHMOD macro.
1912         * src/filesystem/ops-common.h [FILESYSTEM_IS_WINDOWS]
1913         (chmod, mkdir, getcwd, chdir): Define new macros.
1914         [FILESYSTEM_IS_WINDOWS] (chmod, mkdir, getcwd, chdir): Use
1915         new macros.
1916         * src/filesystem/ops.cc (create_dir): Use USE_MKDIR macro.
1917         (fs::current_path): Use USE_GETCWD and USE_CHDIR macros.
1918         (fs::permissions): Use USE_CHMOD macro.
1920 2023-09-07  Jonathan Wakely  <jwakely@redhat.com>
1922         * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Disable by default
1923         for avr.
1924         * configure: Regenerate.
1926 2023-09-07  Jonathan Wakely  <jwakely@redhat.com>
1928         * testsuite/23_containers/unordered_map/operations/1.cc: Add
1929         dg-options for C++20 mode.
1930         * testsuite/23_containers/unordered_multimap/operations/1.cc:
1931         Likewise.
1932         * testsuite/23_containers/unordered_multiset/operations/1.cc:
1933         Likewise.
1934         * testsuite/23_containers/unordered_set/operations/1.cc:
1935         Likewise.
1936         * testsuite/std/time/parse.cc: Move dg-options before dg-do.
1938 2023-09-07  Jonathan Wakely  <jwakely@redhat.com>
1940         * testsuite/std/ranges/access/cbegin.cc: Adjust for C++23
1941         compatibility.
1942         * testsuite/std/ranges/access/cdata.cc: Likewise.
1943         * testsuite/std/ranges/access/cend.cc: Likewise.
1944         * testsuite/std/ranges/access/crbegin.cc: Likewise.
1945         * testsuite/std/ranges/access/crend.cc: Likewise.
1946         * testsuite/std/ranges/adaptors/take.cc: Likewise.
1947         * testsuite/std/ranges/adaptors/take_while.cc: Likewise.
1948         * testsuite/std/ranges/adaptors/transform.cc: Likewise.
1950 2023-09-07  Jonathan Wakely  <jwakely@redhat.com>
1952         * include/bits/iterator_concepts.h (__imove::iter_move): Define
1953         poison pill as deleted for consistency.
1954         (__access::begin): Replace with a single declaration.
1955         * include/bits/ranges_base.h (__access::end, __access::rbegin)
1956         (__access::rend, __access::size): Likewise.
1957         * include/bits/version.def (ranges): Update value for C++23.
1958         * include/bits/version.h: Regenerate.
1959         * libsupc++/compare (__compare): Add missing poison pill
1960         overloads.
1961         * testsuite/std/ranges/version_c++23.cc: Adjust expected value
1962         of __cpp_lib_ranges.
1963         * testsuite/std/ranges/access/p2602.cc: New test.
1965 2023-09-07  Jonathan Wakely  <jwakely@redhat.com>
1967         * include/bits/iterator_concepts.h (ranges::__cust_imove):
1968         Rename to ranges::__imove.
1969         (_IMove): Rename to _IterMove.
1970         (ranges::__cust_iswap): Rename to ranges::__iswap.
1971         (ranges::__cust): Rename to ranges::_Cpo.
1972         (ranges::__cust_access): Rename to ranges::__access.
1973         * include/bits/ranges_base.h (ranges::__cust_access): Rename to
1974         ranges::__access.
1975         (ranges::__cust): Rename to ranges::_Cpo.
1976         * include/std/concepts (ranges::__cust_swap):  Rename to
1977         ranges::__swap.
1978         (ranges::__cust): Rename to ranges::_Cpo.
1979         * libsupc++/compare (__cmp_cust): Rename to __compare.
1980         (__cmp_algo): Rename to _Cpo.
1982 2023-09-07  Jonathan Wakely  <jwakely@redhat.com>
1984         * include/bits/version.def (ranges): Update value.
1985         * include/bits/version.h: Regenerate.
1986         * include/std/ranges (__detail::__boxable): Use
1987         move_constructible instead of copy_constructible for C++23.
1988         (__detail::__box<T>): Adjust constraints for partial
1989         specialization.
1990         (single_view, transform_view): Use __box_constructible instead
1991         of copy_constructible in constraints.
1992         (zip_transform_view, adjacent_transform_view, repeat_view): Use
1993         move_constructible instead of copy_constructible in constraints.
1994         * testsuite/std/ranges/adaptors/adjacent_transform/1.cc: Check
1995         construction from move-only argument.
1996         * testsuite/std/ranges/adaptors/transform.cc: Likewise.
1997         * testsuite/std/ranges/repeat/1.cc: Likewise.
1998         * testsuite/std/ranges/single_view.cc: Likewise.
1999         * testsuite/std/ranges/zip_transform/1.cc: Likewise.
2000         * testsuite/std/ranges/version_c++23.cc: Adjust expected value
2001         of __cpp_lib_ranges.
2003 2023-09-07  Jonathan Wakely  <jwakely@redhat.com>
2005         * testsuite/util/testsuite_iterators.h (is_customization_point_object):
2006         Remove parameter name.
2008 2023-09-06  Jonathan Wakely  <jwakely@redhat.com>
2010         * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Disable by default
2011         for freestanding.
2012         * configure: Regenerate.
2014 2023-09-04  Christophe Lyon  <christophe.lyon@linaro.org>
2016         Revert
2017         2023-09-04  Christophe Lyon  <christophe.lyon@linaro.org>
2019         PR libstdc++/111238
2020         * configure: Regenerate.
2021         * configure.ac: Call GLIBCXX_CHECK_LINKER_FEATURES in cross,
2022         non-Canadian builds.
2024 2023-09-04  Christophe Lyon  <christophe.lyon@linaro.org>
2026         PR libstdc++/111238
2027         * configure: Regenerate.
2028         * configure.ac: Call GLIBCXX_CHECK_LINKER_FEATURES in cross,
2029         non-Canadian builds.
2031 2023-09-04  Jonathan Wakely  <jwakely@redhat.com>
2033         * testsuite/26_numerics/complex/literals/types.cc: Remove
2034         dg-options and add target selector instead.
2036 2023-09-04  Jonathan Wakely  <jwakely@redhat.com>
2038         * testsuite/tr1/6_containers/utility/pair.cc: Remove dg-options
2039         and qualify ambiguous calls to get.
2040         * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Adjust
2041         expected result for std::pow(float, int) as per DR 550.
2043 2023-09-04  Jonathan Wakely  <jwakely@redhat.com>
2045         * testsuite/20_util/auto_ptr/1.cc: Remove dg-options -std=c++03
2046         and add dg-warning for deprecation warnings.
2047         * testsuite/20_util/auto_ptr/2.cc: Likewise.
2048         * testsuite/20_util/auto_ptr/3.cc: Likewise.
2049         * testsuite/20_util/auto_ptr/3946.cc: Likewise.
2050         * testsuite/20_util/auto_ptr/4.cc: Likewise.
2051         * testsuite/20_util/auto_ptr/5.cc: Likewise.
2052         * testsuite/20_util/auto_ptr/6.cc: Likewise.
2053         * testsuite/20_util/auto_ptr/7.cc: Likewise.
2054         * testsuite/20_util/auto_ptr/assign_neg.cc: Likewise.
2055         * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc:
2056         Likewise.
2057         * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc:
2058         Likewise.
2059         * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc:
2060         Likewise.
2061         * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc:
2062         Likewise.
2063         * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
2064         Likewise.
2065         * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc:
2066         Likewise.
2067         * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc:
2068         Likewise.
2070 2023-09-04  Jonathan Wakely  <jwakely@redhat.com>
2072         PR libstdc++/26142
2073         * testsuite/23_containers/vector/26412-1.cc: Moved to...
2074         * testsuite/23_containers/vector/26142-1.cc: ...here.
2075         * testsuite/23_containers/vector/26412-2.cc: Moved to...
2076         * testsuite/23_containers/vector/26142-2.cc: ...here.
2078 2023-09-04  Jonathan Wakely  <jwakely@redhat.com>
2080         * testsuite/20_util/bitset/107037.cc: Add c++98_only selector.
2081         * testsuite/26_numerics/complex/56111.cc: Likewise.
2083 2023-09-04  Jonathan Wakely  <jwakely@redhat.com>
2085         * testsuite/23_containers/deque/requirements/explicit_instantiation/2.cc:
2086         Add dg-options to restrict the test to C++98 mode.
2087         * testsuite/23_containers/list/requirements/explicit_instantiation/2.cc:
2088         Likewise.
2090 2023-09-04  Jonathan Wakely  <jwakely@redhat.com>
2092         * testsuite/20_util/expected/bad.cc: Add missing target
2093         selector.
2095 2023-09-01  Jonathan Wakely  <jwakely@redhat.com>
2097         * testsuite/25_algorithms/copy/debug/constexpr_neg.cc: Adjust
2098         expected errors.
2099         * testsuite/25_algorithms/equal/debug/constexpr_neg.cc:
2100         Likewise.
2102 2023-09-01  Jonathan Wakely  <jwakely@redhat.com>
2104         * testsuite/27_io/filesystem/iterators/91067.cc: Add
2105         -Wno-self-move to options.
2106         * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise.
2108 2023-09-01  Vladimir Palevich  <palevichva@gmail.com>
2110         PR libstdc++/110879
2111         * include/bits/vector.tcc (_M_realloc_insert): End guard
2112         lifetime just before assignment to class members.
2113         (_M_default_append): Likewise.
2115 2023-09-01  Jonathan Wakely  <jwakely@redhat.com>
2117         * src/c++17/fs_ops.cc (fs::absolute) [FILESYSTEM_IS_WINDOWS]:
2118         Use __resize_and_overwrite to fill buffer.
2119         (fs::read_symlink) [HAVE_READLINK]: Likewise.
2120         * src/filesystem/ops-common.h (get_temp_directory_from_env)
2121         [FILESYSTEM_IS_WINDOWS]: Likewise.
2123 2023-09-01  Jonathan Wakely  <jwakely@redhat.com>
2125         PR libstdc++/111077
2126         * include/bits/atomic_base.h (__atomic_impl::__compare_exchange):
2127         Add _AtomicRef non-type template parameter and use a loop if it
2128         is true.
2129         (__atomic_impl::compare_exchange_weak): Add _AtomicRef NTTP.
2130         (__atomic_impl::compare_exchange_strong): Likewise.
2131         (atomic_ref::compare_exchange_weak): Use true for NTTP.
2132         (atomic_ref::compare_exchange_strong): Use true for NTTP.
2133         * testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc:
2134         Fix test to not rely on atomic_ref::load() to return an object
2135         with padding preserved.
2137 2023-09-01  Jonathan Wakely  <jwakely@redhat.com>
2139         * testsuite/27_io/filesystem/path/108636.cc: Add dg-require for
2140         filesystem support.
2142 2023-09-01  Jonathan Wakely  <jwakely@redhat.com>
2144         * src/c++20/tzdb.cc (tzdb::current_zone): Check configure macros
2145         for POSIX readlink before using filesystem::read_symlink.
2147 2023-09-01  Jonathan Wakely  <jwakely@redhat.com>
2149         * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Default to yes.
2150         * configure: Regenerate.
2152 2023-09-01  Jonathan Wakely  <jwakely@redhat.com>
2154         * include/bits/chrono_io.h (_Parser::operator()): Set failbit
2155         early if invalid values are read when _M_need & _TimeOfDay is
2156         non-zero.
2157         * testsuite/std/time/parse.cc: Check that "25:59" cannot be
2158         parsed for "%H:%M".
2160 2023-09-01  Jonathan Wakely  <jwakely@redhat.com>
2162         PR libstdc++/111162
2163         * include/bits/chrono_io.h (_Parser::Operator()): Check %C
2164         values are in range of year::min() to year::max().
2165         * testsuite/std/time/parse.cc: Check out of range centuries.
2167 2023-09-01  Jonathan Wakely  <jwakely@redhat.com>
2169         * include/std/format (__format::_Sink::_M_reset): Change second
2170         argument from iterator to offset.
2172 2023-08-24  Paul Dreik  <gccpatches@pauldreik.se>
2174         PR libstdc++/111102
2175         * testsuite/std/format/string.cc: Check wide character format
2176         strings with out-of-range widths.
2178 2023-08-24  Paul Dreik  <gccpatches@pauldreik.se>
2180         PR libstdc++/111102
2181         * include/std/format (__format::__parse_integer): Check for
2182         non-null pointer.
2184 2023-08-24  Jonathan Wakely  <jwakely@redhat.com>
2186         * testsuite/std/format/functions/format_to.cc: Avoid warning for
2187         unused variables.
2189 2023-08-24  Jonathan Wakely  <jwakely@redhat.com>
2191         * include/std/atomic: Add comment to #ifdef and fix indentation.
2192         * include/std/ostream: Check __glibcxx_syncbuf instead of
2193         __cplusplus and _GLIBCXX_HOSTED.
2194         * include/std/thread: Add comment to #ifdef.
2196 2023-08-24  Jonathan Wakely  <jwakely@redhat.com>
2198         * include/bits/version.def (__cpp_lib_ratio): Define.
2199         * include/bits/version.h: Regenerate.
2200         * include/std/ratio (quecto, ronto, yocto, zepto)
2201         (zetta, yotta, ronna, quetta): Define.
2202         * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Adjust
2203         dg-error line numbers.
2205 2023-08-24  Jonathan Wakely  <jwakely@redhat.com>
2207         * python/libstdcxx/v6/printers.py (StdLocalePrinter): New
2208         printer class.
2209         * testsuite/libstdc++-prettyprinters/locale.cc: New test.
2211 2023-08-24  Jonathan Wakely  <jwakely@redhat.com>
2213         PR libstdc++/110944
2214         * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Do
2215         not show template arguments.
2216         (StdVariantPrinter): Likewise.
2217         * testsuite/libstdc++-prettyprinters/compat.cc: Adjust expected
2218         output.
2219         * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
2220         * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
2222 2023-08-23  François Dumont  <fdumont@gcc.gnu.org>
2224         * testsuite/util/replacement_memory_operators.h
2225         (counter::scope): New, capture and reset counter count at construction and
2226         restore it at destruction.
2227         (counter::check_new): Add scope instantiation.
2228         * testsuite/23_containers/unordered_map/96088.cc (main):
2229         Add counter::scope instantiation.
2230         * testsuite/23_containers/unordered_multimap/96088.cc (main): Likewise.
2231         * testsuite/23_containers/unordered_multiset/96088.cc (main): Likewise.
2232         * testsuite/23_containers/unordered_set/96088.cc (main): Likewise.
2233         * testsuite/ext/malloc_allocator/deallocate_local.cc (main): Likewise.
2234         * testsuite/ext/new_allocator/deallocate_local.cc (main): Likewise.
2235         * testsuite/ext/throw_allocator/deallocate_local.cc (main): Likewise.
2236         * testsuite/ext/pool_allocator/allocate_chunk.cc (started): New global.
2237         (operator new(size_t)): Check started.
2238         (main): Set/Unset started.
2239         * testsuite/17_intro/no_library_allocation.cc: New test case.
2241 2023-08-21  Jonathan Wakely  <jwakely@redhat.com>
2243         * testsuite/18_support/nested_exception/rethrow_if_nested-term.cc:
2244         Call std::set_terminate before throwing the nested exception.
2246 2023-08-18  Jonathan Wakely  <jwakely@redhat.com>
2248         PR target/111060
2249         * include/std/format (formatter): Only define specializations
2250         for 16-bit floating-point types for C++23.
2251         * include/std/limits (numeric_limits): Likewise.
2253 2023-08-18  Jonathan Wakely  <jwakely@redhat.com>
2255         * include/bits/chrono_io.h (operator<<): Make uses of wide
2256         strings with streams and std::format type-dependent on _CharT.
2257         * include/std/format [!_GLIBCXX_USE_WCHAR_T] Do not use
2258         __to_wstring_numeric.
2260 2023-08-18  Jonathan Wakely  <jwakely@redhat.com>
2262         * include/bits/chrono_io.h (operator<<): Use __format_context.
2263         * include/std/format (__format::__format_context): New alias
2264         template.
2265         [!_GLIBCXX_USE_WCHAR_T] (wformat_args, make_wformat_arg):
2266         Disable.
2268 2023-08-17  Jonathan Wakely  <jwakely@redhat.com>
2270         Revert:
2271         2023-08-17  Jonathan Wakely  <jwakely@redhat.com>
2273         * config/locale/generic/c_locale.cc (__convert_to_v): Reuse
2274         double overload for long double if possible.
2276 2023-08-17  Jonathan Wakely  <jwakely@redhat.com>
2278         * src/c++20/tzdb.cc (tzdata_file, leaps_file): Change type to
2279         std::string_view.
2281 2023-08-17  Jonathan Wakely  <jwakely@redhat.com>
2283         * config/locale/generic/c_locale.cc (__convert_to_v): Reuse
2284         double overload for long double if possible.
2286 2023-08-17  Jonathan Wakely  <jwakely@redhat.com>
2288         * src/c++98/localename.cc (is_C_locale): New function.
2289         (locale::locale(const char*)): Use is_C_locale.
2291 2023-08-17  Jonathan Wakely  <jwakely@redhat.com>
2293         PR libstdc++/110945
2294         * include/bits/basic_string.h (basic_string::assign(Iter, Iter)):
2295         Dispatch to _M_replace or move assignment from a temporary,
2296         based on the iterator type.
2298 2023-08-17  Jonathan Wakely  <jwakely@redhat.com>
2300         * include/std/format (formatter): Add partial specializations
2301         for extended floating-point types.
2302         * testsuite/std/format/functions/format.cc: Move test_float128()
2303         to ...
2304         * testsuite/std/format/formatter/ext_float.cc: New test.
2306 2023-08-17  Jonathan Wakely  <jwakely@redhat.com>
2308         * include/bits/c++config (__gnu_cxx::__bfloat16_t): Define
2309         whenever __BFLT16_DIG__ is defined, not only for C++23.
2310         * include/std/limits (numeric_limits<bfloat16_t>): Likewise.
2311         (numeric_limits<_Float16>, numeric_limits<_Float32>)
2312         (numeric_limits<_Float64>): Likewise for other extended
2313         floating-point types.
2315 2023-08-17  Jonathan Wakely  <jwakely@redhat.com>
2317         * include/experimental/internet (address_v4::to_string): Remove
2318         unused parameter name.
2320 2023-08-17  Jonathan Wakely  <jwakely@redhat.com>
2322         * libsupc++/compare (__cmp_cat::__unseq): Make ctor consteval.
2323         * testsuite/18_support/comparisons/categories/zero_neg.cc: Prune
2324         excess errors caused by invalid consteval calls.
2326 2023-08-17  Jonathan Wakely  <jwakely@redhat.com>
2328         * include/bits/chrono_io.h (__units_suffix_misc): Remove.
2329         (__units_suffix): Return a known suffix as string view, do not
2330         write unknown suffixes to a buffer.
2331         (__fmt_units_suffix): New function that formats the suffix using
2332         std::format_to.
2333         (operator<<, __chrono_formatter::_M_q): Use __fmt_units_suffix.
2334         (__chrono_formatter::_M_Z): Correct lifetime of wstring.
2336 2023-08-17  Jonathan Wakely  <jwakely@redhat.com>
2338         * include/std/format [_GLIBCXX_USE_WCHAR_T]: Guard all wide
2339         string formatters with this macro.
2340         (__formatter_int::_M_format_int, __formatter_fp::format)
2341         (formatter<const void*, C>::format): Use __to_wstring_numeric
2342         instead of std::ctype::widen.
2343         (__formatter_fp::_M_localize): Use hardcoded wchar_t values
2344         instead of std::ctype::widen.
2345         * testsuite/std/format/functions/format.cc: Add more checks for
2346         wstring formatting of arithmetic types.
2348 2023-08-17  Jonathan Wakely  <jwakely@redhat.com>
2350         * include/bits/basic_string.h (to_string(floating-point-type)):
2351         Implement using std::to_chars for C++26.
2352         * include/bits/version.def (__cpp_lib_to_string): Define.
2353         * include/bits/version.h: Regenerate.
2354         * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
2355         Adjust expected result in C++26 mode.
2356         * testsuite/21_strings/basic_string/numeric_conversions/char/to_string.cc:
2357         Likewise.
2358         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/dr1261.cc:
2359         Likewise.
2360         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/to_wstring.cc:
2361         Likewise.
2362         * testsuite/21_strings/basic_string/numeric_conversions/char/to_string_float.cc:
2363         New test.
2364         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/to_wstring_float.cc:
2365         New test.
2366         * testsuite/21_strings/basic_string/numeric_conversions/version.cc:
2367         New test.
2369 2023-08-17  Jonathan Wakely  <jwakely@redhat.com>
2371         * include/bits/basic_string.h (to_string(integral-type)): Use
2372         resize_and_overwrite when available.
2373         (__to_wstring_numeric): New helper functions.
2374         (to_wstring): Use std::to_string then __to_wstring_numeric.
2375         * testsuite/21_strings/basic_string/numeric_conversions/char/to_string_int.cc:
2376         Remove check for no excess capacity.
2378 2023-08-17  Jonathan Wakely  <jwakely@redhat.com>
2380         * include/bits/basic_string.h (__resize_and_overwrite): New
2381         function.
2382         * include/bits/basic_string.tcc (__resize_and_overwrite): New
2383         function.
2384         (resize_and_overwrite): Simplify by using reserve instead of
2385         growing the string manually. Adjust for C++11 compatibility.
2386         * include/bits/cow_string.h (resize_and_overwrite): New
2387         function.
2388         (__resize_and_overwrite): New function.
2389         * include/bits/version.def (__cpp_lib_string_resize_and_overwrite):
2390         Do not depend on cxx11abi.
2391         * include/bits/version.h: Regenerate.
2392         * include/std/format (__formatter_fp::_S_resize_and_overwrite):
2393         Remove.
2394         (__formatter_fp::format, __formatter_fp::_M_localize): Use
2395         __resize_and_overwrite instead of _S_resize_and_overwrite.
2396         * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
2397         Adjust for C++11 compatibility when included by ...
2398         * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite_ext.cc:
2399         New test.
2401 2023-08-17  Patrick Palka  <ppalka@redhat.com>
2403         * include/bits/regex.h (regex_iterator::iterator_concept):
2404         Define for C++20 as per P2770R0.
2405         (regex_token_iterator::iterator_concept): Likewise.
2406         * include/std/ranges (__detail::__as_lvalue): Define.
2407         (join_view::_Iterator): Befriend join_view.
2408         (join_view::_Iterator::_M_satisfy): Use _M_get_outer
2409         instead of _M_outer.
2410         (join_view::_Iterator::_M_get_outer): Define.
2411         (join_view::_Iterator::_Iterator): Split constructor taking
2412         _Parent argument into two as per P2770R0.  Remove constraint on
2413         default constructor.
2414         (join_view::_Iterator::_M_outer): Make this data member present
2415         only when the underlying range is forward.
2416         (join_view::_Iterator::operator++): Use _M_get_outer instead of
2417         _M_outer.
2418         (join_view::_Iterator::operator--): Use __as_lvalue helper.
2419         (join_view::_Iterator::operator==): Adjust constraints as per
2420         P2770R0.
2421         (join_view::_Sentinel::__equal): Use _M_get_outer instead of
2422         _M_outer.
2423         (join_view::_M_outer): New data member when the underlying range
2424         is non-forward.
2425         (join_view::begin): Adjust definition as per P2770R0.
2426         (join_view::end): Likewise.
2427         (join_with_view::_M_outer_it): New data member when the
2428         underlying range is non-forward.
2429         (join_with_view::begin): Adjust definition as per P2770R0.
2430         (join_with_view::end): Likewise.
2431         (join_with_view::_Iterator::_M_outer_it): Make this data member
2432         present only when the underlying range is forward.
2433         (join_with_view::_Iterator::_M_get_outer): Define.
2434         (join_with_view::_Iterator::_Iterator): Split constructor
2435         taking _Parent argument into two as per P2770R0.  Remove
2436         constraint on default constructor.
2437         (join_with_view::_Iterator::_M_update_inner): Adjust definition
2438         as per P2770R0.
2439         (join_with_view::_Iterator::_M_get_inner): Likewise.
2440         (join_with_view::_Iterator::_M_satisfy): Adjust calls to
2441         _M_get_inner.  Use _M_get_outer instead of _M_outer_it.
2442         (join_with_view::_Iterator::operator==): Adjust constraints
2443         as per P2770R0.
2444         (join_with_view::_Sentinel::operator==): Use _M_get_outer
2445         instead of _M_outer_it.
2446         * testsuite/std/ranges/adaptors/p2770r0.cc: New test.
2448 2023-08-17  Patrick Palka  <ppalka@redhat.com>
2450         PR libstdc++/108827
2451         * include/std/ranges (__adaptor::_RangeAdaptorClosure):
2452         Convert into a CRTP class template.  Move hidden operator|
2453         friends into namespace scope and adjust their constraints.
2454         (__closure::__is_range_adaptor_closure_fn): Define.
2455         (__closure::__is_range_adaptor_closure): Define.
2456         (__adaptor::_Partial): Adjust use of _RangeAdaptorClosure.
2457         (__adaptor::_Pipe): Likewise.
2458         (views::_All): Likewise.
2459         (views::_Join): Likewise.
2460         (views::_Common): Likewise.
2461         (views::_Reverse): Likewise.
2462         (views::_Elements): Likewise.
2463         (views::_Adjacent): Likewise.
2464         (views::_AsRvalue): Likewise.
2465         (views::_Enumerate): Likewise.
2466         (views::_AsConst): Likewise.
2467         * testsuite/std/ranges/adaptors/all.cc: Reinstate assertion
2468         expecting that adding empty range adaptor closure objects to a
2469         pipeline doesn't increase the size of a pipeline.
2471 2023-08-17  Jonathan Wakely  <jwakely@redhat.com>
2473         * include/std/format (__format::_Pres_type): Add _Pres_F.
2474         (__formatter_fp::parse): Use _Pres_F for 'F'.
2475         (__formatter_fp::format): Set __upper for _Pres_F.
2476         * testsuite/std/format/functions/format.cc: Check formatting of
2477         infinity and NaN for each presentation type.
2479 2023-08-17  Jonathan Wakely  <jwakely@redhat.com>
2481         * include/Makefile.in: Regenerate.
2483 2023-08-17  Jonathan Wakely  <jwakely@redhat.com>
2485         * testsuite/24_iterators/move_iterator/p2520r0.cc: Add no_pch.
2486         * testsuite/std/format/functions/format.cc: Likewise.
2487         * testsuite/std/format/functions/format_c++23.cc: Likewise.
2489 2023-08-17  Jonathan Wakely  <jwakely@redhat.com>
2491         * testsuite/lib/dg-options.exp (add_options_for_no_pch): Remove
2492         any "-include bits/stdc++.h" from options and add the macro to
2493         the existing options instead of replacing them.
2495 2023-08-16  Jonathan Wakely  <jwakely@redhat.com>
2497         * include/bits/basic_string.tcc (resize_and_overwrite): Invoke
2498         the callable with the same size as resize_and_overwrite was
2499         called with.
2500         * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
2501         Check with small values for the new size.
2502         * testsuite/std/format/functions/format.cc: Check wide
2503         formatting of double values that produce small strings.
2504         * testsuite/std/format/functions/format_c++23.cc: New test.
2506 2023-08-16  Jonathan Wakely  <jwakely@redhat.com>
2508         * include/bits/version.def (stds): Update value for C++23.
2509         * include/bits/version.h: Regenerate.
2511 2023-08-16  Jonathan Wakely  <jwakely@redhat.com>
2513         * testsuite/25_algorithms/pstl/alg_sorting/set_difference.cc:
2514         Fix name of upstream file this was derived from.
2515         * testsuite/25_algorithms/pstl/alg_sorting/set_intersection.cc:
2516         Likewise.
2517         * testsuite/25_algorithms/pstl/alg_sorting/set_symmetric_difference.cc:
2518         Likewise.
2519         * testsuite/25_algorithms/pstl/alg_sorting/set_union.cc:
2520         Likewise.
2521         * testsuite/25_algorithms/pstl/alg_sorting/set_util.h: Likewise.
2523 2023-08-16  Arsen Arsenović  <arsen@aarsen.me>
2525         * libsupc++/typeinfo: Switch to bits/version.h for
2526         __cpp_lib_constexpr_typeinfo.
2527         * libsupc++/new: Switch to bits/version.h for
2528         __cpp_lib_{launder,hardware_interference_size,destroying_delete}.
2529         (launder): Guard behind __cpp_lib_launder.
2530         (hardware_destructive_interference_size)
2531         (hardware_constructive_interference_size): Guard behind
2532         __cpp_lib_hardware_interference_size.
2533         * libsupc++/exception: Switch to bits/version.h for
2534         __cpp_lib_uncaught_exceptions.
2535         (uncaught_exceptions): Guard behind __cpp_lib_uncaught_exceptions.
2536         * libsupc++/compare: Switch to bits/version.h for
2537         __cpp_lib_three_way_comparison.
2538         (three_way_comparable, three_way_comparable_with)
2539         (compare_three_way, weak_order, strong_order, partial_order):
2540         Guard behind __cpp_lib_three_way_comparison >= 201907L.
2541         * include/std/chrono: Drop __cpp_lib_chrono definition.
2542         * include/std/vector: Switch to bits/version.h for
2543         __cpp_lib_erase_if.
2544         (erase, erase_if): Guard behind __cpp_lib_erase_if.
2545         * include/std/variant: Switch to bits/version.h for
2546         __cpp_lib_variant.  Guard whole header behind that FTM.
2547         * include/std/utility: Switch to bits/version.h for
2548         __cpp_lib_{exchange_function,constexpr_algorithms,as_const},
2549         __cpp_lib_{integer_comparison_functions,to_underlying}, and
2550         __cpp_lib_unreachable.
2551         (exchange): Guard behind __cpp_lib_exchange_function.
2552         (cmp_equal, cmp_not_equal, cmp_less, cmp_greater, cmp_less_equal)
2553         (cmp_greater_equal, in_range): Guard behind
2554         __cpp_lib_integer_comparison_functions.
2555         (to_underlying): Guard behind __cpp_lib_to_underlying.
2556         (unreachable): Guard behind __cpp_lib_unreachable.
2557         * include/std/type_traits: Switch to bits/version.h for
2558         __cpp_lib_is_{null_pointer,final,nothrow_convertible,aggregate},
2559         __cpp_lib_is_{constant_evaluated,invocable,layout_compatible},
2560         __cpp_lib_is_{pointer_interconvertible,scoped_enum,swappable},
2561         __cpp_lib_{logical_traits,reference_from_temporary,remove_cvref},
2562         __cpp_lib_{result_of_sfinae,transformation_trait_aliases},
2563         __cpp_lib_{type_identity,type_trait_variable_templates},
2564         __cpp_lib_{unwrap_ref,void_t,integral_constant_callable},
2565         __cpp_lib_{bool_constant,bounded_array_traits}, and
2566         __cpp_lib_has_unique_object_representations.
2567         (integral_constant::operator()): Guard behind
2568         __cpp_lib_integral_constant_callable.
2569         (bool_constant): Guard behind __cpp_lib_bool_constant.
2570         (conjunction, disjunction, negation, conjunction_v, disjunction_v)
2571         (negation_v): Guard behind __cpp_lib_logical_traits.
2572         (is_null_pointer): Guard behind __cpp_lib_is_null_pointer.
2573         (is_final): Guard behind __cpp_lib_is_final.
2574         (is_nothrow_convertible, is_nothrow_convertible_v): Guard behind
2575         __cpp_lib_is_nothrow_convertible.
2576         (remove_const_t, remove_volatile_t, remove_cv_t)
2577         (add_const_t, add_volatile_t, add_cv_t): Guard behind
2578         __cpp_lib_transformation_trait_aliases.
2579         (void_t): Guard behind __cpp_lib_void_t.
2580         (is_swappable_with_v, is_nothrow_swappable_with_v)
2581         (is_swappable_with, is_nothrow_swappable_with): Guard behind
2582         __cpp_lib_is_swappable.
2583         (is_nothrow_invocable_r, is_invocable_r, invoke_result)
2584         (is_invocable, invoke_result_t): Guard behind
2585         __cpp_lib_is_invocable.
2586         (alignment_of_v, extent_v, has_virtual_destructor_v)
2587         (is_abstract_v, is_arithmetic_v, is_array_v)
2588         (is_assignable_v, is_base_of_v, is_class_v, is_compound_v)
2589         (is_constructible_v, is_const_v, is_convertible_v)
2590         (is_copy_assignable_v, is_copy_constructible_v)
2591         (is_default_constructible_v, is_destructible_v)
2592         (is_empty_v, is_enum_v, is_final_v, is_floating_point_v)
2593         (is_function_v, is_fundamental_v, is_integral_v)
2594         (is_invocable_r_v, is_invocable_v, is_literal_type_v)
2595         (is_lvalue_reference_v, is_member_function_pointer_v)
2596         (is_member_object_pointer_v, is_member_pointer_v)
2597         (is_move_assignable_v, is_move_constructible_v)
2598         (is_nothrow_assignable_v, is_nothrow_constructible_v)
2599         (is_nothrow_copy_assignable_v, is_nothrow_copy_constructible_v)
2600         (is_nothrow_default_constructible_v, is_nothrow_destructible_v)
2601         (is_nothrow_invocable_r_v, is_nothrow_invocable_v)
2602         (is_nothrow_move_assignable_v, is_nothrow_move_constructible_v)
2603         (is_null_pointer_v, is_object_v, is_pod_v, is_pointer_v)
2604         (is_polymorphic_v, is_reference_v, is_rvalue_reference_v)
2605         (is_same_v, is_scalar_v, is_signed_v, is_standard_layout_v)
2606         (is_trivially_assignable_v, is_trivially_constructible_v)
2607         (is_trivially_copyable_v, is_trivially_copy_assignable_v)
2608         (is_trivially_copy_constructible_v)
2609         (is_trivially_default_constructible_v)
2610         (is_trivially_destructible_v, is_trivially_move_assignable_v)
2611         (is_trivially_move_constructible_v, is_trivial_v, is_union_v)
2612         (is_unsigned_v, is_void_v, is_volatile_v, rank_v, as variadic):
2613         Guard behind __cpp_lib_type_trait_variable_templates.
2614         (has_unique_object_representations)
2615         (has_unique_object_representations_v): Guard behind
2616         __cpp_lib_has_unique_object_representation.
2617         (is_aggregate): Guard behind __cpp_lib_is_aggregate.
2618         (remove_cvref, remove_cvref_t): Guard behind
2619         __cpp_lib_remove_cvref.
2620         (type_identity, type_identity_t): Guard behind
2621         __cpp_lib_type_identity.
2622         (unwrap_reference, unwrap_reference_t, unwrap_ref_decay)
2623         (unwrap_ref_decay_t): Guard behind __cpp_lib_unwrap_ref.
2624         (is_bounded_array_v, is_unbounded_array_v, is_bounded_array)
2625         (is_unbounded_array): Guard behind __cpp_lib_bounded_array_traits.
2626         (is_scoped_enum, is_scoped_enum_v): Guard behind
2627         __cpp_lib_is_scoped_enum.
2628         (reference_constructs_from_temporary)
2629         (reference_constructs_from_temporary_v): Guard behind
2630         __cpp_lib_reference_from_temporary.
2631         * include/std/tuple: Switch to bits/version.h for
2632         __cpp_lib_{constexpr_tuple,tuple_by_type,apply_make_from_tuple}.
2633         (get<T>): Guard behind __cpp_lib_tuple_by_type.
2634         (apply): Guard behind __cpp_lib_apply.
2635         (make_from_tuple): Guard behind __cpp_lib_make_from_tuple.
2636         * include/std/syncstream: Switch to bits/version.h for
2637         __cpp_lib_syncbuf.  Guard header behind that FTM.
2638         * include/std/string_view: Switch to bits/version.h for
2639         __cpp_lib_{string_{view,contains},constexpr_string_view} and
2640         __cpp_lib_starts_ends_with.
2641         (basic_string_view::starts_with, basic_string_view::ends_with):
2642         Guard behind __cpp_lib_starts_ends_with.
2643         [C++23 && _GLIBCXX_HOSTED && !defined(__cpp_lib_string_contains)]:
2644         Assert as impossible ithout a bug in C++23.
2645         * include/std/string: Switch to bits/version.h for
2646         __cpp_lib_erase_if.
2647         (erase, erase_if): Guard behind __cpp_lib_erase_if.
2648         * include/std/thread: Switch to bits/version.h for
2649         __cpp_lib_jthread.
2650         * include/std/stop_token: Switch to bits/version.h for
2651         __cpp_lib_jthread.
2652         * include/std/spanstream: Switch to bits/version.h for
2653         __cpp_lib_spanstream.  Guard header behind that FTM.
2654         * include/std/span: Switch to bits/version.h for __cpp_lib_span.
2655         Guard header behind that FTM.
2656         * include/std/source_location: Switch to bits/version.h for
2657         __cpp_lib_source_location.  Guard header with that FTM.
2658         * include/std/shared_mutex: Switch to bits/version.h for
2659         __cpp_lib_shared{,_timed}_mutex.
2660         (shared_mutex): Guard behind __cpp_lib_shared_mutex.
2661         * include/std/semaphore: Switch to bits/version.h for
2662         __cpp_lib_semaphore.  Guard header behind that FTM.
2663         * include/std/ranges: Switch to bits/version.h for
2664         __cpp_lib_ranges_{zip,chunk{,_by},slide,join_with},
2665         __cpp_lib_ranges_{repeat_stride,cartesian_product,as_rvalue},
2666         and __cpp_lib_ranges_{as_const,enumerate,iota}.
2667         (ranges::zip et al, ranges::chunk et al, ranges::slide et al)
2668         (ranges::chunk_by et al, ranges::join_with et al)
2669         (ranges::stride et al, ranges::cartesian_product et al)
2670         (ranges::as_rvalue et al, ranges::as_const et al)
2671         (ranges::enumerate et al): Guard behind appropriate FTM.
2672         * include/std/optional: Switch to bits/version.h for
2673         __cpp_lib_optional.  Guard header behind that FTM.
2674         * include/std/numeric: Switch to bits/version.h for
2675         __cpp_lib_{gcd{,_lcm},lcm,constexpr_numeric,interpolate}
2676         and __cpp_lib_parallel_algorithm.
2677         (gcd, lcm): Guard behind __cpp_lib_gcd_lcm.
2678         (midpoint): Guard behind __cpp_lib_interpolate.
2679         * include/std/numbers: Switch to bits/version.h for
2680         __cpp_lib_math_constants.  Guard header behind that FTM.
2681         * include/std/mutex: Switch to bits/version.h for
2682         __cpp_lib_scoped_lock.
2683         (scoped_Lock): Guard behind __cpp_lib_scoped_lock.
2684         * include/std/memory_resource: Switch to bits/version.h for
2685         __cpp_lib_{polymorphic_allocator,memory_resource}.
2686         (synchronized_pool_resource): Guard behind
2687         __cpp_lib_memory_resource >= 201603L.
2688         (polymorphic_allocator): Guard behind
2689         __cpp_lib_polymorphic_allocator.
2690         * include/std/memory: Switch to bits/version.h for
2691         __cpp_lib_{parallel_algorithm,atomic_value_initialization}.
2692         * include/std/list: Switch to bits/version.h for
2693         __cpp_lib_erase_if.
2694         (erase, erase_if): Guard behind __cpp_lib_erase_if.
2695         * include/std/latch: Switch to bits/version.h for __cpp_lib_latch.
2696         Guard header behind that FTM.
2697         * include/std/iterator: Switch to bits/version.h for
2698         __cpp_lib_null_iterators.
2699         * include/std/iomanip: Switch to bits/version.h for
2700         __cpp_lib_quoted_string_io.
2701         (quoted): Guard behind __cpp_lib_quoted_string_io.
2702         * include/std/functional: Switch to bits/version.h for
2703         __cpp_lib_{invoke{,_r},constexpr_functional,bind_front} and
2704         __cpp_lib_{not_fn,booyer_moore_searcher}.
2705         (invoke): Guard behind __cpp_lib_invoke.
2706         (invoke_r): Guard behind __cpp_lib_invoke_r.
2707         (bind_front): Guard behind __cpp_lib_bind_front.
2708         (not_fn): Guard behind __cpp_lib_not_fn.
2709         (boyer_moore_searcher, boyer_moore_horspool_searcher): Guard
2710         definition behind __cpp_lib_boyer_moore_searcher.
2711         * include/std/forward_list: Switch to bits/version.h for
2712         __cpp_lib_erase_if.
2713         (erase, erase_if): Guard behind __cpp_lib_erase_if.
2714         * include/std/format: Switch to bits/version.h for
2715         __cpp_lib_format.  Guard header behind that FTM.
2716         * include/std/filesystem: Switch to bits/version.h for
2717         __cpp_lib_filesystem.  Guard header behind that FTM.
2718         * include/std/expected: Switch to bits/version.h for
2719         __cpp_lib_expected.  Guard header behind it.
2720         * include/std/execution: Switch to bits/version.h for
2721         __cpp_lib_{execution,parallel_algorithm}.  Guard header behind
2722         either.
2723         * include/std/deque: Switch to bits/version.h for
2724         __cpp_lib_erase_if.
2725         (erase, erase_if): Guard behind __cpp_lib_erase_if.
2726         * include/std/coroutine: Switch to bits/version.h for
2727         __cpp_lib_coroutine.  Guard header behind that FTM.
2728         * include/std/concepts: Switch to bits/version.h for
2729         __cpp_lib_concepts.  Guard header behind that FTM.
2730         * include/std/complex: Switch to bits/version.h for
2731         __cpp_lib_{complex_udls,constexpr_complex}.
2732         (operator""if, operator""i, operator""il): Guard behind
2733         __cpp_lib_complex_udls.
2734         * include/std/charconv: Swtich to bits/version.h for
2735         __cpp_lib_{to_chars,constexpr_charconv}.
2736         * include/std/bitset: Switch to bits/version.h for
2737         __cpp_lib_constexpr_bitset.
2738         * include/std/bit: Switch to bits/version.h for
2739         __cpp_lib_{bit_cast,byteswap,bitops,int_pow2,endian}.
2740         (bit_cast): Guard behind __cpp_lib_bit_cast.
2741         (byteswap): Guard behind __cpp_lib_byteswap.
2742         (rotl, rotr, countl_zero, countl_one, countr_zero, countr_one)
2743         (popcount): Guard behind __cpp_lib_bitops.
2744         (has_single_bit, bit_ceil, bit_floor, bit_width): Guard behind
2745         __cpp_lib_int_pow2.
2746         (endian): Guard behind __cpp_lib_endian.
2747         * include/std/barrier: Switch to bits/version.h for
2748         __cpp_lib_barrier.  Guard header behind that FTM.
2749         * include/std/atomic: Switch to bits/version.h for
2750         __cpp_lib_atomic_{is_always_lock_free,float,ref}
2751         and __cpp_lib_lock_free_type_aliases.
2752         (*::is_always_lock_free): Guard behind
2753         __cpp_lib_atomic_is_always_lock_free.
2754         (atomic<float>): Guard behind __cpp_lib_atomic_float.
2755         (atomic_ref): Guard behind __cpp_lib_atomic_ref.
2756         (atomic_signed_lock_free, atomic_unsigned_lock_free): Guard behind
2757         __cpp_lib_atomic_lock_free_type_aliases.
2758         * include/std/array: Switch to bits/version.h for
2759         __cpp_lib_to_array.
2760         (to_array): Guard behind __cpp_lib_to_array.
2761         * include/std/any: Switch to bits/version.h for __cpp_lib_any.
2762         Guard header behind that FTM.
2763         * include/std/algorithm: Switch to bits/version.h for
2764         __cpp_lib_parallel_algorithm.
2765         * include/c_global/cstddef: Switch to bits/version.h for
2766         __cpp_lib_byte.
2767         (byte): Guard behind __cpp_lib_byte.
2768         * include/c_global/cmath: Switch to bits/version.h for
2769         __cpp_lib_{hypot,interpolate}.
2770         (hypot3): Guard behind __cpp_lib_hypot.
2771         (lerp): Guard behind __cpp_lib_interpolate.
2772         * include/c_compatibility/stdatomic.h: Switch to
2773         bits/stl_version.h for __cpp_lib_atomic.  Guard header behind that
2774         FTM.
2775         * include/bits/utility.h: Switch to bits/version.h for
2776         __cpp_lib_{tuple_element_t,integer_sequence,ranges_zip}.
2777         (tuple_element_t): Guard behind __cpp_lib_tuple_element_t.
2778         (integer_sequence et al): Guard behind __cpp_lib_integer_sequence.
2779         * include/bits/uses_allocator_args.h: Switch to bits/version.h for
2780         __cpp_lib_make_obj_using_allocator.  Guard header behind that FTM.
2781         * include/bits/unordered_map.h: Switch to bits/version.h for
2782         __cpp_lib_unordered_map_try_emplace.
2783         (try_emplace): Guard behind __cpp_lib_unordered_map_try_emplace.
2784         * include/bits/unique_ptr.h: Switch to bits/version.h for
2785         __cpp_lib_{constexpr_memory,make_unique}.
2786         (make_unique): Guard behind __cpp_lib_make_unique.
2787         * include/bits/stl_vector.h: Switch to bits/version.h for
2788         __cpp_lib_constexpr_vector.
2789         * include/bits/stl_uninitialized.h: Switch to bits/version.h for
2790         __cpp_lib_raw_memory_algorithms.
2791         (uninitialized_default_construct)
2792         (uninitialized_default_construct_n, uninitialized_move)
2793         (uninitialized_move_n, uninitialized_value_construct)
2794         (uninitialized_value_construct_n): Guard behind
2795         __cpp_lib_raw_memory_algorithms.
2796         * include/bits/stl_tree.h: Switch to bits/version.h for
2797         __cpp_lib_generic_associative_lookup.
2798         * include/bits/stl_stack.h: Switch to bits/version.h for
2799         __cpp_lib_adaptor_iterator_pair_constructor.
2800         (stack): Guard iterator-pair constructor behind
2801         __cpp_lib_adaptor_iterator_pair_constructor.
2802         * include/bits/stl_queue.h: Switch to bits/version.h for
2803         __cpp_lib_adaptor_iterator_pair_constructor.
2804         (queue): Guard iterator-pair constructor behind
2805         __cpp_lib_adaptor_iterator_pair_constructor.
2806         * include/bits/stl_pair.h: Switch to bits/version.h for
2807         __cpp_lib_{concepts,tuples_by_type}.
2808         (get): Guard type-getting overloads behind
2809         __cpp_lib_tuples_by_type.
2810         * include/bits/stl_map.h: Switch to bits/version.h for
2811         __cpp_lib_map_try_emplace.
2812         (map<>::try_emplace): Guard behind __cpp_lib_map_try_emplace.
2813         * include/bits/stl_list.h: Switch to bits/version.h for
2814         __cpp_lib_list_remove_return_type.
2815         (__remove_return_type, _GLIBCXX_LIST_REMOVE_RETURN_TYPE_TAG)
2816         [C++20]: guard behind __cpp_lib_list_remove_return_type instead.
2817         * include/bits/stl_iterator.h: Switch to bits/version.h for
2818         __cpp_lib_{constexpr_iterator,array_constexpr} and
2819         __cpp_lib_{make_reverse_iterator,move_iterator_concept}.
2820         (make_reverse_iterator): Guard behind
2821         __cpp_lib_make_reverse_iterator.
2822         (iterator_concept et al): Guard __cpp_lib_move_iterator_concept
2823         changes behind that FTM.
2824         * include/bits/stl_function.h: Switch to bits/version.h for
2825         __cpp_lib_transparent_operators.
2826         (equal_to, not_equal_to, greater, less, greater_equal)
2827         (less_equal, bit_and, bit_or, bit_xor, bit_not, logical_and)
2828         (logical_or, logical_not, plus, minus, multiplies, divides)
2829         (modulus, negate): Guard '= void' fwdecls behind
2830         __cpp_lib_transparent_operators.
2831         (plus<void>, minus<void>, multiplies<void>, divides<void>)
2832         (modulus<void>, negate<void>, logical_and<void>, logical_or<void>)
2833         (logical_not<void>, bit_and<void>, bit_or<void>, bit_xor<void>)
2834         (equal_to<void>, not_equal_to<void>, greater<void>, less<void>)
2835         (greater_equal<void>, less_equal<void>, bit_not<void>)
2836         (__has_is_transparent): Guard behind
2837         __cpp_lib_transparent_operators.
2838         * include/bits/stl_algobase.h: Switch to bits/version.h for
2839         __cpp_lib_robust_nonmodifying_seq_ops.
2840         (robust equal, mismatch): Guard behind
2841         __cpp_lib_nonmember_container_access.
2842         * include/bits/stl_algo.h: Swtich to bits/version.h for
2843         __cpp_lib_{clamp,sample}.
2844         (clamp): Guard behind __cpp_lib_clamp.
2845         (sample): Guard behind __cpp_lib_sample.
2846         * include/bits/specfun.h: Switch to bits/version.h for
2847         __cpp_lib_math_special_functions and __STDCPP_MATH_SPEC_FUNCS__.
2848         * include/bits/shared_ptr_base.h: Switch to bits/version.h for
2849         __cpp_lib_{smart_ptr_for_overwrite,shared_ptr_arrays}.
2850         (_Sp_overwrite_tag): Guard behind
2851         __cpp_lib_smart_ptr_for_overwrite.
2852         * include/bits/shared_ptr_atomic.h: Switch to bits/version.h for
2853         __cpp_lib_atomic_shared_ptr.
2854         * include/bits/shared_ptr.h: Switch to bits/version.h for
2855         __cpp_lib_{enable_shared_from_this,shared_ptr_weak_type}.
2856         (shared_ptr<T>::weak_type): Guard behind
2857         __cpp_lib_shared_ptr_weak_type.
2858         (enable_shared_from_this<T>::weak_from_this): Guard behind
2859         __cpp_lib_enable_shared_from_this.
2860         * include/bits/ranges_cmp.h: Switch to bits/version.h for
2861         __cpp_lib_ranges.
2862         * include/bits/ranges_algo.h: Switch to bits/version.h for
2863         __cpp_lib_{shift,ranges_{contains,find_last,fold,iota}}.
2864         * include/bits/range_access.h: Switch to bits/version.h for
2865         __cpp_lib_nonmember_container_access
2866         (size, empty, data): Guard behind
2867         __cpp_lib_nonmember_container_access.
2868         (ssize): Guard behind __cpp_lib_ssize.
2869         * include/bits/ptr_traits.h: Switch to bits/version.h. for
2870         __cpp_lib_{constexpr_memory,to_address}.
2871         (to_address): Guard behind __cpp_lib_to_address.
2872         * include/bits/node_handle.h: Switch to bits/version.h for
2873         __cpp_lib_node_extract.  Guard header behind that FTM.
2874         * include/bits/move_only_function.h: Switch to bits/version.h for
2875         __cpp_lib_move_only_function.  Guard header behind that FTM.
2876         * include/bits/move.h: Switch to bits/version.h for
2877         __cpp_lib_addressof_constexpr.
2878         * include/bits/ios_base.h: Switch to bits/version.h for
2879         __cpp_lib_ios_noreplace.
2880         (noreplace): Guard with __cpp_lib_ios_noreplace.
2881         * include/bits/hashtable.h: Switch to bits/version.h for
2882         __cpp_lib_generic_unordered_lookup.
2883         (_M_equal_range_tr, _M_count_tr, _M_find_tr): Guard behind
2884         __cpp_lib_generic_unordered_lookup.
2885         * include/bits/forward_list.h: Switch to bits/version.h for
2886         __cpp_lib_list_remove_return_type.
2887         (__remove_return_type): Guard behind
2888         __cpp_lib_list_remove_return_type.
2889         * include/bits/erase_if.h: Switch to bits/version.h for
2890         __cpp_lib_erase_if.
2891         * include/bits/cow_string.h: Switch to bits/version.h for
2892         __cpp_lib_constexpr_string.
2893         * include/bits/chrono.h: Swtich to bits/version.h for
2894         __cpp_lib_chrono{,_udls}.
2895         (ceil): Guard behind __cpp_lib_chrono.
2896         (operator""ns et al): Guard behind __cpp_lib_chrono_udls.
2897         * include/bits/char_traits.h: Switch to bits/version.h for
2898         __cpp_lib_constexpr_char_traits.
2899         * include/bits/basic_string.h: Switch to bits/version.h for
2900         __cpp_lib_{constexpr_string,string_{resize_and_overwrite,udls}}.
2901         (resize_and_overwrite): Guard behind
2902         __cpp_lib_string_resize_and_overwrite.
2903         (operator""s): Guard behind __cpp_lib_string_udls.
2904         * include/bits/atomic_wait.h: Switch to bits/version.h for
2905         __cpp_lib_atomic_wait.  Guard header behind that FTM.
2906         * include/bits/atomic_base.h: Switch to bits/version.h for
2907         __cpp_lib_atomic_value_initialization and
2908         __cpp_lib_atomic_flag_test.
2909         (atomic_flag::test): Guard behind __cpp_lib_atomic_flag_test,
2910         rather than C++20.
2911         * include/bits/allocator.h: Switch to bits/version.h for
2912         __cpp_lib_incomplete_container_elements.
2913         * include/bits/alloc_traits.h: Switch to using bits/version.h for
2914         __cpp_lib_constexpr_dynamic_alloc and
2915         __cpp_lib_allocator_traits_is_always_equal.
2916         * include/bits/align.h: Switch to bits/version.h for defining
2917         __cpp_lib_assume_aligned.
2918         (assume_aligned): Guard with __cpp_lib_assume_aligned.
2919         * include/bits/algorithmfwd.h: Switch to bits/version.h for
2920         defining __cpp_lib_constexpr_algorithms.
2921         * include/std/stacktrace: Switch to bits/version.h for
2922         __cpp_lib_stacktrace.  Guard header behind that FTM.
2923         * testsuite/23_containers/array/tuple_interface/get_neg.cc:
2924         Update line numbers.
2926 2023-08-16  Arsen Arsenović  <arsen@aarsen.me>
2928         * include/Makefile.am (bits_freestanding): Add version.h.
2929         (allcreated): Add version.h.
2930         (${bits_srcdir}/version.h): New rule.  Regenerates
2931         version.h out of version.{def,tpl}.
2932         * include/Makefile.in: Regenerate.
2933         * include/bits/version.def: New file.  Declares a list of
2934         all feature test macros, their values and their preconditions.
2935         * include/bits/version.tpl: New file.  Turns version.def
2936         into a sequence of #if blocks.
2937         * include/bits/version.h: New file.  Generated from
2938         version.def.
2939         * include/std/version: Replace with a __glibcxx_want_all define
2940         and bits/version.h include.
2942 2023-08-14  Paul Dreik  <gccpatches@pauldreik.se>
2944         PR libstdc++/110860
2945         * include/std/format (__formatter_fp::format): Use frexp instead
2946         of log10.
2948 2023-08-12  Ken Matsui  <kmatsui@gcc.gnu.org>
2950         * include/std/type_traits (true_type): Use __bool_constant
2951         instead.
2952         (false_type): Likewise.
2953         (bool_constant): Likewise.
2955 2023-08-11  Jonathan Wakely  <jwakely@redhat.com>
2957         PR libstdc++/110990
2958         * include/std/format (_Seq_sink::get): Only call _M_overflow if
2959         its precondition is met.
2960         (_Iter_sink::_M_finish): Likewise.
2961         (_Iter_sink<C, ContigIter>::_M_overflow): Only switch to the
2962         internal buffer after running out of space.
2963         (_Iter_sink<C, ContigIter>::_M_finish): Do not use _M_overflow.
2964         (_Counting_sink::count): Likewise.
2965         * testsuite/std/format/functions/format_to_n.cc: Check cases
2966         where the output fits into the buffer.
2968 2023-08-11  Jonathan Wakely  <jwakely@redhat.com>
2970         PR libstdc++/104167
2971         * include/bits/chrono_io.h (operator|=, operator|): Add noexcept
2972         to _ChronoParts operators.
2973         (from_stream, parse): Define new functions.
2974         (__detail::_Parse, __detail::_Parser): New class templates.
2975         * include/std/chrono (__cpp_lib_chrono): Define to 201907L for
2976         C++20.
2977         * include/std/version (__cpp_lib_chrono): Likewise.
2978         * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc:
2979         Adjust expected value of feature test macro.
2980         * testsuite/20_util/duration/io.cc: Test parsing.
2981         * testsuite/std/time/clock/file/io.cc: Likewise.
2982         * testsuite/std/time/clock/gps/io.cc: Likewise.
2983         * testsuite/std/time/clock/system/io.cc: Likewise.
2984         * testsuite/std/time/clock/tai/io.cc: Likewise.
2985         * testsuite/std/time/clock/utc/io.cc: Likewise.
2986         * testsuite/std/time/day/io.cc: Likewise.
2987         * testsuite/std/time/month/io.cc: Likewise.
2988         * testsuite/std/time/month_day/io.cc: Likewise.
2989         * testsuite/std/time/weekday/io.cc: Likewise.
2990         * testsuite/std/time/year/io.cc: Likewise.
2991         * testsuite/std/time/year_month/io.cc: Likewise.
2992         * testsuite/std/time/year_month_day/io.cc: Likewise.
2993         * testsuite/std/time/syn_c++20.cc: Check value of macro and for
2994         the existence of parse and from_stream in namespace chrono.
2995         * testsuite/std/time/clock/local/io.cc: New test.
2996         * testsuite/std/time/parse.cc: New test.
2998 2023-08-11  Jonathan Wakely  <jwakely@redhat.com>
3000         PR libstdc++/110860
3001         * include/std/format (__formatter_fp::format): Do not call log10
3002         with zero values.
3004 2023-08-11  Jonathan Wakely  <jwakely@redhat.com>
3006         * python/libstdcxx/v6/printers.py (StdChronoCalendarPrinter):
3007         Check for out-of-range month an weekday indices.
3008         * testsuite/libstdc++-prettyprinters/chrono.cc: Check invalid
3009         month and weekday values.
3011 2023-08-11  Jonathan Wakely  <jwakely@redhat.com>
3013         * include/bits/stl_iterator.h (__clamped_iter_cat_t): Remove.
3015 2023-08-10  Jonathan Wakely  <jwakely@redhat.com>
3017         PR libstdc++/110974
3018         * include/std/format (_Spec::_S_parse_width_or_precision): Check
3019         for empty range before dereferencing iterator.
3020         * testsuite/std/format/string.cc: Check for expected exception.
3021         Fix expected exception message in test_pr110862() and actually
3022         call it.
3024 2023-08-10  Jonathan Wakely  <jwakely@redhat.com>
3026         PR libstdc++/110968
3027         * include/std/format (__formatter_fp::format): Check return
3028         value of _M_localize.
3029         * testsuite/std/format/functions/format.cc: Check classic
3030         locale.
3032 2023-08-10  Jonathan Wakely  <jwakely@redhat.com>
3034         PR libstdc++/110970
3035         * include/bits/stl_iterator.h (__detail::__move_iter_cat): Use
3036         __iter_category_t.
3037         (iterator_traits<common_iterator<I, S>>::_S_iter_cat): Likewise.
3038         (__detail::__basic_const_iterator_iter_cat): Likewise.
3039         * include/bits/stl_iterator_base_types.h (__iterator_category_t):
3040         Rename to __iter_category_t.
3042 2023-08-09  Jonathan Wakely  <jwakely@redhat.com>
3044         * include/bits/chrono.h (duration_cast): Do not use braces
3045         around statements for C++11 constexpr rules.
3046         * include/bits/stl_algobase.h (__lg): Rewrite as a single
3047         statement for C++11 constexpr rules.
3048         * include/experimental/bits/fs_path.h (path::string): Use
3049         _GLIBCXX17_CONSTEXPR not _GLIBCXX_CONSTEXPR for 'if constexpr'.
3050         * include/std/charconv (__to_chars_8): Initialize variable for
3051         C++17 constexpr rules.
3053 2023-08-09  Jonathan Wakely  <jwakely@redhat.com>
3055         * include/bits/list.tcc (list::sort(Cmp)): Fix -Wsign-compare
3056         warning for loop condition.
3058 2023-08-09  Jonathan Wakely  <jwakely@redhat.com>
3060         * include/std/complex: Add diagnostic pragma for clang.
3062 2023-08-09  Jonathan Wakely  <jwakely@redhat.com>
3064         * include/bits/shared_ptr_atomic.h (atomic): Change class-head
3065         to struct.
3066         * include/bits/stl_tree.h (_Rb_tree_merge_helper): Change
3067         class-head to struct in friend declaration.
3068         * include/std/chrono (tzdb_list::_Node): Likewise.
3069         * include/std/future (_Task_state_base, _Task_state): Likewise.
3070         * include/std/scoped_allocator (__inner_type_impl): Likewise.
3071         * include/std/valarray (_BinClos, _SClos, _GClos, _IClos)
3072         (_ValFunClos, _RefFunClos): Change class-head to struct.
3074 2023-08-09  Jonathan Wakely  <jwakely@redhat.com>
3076         * include/bits/alloc_traits.h (allocate): Add [[maybe_unused]]
3077         attribute.
3078         * include/bits/regex_executor.tcc: Remove name of unused
3079         parameter.
3080         * include/bits/shared_ptr_atomic.h (atomic_is_lock_free):
3081         Likewise.
3082         * include/bits/stl_uninitialized.h: Likewise.
3083         * include/bits/streambuf_iterator.h (operator==): Likewise.
3084         * include/bits/uses_allocator.h: Likewise.
3085         * include/c_global/cmath (isfinite, isinf, isnan): Likewise.
3086         * include/std/chrono (zoned_time): Likewise.
3087         * include/std/future (__future_base::_S_allocate_result):
3088         Likewise.
3089         (packaged_task): Likewise.
3090         * include/std/optional (_Optional_payload_base): Likewise.
3091         * include/std/scoped_allocator (__inner_type_impl): Likewise.
3092         * include/std/tuple (_Tuple_impl): Likewise.
3094 2023-08-09  Jonathan Wakely  <jwakely@redhat.com>
3096         * include/bits/new_allocator.h (__new_allocator): Define copy
3097         assignment operator as defaulted.
3098         * include/std/complex (complex<float>, complex<double>)
3099         (complex<long double>): Define copy constructor as defaulted.
3101 2023-08-09  Jonathan Wakely  <jwakely@redhat.com>
3103         * include/std/format: Fix some warnings.
3104         (__format::__write(Ctx&, basic_string_view<CharT>)): Remove
3105         unused function template.
3107 2023-08-07  Jonathan Wakely  <jwakely@redhat.com>
3109         PR libstdc++/110860
3110         * include/std/format (__formatter_fp::format): Do not use
3111         __builtin_abs and __builtin_log10 with arbitrary floating-point
3112         types.
3114 2023-08-07  Jonathan Wakely  <jwakely@redhat.com>
3116         PR libstdc++/110917
3117         * include/std/format (__format::_Iter_sink<CharT, OutIter>):
3118         Constrain partial specialization for contiguous iterators to
3119         require the value type to be CharT.
3120         * testsuite/std/format/functions/format_to.cc: New test.
3122 2023-08-07  Jonathan Wakely  <jwakely@redhat.com>
3124         PR libstdc++/110862
3125         * include/std/format (_Scanner::_M_on_replacement_field):
3126         Check for expected '}' before incrementing iterator.
3127         * testsuite/std/format/string.cc: Check "{0:{0}" format string.
3129 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
3131         * configure: Regenerate.
3133 2023-08-07  Alan Modra  <amodra@gmail.com>
3135         * configure: Regenerate.
3137 2023-08-07  Alexander von Gluck IV  <kallisti5@unixzen.com>
3139         * configure: Regenerate.
3141 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
3143         * configure: Regenerate.
3145 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
3147         * configure: Regenerate.
3149 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
3151         * configure: Regenerate.
3153 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
3155         * configure: Regenerate.
3157 2023-08-06  François Dumont  <fdumont@gcc.gnu.org>
3159         * config/abi/pre/gnu-versioned-namespace.ver: Add __cxa_call_terminate
3160         symbol export.
3162 2023-07-30  François Dumont  <fdumont@gcc.gnu.org>
3164         * src/c++11/compatibility-ldbl-facets-aliases.h: Replace #define with
3165         proper #error.
3166         * src/c++11/locale-inst-monetary.h: Likewise.
3167         * src/c++11/locale-inst-numeric.h: Likewise.
3169 2023-07-27  Jonathan Wakely  <jwakely@redhat.com>
3171         PR libstdc++/108046
3172         * include/std/format (__formatter_fp::format): Ensure __expc is
3173         always set for all presentation types. Set __z correctly for
3174         zero precision.
3175         * testsuite/std/format/functions/format.cc: Check problem cases.
3177 2023-07-26  Jonathan Wakely  <jwakely@redhat.com>
3179         PR libstdc++/110807
3180         * testsuite/23_containers/vector/bool/110807.cc: Require c++11.
3182 2023-07-26  Jonathan Wakely  <jwakely@redhat.com>
3184         PR libstdc++/110807
3185         * include/bits/stl_bvector.h (vector(const vector&)): Access
3186         iterators before allocating.
3187         * include/bits/vector.tcc (vector<bool>::_M_insert_range):
3188         Likewise.
3189         * testsuite/23_containers/vector/bool/110807.cc: New test.
3191 2023-07-26  Jonathan Wakely  <jwakely@redhat.com>
3193         * include/bits/algorithmfwd.h (random_shuffle): Add deprecated
3194         attribute.
3195         * include/bits/stl_algo.h (random_shuffle): Correct comments.
3196         * testsuite/25_algorithms/random_shuffle/1.cc: Disable
3197         deprecated warnings.
3198         * testsuite/25_algorithms/random_shuffle/59603.cc: Likewise.
3199         * testsuite/25_algorithms/random_shuffle/moveable.cc: Likewise.
3200         * testsuite/25_algorithms/random_shuffle/deprecated.cc: New
3201         test.
3203 2023-07-26  Nathaniel Shead  <nathanieloshead@gmail.com>
3205         * testsuite/25_algorithms/equal/constexpr_neg.cc: Update diagnostic
3206         locations.
3207         * testsuite/26_numerics/gcd/105844.cc: Likewise.
3208         * testsuite/26_numerics/lcm/105844.cc: Likewise.
3210 2023-07-24  Deev Patel  <pateldeev@nevada.unr.edu>
3212         * include/std/format (_Formatting_scanner::_M_on_chars): Add
3213         missing constexpr specifier.
3214         (_Formatting_scanner::_M_format_arg): Likewise.
3216 2023-07-24  Jonathan Wakely  <jwakely@redhat.com>
3218         PR libstdc++/110653
3219         * include/bits/basic_string.h [!HAVE_STOF] (stof): Do not
3220         throw an exception for zero result.
3221         [HAVE_BROKEN_STRTOLD] (stold): Do not use strtold.
3223 2023-07-19  Jonathan Wakely  <jwakely@redhat.com>
3225         PR libstdc++/110077
3226         * src/c++17/floating_from_chars.cc (from_chars): Only define
3227         _Float128 overload when using __strfromf128.
3229 2023-07-19  Jonathan Wakely  <jwakely@redhat.com>
3231         PR libstdc++/110593
3232         * include/bits/chrono.h (duration): Improve static assert
3233         messages.
3234         (__is_ratio): Move to ...
3235         * include/std/ratio (__is_ratio): ... here.
3236         (__is_ratio_v): New variable template and partial
3237         specialization.
3238         (__are_both_ratios): New function template.
3239         (__ratio_multiply, ratio_equal, ratio_less, __ratio_add):
3240         Add static assertion.
3241         * testsuite/20_util/ratio/requirements/type_constraints.cc:
3242         New test.
3243         * testsuite/20_util/duration/requirements/typedefs_neg1.cc:
3244         Adjust expected error.
3245         * testsuite/20_util/duration/requirements/typedefs_neg2.cc:
3246         Likewise.
3248 2023-07-19  Jonathan Wakely  <jwakely@redhat.com>
3250         * include/bits/chrono_io.h (__formatter_chrono::_M_format):
3251         Do not set __is_neg for hh_mm_ss before calling
3252         _M_format_to_ostream. Change __print_sign lambda to only check
3253         __is_neg for durations and hh_mm_ss types.
3254         (__formatter_chrono::_M_format_to_ostream): Only check __is_neg
3255         for duration types.
3256         * testsuite/std/time/hh_mm_ss/io.cc: Check negative values.
3258 2023-07-19  Jonathan Wakely  <jwakely@redhat.com>
3260         PR libstdc++/110719
3261         * include/bits/chrono_io.h (__formatter_chrono::_S_floor_seconds):
3262         Handle duration and hh_mm_ss.
3263         * testsuite/20_util/duration/io.cc: Check locale-specific
3264         formats.
3265         * testsuite/std/time/hh_mm_ss/io.cc: Likewise.
3267 2023-07-19  Jonathan Wakely  <jwakely@redhat.com>
3269         * include/std/format (__write_padded): Initialize first element
3270         of array to avoid a -Wmaybe-uninitialized warning.
3272 2023-07-19  Jonathan Wakely  <jwakely@redhat.com>
3274         PR libstdc++/110719
3275         * include/bits/chrono_io.h (__formatter_chrono::_M_parse): Fix
3276         allowed modifiers for %z and %Z. Fix -Wparentheses and
3277         -Wnarrowing warnings.
3278         (__formatter_chrono::_M_format): Call new functions for %d, %e,
3279         %H, %I, %m and %M.
3280         (__formatter_chrono::_M_c): Use _S_floor_seconds to remove
3281         subsecond precision.
3282         (__formatter_chrono::_M_C_y_Y): Use _M_locale_fmt to handle
3283         modifiers.
3284         (__formatter_chrono::_M_e): Replace with _M_d_e and use
3285         _M_locale_fmt.
3286         (__formatter_chrono::_M_I): Replace with _M_H_I and use
3287         _M_locale_fmt.
3288         (__formatter_chrono::_M_m): New function.
3289         (__formatter_chrono::_M_M): New function.
3290         (__formatter_chrono::_M_r): Use _M_locale_fmt.
3291         (__formatter_chrono::_M_S): Likewise.
3292         (__formatter_chrono::_M_u_w): Likewise.
3293         (__formatter_chrono::_M_U_V_W): Likewise.
3294         (__formatter_chrono::_M_X): Use _S_floor_seconds.
3295         (__formatter_chrono::_M_Z): Fix untested branch for wchar_t.
3296         (__formatter_chrono::_S_altnum): Remove function.
3297         (__formatter_chrono::_S_dd_zero_fill): Remove function.
3298         (__formatter_chrono::_S_floor_seconds): New function.
3299         (__formatter_chrono::_M_locale_fmt): New function.
3300         * testsuite/std/time/clock/system/io.cc: Adjust expected output
3301         for locale-specific formats and check modified formats.
3302         * testsuite/std/time/clock/utc/io.cc: Likewise.
3303         * testsuite/std/time/zoned_time/io.cc: New test.
3305 2023-07-19  Jonathan Wakely  <jwakely@redhat.com>
3307         PR libstdc++/110708
3308         * include/bits/chrono_io.h (__formatter_chrono::_M_parse): Only
3309         allow a single modifier.
3310         * testsuite/std/time/format.cc: Check multiple modifiers.
3312 2023-07-19  Jonathan Wakely  <jwakely@redhat.com>
3314         PR libstdc++/110653
3315         * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
3316         Remove dg-require-string-conversions.
3317         * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
3318         Likewise.
3319         * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
3320         Likewise.
3321         * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
3322         Likewise.
3323         * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
3324         Likewise.
3326 2023-07-19  Jonathan Wakely  <jwakely@redhat.com>
3328         PR libstdc++/110653
3329         * include/bits/basic_string.h [!_GLIBCXX_HAVE_STRTOF] (stof):
3330         Define in terms of std::stod.
3332 2023-07-19  Jonathan Wakely  <jwakely@redhat.com>
3334         PR libstdc++/110653
3335         * include/bits/basic_string.h [_GLIBCXX_HAVE_STRTOF] (stof):
3336         Define.
3337         [_GLIBCXX_HAVE_STRTOLD] (stold): Define.
3338         * include/c_global/cstdlib [_GLIBCXX_HAVE_STRTOF] (strtof):
3339         Declare in namespace std.
3340         [_GLIBCXX_HAVE_STRTOLD] (strtold): Likewise.
3342 2023-07-13  Jonathan Wakely  <jwakely@redhat.com>
3344         PR libstdc++/110653
3345         * include/bits/basic_string.h (stoi, stol, stoul, stod): Do not
3346         depend on _GLIBCXX_USE_C99_STDLIB.
3347         [__LONG_WIDTH__ == __LONG_LONG_WIDTH__] (stoll, stoull): Define
3348         in terms of stol and stoul respectively.
3349         [__DBL_MANT_DIG__ == __LDBL_MANT_DIG__] (stold): Define in terms
3350         of stod.
3352 2023-07-12  Jonathan Wakely  <jwakely@redhat.com>
3354         PR libstdc++/95048
3355         * testsuite/27_io/filesystem/path/construct/95048.cc: Check
3356         conversions to wide strings.
3357         * testsuite/experimental/filesystem/path/construct/95048.cc:
3358         Likewise.
3360 2023-07-12  Jonathan Wakely  <jwakely@redhat.com>
3362         * config/io/basic_file_stdio.cc: Define LFS macros.
3363         (__basic_file<char>::open): Use fopen unconditionally.
3364         (get_file_offset): Use lseek unconditionally.
3365         (__basic_file<char>::seekoff): Likewise.
3366         (__basic_file<char>::showmanyc): Use fstat unconditionally.
3368 2023-07-12  Jonathan Wakely  <jwakely@redhat.com>
3370         PR libstdc++/110574
3371         * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fseeko and ftello
3372         and define _GLIBCXX_USE_FSEEKO_FTELLO.
3373         * config.h.in: Regenerate.
3374         * configure: Regenerate.
3375         * config/io/basic_file_stdio.cc (xwrite) [_GLIBCXX_USE_STDIO_PURE]:
3376         Check for fwrite error correctly.
3377         (__basic_file<char>::xsgetn) [_GLIBCXX_USE_STDIO_PURE]: Check for
3378         fread error correctly.
3379         (get_file_offset): New function.
3380         (__basic_file<char>::seekoff) [_GLIBCXX_USE_STDIO_PURE]: Use
3381         fseeko if available. Use get_file_offset instead of return value
3382         of fseek.
3383         (__basic_file<char>::showmanyc): Use get_file_offset.
3385 2023-07-12  Ken Matsui  <kmatsui@gcc.gnu.org>
3387         * include/std/type_traits (__make_unsigned_selector): Use
3388         __is_enum built-in trait.
3389         (__make_signed_selector): Likewise.
3390         (__underlying_type_impl): Likewise.
3392 2023-07-06  Tianqiang Shuai  <1101282468@qq.com>
3394         * config/io/basic_file_stdio.cc (xwrite) [USE_STDIO_PURE]: Fix
3395         first argument.
3397 2023-07-06  Jonathan Wakely  <jwakely@redhat.com>
3399         PR libstdc++/110574
3400         * doc/xml/manual/configure.xml: Describe stdio_pure argument to
3401         --enable-cstdio.
3402         * doc/html/manual/configure.html: Regenerate.
3404 2023-07-05  Thomas Rodgers  <trodgers@redhat.com>
3406         * testsuite/25_algorithms/pstl/alg_sorting/set.cc: Delete
3407         file.
3408         * testsuite/25_algorithms/pstl/alg_sorting/set_difference.cc:
3409         New file.
3410         * testsuite/25_algorithms/pstl/alg_sorting/set_intersection.cc:
3411         Likewise.
3412         * testsuite/25_algorithms/pstl/alg_sorting/set_symmetric_difference.cc:
3413         Likewise.
3414         * testsuite/25_algorithms/pstl/alg_sorting/set_union.cc:
3415         Likewise.
3416         * testsuite/25_algorithms/pstl/alg_sorting/set_util.h:
3417         Likewise.
3419 2023-07-05  Jonathan Wakely  <jwakely@redhat.com>
3421         * testsuite/23_containers/forward_list/debug/iterator1_neg.cc:
3422         Skip as UNSUPPORTED for C++98 mode.
3423         * testsuite/23_containers/forward_list/debug/iterator3_neg.cc:
3424         Likewise.
3426 2023-07-05  Jonathan Wakely  <jwakely@redhat.com>
3428         PR libstdc++/110542
3429         * include/bits/stl_uninitialized.h (__uninitialized_default_n):
3430         Do not use std::fill_n during constant evaluation.
3432 2023-07-05  Jonathan Wakely  <jwakely@redhat.com>
3434         * include/bits/vector.tcc (_M_default_append): Replace try-block
3435         with RAII types.
3437 2023-07-05  Jonathan Wakely  <jwakely@redhat.com>
3439         * include/bits/iterator_concepts.h (projected): Add typename.
3441 2023-07-03  Jonathan Wakely  <jwakely@redhat.com>
3443         * testsuite/27_io/headers/iosfwd/synopsis.cc: Make wsyncbuf and
3444         wosyncstream depend on _GLIBCXX_USE_CXX11_ABI.
3446 2023-07-03  Jonathan Wakely  <jwakely@redhat.com>
3448         * include/pstl/pstl_config.h (_PSTL_PRAGMA_SIMD_SCAN,
3449         _PSTL_PRAGMA_SIMD_INCLUSIVE_SCAN, _PSTL_PRAGMA_SIMD_EXCLUSIVE_SCAN):
3450         Define to OpenMP 5.0 pragmas even for GCC 10.0+.
3451         (_PSTL_UDS_PRESENT): Define to 1 for GCC 10.0+.
3453 2023-07-03  Jonathan Wakely  <jwakely@redhat.com>
3455         * include/bits/alloc_traits.h (_Destroy): Qualify call.
3456         * include/bits/stl_construct.h (_Destroy, _Destroy_n): Likewise.
3457         * testsuite/23_containers/vector/cons/destroy-adl.cc: New test.
3459 2023-07-03  Iain Sandoe  <iain@sandoe.co.uk>
3461         * testsuite/lib/libstdc++.exp: Remove additional flag handled
3462         by Darwin specs.
3464 2023-06-30  Jonathan Wakely  <jwakely@redhat.com>
3466         PR libstdc++/110432
3467         * acinclude.m4 (GLIBCXX_CHECK_INIT_PRIORITY): New.
3468         * config.h.in: Regenerate.
3469         * configure: Regenerate.
3470         * configure.ac: Use GLIBCXX_CHECK_INIT_PRIORITY.
3471         * include/std/iostream: Use new autoconf macro as well as
3472         __has_attribute.
3473         * src/c++98/ios_base_init.h: Use new autoconf macro instead of
3474         __has_attribute.
3476 2023-06-30  Jonathan Wakely  <jwakely@redhat.com>
3478         * src/c++11/random.cc (random_device::_M_init): Add maybe_unused
3479         attribute.
3481 2023-06-30  Jonathan Wakely  <jwakely@redhat.com>
3483         PR libstdc++/105081
3484         * src/c++11/random.cc (random_device::_M_init): Throw
3485         std::system_error when the requested device is a valid token but
3486         not available at runtime.
3488 2023-06-30  Hans-Peter Nilsson  <hp@axis.com>
3490         PR libstdc++/108672
3491         * include/pstl/unseq_backend_simd.h (__simd_or): Re-apply using
3492         __INT32_TYPE__ instead of int32_t.
3494 2023-06-29  Jonathan Wakely  <jwakely@redhat.com>
3496         * src/c++20/tzdb.cc (USE_ATOMIC_SHARED_PTR): Define consistently
3497         with USE_ATOMIC_LIST_HEAD.
3498         (list_mutex): Replace global object with function. Use local
3499         static object when std::mutex constructor isn't constexpr.
3501 2023-06-29  Jonathan Wakely  <jwakely@redhat.com>
3503         PR libstdc++/110462
3504         * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check that
3505         copy_file_range can be called with loff_t* arguments.
3506         * configure: Regenerate.
3507         * src/filesystem/ops-common.h (copy_file_copy_file_range):
3508         Use loff_t for offsets.
3510 2023-06-29  Tom Tromey  <tromey@adacore.com>
3512         * testsuite/lib/gdb-test.exp (gdb-test): Relax type-printer
3513         regexp.
3515 2023-06-28  Jan Hubicka  <jh@suse.cz>
3517         PR middle-end/109849
3518         * include/bits/c++config (std::__terminate): Mark cold.
3519         * include/bits/functexcept.h: Mark everything as cold.
3520         * libsupc++/exception: Mark terminate and unexpected as cold.
3522 2023-06-26  Thomas Rodgers  <trodgers@redhat.com>
3524         * include/pstl/algorithm_fwd.h: Synchronize with upstream.
3525         * include/pstl/algorithm_impl.h: Likewise.
3526         * include/pstl/execution_defs.h: Likewise.
3527         * include/pstl/execution_impl.h: Likewise.
3528         * include/pstl/glue_algorithm_impl.h: Likewise.
3529         * include/pstl/glue_execution_defs.h: Likewise.
3530         * include/pstl/glue_memory_impl.h: Likewise.
3531         * include/pstl/glue_numeric_impl.h: Likewise.
3532         * include/pstl/memory_impl.h: Likewise.
3533         * include/pstl/numeric_fwd.h: Likewise.
3534         * include/pstl/numeric_impl.h: Likewise.
3535         * include/pstl/parallel_backend.h: Likewise.
3536         * include/pstl/parallel_backend_serial.h: Likewise.
3537         * include/pstl/parallel_backend_tbb.h: Likewise.
3538         * include/pstl/parallel_impl.h: Likewise.
3539         * include/pstl/pstl_config.h: Likewise.
3540         * include/pstl/unseq_backend_simd.h: Likewise.
3541         * include/pstl/utils.h: Likewise.
3542         * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc:
3543         Likewise.
3544         * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc:
3545         Likewise.
3546         * testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc:
3547         Likewise.
3548         * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc:
3549         Likewise.
3550         * testsuite/25_algorithms/pstl/alg_merge/merge.cc: Likewise.
3551         * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc:
3552         Likewise.
3553         * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc:
3554         Likewise.
3555         * testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc:
3556         Likewise.
3557         * testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc:
3558         Likewise.
3559         * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc:
3560         Likewise.
3561         * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc:
3562         Likewise.
3563         * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc:
3564         Likewise.
3565         * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc:
3566         Likewise.
3567         * testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc:
3568         Likewise.
3569         * testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc:
3570         Likewise.
3571         * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc:
3572         Likewise.
3573         * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc:
3574         Likewise.
3575         * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc:
3576         Likewise.
3577         * testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc:
3578         Likewise.
3579         * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc:
3580         Likewise.
3581         * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc:
3582         Likewise.
3583         * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc:
3584         Likewise.
3585         * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc:
3586         Likewise.
3587         * testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc:
3588         Likewise.
3589         * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc:
3590         Likewise.
3591         * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc:
3592         Likewise.
3593         * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc:
3594         Likewise.
3595         * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc:
3596         Likewise.
3597         * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc:
3598         Likewise.
3599         * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc:
3600         Likewise.
3601         * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc:
3602         Likewise.
3603         * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc:
3604         Likewise.
3605         * testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc:
3606         Likewise.
3607         * testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc:
3608         Likewise.
3609         * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc:
3610         Likewise.
3611         * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc:
3612         Likewise.
3613         * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc:
3614         Likewise.
3615         * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc:
3616         Likewise.
3617         * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc:
3618         Likewise.
3619         * testsuite/25_algorithms/pstl/alg_sorting/includes.cc:
3620         Likewise.
3621         * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc:
3622         Likewise.
3623         * testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc:
3624         Likewise.
3625         * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc:
3626         Likewise.
3627         * testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc:
3628         Likewise.
3629         * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc:
3630         Likewise.
3631         * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc:
3632         Likewise.
3633         * testsuite/25_algorithms/pstl/alg_sorting/set.cc:
3634         Likewise.
3635         * testsuite/25_algorithms/pstl/alg_sorting/sort.cc:
3636         Likewise.
3637         * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc:
3638         Likewise.
3639         * testsuite/26_numerics/pstl/numeric_ops/reduce.cc:
3640         Likewise.
3641         * testsuite/26_numerics/pstl/numeric_ops/scan.cc:
3642         Likewise.
3643         * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc:
3644         Likewise.
3645         * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc:
3646         Likewise.
3647         * testsuite/util/pstl/test_utils.h:
3648         Likewise.
3650 2023-06-26  Jonathan Wakely  <jwakely@redhat.com>
3652         PR libstdc++/110239
3653         * include/std/format (__format::__parse_integer): Fix buffer
3654         overflow for wide chars.
3655         (formatter<const void*, C>::format): Cast to uintptr_t instead
3656         of uint64_t.
3657         * testsuite/std/format/string.cc: Test too-large widths.
3659 2023-06-26  Jonathan Wakely  <jwakely@redhat.com>
3661         * include/bits/iterator_concepts.h (projected): Replace class
3662         template with alias template denoting an ADL-proofed helper.
3663         (incremental_traits<projected<Iter, Proj>>): Remove.
3664         * testsuite/24_iterators/indirect_callable/projected-adl.cc:
3665         New test.
3667 2023-06-26  Jonathan Wakely  <jwakely@redhat.com>
3669         * include/debug/helper_functions.h (__get_distance)
3670         (__check_singular, __valid_range_aux, __valid_range): Qualify
3671         calls to disable ADL.
3672         (__check_singular_aux(const _Safe_iterator_base*)): Declare
3673         overload that was previously found via ADL.
3675 2023-06-23  Jonathan Wakely  <jwakely@redhat.com>
3677         * include/bits/vector.tcc (_M_realloc_insert): Replace try-block
3678         with RAII types.
3680 2023-06-20  Jonathan Wakely  <jwakely@redhat.com>
3682         * include/std/array (to_array(T(&)[N])): Remove redundant
3683         condition.
3684         (to_array(T(&&)[N])): Remove redundant std::move.
3686 2023-06-16  Alexandre Oliva  <oliva@adacore.com>
3688         * testsuite/20_util/from_chars/4.cc: Skip long double on
3689         aarch64-rtems.
3691 2023-06-16  Joel Brobecker  <brobecker@adacore.com>
3693         * configure.ac ["x${with_newlib}" = "xyes"]: Define
3694         HAVE_HYPOTF.  Add compile-checks for various long double
3695         math functions as well.
3696         * configure: Regenerate.
3698 2023-06-14  Jonny Grant  <jg@jguk.org>
3700         * doc/xml/manual/extensions.xml: Remove demangle exception
3701         description and include.
3702         * doc/html/manual/ext_demangling.html: Regenerate.
3704 2023-06-10  Hans-Peter Nilsson  <hp@axis.com>
3706         * testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc (main)
3707         [! SIMULATOR_TEST]: Also exclude running test05.
3708         * testsuite/27_io/basic_istream/ignore/char/94749.cc: Ditto.
3710 2023-06-09  Ken Matsui  <kmatsui@cs.washington.edu>
3712         * include/std/type_traits: Use using instead of typedef
3714 2023-06-09  Jonathan Wakely  <jwakely@redhat.com>
3716         PR libstdc++/110077
3717         * src/c++17/floating_from_chars.cc (from_chars) <_Float128>:
3718         Only define if _Float128 and long double have different
3719         representations.
3721 2023-06-09  Jonathan Wakely  <jwakely@redhat.com>
3723         PR libstdc++/100285
3724         * include/experimental/internet [IPPROTO_TCP || IPPROTO_UDP]
3725         (basic_endpoint, basic_resolver_entry, resolver_base)
3726         (basic_resolver_results, basic_resolver): Only define if the tcp
3727         or udp protocols will be defined.
3729 2023-06-09  Jonathan Wakely  <jwakely@redhat.com>
3731         * acinclude.m4 (libtool_VERSION): Update to 6.0.33.
3732         * configure: Regenerate.
3733         * doc/xml/manual/abi.xml: Add libstdc++.so.6.0.33.
3734         * doc/html/manual/abi.html: Regenerate.
3736 2023-06-09  Jonathan Wakely  <jwakely@redhat.com>
3738         PR libstdc++/110149
3739         * include/std/format (formatter<const void*, charT>::parse):
3740         Only alow 0 and P for C++26 and non-strict modes.
3741         (formatter<const void*, charT>::format): Use toupper for P
3742         type, and insert zero-fill characters for 0 option.
3743         * testsuite/std/format/functions/format.cc: Check pointer
3744         formatting. Only check P2510R3 extensions conditionally.
3745         * testsuite/std/format/parse_ctx.cc: Only check P2510R3
3746         extensions conditionally.
3748 2023-06-09  Jonathan Wakely  <jwakely@redhat.com>
3750         PR libstdc++/110167
3751         * include/std/array (to_array): Initialize arrays of trivial
3752         types using memcpy. For non-trivial types, use lambda
3753         expressions instead of a separate helper function.
3754         (__to_array): Remove.
3755         * testsuite/23_containers/array/creation/110167.cc: New test.
3757 2023-06-09  Jonathan Wakely  <jwakely@redhat.com>
3759         * testsuite/23_containers/deque/modifiers/emplace/52799.cc:
3760         Removed.
3761         * testsuite/23_containers/deque/modifiers/emplace/const_iterator.cc:
3762         Removed.
3763         * testsuite/23_containers/list/modifiers/emplace/52799.cc:
3764         Removed.
3765         * testsuite/23_containers/list/modifiers/emplace/const_iterator.cc:
3766         Removed.
3767         * testsuite/23_containers/vector/modifiers/emplace/52799.cc:
3768         Removed.
3769         * testsuite/23_containers/vector/modifiers/emplace/const_iterator.cc:
3770         Removed.
3771         * testsuite/23_containers/deque/modifiers/emplace/1.cc: New
3772         test.
3773         * testsuite/23_containers/list/modifiers/emplace/1.cc: New
3774         test.
3775         * testsuite/23_containers/vector/modifiers/emplace/1.cc: New
3776         test.
3778 2023-06-07  Jakub Jelinek  <jakub@redhat.com>
3780         PR libstdc++/110145
3781         * testsuite/20_util/to_chars/double.cc: Include <cfloat>.
3782         (double_to_chars_test_cases,
3783         double_scientific_precision_to_chars_test_cases_2,
3784         double_fixed_precision_to_chars_test_cases_2): #if out 1e126, 4.91e-6
3785         and 5.547e-6 tests if FLT_EVAL_METHOD is negative or larger than 1.
3786         Add unconditional tests with corresponding double constants
3787         0x1.7a2ecc414a03fp+418, 0x1.4981285e98e79p-18 and
3788         0x1.7440bbff418b9p-18.
3790 2023-06-07  Jonathan Wakely  <jwakely@redhat.com>
3792         * testsuite/util/testsuite_abi.cc (check_version): Re-add
3793         CXXABI_1.3.14.
3795 2023-06-07  Jonathan Wakely  <jwakely@redhat.com>
3797         * testsuite/18_support/nested_exception/rethrow_if_nested-term.cc:
3798         Require effective target exceptions_enabled instead of using
3799         dg-skip-if.
3800         * testsuite/23_containers/vector/capacity/constexpr.cc: Expect
3801         shrink_to_fit() to be a no-op without exceptions enabled.
3802         * testsuite/23_containers/vector/capacity/shrink_to_fit.cc:
3803         Likewise.
3804         * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc:
3805         Require effective target exceptions_enabled.
3806         * testsuite/ext/malloc_allocator/check_allocate_max_size.cc:
3807         Likewise.
3808         * testsuite/ext/mt_allocator/check_allocate_max_size.cc:
3809         Likewise.
3810         * testsuite/ext/new_allocator/check_allocate_max_size.cc:
3811         Likewise.
3812         * testsuite/ext/pool_allocator/check_allocate_max_size.cc:
3813         Likewise.
3814         * testsuite/ext/throw_allocator/check_allocate_max_size.cc:
3815         Likewise.
3817 2023-06-07  Jonathan Wakely  <jwakely@redhat.com>
3819         * testsuite/20_util/duration/cons/2.cc: Use values that aren't
3820         affected by rounding.
3821         * testsuite/20_util/from_chars/5.cc: Cast arithmetic result to
3822         double before comparing for equality.
3823         * testsuite/20_util/from_chars/6.cc: Likewise.
3824         * testsuite/20_util/variant/86874.cc: Use values that aren't
3825         affected by rounding.
3826         * testsuite/25_algorithms/lower_bound/partitioned.cc: Compare to
3827         original value instead of to floating-point-literal.
3828         * testsuite/26_numerics/random/discrete_distribution/cons/range.cc:
3829         Cast arithmetic result to double before comparing for equality.
3830         * testsuite/26_numerics/random/piecewise_constant_distribution/cons/range.cc:
3831         Likewise.
3832         * testsuite/26_numerics/random/piecewise_linear_distribution/cons/range.cc:
3833         Likewise.
3834         * testsuite/26_numerics/valarray/transcend.cc (eq): Check that
3835         the absolute difference is less than 0.01 instead of comparing
3836         to two decimal places.
3837         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
3838         Cast arithmetic result to double before comparing for equality.
3839         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
3840         Likewise.
3841         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3842         Likewise.
3843         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/01.cc:
3844         Likewise.
3845         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/09.cc:
3846         Likewise.
3847         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/10.cc:
3848         Likewise.
3849         * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
3851 2023-06-07  Jonathan Wakely  <jwakely@redhat.com>
3853         Revert:
3854         2023-06-06  Jonathan Wakely  <jwakely@redhat.com>
3856         * configure.ac: Use AS_IF.
3857         * configure: Regenerate.
3859 2023-06-07  Thomas Schwinge  <thomas@codesourcery.com>
3861         * testsuite/lib/prune.exp (libstdc++-dg-prune): Support
3862         'UNSUPPORTED: [...]: exception handling disabled'.
3864 2023-06-06  Jonathan Wakely  <jwakely@redhat.com>
3866         * testsuite/util/testsuite_abi.cc (check_version): Add
3867         CXXABI_1.3.15 symver and make it the latestp. Remove
3868         GLIBCXX_IEEE128_3.4.31 and GLIBCXX_LDBL_3.4.31 from latestp.
3870 2023-06-06  Jonathan Wakely  <jwakely@redhat.com>
3871             Jakub Jelinek  <jakub@redhat.com>
3873         PR libstdc++/104772
3874         * include/std/limits: (numeric_limits<__float128>): Define
3875         for __STRICT_ANSI__ as well.
3876         * testsuite/18_support/numeric_limits/128bit.cc: Remove
3877         check for __STRICT_ANSI__.
3879 2023-06-06  Jonathan Wakely  <jwakely@redhat.com>
3881         * configure.ac: Use AS_IF.
3882         * configure: Regenerate.
3884 2023-06-06  Matthias Kretz  <m.kretz@gsi.de>
3886         PR libstdc++/109822
3887         * include/experimental/bits/simd_builtin.h (_S_store): Rewrite
3888         to avoid casts to other vector types. Implement store as
3889         succession of power-of-2 sized memcpy to avoid PR90424.
3891 2023-06-06  Matthias Kretz  <m.kretz@gsi.de>
3893         PR libstdc++/110054
3894         * include/experimental/bits/simd_builtin.h (_S_masked_store):
3895         Call into deduced ABI's SimdImpl after conversion.
3896         * include/experimental/bits/simd_x86.h (_S_masked_store_nocvt):
3897         Don't use _mm_maskmoveu_si128. Use the generic fall-back
3898         implementation. Also fix masked stores without SSE2, which
3899         were not doing anything before.
3901 2023-06-06  Matthias Kretz  <m.kretz@gsi.de>
3903         * include/experimental/bits/simd.h (__bit_cast): Use
3904         __gnu__::__vector_size__ instead of gnu::vector_size.
3906 2023-06-06  Jonathan Wakely  <jwakely@redhat.com>
3908         PR libstdc++/110139
3909         * include/std/array (__array_traits<T, 0>::operator T*()): Make
3910         conversion operator explicit.
3911         (array::front): Use size_type as subscript operand.
3912         (array::data): Use static_cast to make conversion explicit.
3913         * testsuite/23_containers/array/element_access/110139.cc: New
3914         test.
3916 2023-06-06  Joseph Faulls  <Joseph.Faulls@imgtec.com>
3918         * include/bits/locale_classes.tcc: Remove check for
3919         codecvt<char8_t, char, mbstate_t> facet.
3921 2023-06-06  Jonathan Wakely  <jwakely@redhat.com>
3923         * src/filesystem/ops-common.h (do_copy_file) [O_CLOEXEC]: Set
3924         close-on-exec flag on file descriptors.
3926 2023-06-06  Jonathan Wakely  <jwakely@redhat.com>
3928         PR libstdc++/108178
3929         * src/filesystem/ops-common.h (do_copy_file): Check for empty
3930         files by trying to read a character.
3931         * testsuite/27_io/filesystem/operations/copy_file_108178.cc:
3932         New test.
3934 2023-06-06  Jannik Glückert  <jannik.glueckert@gmail.com>
3936         * acinclude.m4 (_GLIBCXX_USE_COPY_FILE_RANGE): Define.
3937         * config.h.in: Regenerate.
3938         * configure: Regenerate.
3939         * src/filesystem/ops-common.h (copy_file_copy_file_range):
3940         Define new function.
3941         (do_copy_file): Use it.
3943 2023-06-06  Jannik Glückert  <jannik.glueckert@gmail.com>
3945         * acinclude.m4 (_GLIBCXX_HAVE_LSEEK): Define.
3946         * config.h.in: Regenerate.
3947         * configure: Regenerate.
3948         * src/filesystem/ops-common.h (copy_file_sendfile): Define new
3949         function for sendfile logic. Loop to support large files. Skip
3950         zero-length files.
3951         (do_copy_file): Use it.
3953 2023-06-04  Jason Merrill  <jason@redhat.com>
3955         PR c++/97720
3956         * libsupc++/eh_call.cc (__cxa_call_terminate): Take void*.
3957         * config/abi/pre/gnu.ver: Add it.
3959 2023-06-02  François Dumont  <fdumont@gcc.gnu.org>
3961         * include/parallel/algobase.h: Include <parallel/search.h>.
3963 2023-06-01  Jonathan Wakely  <jwakely@redhat.com>
3965         * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc:
3966         Add const to equality operator.
3968 2023-06-01  Jonathan Wakely  <jwakely@redhat.com>
3970         * include/std/expected (expected::and_then, expected::or_else)
3971         (expected::transform_error): Use _M_val and _M_unex instead of
3972         calling value() and error(), as per LWG 3938.
3973         (expected::transform): Likewise. Remove incorrect std::move
3974         calls from lvalue overloads.
3975         (expected<void, E>::and_then, expected<void, E>::or_else)
3976         (expected<void, E>::transform): Use _M_unex instead of calling
3977         error().
3978         * testsuite/20_util/expected/lwg3877.cc: Add checks for and_then
3979         and transform, and for std::expected<void, E>.
3980         * testsuite/20_util/expected/lwg3938.cc: New test.
3982 2023-06-01  Jonathan Wakely  <jwakely@redhat.com>
3984         PR libstdc++/110060
3985         * include/bits/stl_vector.h (_Vector_base::_M_invariant):
3986         Remove.
3987         (vector::size, vector::capacity): Remove calls to _M_invariant.
3988         * include/bits/vector.tcc (vector::_M_fill_assign): Add
3989         optimization hint to reallocating path.
3990         (vector::_M_assign_aux(FwdIter, FwdIter, forward_iterator_tag)):
3991         Likewise.
3992         * testsuite/23_containers/vector/capacity/invariant.cc: Moved
3993         to...
3994         * testsuite/23_containers/vector/modifiers/assign/no_realloc.cc:
3995         ...here. Check assign(FwdIter, FwdIter) too.
3996         * testsuite/23_containers/vector/types/1.cc: Revert addition
3997         of -Wno-stringop-overread option.
3999 2023-06-01  Jonathan Wakely  <jwakely@redhat.com>
4001         * doc/xml/manual/evolution.xml: Document removal of implicit
4002         allocator rebinding extensions in strict mode and for C++20.
4003         * doc/html/*: Regenerate.
4005 2023-06-01  Jason Merrill  <jason@redhat.com>
4007         * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Don't check
4008         handlers in the cleanup phase.
4010 2023-06-01  Matthias Kretz  <m.kretz@gsi.de>
4012         PR libstdc++/110050
4013         * include/experimental/bits/simd.h (__vectorized_sizeof): With
4014         __have_neon_a32 only single-precision float works (in addition
4015         to integers).
4017 2023-06-01  François Dumont  <fdumont@gcc.gnu.org>
4019         * include/bits/stl_algo.h
4020         (std::__search, std::search(_FwdIt1, _FwdIt1, _FwdIt2, _FwdIt2, _BinPred)): Move...
4021         * include/bits/stl_algobase.h: ...here.
4022         * include/std/functional: Replace <stl_algo.h> include by <stl_algobase.h>.
4023         * include/parallel/algo.h (std::__parallel::search<_FIt1, _FIt2, _BinaryPred>)
4024         (std::__parallel::__search_switch<_FIt1, _FIt2, _BinaryPred, _ItTag1, _ItTag2>):
4025         Move...
4026         * include/parallel/algobase.h: ...here.
4027         * include/experimental/functional: Remove <bits/stl_algo.h> and <parallel/algorithm>
4028         includes. Include <bits/stl_algobase.h>.
4030 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
4032         PR libstdc++/109818
4033         * acinclude.m4 (GLIBCXX_ENABLE_C99): Add separate check for
4034         float_t and double_t and define HAVE_C99_FLT_EVAL_TYPES.
4035         * config.h.in: Regenerate.
4036         * configure: Regenerate.
4037         * include/c_global/cmath (float_t, double_t): Guard using new
4038         _GLIBCXX_HAVE_C99_FLT_EVAL_TYPES macro.
4040 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
4042         * acinclude.m4 (GLIBCXX_ENABLE_C99): Add checks for C99 math
4043         functions and define _GLIBCXX_USE_C99_MATH_FUNCS. Move checks
4044         for C99 rounding functions to here.
4045         (GLIBCXX_CHECK_C99_TR1): Remove checks for C99 rounding
4046         functions from here.
4047         * config.h.in: Regenerate.
4048         * configure: Regenerate.
4049         * include/bits/random.h: Use _GLIBCXX_USE_C99_MATH_FUNCS instead
4050         of _GLIBCXX_USE_C99_MATH_TR1.
4051         * include/bits/random.tcc: Likewise.
4052         * include/c_compatibility/math.h: Likewise.
4053         * include/c_global/cmath: Likewise.
4054         * include/ext/random: Likewise.
4055         * include/ext/random.tcc: Likewise.
4056         * include/std/complex: Likewise.
4057         * testsuite/20_util/from_chars/4.cc: Likewise.
4058         * testsuite/20_util/from_chars/8.cc: Likewise.
4059         * testsuite/26_numerics/complex/proj.cc: Likewise.
4060         * testsuite/26_numerics/headers/cmath/60401.cc: Likewise.
4061         * testsuite/26_numerics/headers/cmath/types_std_c++0x.cc:
4062         Likewise.
4063         * testsuite/lib/libstdc++.exp (check_v3_target_cstdint):
4064         Likewise.
4065         * testsuite/util/testsuite_random.h: Likewise.
4067 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
4069         * include/bits/stl_vector.h (_Vector_base::_M_invariant()): New
4070         function.
4071         (vector::size(), vector::capacity()): Call _M_invariant().
4072         * testsuite/23_containers/vector/capacity/invariant.cc: New test.
4073         * testsuite/23_containers/vector/types/1.cc: Add suppression for
4074         false positive warning (PR110060).
4076 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
4078         PR libstdc++/109921
4079         * src/c++17/floating_from_chars.cc: Check __FLT128_MANT_DIG__ is
4080         defined before trying to use _Float128.
4082 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
4084         * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Fix for 32-bit pointers
4085         to check __INT_PTR_WIDTH__ instead of sizeof(void*).
4086         * configure: Regenerate.
4088 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
4090         * include/bits/unique_lock.h: Include <bits/error_constants.h>
4091         here for std::errc constants.
4092         * include/std/mutex: Do not include <bits/error_constants.h> and
4093         <exception> here.
4095 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
4097         * configure.ac: Replace use of -o operator for test.
4098         * configure: Regenerate.
4100 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
4102         * include/std/scoped_allocator (scoped_allocator_adaptor): Add
4103         noexcept to all constructors except the default constructor.
4104         (scoped_allocator_adaptor::inner_allocator): Add noexcept.
4105         (scoped_allocator_adaptor::outer_allocator): Likewise.
4106         * testsuite/20_util/scoped_allocator/noexcept.cc: New test.
4108 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
4110         PR libstdc++/104772
4111         * include/std/limits (numeric_limits<__float128>): Define.
4112         * testsuite/18_support/numeric_limits/128bit.cc: New test.
4114 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
4116         * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Extend logic for avr and
4117         msp430 to all 16-bit targets.
4118         * configure: Regenerate.
4120 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
4122         PR libstdc++/109921
4123         * src/c++17/floating_from_chars.cc (USE_STRTOF128_FOR_FROM_CHARS):
4124         Only define when USE_STRTOD_FOR_FROM_CHARS is also defined.
4125         (USE_STRTOD_FOR_FROM_CHARS): Do not undefine when long double is
4126         binary64.
4127         (from_chars(const char*, const char*, double&, chars_format)):
4128         Check __LDBL_MANT_DIG__ == __DBL_MANT_DIG__ here.
4129         (from_chars(const char*, const char*, _Float128&, chars_format))
4130         Only use from_chars_strtod when USE_STRTOD_FOR_FROM_CHARS is
4131         defined, otherwise parse a long double and convert to _Float128.
4133 2023-05-31  Jonathan Wakely  <jwakely@redhat.com>
4135         PR libstdc++/109922
4136         * include/std/iomanip (operator>>(basic_istream&, _Setfill)):
4137         Add deprecated attribute to non-standard overload.
4138         * doc/xml/manual/evolution.xml: Document deprecation.
4139         * doc/html/*: Regenerate.
4140         * testsuite/27_io/manipulators/standard/char/1.cc: Add
4141         dg-warning for expected deprecated warning.
4142         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
4143         * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
4144         * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
4146 2023-05-30  Alexandre Oliva  <oliva@adacore.com>
4148         * testsuite/20_util/from_chars/4.cc: Skip long double test06
4149         on x86_64-vxworks.
4150         * testsuite/20_util/to_chars/long_double.cc: Xfail run on
4151         x86_64-vxworks.
4153 2023-05-30  Matthias Kretz  <m.kretz@gsi.de>
4155         PR libstdc++/109822
4156         * include/experimental/bits/simd.h (to_native): Use int NTTP
4157         as specified in PTS2.
4158         (to_compatible): Likewise. Add missing tag to call mask
4159         generator ctor.
4160         * testsuite/experimental/simd/pr109822_cast_functions.cc: New
4161         test.
4163 2023-05-30  Matthias Kretz  <m.kretz@gsi.de>
4165         * testsuite/experimental/simd/tests/integer_operators.cc:
4166         Compute expected value differently to avoid getting turned into
4167         a vector shift.
4169 2023-05-30  Matthias Kretz  <m.kretz@gsi.de>
4171         * testsuite/experimental/simd/tests/operator_cvt.cc: Make long
4172         double <-> (u)long conversion tests conditional on sizeof(long
4173         double) and sizeof(long).
4175 2023-05-26  Matthias Kretz  <m.kretz@gsi.de>
4177         * include/experimental/bits/simd_ppc.h (_S_bit_shift_left):
4178         Negative __y is UB, so prefer signed compare.
4180 2023-05-25  Jonathan Wakely  <jwakely@redhat.com>
4182         * testsuite/util/testsuite_allocator.h (PointerBase): Add
4183         relational operators.
4185 2023-05-25  Alexandre Oliva  <oliva@adacore.com>
4187         * testsuite/20_util/to_chars/long_double.cc: Expect execution
4188         fail on x86-vxworks.
4190 2023-05-24  Matthias Kretz  <m.kretz@gsi.de>
4192         PR libstdc++/109949
4193         * include/experimental/bits/simd.h (__intrinsic_type): If
4194         __ALTIVEC__ is defined, map gnu::vector_size types to their
4195         corresponding __vector T types without losing unsignedness of
4196         integer types. Also prefer long long over long.
4197         * include/experimental/bits/simd_ppc.h (_S_popcount): Cast mask
4198         object to the expected unsigned vector type.
4200 2023-05-24  Matthias Kretz  <m.kretz@gsi.de>
4202         PR libstdc++/109261
4203         * include/experimental/bits/simd.h (__intrinsic_type):
4204         Specialize __intrinsic_type<double, 8> and
4205         __intrinsic_type<double, 16> in any case, but provide the member
4206         type only with __aarch64__.
4208 2023-05-24  Matthias Kretz  <m.kretz@gsi.de>
4210         PR libstdc++/109261
4211         * include/experimental/bits/simd_neon.h (_S_reduce): Add
4212         constexpr and make NEON implementation conditional on
4213         not __builtin_is_constant_evaluated.
4215 2023-05-23  Matthias Kretz  <m.kretz@gsi.de>
4217         PR libstdc++/109261
4218         * include/experimental/bits/simd.h (_SimdWrapper::_M_set):
4219         Avoid vector builtin subscripting in constant expressions.
4220         (resizing_simd_cast): Avoid memcpy if constant_evaluated.
4221         (const_where_expression, where_expression, where)
4222         (__extract_part, simd_mask, _SimdIntOperators, simd): Add either
4223         _GLIBCXX_SIMD_CONSTEXPR (on public APIs), or constexpr (on
4224         internal APIs).
4225         * include/experimental/bits/simd_builtin.h (__vector_permute)
4226         (__vector_shuffle, __extract_part, _GnuTraits::_SimdCastType1)
4227         (_GnuTraits::_SimdCastType2, _SimdImplBuiltin)
4228         (_MaskImplBuiltin::_S_store): Add constexpr.
4229         (_CommonImplBuiltin::_S_store_bool_array)
4230         (_SimdImplBuiltin::_S_load, _SimdImplBuiltin::_S_store)
4231         (_SimdImplBuiltin::_S_reduce, _MaskImplBuiltin::_S_load): Add
4232         constant_evaluated case.
4233         * include/experimental/bits/simd_fixed_size.h
4234         (_S_masked_load): Reword comment.
4235         (__tuple_element_meta, __make_meta, _SimdTuple::_M_apply_r)
4236         (_SimdTuple::_M_subscript_read, _SimdTuple::_M_subscript_write)
4237         (__make_simd_tuple, __optimize_simd_tuple, __extract_part)
4238         (__autocvt_to_simd, _Fixed::__traits::_SimdBase)
4239         (_Fixed::__traits::_SimdCastType, _SimdImplFixedSize): Add
4240         constexpr.
4241         (_SimdTuple::operator[], _M_set): Add constexpr and add
4242         constant_evaluated case.
4243         (_MaskImplFixedSize::_S_load): Add constant_evaluated case.
4244         * include/experimental/bits/simd_scalar.h: Add constexpr.
4245         * include/experimental/bits/simd_x86.h (_CommonImplX86): Add
4246         constexpr and add constant_evaluated case.
4247         (_SimdImplX86::_S_equal_to, _S_not_equal_to, _S_less)
4248         (_S_less_equal): Value-initialize to satisfy constexpr
4249         evaluation.
4250         (_MaskImplX86::_S_load): Add constant_evaluated case.
4251         (_MaskImplX86::_S_store): Add constexpr and constant_evaluated
4252         case. Value-initialize local variables.
4253         (_MaskImplX86::_S_logical_and, _S_logical_or, _S_bit_not)
4254         (_S_bit_and, _S_bit_or, _S_bit_xor): Add constant_evaluated
4255         case.
4256         * testsuite/experimental/simd/pr109261_constexpr_simd.cc: New
4257         test.
4259 2023-05-22  Matthias Kretz  <m.kretz@gsi.de>
4261         * include/experimental/bits/simd_builtin.h (_S_fpclassify): Move
4262         __infn into #ifdef'ed block.
4263         * testsuite/experimental/simd/tests/fpclassify.cc: Declare
4264         constants only when used.
4265         * testsuite/experimental/simd/tests/frexp.cc: Likewise.
4266         * testsuite/experimental/simd/tests/logarithm.cc: Likewise.
4267         * testsuite/experimental/simd/tests/trunc_ceil_floor.cc:
4268         Likewise.
4269         * testsuite/experimental/simd/tests/ldexp_scalbn_scalbln_modf.cc:
4270         Move totest and expect1 into #ifdef'ed block.
4272 2023-05-19  Gerald Pfeifer  <gerald@pfeifer.com>
4274         * doc/xml/manual/strings.xml: Move lafstern.org reference to https.
4275         * doc/html/manual/strings.html: Regenerate.
4277 2023-05-17  Jakub Jelinek  <jakub@redhat.com>
4279         PR libstdc++/109883
4280         * testsuite/26_numerics/headers/cmath/constexpr_std_c++23.cc: New test.
4282 2023-05-17  Jakub Jelinek  <jakub@redhat.com>
4284         PR libstdc++/109883
4285         * include/c_global/cmath (atan2, fmod, pow): Move
4286         __gnu_cxx::__promote_2 using templates after _Float{16,32,64,128} and
4287         __gnu_cxx::__bfloat16_t overloads.
4288         (copysign, fdim, fmax, fmin, hypot, nextafter, remainder, remquo):
4289         Likewise.
4290         (fma): Move __gnu_cxx::__promote_3 using template after
4291         _Float{16,32,64,128} and __gnu_cxx::__bfloat16_t overloads.
4293 2023-05-17  Jonathan Wakely  <jwakely@redhat.com>
4295         * testsuite/18_support/headers/limits/synopsis.cc: Uncomment
4296         checks for float_round_style and float_denorm_style.
4298 2023-05-17  Jonathan Wakely  <jwakely@redhat.com>
4300         * include/bits/c++config: Add system_header pragma.
4302 2023-05-17  Jonathan Wakely  <jwakely@redhat.com>
4304         * include/std/expected (expected::and_then, expected::or_else)
4305         (expected::transform, expected::transform_error): Fix exception
4306         specifications as per LWG 3877.
4307         (expected<void, E>::and_then, expected<void, E>::transform):
4308         Likewise.
4309         * testsuite/20_util/expected/lwg3877.cc: New test.
4311 2023-05-17  Ken Matsui  <kmatsui@cs.washington.edu>
4313         * include/std/type_traits: Use __bool_constant instead of
4314         integral_constant.
4316 2023-05-17  Jonathan Wakely  <jwakely@redhat.com>
4318         * configure: Regenerate.
4320 2023-05-16  Jonathan Wakely  <jwakely@redhat.com>
4322         PR libstdc++/109741
4323         * acinclude.m4 (GLIBCXX_CHECK_ALIGNAS_CACHELINE): Define.
4324         * config.h.in: Regenerate.
4325         * configure: Regenerate.
4326         * configure.ac: Use GLIBCXX_CHECK_ALIGNAS_CACHELINE.
4327         * src/c++11/shared_ptr.cc (__gnu_internal::get_mutex): Do not
4328         align lock table if not supported. use __GCC_DESTRUCTIVE_SIZE
4329         instead of hardcoded 64.
4331 2023-05-16  Jonathan Wakely  <jwakely@redhat.com>
4333         * acinclude.m4 (GLIBCXX_USE_C99): Check for isblank in C++11
4334         mode and define _GLIBCXX_USE_C99_CTYPE. Check for <fenv.h>
4335         functions in C++11 mode and define _GLIBCXX_USE_C99_FENV.
4336         * config.h.in: Regenerate.
4337         * configure: Regenerate.
4338         * include/c_compatibility/fenv.h: Check _GLIBCXX_USE_C99_FENV
4339         instead of _GLIBCXX_USE_C99_FENV_TR1.
4340         * include/c_global/cfenv: Likewise.
4341         * include/c_global/cctype: Check _GLIBCXX_USE_C99_CTYPE instead
4342         of _GLIBCXX_USE_C99_CTYPE_TR1.
4344 2023-05-16  Jonathan Wakely  <jwakely@redhat.com>
4346         * acinclude.m4 (GLIBCXX_USE_C99): Check for <stdint.h> types in
4347         C++11 mode and define _GLIBCXX_USE_C99_STDINT. Check for
4348         <inttypes.h> features in C++11 mode and define
4349         _GLIBCXX_USE_C99_INTTYPES and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T.
4350         * config.h.in: Regenerate.
4351         * configure: Regenerate.
4352         * doc/doxygen/user.cfg.in (PREDEFINED): Add new macros.
4353         * include/bits/chrono.h: Check _GLIBCXX_USE_C99_STDINT instead
4354         of _GLIBCXX_USE_C99_STDINT_TR1.
4355         * include/c_compatibility/inttypes.h: Check
4356         _GLIBCXX_USE_C99_INTTYPES and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T
4357         instead of _GLIBCXX_USE_C99_INTTYPES_TR1 and
4358         _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
4359         * include/c_compatibility/stdatomic.h: Check
4360         _GLIBCXX_USE_C99_STDINT instead of _GLIBCXX_USE_C99_STDINT_TR1.
4361         * include/c_compatibility/stdint.h: Likewise.
4362         * include/c_global/cinttypes: Check _GLIBCXX_USE_C99_INTTYPES
4363         and _GLIBCXX_USE_C99_INTTYPES_WCHAR_T instead of
4364         _GLIBCXX_USE_C99_INTTYPES_TR1 and
4365         _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
4366         * include/c_global/cstdint: Check _GLIBCXX_USE_C99_STDINT
4367         instead of _GLIBCXX_USE_C99_STDINT_TR1.
4368         * include/std/atomic: Likewise.
4369         * src/c++11/cow-stdexcept.cc: Likewise.
4370         * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc:
4371         Likewise.
4372         * testsuite/lib/libstdc++.exp (check_v3_target_cstdint):
4373         Likewise.
4375 2023-05-16  Jonathan Wakely  <jwakely@redhat.com>
4377         * acinclude.m4 (GLIBCXX_USE_C99): Check for complex inverse trig
4378         functions in C++11 mode and define _GLIBCXX_USE_C99_COMPLEX_ARC.
4379         * config.h.in: Regenerate.
4380         * configure: Regenerate.
4381         * doc/doxygen/user.cfg.in (PREDEFINED): Add new macro.
4382         * include/std/complex: Check _GLIBCXX_USE_C99_COMPLEX_ARC
4383         instead of _GLIBCXX_USE_C99_COMPLEX_TR1.
4385 2023-05-16  Jonathan Wakely  <jwakely@redhat.com>
4387         * testsuite/ext/debug_allocator/check_deallocate_null.cc: Add
4388         assertion to ensure expected exception is throw.
4390 2023-05-16  Jonathan Wakely  <jwakely@redhat.com>
4392         * testsuite/libstdc++-prettyprinters/chrono.cc: Only test
4393         printer for chrono::zoned_time for cx11 ABI and tzdb effective
4394         target.
4396 2023-05-16  Jonathan Wakely  <jwakely@redhat.com>
4398         * acinclude.m4 (GLIBCXX_CHECK_PTHREAD_MUTEX_CLOCKLOCK): Define
4399         _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK in terms of _GLIBCXX_TSAN.
4400         * configure: Regenerate.
4402 2023-05-12  Jonathan Wakely  <jwakely@redhat.com>
4404         * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Use a non-null pointer
4405         to check for nan, nanf, and nanl.
4406         * configure: Regenerate.
4408 2023-05-12  Jonathan Wakely  <jwakely@redhat.com>
4410         * include/bits/char_traits.h (char_traits<char16_t>): Do not
4411         depend on _GLIBCXX_USE_C99_STDINT_TR1.
4412         (char_traits<char32_t>): Likewise.
4413         * include/experimental/source_location: Likewise.
4415 2023-05-12  Jonathan Wakely  <jwakely@redhat.com>
4417         * include/std/atomic (atomic_int_least8_t, atomic_uint_least8_t)
4418         (atomic_int_least16_t, atomic_uint_least16_t)
4419         (atomic_int_least32_t, atomic_uint_least32_t)
4420         (atomic_int_least64_t, atomic_uint_least64_t)
4421         (atomic_int_fast16_t, atomic_uint_fast16_t)
4422         (atomic_int_fast32_t, atomic_uint_fast32_t)
4423         (atomic_int_fast64_t, atomic_uint_fast64_t)
4424         (atomic_intmax_t, atomic_uintmax_t): Define unconditionally.
4425         * testsuite/29_atomics/headers/stdatomic.h/c_compat.cc: Adjust.
4427 2023-05-12  Jonathan Wakely  <jwakely@redhat.com>
4429         * include/bits/algorithmfwd.h (shuffle): Do not depend on
4430         _GLIBCXX_USE_C99_STDINT_TR1.
4431         * include/bits/ranges_algo.h (shuffle): Likewise.
4432         * include/bits/stl_algo.h (shuffle): Likewise.
4433         * include/ext/random: Likewise.
4434         * include/ext/throw_allocator.h (random_condition): Likewise.
4435         * include/std/random: Likewise.
4436         * src/c++11/cow-string-inst.cc: Likewise.
4437         * src/c++11/random.cc: Likewise.
4439 2023-05-12  Jonathan Wakely  <jwakely@redhat.com>
4441         * testsuite/experimental/feat-cxx14.cc: Remove dependency on
4442         _GLIBCXX_USE_C99_STDINT_TR1.
4444 2023-05-12  Jonathan Wakely  <jwakely@redhat.com>
4446         * testsuite/22_locale/locale/cons/unicode.cc: Remove dependency
4447         on _GLIBCXX_USE_C99_STDINT_TR1.
4449 2023-05-12  Jonathan Wakely  <jwakely@redhat.com>
4451         * testsuite/21_strings/basic_string_view/typedefs.cc: Remove
4452         dependency on _GLIBCXX_USE_C99_STDINT_TR1.
4453         * testsuite/experimental/string_view/typedefs.cc: Likewise.
4455 2023-05-11  Jonathan Wakely  <jwakely@redhat.com>
4457         * src/c++17/floating_from_chars.cc [USE_STRTOD_FOR_FROM_CHARS]
4458         (auto_locale, auto_ferounding): New class types.
4459         (from_chars_impl): Use auto_locale and auto_ferounding.
4461 2023-05-11  Jonathan Wakely  <jwakely@redhat.com>
4463         PR libstdc++/109772
4464         * include/std/chrono (hh_mm_ss::__fits): Remove variable
4465         template.
4466         (hh_mm_ss::__subseconds): Remove __fits from constraints.
4467         * testsuite/std/time/hh_mm_ss/109772.cc: New test.
4468         * testsuite/std/time/hh_mm_ss/1.cc: Adjust expected size for
4469         hh_mm_ss<duration<int, std::pico>>.
4471 2023-05-11  Jonathan Wakely  <jwakely@redhat.com>
4473         * config/abi/pre/gnu.ver: Export basic_string::_S_allocate.
4474         * include/bits/basic_ios.h: Add static assertion checking
4475         traits_type::value_type.
4476         * include/bits/basic_string.h: Likewise. Do not rebind
4477         allocator, and add static assertion checking its value_type.
4478         (basic_string::_Alloc_traits_impl): Remove class template.
4479         (basic_string::_S_allocate): New static member function.
4480         (basic_string::assign): Use _S_allocate.
4481         * include/bits/basic_string.tcc (basic_string::_M_create)
4482         (basic_string::reserve, basic_string::_M_replace): Likewise.
4483         * testsuite/21_strings/basic_string/requirements/explicit_instantiation/debug.cc:
4484         Disable for C++20 and later.
4485         * testsuite/21_strings/basic_string/requirements/explicit_instantiation/int.cc:
4486         Likweise.
4488 2023-05-11  Jonathan Wakely  <jwakely@redhat.com>
4490         PR libstdc++/109758
4491         * include/bits/std_abs.h (abs(__float128)): Handle negative NaN
4492         and negative zero correctly.
4493         * testsuite/26_numerics/headers/cmath/109758.cc: New test.
4495 2023-05-10  François Dumont  <fdumont@gcc.gnu.org>
4497         * include/bits/hashtable_policy.h
4498         (_NodeBuilder<>::_S_build): Use __node_ptr.
4499         (_ReuseOrAllocNode<>): Use __node_ptr in place of __node_type*.
4500         (_AllocNode<>): Likewise.
4501         (_Equality<>::_M_equal): Remove const_iterator usages. Only preserved
4502         to call std::is_permutation in the non-unique key implementation.
4503         * include/bits/hashtable.h (_Hashtable<>::_M_update_begin()): Capture
4504         _M_begin() once.
4505         (_Hashtable<>::_M_bucket_begin(size_type)): Implement implicitly inline.
4506         (_Hashtable<>::_M_insert_bucket_begin): Likewise.
4507         (_Hashtable<>::_M_remove_bucket_begin): Likewise.
4508         (_Hashtable<>::_M_compute_hash_code): Use __node_ptr rather than
4509         const_iterator.
4510         (_Hashtable<>::find): Likewise.
4511         (_Hashtable<>::_M_emplace): Likewise.
4512         (_Hashtable<>::_M_insert_unique): Likewise.
4514 2023-05-09  Jonathan Wakely  <jwakely@redhat.com>
4516         * python/libstdcxx/v6/printers.py (StdChronoDurationPrinter):
4517         Print floating-point durations correctly.
4518         (StdChronoTimePointPrinter): Support printing only the value,
4519         not the type name. Uncomment handling for known clocks.
4520         (StdChronoZonedTimePrinter): Remove type names from output.
4521         (StdChronoCalendarPrinter): Fix hh_mm_ss member access.
4522         (StdChronoTimeZonePrinter): Add equals sign to output.
4523         * testsuite/libstdc++-prettyprinters/chrono.cc: New test.
4525 2023-05-05  Alexandre Oliva  <oliva@adacore.com>
4527         * testsuite/20_util/from_chars/4.cc: Skip long double test06
4528         on aarch64-vxworks.
4529         * testsuite/20_util/to_chars/long_double.cc: Xfail run on
4530         aarch64-vxworks.
4532 2023-05-04  Jonathan Wakely  <jwakely@redhat.com>
4534         * doc/xml/manual/abi.xml (abi.versioning.history): Document
4535         libstdc++.so.6.0.32 and GLIBCXX_3.4.32 version.
4536         * doc/html/manual/abi.html: Regenerate.
4538 2023-05-04  Florian Weimer  <fweimer@redhat.com>
4540         * doc/xml/manual/abi.xml (abi.versioning.history): Add
4541         GCC_7.0.0, GCC_9.0.0, GCC_11.0, GCC_12.0.0, GCC_13.0.0 for
4542         libgcc_s.
4544 2023-05-03  Jakub Jelinek  <jakub@redhat.com>
4546         * src/c++17/floating_from_chars.cc
4547         (_ZSt10from_charsPKcS0_RDF128_St12chars_format): New alias to
4548         _ZSt10from_charsPKcS0_Ru9__ieee128St12chars_format.
4549         * src/c++17/floating_to_chars.cc (_ZSt8to_charsPcS_DF128_): New alias to
4550         _ZSt8to_charsPcS_u9__ieee128.
4551         (_ZSt8to_charsPcS_DF128_St12chars_format): New alias to
4552         _ZSt8to_charsPcS_u9__ieee128St12chars_format.
4553         (_ZSt8to_charsPcS_DF128_St12chars_formati): New alias to
4554         _ZSt8to_charsPcS_u9__ieee128St12chars_formati.
4555         * config/abi/post/powerpc64le-linux-gnu/baseline_symbols.txt: Updated.
4557 2023-05-03  Jakub Jelinek  <jakub@redhat.com>
4559         * configure.host (abi_baseline_pair): Use powerpc64le-linux-gnu
4560         rather than powerpc64-linux-gnu for powerpc64le*-linux*.
4561         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Remove
4562         _ZTI*DF128_, _ZTI*DF64x symbols and symbols in
4563         GLIBCXX_IEEE128_3.4.{29,30,31} and CXXABI_IEEE128_1.3.13 symbol
4564         versions.
4565         * config/abi/post/powerpc64le-linux-gnu/baseline_symbols.txt: New
4566         file.
4568 2023-05-03  Kefu Chai  <kefu.chai@scylladb.com>
4569             Jonathan Wakely  <jwakely@redhat.com>
4571         PR libstdc++/109703
4572         * include/bits/basic_string.h (basic_string(Iter, Iter, Alloc)):
4573         Initialize _M_string_length.
4575 2023-05-02  Jakub Jelinek  <jakub@redhat.com>
4577         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
4578         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
4579         * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
4580         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
4581         * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
4582         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
4583         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
4584         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
4586 2023-05-02  Jakub Jelinek  <jakub@redhat.com>
4588         PR libstdc++/109694
4589         * src/c++98/ios_init.cc: Add #pragma GCC diagnostic ignored for
4590         -Wattribute-alias.
4592 2023-04-28  Jonathan Wakely  <jwakely@redhat.com>
4594         * include/bits/random.h (gamma_distribution): Add to the right
4595         doxygen group.
4596         (discrete_distribution, piecewise_constant_distribution)
4597         (piecewise_linear_distribution): Create a new doxygen group and
4598         fix the incomplete doxygen comments.
4599         * include/bits/uniform_int_dist.h (uniform_int_distribution):
4600         Add to doxygen group.
4602 2023-04-28  Jonathan Wakely  <jwakely@redhat.com>
4604         * include/bits/uses_allocator.h: Add missing @file comment.
4605         * include/bits/regex.tcc: Remove stray doxygen comments.
4606         * include/experimental/memory_resource: Likewise.
4607         * include/std/bit: Tweak doxygen @cond comments.
4608         * include/std/expected: Likewise.
4609         * include/std/numbers: Likewise.
4611 2023-04-28  Jonathan Wakely  <jwakely@redhat.com>
4613         * doc/doxygen/user.cfg.in (STRIP_FROM_PATH): Remove prefixes
4614         from header paths.
4616 2023-04-28  Jonathan Wakely  <jwakely@redhat.com>
4618         * include/bits/move.h: Simplify opening/closing namespace std.
4620 2023-04-28  Jakub Jelinek  <jakub@redhat.com>
4622         PR libstdc++/108969
4623         * config/abi/pre/gnu.ver (GLIBCXX_3.4.32): Export
4624         _ZSt21ios_base_library_initv.
4625         * testsuite/util/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.32
4626         symver and make it the latestp.
4627         * src/c++98/ios_init.cc (ios_base_library_init): New alias.
4628         * acinclude.m4 (libtool_VERSION): Change to 6:32:0.
4629         * include/std/iostream: If init_priority attribute is supported
4630         and _GLIBCXX_SYMVER_GNU, force undefined _ZSt21ios_base_library_initv
4631         symbol into the object.
4632         * configure: Regenerated.
4634 2023-04-27  Jonathan Wakely  <jwakely@redhat.com>
4636         * include/bits/mofunc_impl.h: Fix typo in doxygen comment.
4637         * include/std/format: Likewise.
4639 2023-04-27  Jonathan Wakely  <jwakely@redhat.com>
4641         * doc/doxygen/user.cfg.in (FORMULA_TRANSPARENT, DOT_FONTNAME)
4642         (DOT_FONTSIZE, DOT_TRANSPARENT): Remove obsolete options.
4644 2023-04-27  Jonathan Wakely  <jwakely@redhat.com>
4646         * doc/doxygen/user.cfg.in (SOURCE_BROWSER): Only set to YES for
4647         HTML docs.
4648         * include/bits/gslice_array.h (_DEFINE_VALARRAY_OPERATOR): Omit
4649         from doxygen docs.
4650         * include/bits/indirect_array.h (_DEFINE_VALARRAY_OPERATOR):
4651         Likewise.
4652         * include/bits/mask_array.h (_DEFINE_VALARRAY_OPERATOR):
4653         Likewise.
4654         * include/bits/slice_array.h (_DEFINE_VALARRAY_OPERATOR):
4655         Likewise.
4656         * include/std/valarray (_DEFINE_VALARRAY_UNARY_OPERATOR)
4657         (_DEFINE_VALARRAY_AUGMENTED_ASSIGNMENT)
4658         (_DEFINE_VALARRAY_EXPR_AUGMENTED_ASSIGNMENT)
4659         (_DEFINE_BINARY_OPERATOR): Likewise.
4661 2023-04-27  Jonathan Wakely  <jwakely@redhat.com>
4663         * include/bits/memory_resource.h: Improve doxygen comments.
4664         * include/std/memory_resource: Likewise.
4666 2023-04-27  Jonathan Wakely  <jwakely@redhat.com>
4668         PR libstdc++/40380
4669         * include/bits/basic_string.h: Improve doxygen comments.
4670         * include/bits/cow_string.h: Likewise.
4671         * include/bits/forward_list.h: Likewise.
4672         * include/bits/fs_dir.h: Likewise.
4673         * include/bits/fs_path.h: Likewise.
4674         * include/bits/quoted_string.h: Likewise.
4675         * include/bits/stl_bvector.h: Likewise.
4676         * include/bits/stl_map.h: Likewise.
4677         * include/bits/stl_multimap.h: Likewise.
4678         * include/bits/stl_multiset.h: Likewise.
4679         * include/bits/stl_set.h: Likewise.
4680         * include/bits/stl_vector.h: Likewise.
4681         * include/bits/unordered_map.h: Likewise.
4682         * include/bits/unordered_set.h: Likewise.
4683         * include/std/filesystem: Likewise.
4684         * include/std/iomanip: Likewise.
4686 2023-04-27  Jonathan Wakely  <jwakely@redhat.com>
4688         PR libstdc++/105081
4689         * src/c++11/random.cc (__throw_syserr): New function.
4690         (random_device::_M_init, random_device::_M_init_pretr1): Use new
4691         function for bad tokens.
4692         (random_device::_M_getval): Use new function for read errors.
4693         * testsuite/util/testsuite_random.h (random_device_available):
4694         Change catch handler to use std::system_error.
4696 2023-04-24  Patrick Palka  <ppalka@redhat.com>
4698         * include/bits/max_size_type.h (__max_diff_type::operator>>=):
4699         Fix propagation of sign bit.
4700         * testsuite/std/ranges/iota/max_size_type.cc: Avoid using the
4701         non-standard 'signed typedef-name'.  Add some compile-time tests
4702         for right-shifting a negative __max_diff_type value by more than
4703         one.
4705 2023-04-19  Patrick Palka  <ppalka@redhat.com>
4706             Jonathan Wakely  <jwakely@redhat.com>
4708         PR c++/100157
4709         * include/bits/utility.h (_Nth_type): Conditionally define in
4710         terms of __type_pack_element if available.
4711         * testsuite/20_util/tuple/element_access/get_neg.cc: Prune
4712         additional errors from the new built-in.
4714 2023-04-19  Jonathan Wakely  <jwakely@redhat.com>
4716         Revert:
4717         2023-04-18  Jonathan Wakely  <jwakely@redhat.com>
4719         PR libstdc++/108969
4720         * src/Makefile.am: Move globals_io.cc to here.
4721         * src/Makefile.in: Regenerate.
4722         * src/c++98/Makefile.am: Remove globals_io.cc from here.
4723         * src/c++98/Makefile.in: Regenerate.
4724         * src/c++98/globals_io.cc [_GLIBCXX_SYMVER_GNU] (cin): Adjust
4725         symbol name and then export with GLIBCXX_3.4.31 symver.
4726         (cout, cerr, clog, wcin, wcout, wcerr, wclog): Likewise.
4727         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt:
4728         Regenerate.
4729         * config/abi/post/i486-linux-gnu/baseline_symbols.txt:
4730         Regenerate.
4731         * config/abi/post/m68k-linux-gnu/baseline_symbols.txt:
4732         Regenerate.
4733         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
4734         Regenerate.
4735         * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
4736         Regenerate.
4737         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
4738         Regenerate.
4739         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt:
4740         Regenerate.
4741         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt:
4742         Regenerate.
4743         * config/abi/pre/gnu.ver: Add iostream objects to new symver.
4745 2023-04-19  Jonathan Wakely  <jwakely@redhat.com>
4747         Revert:
4748         2023-04-18  Jonathan Wakely  <jwakely@redhat.com>
4750         PR libstdc++/108969
4751         * config/abi/pre/gnu.ver: Fix preprocessor condition.
4753 2023-04-18  Jonathan Wakely  <jwakely@redhat.com>
4755         * doc/xml/manual/extensions.xml: Fix example to declare and
4756         qualify std::free, and use NULL instead of 0.
4757         * doc/html/manual/ext_demangling.html: Regenerate.
4758         * libsupc++/cxxabi.h: Adjust doxygen comments.
4760 2023-04-18  Jonathan Wakely  <jwakely@redhat.com>
4762         PR libstdc++/108969
4763         * config/abi/pre/gnu.ver: Fix preprocessor condition.
4765 2023-04-18  Jonathan Wakely  <jwakely@redhat.com>
4767         PR libstdc++/108969
4768         * src/Makefile.am: Move globals_io.cc to here.
4769         * src/Makefile.in: Regenerate.
4770         * src/c++98/Makefile.am: Remove globals_io.cc from here.
4771         * src/c++98/Makefile.in: Regenerate.
4772         * src/c++98/globals_io.cc [_GLIBCXX_SYMVER_GNU] (cin): Adjust
4773         symbol name and then export with GLIBCXX_3.4.31 symver.
4774         (cout, cerr, clog, wcin, wcout, wcerr, wclog): Likewise.
4775         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt:
4776         Regenerate.
4777         * config/abi/post/i486-linux-gnu/baseline_symbols.txt:
4778         Regenerate.
4779         * config/abi/post/m68k-linux-gnu/baseline_symbols.txt:
4780         Regenerate.
4781         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
4782         Regenerate.
4783         * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
4784         Regenerate.
4785         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
4786         Regenerate.
4787         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt:
4788         Regenerate.
4789         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt:
4790         Regenerate.
4791         * config/abi/pre/gnu.ver: Add iostream objects to new symver.
4793 2023-04-18  Patrick Palka  <ppalka@redhat.com>
4795         PR libstdc++/108827
4796         * include/bits/ranges_cmp.h (__cpp_lib_ranges): Bump value
4797         for C++23.
4798         * include/std/ranges (range_adaptor_closure): Define for C++23.
4799         * include/std/version (__cpp_lib_ranges): Bump value for
4800         C++23.
4801         * testsuite/std/ranges/version_c++23.cc: Bump expected value
4802         of __cpp_lib_ranges.
4803         * testsuite/std/ranges/range_adaptor_closure.cc: New test.
4805 2023-04-18  Patrick Palka  <ppalka@redhat.com>
4807         * include/bits/ranges_algo.h (__cpp_lib_ranges_contains):
4808         Define for C++23.
4809         (__cpp_lib_ranges_iota): Likewise.
4810         (__cpp_lib_ranges_find_last): Likewise.
4811         (__cpp_lib_fold): Rename to ...
4812         (__cpp_lib_ranges_fold): ... this.
4813         * include/std/version: As above.
4814         * testsuite/25_algorithms/fold_left/1.cc: Adjust after
4815         renaming __cpp_lib_fold.
4816         * testsuite/std/ranges/version_c++23.cc: Verify values
4817         of the above feature-test macros.
4819 2023-04-18  Patrick Palka  <ppalka@redhat.com>
4821         PR libstdc++/109525
4822         * include/std/ranges (views::_AsConst::operator()): Add
4823         missing const to constant_range test.
4824         * testsuite/std/ranges/adaptors/as_const/1.cc (test02):
4825         Improve formatting.  Adjust expected type of v2.
4826         (test03): New test.
4828 2023-04-14  Patrick Palka  <ppalka@redhat.com>
4830         * include/bits/ranges_base.h (const_iterator_t): Define for C++23.
4831         (const_sentinel_t): Likewise.
4832         (range_const_reference_t): Likewise.
4833         (constant_range): Likewise.
4834         (__cust_access::__possibly_const_range): Likewise, replacing ...
4835         (__cust_access::__as_const): ... this.
4836         (__cust_access::_CBegin::operator()): Redefine for C++23 as per P2278R4.
4837         (__cust_access::_CEnd::operator()): Likewise.
4838         (__cust_access::_CRBegin::operator()): Likewise.
4839         (__cust_access::_CREnd::operator()): Likewise.
4840         (__cust_access::_CData::operator()): Likewise.
4841         * include/bits/ranges_util.h (ranges::__detail::__different_from):
4842         Make it an alias of std::__detail::__different_from.
4843         (view_interface::cbegin): Define for C++23.
4844         (view_interface::cend): Likewise.
4845         * include/bits/stl_iterator.h (__detail::__different_from): Define.
4846         (iter_const_reference_t): Define for C++23.
4847         (__detail::__constant_iterator): Likewise.
4848         (__detail::__is_const_iterator): Likewise.
4849         (__detail::__not_a_const_iterator): Likewise.
4850         (__detail::__iter_const_rvalue_reference_t): Likewise.
4851         (__detail::__basic_const_iter_cat):: Likewise.
4852         (const_iterator): Likewise.
4853         (__detail::__const_sentinel): Likewise.
4854         (const_sentinel): Likewise.
4855         (basic_const_iterator): Likewise.
4856         (common_type<basic_const_iterator<_Tp>, _Up>): Likewise.
4857         (common_type<_Up, basic_const_iterator<_Tp>>): Likewise.
4858         (common_type<basic_const_iterator<_Tp>, basic_const_iterator<Up>>):
4859         Likewise.
4860         (make_const_iterator): Define for C++23.
4861         (make_const_sentinel): Likewise.
4862         * include/std/ranges (__cpp_lib_ranges_as_const): Likewise.
4863         (as_const_view): Likewise.
4864         (enable_borrowed_range<as_const_view>): Likewise.
4865         (views::__detail::__is_ref_view): Likewise.
4866         (views::__detail::__can_is_const_view): Likewise.
4867         (views::_AsConst, views::as_const): Likewise.
4868         * include/std/span (span::const_iterator): Likewise.
4869         (span::const_reverse_iterator): Likewise.
4870         (span::cbegin): Likewise.
4871         (span::cend): Likewise.
4872         (span::crbegin): Likewise.
4873         (span::crend): Likewise.
4874         * include/std/version (__cpp_lib_ranges_as_const): Likewise.
4875         * testsuite/std/ranges/adaptors/join.cc (test06): Adjust to
4876         behave independently of C++20 vs C++23.
4877         * testsuite/std/ranges/version_c++23.cc: Verify value of
4878         __cpp_lib_ranges_as_const macro.
4879         * testsuite/24_iterators/const_iterator/1.cc: New test.
4880         * testsuite/std/ranges/adaptors/as_const/1.cc: New test.
4882 2023-04-14  Patrick Palka  <ppalka@redhat.com>
4884         * include/bits/ranges_base.h (__cust_access::__as_const)
4885         (__cust_access::_CBegin, __cust::cbegin)
4886         (__cust_access::_CEnd, __cust::cend)
4887         (__cust_access::_CRBegin, __cust::crbegin)
4888         (__cust_access::_CREnd, __cust::crend)
4889         (__cust_access::_CData, __cust::cdata): Move down definitions to
4890         shortly after the definition of input_range.
4892 2023-04-14  Patrick Palka  <ppalka@redhat.com>
4894         * include/bits/ranges_algo.h: Include <optional> for C++23.
4895         (__cpp_lib_fold): Define for C++23.
4896         (in_value_result): Likewise.
4897         (__detail::__flipped): Likewise.
4898         (__detail::__indirectly_binary_left_foldable_impl): Likewise.
4899         (__detail::__indirectly_binary_left_foldable): Likewise.
4900         (___detail:__indirectly_binary_right_foldable): Likewise.
4901         (fold_left_with_iter_result): Likewise.
4902         (__fold_left_with_iter_fn, fold_left_with_iter): Likewise.
4903         (__fold_left_fn, fold_left): Likewise.
4904         (__fold_left_first_with_iter_fn, fold_left_first_with_iter):
4905         Likewise.
4906         (__fold_left_first_fn, fold_left_first): Likewise.
4907         (__fold_right_fn, fold_right): Likewise.
4908         (__fold_right_last_fn, fold_right_last): Likewise.
4909         * include/std/version (__cpp_lib_fold): Likewise.
4910         * testsuite/25_algorithms/fold_left/1.cc: New test.
4911         * testsuite/25_algorithms/fold_right/1.cc: New test.
4913 2023-04-14  Jonathan Wakely  <jwakely@redhat.com>
4915         * include/std/format (formatter): Add comment to deleted default
4916         constructor of primary template.
4917         (_Checking_scanner): Add static_assert.
4919 2023-04-12  Jonathan Wakely  <jwakely@redhat.com>
4921         * doc/xml/manual/using.xml: Document libstdc++exp.a library.
4922         * doc/html/*: Regenerate.
4924 2023-04-12  Jonathan Wakely  <jwakely@redhat.com>
4926         * testsuite/17_intro/names.cc [_AIX]: Do not define policy.
4927         * testsuite/19_diagnostics/error_code/cons/lwg3629.cc: Rename
4928         namespace to avoid clashing with libc struct.
4929         * testsuite/19_diagnostics/error_condition/cons/lwg3629.cc:
4930         Likewise.
4931         * testsuite/23_containers/unordered_map/96088.cc: Skip on AIX.
4932         * testsuite/23_containers/unordered_multimap/96088.cc: Likewise.
4933         * testsuite/23_containers/unordered_multiset/96088.cc: Likewise.
4934         * testsuite/23_containers/unordered_set/96088.cc: Likewise.
4935         * testsuite/experimental/synchronized_value.cc: Require gthreads
4936         and add missing option for pthreads targets.
4938 2023-04-12  Patrick Palka  <ppalka@redhat.com>
4940         * include/std/ranges (__cpp_lib_ranges_enumerate): Define
4941         for C++23.
4942         (__detail::__range_with_movable_reference): Likewise.
4943         (enumerate_view): Likewise.
4944         (enumerate_view::_Iterator): Likewise.
4945         (enumerate_view::_Sentinel): Likewise.
4946         (views::__detail::__can_enumerate_view): Likewise.
4947         (views::_Enumerate, views::enumerate): Likewise.
4948         * include/std/version (__cpp_lib_ranges_enumerate): Likewise.
4949         * testsuite/std/ranges/version_c++23.cc: Verify value of
4950         __cpp_lib_ranges_enumerate.
4951         * testsuite/std/ranges/adaptors/enumerate/1.cc: New test.
4953 2023-04-12  Patrick Palka  <ppalka@redhat.com>
4955         * include/std/ranges (lazy_split_view::_OuterIter::_OuterIter):
4956         Propagate _M_trailing_empty in the const-converting constructor
4957         as per LWG 3904.
4958         * testsuite/std/ranges/adaptors/adjacent/1.cc (test04): Correct
4959         assertion.
4960         * testsuite/std/ranges/adaptors/lazy_split.cc (test12): New test.
4962 2023-04-12  Patrick Palka  <ppalka@redhat.com>
4964         * src/c++17/floating_from_chars.cc: Include <algorithm>,
4965         <iterator>, <limits> and <cstdint>.
4967 2023-04-12  Patrick Palka  <ppalka@redhat.com>
4969         PR libstdc++/108291
4970         * include/std/ranges (chunk_by_view::_M_find_next): Generalize
4971         parameter types of the lambda wrapper passed to adjacent_find.
4972         (chunk_by_view::_M_find_prev): Likewise.
4973         * testsuite/std/ranges/adaptors/chunk_by/1.cc (test04, test05):
4974         New tests.
4976 2023-04-12  Jonathan Wakely  <jwakely@redhat.com>
4978         PR libstdc++/109482
4979         * include/experimental/internet (basic_endpoint::basic_endpoint()):
4980         Ensure that the required union members are active. Only define
4981         as constexpr for C++20 and later.
4982         (basic_endpoint::basic_endpoint(const protocol_type&, port_type)):
4983         Likewise.
4984         * testsuite/experimental/net/internet/endpoint/cons.cc: Only
4985         check constexpr default constructor for C++20 and later.
4986         * testsuite/experimental/net/internet/endpoint/extensible.cc:
4987         Likewise.
4989 2023-04-12  Jonathan Wakely  <jwakely@redhat.com>
4991         * src/c++20/tzdata.zi: Import new file from 2023c release.
4993 2023-04-05  Arsen Arsenović  <arsen@aarsen.me>
4995         * include/precompiled/stdc++.h (C++17): Don't double-include
4996         <charconv>, once with wrong conditions.
4997         * testsuite/18_support/96817.cc: Require hosted.
4998         * testsuite/18_support/bad_exception/59392.cc: Ditto.
4999         * testsuite/20_util/scoped_allocator/108952.cc: Ditto.
5000         * testsuite/20_util/uses_allocator/lwg3527.cc: Ditto.
5001         * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
5002         Ditto.
5004 2023-04-05  Arsen Arsenović  <arsen@aarsen.me>
5006         * include/bits/c++config: When __STDC_HOSTED__ is zero,
5007         disable _GLIBCXX_DEBUG and, if it was set, enable
5008         _GLIBCXX_ASSERTIONS.
5009         * testsuite/lib/libstdc++.exp (check_v3_target_debug_mode):
5010         Include <bits/c++config.h> when determining whether debug is
5011         set, in order to inherit the logic from above
5013 2023-04-05  Arsen Arsenović  <arsen@aarsen.me>
5015         * testsuite/17_intro/versionconflict.cc: New test.
5016         * include/std/version: Allow disabling the system_header pragma
5017         via _GLIBCXX_TESTING_SYSHDR.
5019 2023-04-05  Arsen Arsenović  <arsen@aarsen.me>
5021         * include/bits/unique_ptr.h (__cpp_lib_constexpr_memory):
5022         Synchronize the definition block with...
5023         * include/bits/ptr_traits.h (__cpp_lib_constexpr_memory):
5024         ... this one here.  Also define the 202202L value, rather than
5025         leaving it up to purely unique_ptr.h, so that the value is
5026         synchronized across all headers.
5027         (__gnu_debug::_Safe_iterator_base): Move into new conditional
5028         block.
5029         * include/std/memory (__cpp_lib_atomic_value_initialization):
5030         Define on freestanding under the same conditions as in
5031         atomic_base.h.
5032         * include/std/version (__cpp_lib_robust_nonmodifying_seq_ops):
5033         Also define on freestanding.
5034         (__cpp_lib_to_chars): Ditto.
5035         (__cpp_lib_gcd): Ditto.
5036         (__cpp_lib_gcd_lcm): Ditto.
5037         (__cpp_lib_raw_memory_algorithms): Ditto.
5038         (__cpp_lib_array_constexpr): Ditto.
5039         (__cpp_lib_nonmember_container_access): Ditto.
5040         (__cpp_lib_clamp): Ditto.
5041         (__cpp_lib_constexpr_char_traits): Ditto.
5042         (__cpp_lib_constexpr_string): Ditto.
5043         (__cpp_lib_sample): Ditto.
5044         (__cpp_lib_lcm): Ditto.
5045         (__cpp_lib_constexpr_iterator): Ditto.
5046         (__cpp_lib_constexpr_char_traits): Ditto.
5047         (__cpp_lib_interpolate): Ditto.
5048         (__cpp_lib_constexpr_utility): Ditto.
5049         (__cpp_lib_shift): Ditto.
5050         (__cpp_lib_ranges): Ditto.
5051         (__cpp_lib_move_iterator_concept): Ditto.
5052         (__cpp_lib_constexpr_numeric): Ditto.
5053         (__cpp_lib_constexpr_functional): Ditto.
5054         (__cpp_lib_constexpr_algorithms): Ditto.
5055         (__cpp_lib_constexpr_tuple): Ditto.
5056         (__cpp_lib_constexpr_memory): Ditto.
5058 2023-04-05  John David Anglin  <danglin@gcc.gnu.org>
5060         * testsuite/22_locale/locale/cons/12658_thread-2.cc: Double
5061         timeout factor on hppa*-*-*.
5063 2023-04-05  Jonathan Wakely  <jwakely@redhat.com>
5065         * include/bits/regex.h (sub_match::swap): New function.
5066         * testsuite/28_regex/sub_match/lwg3204.cc: New test.
5068 2023-04-04  Jonathan Wakely  <jwakely@redhat.com>
5070         * doc/xml/manual/extensions.xml: Remove std::bad_exception from
5071         example program.
5072         * doc/html/manual/ext_demangling.html: Regenerate.
5074 2023-03-31  Jonathan Wakely  <jwakely@redhat.com>
5076         PR tree-optimization/107087
5077         * include/bits/cow_string.h (basic_string::size()): Add
5078         optimizer hint that _S_empty_rep()._M_length is always zero.
5079         (basic_string::length()): Call size().
5081 2023-03-31  Jonathan Wakely  <jwakely@redhat.com>
5083         PR libstdc++/109339
5084         * include/std/stop_token (_Stop_state_ptr(const stop_source&)):
5085         Add attribute access with access-mode 'none'.
5086         * testsuite/30_threads/stop_token/stop_source/109339.cc: New test.
5088 2023-03-31  Jonathan Wakely  <jwakely@redhat.com>
5090         * include/experimental/internet (ip::basic_endpoint::_M_if_v6):
5091         Revert change from member function to data member. Fix for
5092         constant evaluation by detecting which union member is active.
5093         (ip::basic_endpoint::resize): Revert changes to update _M_is_v6
5094         flag.
5096 2023-03-29  Jonathan Wakely  <jwakely@redhat.com>
5098         PR libstdc++/109242
5099         * testsuite/20_util/optional/monadic/pr109340.cc: Moved to...
5100         * testsuite/20_util/optional/monadic/pr109242.cc: ...here.
5102 2023-03-29  Jonathan Wakely  <jwakely@redhat.com>
5104         * include/experimental/internet (ip::make_address): Implement
5105         missing overload.
5106         (ip::address_v4::broadcast()): Avoid undefined shift.
5107         (ip::basic_endpoint): Fix member functions for constexpr.
5108         (ip::basic_endpoint::_M_is_v6): Replace member function with
5109         data member, adjust member functions using it.
5110         (ip::basic_endpoint::resize): Update _M_is_v6 based on sockaddr
5111         content.
5112         * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
5113         constexpr checks to work in C++14.
5114         * testsuite/experimental/net/internet/address/v4/creation.cc:
5115         Likewise.
5116         * testsuite/experimental/net/internet/endpoint/cons.cc:
5117         Likewise.
5118         * testsuite/experimental/net/internet/network/v4/cons.cc:
5119         Likewise.
5120         * testsuite/experimental/net/internet/network/v4/members.cc:
5121         Likewise.
5122         * testsuite/experimental/net/internet/endpoint/extensible.cc: New test.
5124 2023-03-29  Jonathan Wakely  <jwakely@redhat.com>
5126         * include/std/expected (expected::value() &): Use const lvalue
5127         for unex member passed to bad_expected_access constructor, as
5128         per LWG 3843.
5130 2023-03-29  Jonathan Wakely  <jwakely@redhat.com>
5132         PR libstdc++/109340
5133         * include/std/expected (expected::transform): Use
5134         std::remove_cv_t instead of std::remove_cvref_t.
5135         (expected::transform_error): Likewise.
5136         (expected<cv void, E>::transform): Likewise.
5137         (expected<cv void, E>::transform_error): Likewise.
5138         * include/std/optional (transform): Use std::remove_cv_t.
5139         * testsuite/20_util/optional/monadic/pr109340.cc: New test.
5141 2023-03-29  Jonathan Wakely  <jwakely@redhat.com>
5143         * include/std/optional (optional): Adjust static assertion to
5144         reject arrays and functions as well as references.
5145         * testsuite/20_util/optional/requirements_neg.cc: New test.
5147 2023-03-28  Jonathan Wakely  <jwakely@redhat.com>
5149         PR libstdc++/103387
5150         * include/bits/istream.tcc (istream::_M_extract(ValueT&)): Use
5151         std::use_facet instead of cached _M_num_get facet.
5152         (istream::operator>>(short&)): Likewise.
5153         (istream::operator>>(int&)): Likewise.
5154         * include/bits/ostream.tcc (ostream::_M_insert(ValueT)): Use
5155         std::use_facet instead of cached _M_num_put facet.
5157 2023-03-28  Jonathan Wakely  <jwakely@redhat.com>
5159         * include/bits/char_traits.h (char_traits::copy): Return without
5160         using memcpy if n==0.
5161         (char_traits::assign): Likewise for memset.
5163 2023-03-28  Jonathan Wakely  <jwakely@redhat.com>
5165         PR libstdc++/109299
5166         * include/bits/basic_string.h (basic_string::_M_is_local()): Add
5167         hint for compiler that local strings fit in the local buffer.
5169 2023-03-28  Jonathan Wakely  <jwakely@redhat.com>
5171         PR libstdc++/109288
5172         * include/std/chrono (__detail::__get_leap_second_info): Update
5173         expiry date of hardcoded leapseconds list.
5174         * src/c++20/tzdb.cc (tzdb_list::_Node::_S_read_leap_seconds()):
5175         Likewise.
5176         * src/c++20/tzdata.zi: Import new file from 2023a release.
5177         * testsuite/std/time/time_zone/get_info_local.cc: Only check
5178         transitions for Egypt up to 2014.
5180 2023-03-28  Matthias Kretz  <m.kretz@gsi.de>
5182         * include/experimental/bits/simd.h (is_simd_flag_type): New.
5183         (_IsSimdFlagType): New.
5184         (copy_from, copy_to, load ctors): Constrain _Flags using
5185         _IsSimdFlagType.
5187 2023-03-28  Matthias Kretz  <m.kretz@gsi.de>
5189         * include/experimental/bits/simd_x86.h (_SimdImplX86): Use
5190         _Base::_S_divides if the optimized _S_divides function is hidden
5191         via the preprocessor.
5193 2023-03-27  Jakub Jelinek  <jakub@redhat.com>
5195         * testsuite/experimental/net/timer/waitable/dest.cc: Avoid -Wformat
5196         warning if size_t is not unsigned long.
5198 2023-03-22  Jonathan Wakely  <jwakely@redhat.com>
5200         * include/bits/shared_ptr_atomic.h (atomic::operator=(nullptr_t)):
5201         Add overload, as per LWG 3893.
5202         * testsuite/20_util/shared_ptr/atomic/atomic_shared_ptr.cc:
5203         Check assignment from nullptr.
5205 2023-03-22  Jonathan Wakely  <jwakely@redhat.com>
5207         * include/std/format (formatter<const charT[N], charT>): Do not
5208         define partial speclialization, as per LWG 3833.
5209         * testsuite/std/format/formatter/requirements.cc: Check it.
5211 2023-03-22  Jonathan Wakely  <jwakely@redhat.com>
5213         * include/std/utility (__cpp_lib_constexpr_algorithms): Define,
5214         as per LWG 3792.
5215         * testsuite/20_util/exchange/constexpr.cc: Check for it.
5217 2023-03-22  Jonathan Wakely  <jwakely@redhat.com>
5219         * include/std/version (__cpp_lib_format): Define.
5220         * testsuite/std/format/functions/format.cc: Check it.
5222 2023-03-22  Jonathan Wakely  <jwakely@redhat.com>
5224         * include/bits/basic_string.tcc (basic_string::resize_and_overwrite):
5225         Pass rvalues to the callback, as now allowed by LWG 3645.
5226         Enforce preconditions on the return value.
5227         * testsuite/21_strings/basic_string/capacity/char/resize_and_overwrite.cc:
5228         Adjust.
5230 2023-03-22  Jonathan Wakely  <jwakely@redhat.com>
5232         * include/std/format: Add a comment noting that the resolution
5233         of LWG 3720 has been applied..
5235 2023-03-22  Jonathan Wakely  <jwakely@redhat.com>
5237         * include/bits/regex.h (match_results): Add allocator-extended
5238         copy and move constructors, as per LWG 2195.
5239         * testsuite/28_regex/match_results/ctors/char/alloc.cc: New test.
5241 2023-03-22  Jonathan Wakely  <jwakely@redhat.com>
5243         * include/bits/stream_iterator.h (istream_iterator): Add
5244         constexpr to copy constructor, as per LWG 3600.
5245         * testsuite/24_iterators/istream_iterator/cons/constexpr.cc:
5246         Check copy construction.
5248 2023-03-21  Matthias Kretz  <m.kretz@gsi.de>
5250         * include/experimental/bits/simd_x86.h
5251         (_SimdImplX86::_S_divides): Replace test for __GCC_IEC_559 == 0
5252         with __RECIPROCAL_MATH__.
5254 2023-03-21  Matthias Kretz  <m.kretz@gsi.de>
5256         * include/experimental/bits/simd_detail.h: Don't define
5257         _GLIBCXX_SIMD_WORKAROUND_PR90993 for Clang.
5258         * include/experimental/bits/simd_x86.h (_S_divides): Remove
5259         check for __clang__.
5261 2023-03-21  Matthias Kretz  <m.kretz@gsi.de>
5263         * include/experimental/bits/simd_detail.h: Don't declare the
5264         simd API as constexpr with Clang.
5265         * include/experimental/bits/simd_x86.h (__movm): New.
5266         (_S_blend_avx512): Resolve FIXME. Implement blend using __movm
5267         and ?:.
5268         (_SimdImplX86::_S_masked_unary): Clang does not implement the
5269         same builtins. Implement the function using __movm, ?:, and -
5270         operators on vector_size types instead.
5272 2023-03-21  Matthias Kretz  <m.kretz@gsi.de>
5274         * testsuite/experimental/simd/tests/operators.cc: Clang doesn't
5275         define __GCC_IEC_559. Use __STDC_IEC_559__ instead.
5277 2023-03-20  Jonathan Wakely  <jwakely@redhat.com>
5279         * src/filesystem/ops-common.h (get_temp_directory_from_env): Fix
5280         formatting.
5282 2023-03-20  Marek Polacek  <polacek@redhat.com>
5284         PR c++/109159
5285         * testsuite/20_util/pair/cons/explicit_construct.cc: Adjust dg-error.
5286         * testsuite/20_util/tuple/cons/explicit_construct.cc: Likewise.
5287         * testsuite/23_containers/span/explicit.cc: Likewise.
5289 2023-03-20  Jonathan Wakely  <jwakely@redhat.com>
5291         PR libstdc++/109182
5292         * include/std/expected (expected<void>::expected(in_place_t)):
5293         Remove template-head.
5295 2023-03-18  Jonathan Wakely  <jwakely@redhat.com>
5297         PR libstdc++/109165
5298         * testsuite/18_support/coroutines/hash.cc: Use const object
5299         in second call.
5301 2023-03-17  Jonathan Wakely  <jwakely@redhat.com>
5303         PR libstdc++/109165
5304         * include/std/coroutine (hash<>::operator()): Add const.
5305         * testsuite/18_support/coroutines/hash.cc: New test.
5307 2023-03-14  Patrick Palka  <ppalka@redhat.com>
5309         PR libstdc++/109111
5310         * include/std/ranges (repeat_view): Remove redundant parentheses
5311         in requires-clause.
5312         (repeat_view::_Iterator): Correct the requires-clause.
5314 2023-03-14  Patrick Palka  <ppalka@redhat.com>
5316         * include/bits/stl_iterator.h (move_iterator::_S_iter_concept):
5317         Define.
5318         (__cpp_lib_move_iterator_concept): Define for C++20.
5319         (move_iterator::iterator_concept): Strengthen as per P2520R0.
5320         * include/std/version (__cpp_lib_move_iterator_concept): Define
5321         for C++20.
5322         * testsuite/24_iterators/move_iterator/p2520r0.cc: New test.
5324 2023-03-14  Patrick Palka  <ppalka@redhat.com>
5326         * include/bits/ranges_util.h (view_interface::empty): Add
5327         preferred overloads that use ranges::size when the range is
5328         sized as per LWG 3715.
5329         * testsuite/std/ranges/adaptors/lwg3715.cc: New test.
5331 2023-03-14  Jonathan Wakely  <jwakely@redhat.com>
5333         * include/bits/chrono.h (__is_duration_v, __is_time_point_v):
5334         Only define for C++17 and later.
5336 2023-03-14  Jonathan Wakely  <jwakely@redhat.com>
5338         * src/Makefile.am: Add comment about linker script fragments.
5339         * src/Makefile.in: Regenerate.
5341 2023-03-14  Jonathan Wakely  <jwakely@redhat.com>
5343         PR libstdc++/62196
5344         * include/bits/mask_array.h (mask_array): Add assertions to
5345         assignment operators.
5346         * include/std/valarray (valarray::operator[](valarray<bool>)):
5347         Add assertions.
5348         * testsuite/26_numerics/valarray/mask-1_neg.cc: New test.
5349         * testsuite/26_numerics/valarray/mask-2_neg.cc: New test.
5350         * testsuite/26_numerics/valarray/mask-3_neg.cc: New test.
5351         * testsuite/26_numerics/valarray/mask-4_neg.cc: New test.
5352         * testsuite/26_numerics/valarray/mask-5_neg.cc: New test.
5353         * testsuite/26_numerics/valarray/mask-6_neg.cc: New test.
5354         * testsuite/26_numerics/valarray/mask-7_neg.cc: New test.
5355         * testsuite/26_numerics/valarray/mask-8_neg.cc: New test.
5356         * testsuite/26_numerics/valarray/mask.cc: New test.
5358 2023-03-13  Jakub Jelinek  <jakub@redhat.com>
5360         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
5361         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
5363 2023-03-13  Jonathan Wakely  <jwakely@redhat.com>
5365         * doc/Makefile.am: Add comment referring to documentation.
5366         * doc/Makefile.in: Regenerate.
5368 2023-03-13  Jonathan Wakely  <jwakely@redhat.com>
5370         * doc/html/*: Regenerate.
5372 2023-03-13  Jonny Grant  <jg@jguk.org>
5374         * doc/xml/faq.xml: Update copyright year.
5376 2023-03-13  Jonathan Wakely  <jwakely@redhat.com>
5378         * include/bits/allocator.h: Fix typo in comment.
5380 2023-03-12  Jakub Jelinek  <jakub@redhat.com>
5382         * config/abi/pre/gnu.ver (CXXABI_1.3.14): Also export __bf16 tinfos
5383         if it isn't mangled as DF16b but u6__bf16.
5385 2023-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
5387         * doc/xml/manual/documentation_hacking.xml: Move www.graphviz.org
5388         to https.
5389         * doc/html/manual/documentation_hacking.html: Regenerate.
5391 2023-03-10  Jonathan Wakely  <jwakely@redhat.com>
5393         PR libstdc++/109064
5394         * python/libstdcxx/v6/xmethods.py (SharedPtrUseCountWorker):
5395         Remove self-recursion in __init__. Add missing _supports.
5396         * testsuite/libstdc++-xmethods/shared_ptr.cc: Check use_count()
5397         and unique().
5399 2023-03-09  Patrick Palka  <ppalka@redhat.com>
5401         * include/std/ranges
5402         (cartesian_product_view::_Iterator::_Iterator): Remove
5403         constraint on default constructor as per LWG 3849.
5404         (cartesian_product_view::_Iterator::_M_prev): Adjust position
5405         of _Nm > 0 test as per LWG 3820.
5406         (cartesian_product_view::_Iterator::_M_advance): Perform bounds
5407         checking only on sized cartesian products.
5408         * testsuite/std/ranges/cartesian_product/1.cc (test08): New test.
5410 2023-03-09  Patrick Palka  <ppalka@redhat.com>
5412         PR libstdc++/109024
5413         * include/std/ranges (chunk_by_view::_M_pred): Remove DMI as per
5414         LWG 3796.
5415         (repeat_view::_M_pred): Likewise.
5416         * testsuite/std/ranges/adaptors/chunk_by/1.cc (test03): New test.
5417         * testsuite/std/ranges/repeat/1.cc (test05): New test.
5419 2023-03-09  Patrick Palka  <ppalka@redhat.com>
5421         PR libstdc++/108362
5422         * include/std/ranges (__detail::__can_single_view): New concept.
5423         (_Single::operator()): Constrain it.  Move [[nodiscard]] to the
5424         end of the function declarator.
5425         (__detail::__can_iota_view): New concept.
5426         (_Iota::operator()): Constrain it.  Move [[nodiscard]] to the
5427         end of the function declarator.
5428         (__detail::__can_istream_view): New concept.
5429         (_Istream::operator()): Constrain it.  Move [[nodiscard]] to the
5430         end of the function declarator.
5431         * testsuite/std/ranges/iota/iota_view.cc (test07): New test.
5432         * testsuite/std/ranges/istream_view.cc (test08): New test.
5433         * testsuite/std/ranges/single_view.cc (test07): New test.
5435 2023-03-09  Patrick Palka  <ppalka@redhat.com>
5437         PR libstdc++/107572
5438         * include/std/ranges (cartesian_product_view::end): When
5439         building the tuple of iterators, avoid calling ranges::begin on
5440         the first range if __empty_tail is false.
5441         * testsuite/std/ranges/cartesian_product/1.cc (test07): New test.
5443 2023-03-09  Jonathan Wakely  <jwakely@redhat.com>
5445         PR libstdc++/108882
5446         * config/os/gnu-linux/ldbl-ieee128-extra.ver: Fix incorrect
5447         patterns.
5449 2023-03-07  Jakub Jelinek  <jakub@redhat.com>
5451         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
5452         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
5453         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
5454         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
5455         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
5457 2023-03-07  Jonathan Wakely  <jwakely@redhat.com>
5459         PR libstdc++/108882
5460         * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Adjust patterns to
5461         not match symbols in namespace std::__gnu_cxx11_ieee128.
5462         * config/os/gnu-linux/ldbl-ieee128-extra.ver: Add patterns for
5463         std::__gnu_cxx11_ieee128::money_{get,put}.
5465 2023-03-07  Jonathan Wakely  <jwakely@redhat.com>
5467         * libsupc++/eh_personality.cc: Fix spelling in comment.
5469 2023-03-03  Alexandre Oliva  <oliva@adacore.com>
5471         * testsuite/30_threads/async/async.cc (test04): Initialize
5472         steady_start, renamed from steady_begin, next to slow_start.
5473         Increase tolerance for final wait.
5475 2023-03-03  Alexandre Oliva  <oliva@adacore.com>
5477         * testsuite/libstdc++-prettyprinters/80276.cc: Add
5478         std::string to debug info.
5479         * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
5481 2023-03-03  Alexandre Oliva  <oliva@adacore.com>
5483         PR libstdc++/104852
5484         PR libstdc++/95989
5485         PR libstdc++/52590
5486         * include/bits/std_thread.h (thread::_M_thread_deps): New
5487         static implicitly-inline member function.
5488         (std::thread template ctor): Pass it to _M_start_thread.
5489         * src/c++11/thread.cc (thread::_M_start_thread): Name depend
5490         parameter, force it live on entry.
5492 2023-03-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5494         * config/abi/post/i386-solaris/baseline_symbols.txt: Regenerate.
5495         * config/abi/post/i386-solaris/amd64/baseline_symbols.txt:
5496         Likewise.
5497         * config/abi/post/sparc-solaris/baseline_symbols.txt: Likewise.
5498         * config/abi/post/sparc-solaris/sparcv9/baseline_symbols.txt:
5499         Likewise.
5501 2023-03-01  Jonathan Wakely  <jwakely@redhat.com>
5503         * include/bits/cow_string.h: Fix typo in comment.
5505 2023-03-01  Jonathan Wakely  <jwakely@redhat.com>
5507         * src/c++20/tzdb.cc (chrono::tzdb::current_zone()) Use "UTC" if
5508         current time zone cannot be determined.
5509         * testsuite/std/time/tzdb/1.cc: Remove conditions based on
5510         HAVE_TZDB macro and test all members unconditionally.
5512 2023-02-28  Jonathan Wakely  <jwakely@redhat.com>
5514         PR libstdc++/108952
5515         * include/bits/uses_allocator_args.h
5516         (uses_allocator_construction_args): Implement LWG 3527.
5517         * testsuite/20_util/pair/astuple/get-2.cc: New test.
5518         * testsuite/20_util/scoped_allocator/108952.cc: New test.
5519         * testsuite/20_util/uses_allocator/lwg3527.cc: New test.
5521 2023-02-28  Jonathan Wakely  <jwakely@redhat.com>
5523         PR libstdc++/108846
5524         * include/bits/stl_algobase.h (__copy_move<false, false, RA>)
5525         Add __assign_one static member function.
5526         (__copy_move<true, false, RA>): Likewise.
5527         (__copy_move<IsMove, true, RA>): Do not use memmove for a single
5528         value.
5529         (__copy_move_backward<IsMove, true, RA>): Likewise.
5530         * testsuite/25_algorithms/copy/108846.cc: New test.
5531         * testsuite/25_algorithms/copy_backward/108846.cc: New test.
5532         * testsuite/25_algorithms/copy_n/108846.cc: New test.
5533         * testsuite/25_algorithms/move/108846.cc: New test.
5534         * testsuite/25_algorithms/move_backward/108846.cc: New test.
5536 2023-02-28  Jonathan Wakely  <jwakely@redhat.com>
5538         * src/c++11/codecvt.cc: Add [[likely]] and [[unlikely]]
5539         attributes.
5541 2023-02-27  Jonathan Wakely  <jwakely@redhat.com>
5543         * include/bits/basic_ios.h (basic_ios::_M_setstate): Add
5544         caveat to comment.
5545         * include/bits/basic_string.h (resize_and_overwrite): Add
5546         doxygen comment.
5548 2023-02-24  Matthias Kretz  <m.kretz@gsi.de>
5550         * include/experimental/bits/simd.h: Line breaks and indenting
5551         fixed to follow the libstdc++ standard.
5552         * include/experimental/bits/simd_builtin.h: Likewise.
5553         * include/experimental/bits/simd_fixed_size.h: Likewise.
5554         * include/experimental/bits/simd_neon.h: Likewise.
5555         * include/experimental/bits/simd_ppc.h: Likewise.
5556         * include/experimental/bits/simd_scalar.h: Likewise.
5557         * include/experimental/bits/simd_x86.h: Likewise.
5559 2023-02-24  Matthias Kretz  <m.kretz@gsi.de>
5561         PR libstdc++/108030
5562         * include/experimental/bits/simd_fixed_size.h
5563         (_SimdImplFixedSize::_S_broadcast): Replace inline with
5564         _GLIBCXX_SIMD_INTRINSIC.
5565         (_SimdImplFixedSize::_S_generate): Likewise.
5566         (_SimdImplFixedSize::_S_load): Likewise.
5567         (_SimdImplFixedSize::_S_masked_load): Likewise.
5568         (_SimdImplFixedSize::_S_store): Likewise.
5569         (_SimdImplFixedSize::_S_masked_store): Likewise.
5570         (_SimdImplFixedSize::_S_min): Likewise.
5571         (_SimdImplFixedSize::_S_max): Likewise.
5572         (_SimdImplFixedSize::_S_complement): Likewise.
5573         (_SimdImplFixedSize::_S_unary_minus): Likewise.
5574         (_SimdImplFixedSize::_S_plus): Likewise.
5575         (_SimdImplFixedSize::_S_minus): Likewise.
5576         (_SimdImplFixedSize::_S_multiplies): Likewise.
5577         (_SimdImplFixedSize::_S_divides): Likewise.
5578         (_SimdImplFixedSize::_S_modulus): Likewise.
5579         (_SimdImplFixedSize::_S_bit_and): Likewise.
5580         (_SimdImplFixedSize::_S_bit_or): Likewise.
5581         (_SimdImplFixedSize::_S_bit_xor): Likewise.
5582         (_SimdImplFixedSize::_S_bit_shift_left): Likewise.
5583         (_SimdImplFixedSize::_S_bit_shift_right): Likewise.
5584         (_SimdImplFixedSize::_S_remquo): Add inline keyword (to be
5585         explicit about not always-inline, yet).
5586         (_SimdImplFixedSize::_S_isinf): Likewise.
5587         (_SimdImplFixedSize::_S_isfinite): Likewise.
5588         (_SimdImplFixedSize::_S_isnan): Likewise.
5589         (_SimdImplFixedSize::_S_isnormal): Likewise.
5590         (_SimdImplFixedSize::_S_signbit): Likewise.
5592 2023-02-24  Matthias Kretz  <m.kretz@gsi.de>
5594         PR libstdc++/108856
5595         * include/experimental/bits/simd_builtin.h
5596         (_SimdImplBuiltin::_S_masked_unary): More efficient
5597         implementation of masked inc-/decrement for integers and floats
5598         without AVX2.
5599         * include/experimental/bits/simd_x86.h
5600         (_SimdImplX86::_S_masked_unary): New. Use AVX512 masked subtract
5601         builtins for masked inc-/decrement.
5603 2023-02-24  Jonathan Wakely  <jwakely@redhat.com>
5605         * include/experimental/executor (executor): Constrain template
5606         constructors.
5608 2023-02-24  Jonathan Wakely  <jwakely@redhat.com>
5610         * include/experimental/internet (basic_endpoint): Add missing
5611         constexpr to comparison operators.
5612         * testsuite/experimental/net/internet/endpoint/cons.cc: New test.
5614 2023-02-24  Jonathan Wakely  <jwakely@redhat.com>
5616         * include/experimental/internet (network_v4::netmask()): Avoid
5617         undefined shift.
5618         (network_v4::broadcast()): Optimize and fix for targets with
5619         uint_least32_t wider than 32 bits.
5620         (network_v4::to_string(const Allocator&)): Fix for custom
5621         allocators and optimize using to_chars.
5622         (operator==(const network_v4&, const network_v4&)): Add missing
5623         constexpr.
5624         (operator==(const network_v6&, const network_v6&)): Likewise.
5625         * testsuite/experimental/net/internet/network/v4/cons.cc: New test.
5626         * testsuite/experimental/net/internet/network/v4/members.cc: New test.
5628 2023-02-24  Jonathan Wakely  <jwakely@redhat.com>
5630         * include/experimental/internet (address_4(const bytes_type&)):
5631         Use __builtin_bit_cast if available, otherwise convert to
5632         network byte order.
5633         (address_v4::to_bytes()): Likewise, but convert from network
5634         byte order.
5635         * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
5636         incorrect tests. Check for constexpr too.
5637         * testsuite/experimental/net/internet/address/v4/creation.cc:
5638         Likewise.
5639         * testsuite/experimental/net/internet/address/v4/members.cc:
5640         Check that bytes_type is a standard-layout type.
5642 2023-02-24  Jonathan Wakely  <jwakely@redhat.com>
5644         * include/experimental/internet (address_v4::to_string):
5645         Optimize.
5646         * testsuite/experimental/net/internet/address/v4/members.cc:
5647         Check more addresses.
5649 2023-02-24  Jonathan Wakely  <jwakely@redhat.com>
5651         * include/ext/aligned_buffer.h (__aligned_buffer): Add
5652         diagnostic pragmas.
5654 2023-02-24  Jonathan Wakely  <jwakely@redhat.com>
5656         * testsuite/std/format/arguments/lwg3810.cc: Move dg-options
5657         before dg-do.
5659 2023-02-23  Matthias Kretz  <m.kretz@gsi.de>
5661         * testsuite/experimental/simd/tests/reductions.cc: Introduce
5662         max_distance as the type-dependent max error.
5664 2023-02-23  Matthias Kretz  <m.kretz@gsi.de>
5666         * include/experimental/bits/simd_builtin.h (_S_set): Compare as
5667         int. The actual range of these indexes is very small.
5669 2023-02-23  Matthias Kretz  <m.kretz@gsi.de>
5671         * include/experimental/bits/simd_x86.h (_S_bit_shift_left)
5672         (_S_bit_shift_right): Declare constexpr. The implementation was
5673         already expecting constexpr evaluation.
5675 2023-02-23  Matthias Kretz  <m.kretz@gsi.de>
5677         PR libstdc++/108030
5678         * include/experimental/bits/simd_detail.h
5679         (_GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA): Define as empty for
5680         __clang__.
5682 2023-02-23  Matthias Kretz  <m.kretz@gsi.de>
5684         PR libstdc++/108030
5685         * include/experimental/bits/simd.h (__vector_broadcast):
5686         Implement via __vector_broadcast_impl instead of
5687         __call_with_n_evaluations + 2 lambdas.
5688         (__vector_broadcast_impl): New.
5690 2023-02-22  Alexandre Oliva  <oliva@adacore.com>
5692         * src/c++11/shared_ptr.cc (__gnu_internal::get_mutex):
5693         Avoid destruction of the mutex pool.
5695 2023-02-22  Alexandre Oliva  <oliva@adacore.com>
5697         * testsuite/27_io/basic_ofstream/open/char/noreplace.cc: xfail
5698         on vxworks.
5699         * testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc:
5700         Likewise.
5702 2023-02-22  Alexandre Oliva  <oliva@adacore.com>
5704         * testsuite/17_intro/names.cc: Undef func on vxworks >= 7 in
5705         kernel mode.
5707 2023-02-20  Andreas Schwab  <schwab@linux-m68k.org>
5709         * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
5711 2023-02-20  Matthias Kretz  <m.kretz@gsi.de>
5713         * include/experimental/bits/simd.h (__extract_part, split):
5714         Use reserved name for template parameter.
5716 2023-02-20  Andreas Schwab  <schwab@suse.de>
5718         * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
5720 2023-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
5722         * doc/xml/faq.xml: Switch two links to www.open-std.org to https.
5723         * doc/html/faq.html: Regenerate.
5725 2023-02-16  Matthias Kretz  <m.kretz@gsi.de>
5727         * include/experimental/bits/simd_math.h (__hypot): Bitcasting
5728         between scalars requires the __bit_cast helper function instead
5729         of simd_bit_cast.
5731 2023-02-16  Matthias Kretz  <m.kretz@gsi.de>
5733         * include/experimental/bits/simd_x86.h
5734         (_SimdImplX86::_S_not_equal_to, _SimdImplX86::_S_less)
5735         (_SimdImplX86::_S_less_equal): Do not call
5736         __builtin_is_constant_evaluated in constexpr-if.
5738 2023-02-16  Matthias Kretz  <m.kretz@gsi.de>
5740         * testsuite/experimental/simd/tests/bits/verify.h
5741         (verify::verify): Use %zx for size_t in format string.
5743 2023-02-16  Matthias Kretz  <m.kretz@gsi.de>
5745         * testsuite/experimental/simd/generate_makefile.sh: Generate and
5746         pre-compile pch.h, which includes all headers that do not depend
5747         on command-line macros.
5748         * testsuite/experimental/simd/tests/bits/main.h: New file.
5749         (iterate_abis, main): Moved from verify.h.
5750         * testsuite/experimental/simd/tests/bits/verify.h
5751         (iterate_abis, main): Moved to main.h.
5752         * testsuite/experimental/simd/tests/bits/conversions.h: Add
5753         include guard.
5754         (genHalfBits): Simplify.
5755         * testsuite/experimental/simd/tests/bits/make_vec.h: Add include
5756         guard.
5757         (make_alternating_mask): Moved from mask_loadstore.
5758         * testsuite/experimental/simd/tests/bits/mathreference.h: Add
5759         include guard.
5760         * testsuite/experimental/simd/tests/bits/test_values.h: Ditto.
5761         * testsuite/experimental/simd/tests/mask_loadstore.cc
5762         (make_mask, make_alternating_mask): Removed.
5763         * testsuite/experimental/simd/tests/mask_reductions.cc: Ditto.
5764         * testsuite/experimental/simd/tests/operators.cc (genHalfBits):
5765         Removed.
5766         * testsuite/experimental/simd/tests/abs.cc: Only include
5767         bits/main.h.
5768         Ditto.
5769         * testsuite/experimental/simd/tests/algorithms.cc: Ditto.
5770         * testsuite/experimental/simd/tests/broadcast.cc: Ditto.
5771         * testsuite/experimental/simd/tests/casts.cc: Ditto.
5772         * testsuite/experimental/simd/tests/fpclassify.cc: Ditto.
5773         * testsuite/experimental/simd/tests/frexp.cc: Ditto.
5774         * testsuite/experimental/simd/tests/generator.cc: Ditto.
5775         * testsuite/experimental/simd/tests/hypot3_fma.cc: Ditto.
5776         * testsuite/experimental/simd/tests/integer_operators.cc: Ditto.
5777         * testsuite/experimental/simd/tests/ldexp_scalbn_scalbln_modf.cc:
5778         * testsuite/experimental/simd/tests/loadstore.cc: Ditto.
5779         * testsuite/experimental/simd/tests/logarithm.cc: Ditto.
5780         * testsuite/experimental/simd/tests/mask_broadcast.cc: Ditto.
5781         * testsuite/experimental/simd/tests/mask_conversions.cc: Ditto.
5782         * testsuite/experimental/simd/tests/mask_implicit_cvt.cc: Ditto.
5783         * testsuite/experimental/simd/tests/mask_operator_cvt.cc: Ditto.
5784         * testsuite/experimental/simd/tests/mask_operators.cc: Ditto.
5785         * testsuite/experimental/simd/tests/math_1arg.cc: Ditto.
5786         * testsuite/experimental/simd/tests/math_2arg.cc: Ditto.
5787         * testsuite/experimental/simd/tests/operator_cvt.cc: Ditto.
5788         * testsuite/experimental/simd/tests/reductions.cc: Ditto.
5789         * testsuite/experimental/simd/tests/remqo.cc: Ditto.
5790         * testsuite/experimental/simd/tests/simd.cc: Ditto.
5791         * testsuite/experimental/simd/tests/sincos.cc: Ditto.
5792         * testsuite/experimental/simd/tests/split_concat.cc: Ditto.
5793         * testsuite/experimental/simd/tests/splits.cc: Ditto.
5794         * testsuite/experimental/simd/tests/trigonometric.cc: Ditto.
5795         * testsuite/experimental/simd/tests/trunc_ceil_floor.cc: Ditto.
5796         * testsuite/experimental/simd/tests/where.cc: Ditto.
5798 2023-02-16  Matthias Kretz  <m.kretz@gsi.de>
5800         * testsuite/experimental/simd/README.md: Document the timeout
5801         and timeout-factor directives. Minor typo fixed.
5803 2023-02-16  Matthias Kretz  <m.kretz@gsi.de>
5805         PR libstdc++/108030
5806         * include/experimental/bits/simd_detail.h: Define
5807         _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
5808         * include/experimental/bits/simd.h: Annotate lambdas with
5809         _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
5810         * include/experimental/bits/simd_builtin.h: Ditto.
5811         * include/experimental/bits/simd_converter.h: Ditto.
5812         * include/experimental/bits/simd_fixed_size.h: Ditto.
5813         * include/experimental/bits/simd_math.h: Ditto.
5814         * include/experimental/bits/simd_neon.h: Ditto.
5815         * include/experimental/bits/simd_x86.h: Ditto.
5817 2023-02-16  Matthias Kretz  <m.kretz@gsi.de>
5819         * include/experimental/bits/simd.h
5820         (_SimdWrapper::_M_is_constprop_none_of)
5821         (_SimdWrapper::_M_is_constprop_all_of): Return false unless the
5822         computed result still satisfies __builtin_constant_p.
5824 2023-02-16  Jonathan Wakely  <jwakely@redhat.com>
5826         * testsuite/std/format/arguments/lwg3810.cc: Replace UTF-8
5827         ellipsis character.
5829 2023-02-16  Jonathan Wakely  <jwakely@redhat.com>
5831         * include/Makefile.am: Add new header.
5832         * include/Makefile.in: Regenerate.
5833         * include/experimental/synchronized_value: New file.
5834         * testsuite/experimental/synchronized_value.cc: New test.
5836 2023-02-16  Jonathan Wakely  <jwakely@redhat.com>
5838         * include/experimental/optional: Fix header name in comment.
5840 2023-02-16  Jonathan Wakely  <jwakely@redhat.com>
5842         * include/std/format (__format::_Arg_store): New class template.
5843         (basic_format_args): Remove nested type _Store and add deduction
5844         guide from _Arg_store.
5845         (basic_format_arg, make_format_args): Adjust.
5846         * testsuite/std/format/arguments/lwg3810.cc: New test.
5848 2023-02-16  Jonathan Wakely  <jwakely@redhat.com>
5850         * include/bits/stl_pair.h (pair) [C++20]: Add non-dangling
5851         constraints to constructors and add deleted overloads for the
5852         dangling cases, as per P2255R2.
5853         (pair) [!C++20 && _GLIBCXX_DEBUG]: Add static assertions to
5854         make dangling cases ill-formed.
5855         * testsuite/20_util/pair/dangling_ref.cc: New test.
5857 2023-02-16  Jonathan Wakely  <jwakely@redhat.com>
5859         * testsuite/17_intro/names_pstl.cc: Require et tbb_backend.
5861 2023-02-16  Jonathan Wakely  <jwakely@redhat.com>
5863         * include/ext/throw_allocator.h: Use reserved names for
5864         parameters.
5866 2023-02-16  Jonathan Wakely  <jwakely@redhat.com>
5868         * testsuite/17_intro/names_pstl.cc: Add space after effective
5869         target name.
5871 2023-02-16  Jonathan Wakely  <jwakely@redhat.com>
5873         * include/pstl/algorithm_fwd.h (__pattern_search_n)
5874         (__brick_unique_copy, __brick_adjacent_find)
5875         (__brick_generate_n, __pattern_generate_n): Use reserved names
5876         for parameters.
5877         * include/pstl/algorithm_impl.h (__brick_unique_copy)
5878         (__pattern_reverse, __brick_generate_n): Likewise.
5879         * include/pstl/execution_impl.h (__prefer_unsequenced_tag)
5880         (__prefer_parallel_tag): Likewise.
5881         * include/pstl/glue_algorithm_impl.h (transform): Likewise.
5882         * include/pstl/glue_numeric_defs.h (adjacent_difference):
5883         Likewise.
5884         * include/pstl/numeric_impl.h (__brick_adjacent_difference):
5885         Likewise.
5886         * include/pstl/parallel_backend_tbb.h (__merge_func): Likewise.
5887         * include/pstl/unseq_backend_simd.h (_Combiner)
5888         (__simd_min_element, __simd_minmax_element): Likewise.
5889         * testsuite/17_intro/names_pstl.cc: New test.
5891 2023-02-16  Jonathan Wakely  <jwakely@redhat.com>
5893         * include/bits/fs_ops.h (create_directory): Use reserved name
5894         for parameter.
5895         * include/bits/ranges_algo.h (__contains_subrange_fn):
5896         Likewise.
5897         * include/bits/regex_automaton.h (_State_base::_M_print):
5898         Likewise.
5899         * include/bits/regex_automaton.tcc(_State_base::_M_print):
5900         Likewise.
5901         * include/bits/regex_scanner.tcc(_Scanner::_M_print): Likewise.
5902         * include/experimental/bits/fs_ops.h (create_directory):
5903         Likewise.
5904         * include/std/mutex (timed_mutex::_M_clocklock): Likewise.
5905         (recursive_timed_mutex:_M_clocklock): Likewise.
5906         * include/std/tuple (basic_common_reference): Likewise.
5907         * libsupc++/cxxabi_init_exception.h
5908         (__cxa_init_primary_exception): Likewise.
5909         * testsuite/17_intro/names.cc: Add checks.
5911 2023-02-14  Gerald Pfeifer  <gerald@pfeifer.com>
5913         * doc/xml/manual/status_cxx2017.xml: Update an open-std.org link
5914         to www.open-std.org and https.
5915         * doc/html/manual/status.html: Regenerate.
5917 2023-02-14  Thomas W Rodgers  <rodgert@twrodgers.com>
5919         PR libstdc++/103934
5920         * include/std/atomic (atomic_flag_wait): Add.
5921         (atomic_flag_wait_explicit): Add.
5922         (atomic_flag_notify): Add.
5923         (atomic_flag_notify_explicit): Add.
5924         * testsuite/29_atomics/atomic_flag/wait_notify/1.cc:
5925         Add test case to cover missing atomic_flag free functions.
5927 2023-02-14  Thomas W Rodgers  <rodgert@twrodgers.com>
5929         PR libstdc++/103934
5930         * include/std/atomic (atomic_flag_test): Add.
5931         (atomic_flag_test_explicit): Add.
5932         * testsuite/29_atomics/atomic_flag/test/explicit.cc: Add
5933         test case to cover missing atomic_flag free functions.
5934         * testsuite/29_atomics/atomic_flag/test/implicit.cc:
5935         Likewise.
5937 2023-02-13  Gerald Pfeifer  <gerald@pfeifer.com>
5939         * doc/xml/manual/policy_data_structures_biblio.xml: Adjust
5940         "The Component Object Model" reference.
5941         * doc/html/manual/policy_data_structures.html: Regenerate.
5943 2023-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
5945         * doc/xml/manual/containers.xml: Tweak a link to N1780
5946         (C++ standard).
5947         * doc/html/manual/associative.html: Regenerate.
5949 2023-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
5951         * doc/xml/manual/ctype.xml: Change www.unix.org to unix.org.
5952         * doc/html/manual/facets.html: Regenerate.
5954 2023-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
5956         * doc/xml/manual/policy_data_structures_biblio.xml: Update
5957         link to "Worst-case efficient priority queues".
5958         * doc/html/manual/policy_data_structures.html: Regenerate.
5960 2023-02-06  Arsen Arsenović  <arsen@aarsen.me>
5962         * doc/xml/manual/using.xml: Document newly-freestanding
5963         headers and the effect of the -ffreestanding flag.
5964         * doc/xml/manual/status_cxx2023.xml: Document P1642R11 as
5965         completed.
5966         * doc/xml/manual/configure.xml: Document that hosted installs
5967         respect __STDC_HOSTED__.
5968         * doc/xml/manual/test.xml: Document how to run tests in
5969         freestanding mode.
5970         * doc/html/*: Regenerate.
5972 2023-02-06  Jonathan Wakely  <jwakely@redhat.com>
5974         * include/bits/ranges_algo.h (__find_last_fn): Rename T to _Tp.
5975         (__find_last_if_fn): Likewise.
5977 2023-02-06  Jonathan Wakely  <jwakely@redhat.com>
5979         * include/std/type_traits: Add diagnostic pragmas around
5980         references to deprecated std::aligned_storage and
5981         std::aligned_union traits.
5982         * testsuite/20_util/aligned_storage/requirements/alias_decl.cc:
5983         Add dg-warning for et c++23.
5984         * testsuite/20_util/aligned_storage/requirements/explicit_instantiation.cc:
5985         Likewise.
5986         * testsuite/20_util/aligned_storage/value.cc: Likewise.
5987         * testsuite/20_util/aligned_union/1.cc: Likewise.
5988         * testsuite/20_util/aligned_union/requirements/alias_decl.cc:
5989         Likewise.
5991 2023-02-06  Nathaniel Shead  <nathanieloshead@gmail.com>
5993         * doc/doxygen/user.cfg.in (PREDEFINED): Add new macros.
5994         * include/bits/c++config (_GLIBCXX23_DEPRECATED)
5995         (_GLIBCXX23_DEPRECATED_SUGGEST): New macros.
5996         * include/std/type_traits (aligned_storage, aligned_union)
5997         (aligned_storage_t, aligned_union_t): Deprecate for C++23.
5998         * testsuite/20_util/aligned_storage/deprecated-2b.cc: New test.
5999         * testsuite/20_util/aligned_union/deprecated-2b.cc: New test.
6001 2023-02-06  Nathaniel Shead  <nathanieloshead@gmail.com>
6003         * doc/doxygen/user.cfg.in (PREDEFINED): Update macros.
6004         * include/bits/c++config (_GLIBCXX20_DEPRECATED): Make
6005         consistent with other 'deprecated' macros.
6006         * include/std/type_traits (is_pod, is_pod_v): Use
6007         _GLIBCXX20_DEPRECATED_SUGGEST instead.
6009 2023-02-06  Arsen Arsenović  <arsen@aarsen.me>
6011         * Makefile.am [!_GLIBCXX_HOSTED]: Enable src/ subdirectory.
6012         * Makefile.in: Regenerate.
6013         * src/Makefile.am [!_GLIBCXX_HOSTED]: Omit compatibility files.
6014         There's no history to be compatible with.
6015         * src/c++11/Makefile.am [!_GLIBCXX_HOSTED]: Omit hosted-only
6016         source files from the build.
6017         * src/c++17/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
6018         * src/c++20/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
6019         * src/c++98/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
6020         * src/Makefile.in: Regenerate.
6021         * src/c++11/Makefile.in: Regenerate.
6022         * src/c++17/Makefile.in: Regenerate.
6023         * src/c++20/Makefile.in: Regenerate.
6024         * src/c++98/Makefile.in: Regenerate.
6026 2023-02-06  Jonathan Wakely  <jwakely@redhat.com>
6028         * src/Makefile.am [GLIBCXX_HOSTED] (SUBDIRS): Do not add
6029         filesystem, libbacktrace and experimental.
6030         * src/Makefile.in: Regenerate.
6032 2023-02-04  Hans-Peter Nilsson  <hp@axis.com>
6034         PR libstdc++/108672
6035         * include/pstl/unseq_backend_simd.h (__simd_or): Use __INT32_TYPE__
6036         instead of int32_t.
6038 2023-02-04  Gerald Pfeifer  <gerald@pfeifer.com>
6040         * doc/xml/manual/documentation_hacking.xml: Adjust link to pdftex.
6041         * doc/html/manual/documentation_hacking.html: Regenerate.
6043 2023-02-04  François Dumont  <fdumont@gcc.gnu.org>
6045         * include/bits/basic_string.h (operator=(basic_string&&)): Transfer move-to
6046         storage to the move-from instance when allocators are equal.
6047         * testsuite/21_strings/basic_string/allocator/char/move_assign.cc (test04):
6048         New test case.
6050 2023-02-03  Samuel Thibault  <samuel.thibault@gnu.org>
6052         * config/os/gnu-linux/os_defines.h [!__linux__]
6053         (_GLIBCXX_NATIVE_THREAD_ID, _GLIBCXX_GTHREAD_USE_WEAK): Do not define.
6055 2023-02-03  Patrick Palka  <ppalka@redhat.com>
6057         * include/bits/ranges_algo.h (__find_last_fn, find_last):
6058         Define.
6059         (__find_last_if_fn, find_last_if): Define.
6060         (__find_last_if_not_fn, find_last_if_not): Define.
6061         * testsuite/25_algorithms/find_last/1.cc: New test.
6062         * testsuite/25_algorithms/find_last_if/1.cc: New test.
6063         * testsuite/25_algorithms/find_last_if_not/1.cc: New test.
6065 2023-02-03  Patrick Palka  <ppalka@redhat.com>
6067         * include/bits/ranges_algo.h (out_value_result): Define.
6068         (iota_result): Define.
6069         (__iota_fn, iota): Define.
6070         * testsuite/25_algorithms/iota/1.cc: New test.
6072 2023-02-03  Patrick Palka  <ppalka@redhat.com>
6074         * include/bits/ranges_algo.h (__contains_fn, contains): Define.
6075         (__contains_subrange_fn, contains_subrange): Define.
6076         * testsuite/25_algorithms/contains/1.cc: New test.
6077         * testsuite/25_algorithms/contains_subrange/1.cc: New test.
6079 2023-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
6081         * doc/xml/manual/abi.xml: Tweak link to ABIcheck project.
6082         * doc/html/manual/abi.html: Regenerate.
6084 2023-02-02  Jonathan Wakely  <jwakely@redhat.com>
6086         * src/filesystem/ops-common.h [AVR] (__unsupported): Always use
6087         errc::function_not_supported instead of errc::not_supported.
6089 2023-02-02  Jonathan Wakely  <jwakely@redhat.com>
6091         * include/std/sstream  (basic_stringbuf::view): Define for old
6092         std::string ABI.
6093         (basic_istringstream::view, basic_0stringstream::view)
6094         (basic_stringstream::view): Likewise.
6095         * testsuite/27_io/basic_istringstream/view/char/1.cc: Remove
6096         { dg-require-effective-target cxx11_abi }.
6097         * testsuite/27_io/basic_istringstream/view/wchar_t/1.cc:
6098         Likewise.
6099         * testsuite/27_io/basic_ostringstream/view/char/1.cc: Likewise.
6100         * testsuite/27_io/basic_ostringstream/view/wchar_t/1.cc:
6101         Likewise.
6102         * testsuite/27_io/basic_stringbuf/view/char/1.cc: Likewise.
6103         * testsuite/27_io/basic_stringbuf/view/wchar_t/1.cc: Likewise.
6104         * testsuite/27_io/basic_stringstream/view/char/1.cc: Likewise.
6105         * testsuite/27_io/basic_stringstream/view/wchar_t/1.cc:
6106         Likewise.
6108 2023-02-02  Jonathan Wakely  <jwakely@redhat.com>
6110         PR libstdc++/108636
6111         * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Export shared_ptr
6112         conversion operators for directory iterator comparisons with
6113         std::default_sentinel_t.
6114         * include/bits/fs_path.h (path::path(string_view, _Type))
6115         (path::_Cmpt::_Cmpt(string_view, _Type, size_t)): Move inline
6116         definitions to ...
6117         * src/c++17/fs_path.cc: ... here.
6118         * testsuite/27_io/filesystem/path/108636.cc: New test.
6120 2023-02-02  Jonathan Wakely  <jwakely@redhat.com>
6122         * include/std/variant (variant::operator=): Implement resolution
6123         of LWG 3585.
6124         * testsuite/20_util/variant/lwg3585.cc: New test.
6126 2023-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
6128         * doc/xml/manual/using_exceptions.xml: Update a www.open-std.org
6129         link to https.
6130         * doc/html/manual/using_exceptions.html: Regenerate.
6132 2023-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
6134         * doc/xml/manual/debug.xml: Fix link to online GDB manual.
6135         * doc/html/manual/debug.html: Regenerate.
6137 2023-02-01  Jonathan Wakely  <jwakely@redhat.com>
6139         * src/c++11/random.cc (random_device::_M_fini): Do not try to
6140         close the file handle if the target doesn't support the
6141         /dev/random and /dev/urandom files.
6143 2023-02-01  Jonathan Wakely  <jwakely@redhat.com>
6145         * config/os/generic/error_constants.h (errc::value_too_large)
6146         [__AVR__]: Define.
6147         * src/c++11/system_error.cc
6148         (system_category::default_error_condition) [__AVR__]: Only match
6149         recognize values equal to EDOM, ERANGE, ENOSYS and EINTR.
6150         * src/c++17/fs_ops.cc (fs::current_path) [__AVR__]: Do not check
6151         for ENOENT etc. in switch.
6152         (fs::remove_all) [__AVR__]: Likewise.
6153         * src/filesystem/ops-common.h [__AVR__]: Do not use POSIX open,
6154         close etc.
6156 2023-02-01  Jonathan Wakely  <jwakely@redhat.com>
6158         * acinclude.m4 (GLIBCXX_ZONEINFO_DIR) [avr-*-*, msp430-*-*]: Set
6159         embed_zoneinfo=no
6160         * configure: Regenerate.
6162 2023-02-01  Hans-Peter Nilsson  <hp@axis.com>
6164         PR testsuite/108632
6165         * testsuite/std/time/hh_mm_ss/1.cc (size): Add empty
6166         struct at end of S0.
6168 2023-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
6170         * doc/xml/manual/shared_ptr.xml: Move links from both
6171         http://open-std.org and http://www.open-std.org to
6172         https://www.open-std.org.
6173         * doc/html/manual/memory.html: Regenerate.
6175 2023-01-28  Gerald Pfeifer  <gerald@pfeifer.com>
6177         * doc/xml/manual/appendix_contributing.xml: Adjust link to
6178         ISO C++ standard at ANSI.
6179         Move link to www.open-std.org to https.
6180         * doc/html/manual/appendix_contributing.html: Regenerate.
6182 2023-01-28  Gerald Pfeifer  <gerald@pfeifer.com>
6184         * doc/xml/manual/documentation_hacking.xml: Move sourceforge.net
6185         links to https.
6186         * doc/html/manual/documentation_hacking.html: Regenerate.
6188 2023-01-28  Gerald Pfeifer  <gerald@pfeifer.com>
6190         * doc/xml/manual/abi.xml: Update www.open-std.org link to https.
6191         * doc/html/manual/abi.html: Regenerate.
6193 2023-01-27  Jakub Jelinek  <jakub@redhat.com>
6195         PR libstdc++/108568
6196         * testsuite/17_intro/names.cc (__unused): For linux or GNU hurd
6197         include features.h if present and then check __GLIBC__ and
6198         __GLIBC_MINOR__ macros for glibc prior to 2.19, instead of testing
6199         __GLIBC_PREREQ which isn't defined yet.
6201 2023-01-27  Jonathan Wakely  <jwakely@redhat.com>
6203         * src/c++20/tzdb.cc (tzdata_stream): Use constant instead of
6204         string literal.
6206 2023-01-27  Jonathan Wakely  <jwakely@redhat.com>
6208         PR libstdc++/108554
6209         * testsuite/23_containers/map/modifiers/108554.cc: Use dg-bogus.
6211 2023-01-26  Jonathan Wakely  <jwakely@redhat.com>
6213         * src/c++20/tzdb.cc (operator>>(istream&, ZoneInfo&)): Allow
6214         rules named "+" for compatibility with older tzdata.zi files.
6216 2023-01-26  Jonathan Wakely  <jwakely@redhat.com>
6218         PR libstdc++/108554
6219         * include/bits/stl_tree.h (_Rb_tree_insert_and_rebalance): Add
6220         nonnull attribute.
6221         (_Rb_tree_rebalance_for_erase): Add nonnull and returns_nonnull
6222         attributes.
6223         * testsuite/23_containers/map/modifiers/108554.cc: New test.
6225 2023-01-26  Jonathan Wakely  <jwakely@redhat.com>
6227         PR libstdc++/108530
6228         * src/c++20/tzdb.cc (current_zone): Look for TIMEZONE or ZONE in
6229         /etc/sysconfig/clock, not DEFAULT_TIMEZONE.
6231 2023-01-26  Gerald Pfeifer  <gerald@pfeifer.com>
6233         * doc/xml/manual/intro.xml: Update links to www.open-std.org to
6234         use https.
6235         * doc/html/manual/bugs.html: Regenerate.
6237 2023-01-24  Jonathan Wakely  <jwakely@redhat.com>
6239         PR libstdc++/108530
6240         * src/c++20/tzdb.cc (current_zone): Look for DEFAULT_TIMEZONE in
6241         /etc/sysconfig/clock.
6243 2023-01-24  Jonathan Wakely  <jwakely@redhat.com>
6245         PR libstdc++/102301
6246         * include/bits/ranges_base.h: Include <bits/stl_iterator.h> for
6247         std::make_reverse_iterator.
6248         * include/std/tuple: Include <bits/ranges_util.h> for subrange.
6249         (make_from_tuple): Add static assertion from P2255 to diagnose
6250         dangling references.
6251         * testsuite/20_util/tuple/make_from_tuple/dangling_ref.cc: New test.
6252         * testsuite/20_util/tuple/make_from_tuple/tuple_like.cc: New test.
6254 2023-01-23  François Dumont  <fdumont@gcc.gnu.org>
6256         * include/debug/safe_iterator.h (_Safe_iterator<>::_Unchecked): New.
6257         (_Safe_iterator(const _Safe_iterator&, _Unchecked)): New.
6258         (_Safe_iterator::operator++(int)): Use latter.
6259         (_Safe_iterator::operator--(int)): Likewise.
6260         (_Safe_iterator(_Iterator, const _Safe_sequence_base*)): Remove !_M_insular()
6261         check.
6262         * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::_Unchecked):
6263         New.
6264         (_Safe_local_iterator(const _Safe_local_iterator&, _Unchecked)): New.
6265         (_Safe_local_iterator::operator++(int)): Use latter.
6266         * src/c++11/debug.cc (_S_debug_messages): Add as comment the _Debug_msg_id
6267         entry associated to the array entry.
6269 2023-01-18  Jonathan Wakely  <jwakely@redhat.com>
6271         * include/bits/fs_path.h (u8path): Add deprecated attribute.
6272         * testsuite/27_io/filesystem/path/construct/90281.cc: Add
6273         -Wno-deprecated-declarations for C++20 and later.
6274         * testsuite/27_io/filesystem/path/factory/u8path-char8_t.cc:
6275         Likewise.
6276         * testsuite/27_io/filesystem/path/factory/u8path.cc: Likewise.
6277         * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
6278         * testsuite/27_io/filesystem/path/factory/u8path-depr.cc: New test.
6280 2023-01-18  Jonathan Wakely  <jwakely@redhat.com>
6282         * include/bits/random.h (random_device) [!_GLIBCXX_USE_DEV_RANDOM]:
6283         Always call _M_fini and _M_getentropy.
6285 2023-01-18  Gerald Pfeifer  <gerald@pfeifer.com>
6287         * doc/xml/manual/policy_data_structures_biblio.xml: Adjust links
6288         to www.open-std.org to use https.
6289         (COM: Component Model Object Technologies): Rename from...
6290         (The Component Object Model): ...to.
6291         * doc/html/manual/policy_data_structures.html: Regenerate.
6293 2023-01-18  Dimitrij Mijoski  <dmjpp@hotmail.com>
6295         * testsuite/22_locale/codecvt/codecvt_unicode.cc: Simplify.
6296         * testsuite/22_locale/codecvt/codecvt_unicode.h: Simplify.
6297         * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: Simplify.
6299 2023-01-17  Jonathan Wakely  <jwakely@redhat.com>
6301         * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Check $target_os instead
6302         of $host. Fix check for file being present during native build.
6303         * configure: Regenerate.
6305 2023-01-17  Martin Liska  <mliska@suse.cz>
6307         * src/libbacktrace/Makefile.in: Regenerate.
6309 2023-01-16  Jonathan Wakely  <jwakely@redhat.com>
6311         * src/c++20/tzdb.cc (_GLIBCXX_USE_CXX11_ABI): Define to 1.
6313 2023-01-16  Jonathan Wakely  <jwakely@redhat.com>
6315         PR libstdc++/108413
6316         * include/c_compatibility/stdatomic.h: Change copyright line to
6317         be consistent with other headers contributed under DCO terms.
6318         * include/std/expected: Add full stop to copyright line.
6319         * src/c++20/tzdb.cc: Likewise.
6321 2023-01-15  Gerald Pfeifer  <gerald@pfeifer.com>
6323         * doc/xml/manual/status_cxx2014.xml: Switch www.open-std.org to
6324         https.
6325         * doc/xml/manual/status_cxx2017.xml: Ditto.
6326         * doc/xml/manual/status_cxx2020.xml: Ditto.
6327         * doc/xml/manual/status_cxx2023.xml: Ditto.
6328         * doc/html/manual/status.html: Regenerate.
6330 2023-01-15  Jonathan Wakely  <jwakely@redhat.com>
6332         * testsuite/std/time/tzdb_list/1.cc: Remove dg-xfail-run-if
6333         and fail gracefully if defining the weak symbol doesn't work.
6335 2023-01-15  François Dumont  <fdumont@gcc.gnu.org>
6337         PR libstdc++/108288
6338         * include/debug/safe_iterator.h (_Safe_iterator<>::operator++(int)): Extend deadlock
6339         fix to other iterator category.
6340         (_Safe_iterator<>::operator--(int)): Likewise.
6341         * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::operator++(int)):
6342         Fix deadlock.
6343         * testsuite/util/debug/unordered_checks.h (invalid_local_iterator_pre_increment): New.
6344         (invalid_local_iterator_post_increment): New.
6345         * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_post_increment_neg.cc:
6346         New test.
6347         * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_pre_increment_neg.cc:
6348         New test.
6350 2023-01-15  Jonathan Wakely  <jwakely@redhat.com>
6352         * testsuite/30_threads/jthread/jthread.cc: Remove -pthread from
6353         dg-options.
6355 2023-01-15  Jonathan Wakely  <jwakely@redhat.com>
6357         * testsuite/std/time/clock/utc/io.cc: Use ctype to widen char.
6359 2023-01-14  Björn Schäpers  <bjoern@hazardy.de>
6361         * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Add check for
6362         windows.h. Add pecoff as FORMAT_FILE.
6363         * config.h.in: Regenerate.
6364         * configure: Regenerate.
6365         * src/libbacktrace/Makefile.am: Regenerate.
6366         * src/libbacktrace/Makefile.in: Add pecoff.c as FORMAT_FILE.
6368 2023-01-14  Björn Schäpers  <bjoern@hazardy.de>
6370         * include/std/stacktrace (stacktrace_entry::_S_demangle): Use
6371         raw __name if __cxa_demangle could not demangle it.
6373 2023-01-14  Jonathan Wakely  <jwakely@redhat.com>
6375         PR libstdc++/108409
6376         * src/c++20/tzdb.cc (current_zone()) [_AIX]: Use TZ environment
6377         variable.
6379 2023-01-14  Jonathan Wakely  <jwakely@redhat.com>
6381         * src/c++20/tzdb.cc (TZDB_DISABLED): Disable all code for
6382         loading tzdb.
6383         * testsuite/std/time/tzdb/leap_seconds.cc: Require tzdb
6384         effective target.
6385         * testsuite/std/time/tzdb_list/1.cc: Likewise.
6387 2023-01-14  Jonathan Wakely  <jwakely@redhat.com>
6389         * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Replace the
6390         --with-libstdcxx-zoneinfo-dir configure option with
6391         --with-libstdcxx-zoneinfo with yes/no/static choices as well as
6392         a directory.
6393         * config.h.in: Regenerate.
6394         * configure: Regenerate.
6395         * doc/xml/manual/configure.xml: Document configure option.
6396         * doc/html/manual/configure.html: Regenerate.
6397         * src/c++20/Makefile.am: Generate tzdata.zi.h header.
6398         * src/c++20/Makefile.in: Regenerate.
6399         * src/c++20/tzdb.cc (__gnu_cxx::zoneinfo_dir_override): Return a
6400         null pointer if no directory is configured.
6401         (zoneinfo_dir): Replace with ...
6402         (zoneinfo_file): New function.
6403         (tzdata_stream): New istream class.
6404         (remote_version, reload_tzdb): Use tzdata_stream.
6405         * testsuite/lib/libstdc++.exp (check_effective_target_tzdb):
6406         Check new _GLIBCXX_STATIC_TZDATA macro and ignore presence of
6407         tzdata.zi file in default location.
6408         * src/c++20/tzdata.zi: New file.
6410 2023-01-14  Jonathan Wakely  <jwakely@redhat.com>
6412         * include/bits/chrono_io.h (operator<<): Fix syntax errors.
6413         * testsuite/std/time/month_day/io.cc: New test.
6414         * testsuite/std/time/month_day_last/io.cc: New test.
6415         * testsuite/std/time/month_weekday/io.cc: New test.
6416         * testsuite/std/time/month_weekday_last/io.cc: New test.
6417         * testsuite/std/time/weekday_indexed/io.cc: New test.
6418         * testsuite/std/time/weekday_last/io.cc: New test.
6419         * testsuite/std/time/year_month/io.cc: New test.
6420         * testsuite/std/time/year_month_day_last/io.cc: New test.
6421         * testsuite/std/time/year_month_weekday/io.cc: New test.
6422         * testsuite/std/time/year_month_weekday_last/io.cc: New test.
6424 2023-01-14  François Dumont  <fdumont@gcc.gnu.org>
6426         * include/std/format [_GLIBCXX_INLINE_VERSION](to_chars): Adapt __asm symbol
6427         specifications.
6428         * config/abi/pre/gnu-versioned-namespace.ver: Add to_chars/from_chars symbols
6429         export.
6431 2023-01-13  Jonathan Wakely  <jwakely@redhat.com>
6433         * include/bits/std_mutex.h: Include <errno.h>.
6435 2023-01-13  Arsen Arsenović  <arsen@aarsen.me>
6437         * testsuite/20_util/to_chars/version.cc: Mark hosted-only.
6438         * testsuite/20_util/uses_allocator/lwg3677.cc: Ditto.
6439         * testsuite/20_util/weak_ptr/cons/self_move.cc: Ditto.
6440         * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Replace usage of
6441         std::make_unique with a freestanding-compatible wrapper around
6442         unique_ptr.
6443         * testsuite/21_strings/basic_string_view/operations/contains/char.cc:
6444         Don't test for presence of __cpp_lib_string_contains on !HOSTED.
6445         * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
6446         Ditto.
6447         * testsuite/std/ranges/version_c++23.cc: Don't test for presence
6448         of __cpp_lib_ranges in !HOSTED.
6450 2023-01-13  Arsen Arsenović  <arsen@aarsen.me>
6452         * include/Makefile.am: Install bits/char_traits.h,
6453         std/string_view
6454         * include/Makefile.in: Regenerate.
6455         * include/bits/char_traits.h: Gate hosted-only, wchar-only and
6456         mbstate-only bits behind appropriate #ifs.
6457         * include/std/string_view: Gate <iostream> functionality behind
6458         HOSTED.
6459         * include/std/version: Enable __cpp_lib_constexpr_string_view
6460         and __cpp_lib_starts_ends_with in !HOSTED.
6461         * include/std/ranges: Re-enable __is_basic_string_view on
6462         freestanding, include <string_view> directly.
6463         * include/precompiled/stdc++.h: Include <string_view> when
6464         !HOSTED too.
6465         * testsuite/20_util/function_objects/searchers.cc: Skip testing
6466         boyer_moore searchers on freestanding
6467         * testsuite/21_strings/basic_string_view/capacity/1.cc: Guard
6468         <string>-related tests behind __STDC_HOSTED__.
6469         * testsuite/21_strings/basic_string_view/cons/char/1.cc: Ditto.
6470         * testsuite/21_strings/basic_string_view/cons/char/2.cc: Remove
6471         unused <stdexcept> include.
6472         * testsuite/21_strings/basic_string_view/cons/char/3.cc: Remove
6473         unused <vector> include.
6474         * testsuite/21_strings/basic_string_view/cons/char/range.cc:
6475         Guard <string> related testing behind __STDC_HOSTED__.
6476         * testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc:
6477         Guard <stdexcept> related tests behind __STDC_HOSTED__.
6478         * testsuite/21_strings/basic_string_view/element_access/char/1.cc:
6479         Ditto.
6480         * testsuite/21_strings/basic_string_view/element_access/wchar_t/1.cc:
6481         Guard <stdexcept> tests behind __STDC_HOSTED__.
6482         * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
6483         Enable test on freestanding, guard <stdexcept> bits behind
6484         __STDC_HOSTED__.
6485         * testsuite/21_strings/basic_string_view/operations/substr/char.cc:
6486         Guard <stdexcept> bits behind __STDC_HOSTED__.
6487         * testsuite/21_strings/basic_string_view/operations/substr/wchar_t.cc:
6488         Ditto.
6490 2023-01-13  Dimitrij Mijoski  <dmjpp@hotmail.com>
6492         PR libstdc++/86419
6493         * src/c++11/codecvt.cc (read_utf8_code_point): Correctly detect
6494         errors in incomplete multibyte sequences.
6495         (utf16_in): Remove surrogates parameter. Fix conditions for
6496         returning partial.
6497         (utf16_out): Fix condition for returning partial.
6498         (ucs2_in): Do not pass surrogates argument to utf16_in.
6499         * testsuite/22_locale/codecvt/codecvt_unicode.cc: New test.
6500         * testsuite/22_locale/codecvt/codecvt_unicode.h: New header for
6501         tests.
6502         * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: New
6503         test.
6505 2023-01-13  Jonathan Wakely  <jwakely@redhat.com>
6507         PR libstdc++/108331
6508         * config/io/c_io_stdio.h (__c_lock): Define as a typedef for
6509         __GTHREAD_LEGACY_MUTEX_T if defined.
6511 2023-01-13  Jonathan Wakely  <jwakely@redhat.com>
6513         PR libstdc++/108327
6514         * config/os/gnu-linux/ldbl-extra.ver (GLIBCXX_LDBL_3.4.31):
6515         Export __try_use_facet specializations for facets in namespace
6516         __gnu_cxx_ldbl128.
6517         * config/os/gnu-linux/ldbl-ieee128-extra.ver
6518         (GLIBCXX_IEEE128_3.4.31): Likewise for facets in namespace
6519         __gnu_cxx_ieee128.
6520         * testsuite/util/testsuite_abi.cc: Add to lists of known and
6521         latest versions.
6523 2023-01-13  Jonathan Wakely  <jwakely@redhat.com>
6525         * include/bits/std_mutex.h: Remove <system_error> include.
6526         * include/std/condition_variable: Add <bits/error_constants.h>
6527         include.
6528         * include/std/mutex: Likewise.
6529         * include/std/shared_mutex: Likewise.
6531 2023-01-12  Jonathan Wakely  <jwakely@redhat.com>
6533         PR libstdc++/77691
6534         * include/experimental/memory_resource
6535         (_GLIBCXX_MAX_ALIGN_MATCHES_MALLOC): Define.
6536         (do_allocate, do_deallocate): Check it.
6537         * testsuite/experimental/memory_resource/new_delete_resource.cc:
6538         Relax expected behaviour for 64-bit hppa-hp-hpux11.11.
6540 2023-01-12  Jonathan Wakely  <jwakely@redhat.com>
6542         * doc/xml/manual/abi.xml: Add latest library versions.
6543         * doc/html/manual/abi.html: Regenerate.
6545 2023-01-12  François Dumont  <fdumont@gcc.gnu.org>
6547         PR libstdc++/107189
6548         * include/bits/stl_tree.h (_Rb_tree<>::_M_insert_range_equal): Remove
6549         unused _Alloc_node instance.
6551 2023-01-12  Jonathan Wakely  <jwakely@redhat.com>
6553         * include/bits/atomic_wait.h (__detail::__platform_wait_t):
6554         Define as unsigned long if always lock-free, and unsigned int
6555         otherwise.
6557 2023-01-10  Jonathan Wakely  <jwakely@redhat.com>
6559         * src/c++20/tzdb.cc (tzdb_list::_S_init_tzdb): Use __try and
6560         __catch macros for exception handling.
6562 2023-01-10  Jonathan Wakely  <jwakely@redhat.com>
6564         PR libstdc++/108221
6565         * include/bits/stl_algobase.h (__lg): Replace six overloads with
6566         a single function template for all integer types.
6567         * include/bits/stl_algo.h (__merge_adaptive_resize): Cast
6568         arithmetic results back to _Distance.
6570 2023-01-10  Jonathan Wakely  <jwakely@redhat.com>
6572         PR libstdc++/108221
6573         * include/std/span (span::span()): Un-simplify constraint to
6574         work for size_t of lesser rank than int.
6576 2023-01-07  LIU Hao  <lh_mouse@126.com>
6578         PR middle-end/108300
6579         * src/c++11/system_error.cc: Define `WIN32_LEAN_AND_MEAN` before
6580         <windows.h>.
6581         * src/c++11/thread.cc: Likewise.
6582         * src/c++17/fs_ops.cc: Likewise.
6583         * src/filesystem/ops.cc: Likewise.
6585 2023-01-06  Jonathan Wakely  <jwakely@redhat.com>
6587         PR libstdc++/108228
6588         * src/c++20/tzdb.cc (zoneinfo_dir): Add diagnostic pragma.
6590 2023-01-06  Jonathan Wakely  <jwakely@redhat.com>
6592         PR libstdc++/108235
6593         * src/c++20/tzdb.cc (time_zone::_Impl::RulesCounter): New class
6594         template and partial specialization for synchronizing access to
6595         time_zone::_Impl::infos.
6596         (time_zone::_M_get_sys_info, reload_tzdb): Adjust uses of
6597         rules_counter.
6599 2023-01-06  Patrick Palka  <ppalka@redhat.com>
6601         PR libstdc++/108260
6602         * include/bits/utility.h (__cpp_lib_ranges_zip): Define for C++23.
6603         * include/std/ranges (__cpp_lib_ranges_zip): Likewise.
6604         (__cpp_lib_ranges_chunk): Likewise.
6605         (__cpp_lib_ranges_slide): Likewise.
6606         (__cpp_lib_ranges_chunk_by): Likewise.
6607         (__cpp_lib_ranges_join_with): Likewise.
6608         (__cpp_lib_ranges_repeat): Likewise.
6609         (__cpp_lib_ranges_stride): Likewise.
6610         (__cpp_lib_ranges_cartesian_product): Likewise.
6611         (__cpp_lib_ranges_as_rvalue): Likewise.
6612         * include/std/version: Ditto.
6613         * testsuite/20_util/tuple/p2321r2.cc: Verify value of
6614         feature-test macro.
6615         * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Likewise.
6616         * testsuite/std/ranges/adaptors/chunk/1.cc: Likewise.
6617         * testsuite/std/ranges/adaptors/chunk_by/1.cc: Likewise.
6618         * testsuite/std/ranges/adaptors/join_with/1.cc: Likewise.
6619         * testsuite/std/ranges/adaptors/slide/1.cc: Likewise.
6620         * testsuite/std/ranges/adaptors/stride/1.cc: Likewise.
6621         * testsuite/std/ranges/cartesian_product/1.cc: Likewise.
6622         * testsuite/std/ranges/repeat/1.cc: Likewise.
6623         * testsuite/std/ranges/zip/1.cc: Likewise.
6624         * testsuite/std/ranges/version_c++23.cc: New test.
6626 2023-01-06  Jonathan Wakely  <jwakely@redhat.com>
6628         PR libstdc++/108214
6629         * include/std/bitset (operator>>): Use alloca in the right
6630         scope, not in a constructor.
6631         * testsuite/20_util/bitset/io/input.cc: Check case from PR.
6633 2023-01-06  Jonathan Wakely  <jwakely@redhat.com>
6635         PR libstdc++/108221
6636         * include/std/format (basic_format_arg) [!__cpp_lib_to_chars]:
6637         Disable visiting floating-point types.
6639 2023-01-06  Jonathan Wakely  <jwakely@redhat.com>
6641         PR libstdc++/108288
6642         * include/debug/safe_iterator.h (_Safe_iterator::operator++(int))
6643         (_Safe_iterator::operator--(int)): Do not hold lock around
6644         construction of return value.
6646 2023-01-05  John David Anglin  <danglin@gcc.gnu.org>
6648         * config/cpu/hppa/atomicity.h (_PA_LDCW_INSN): Define.
6649         (__exchange_and_add): Use _PA_LDCW_INSN.  Use ordered store for
6650         lock release.  Revise loop.
6651         (__atomic_add): Likewise.
6653 2023-01-05  Jonathan Wakely  <jwakely@redhat.com>
6655         PR libstdc++/108212
6656         * python/libstdcxx/v6/printers.py (_utc_timezone): New global
6657         variable.
6658         (StdChronoTimePointPrinter::to_string): Use it.
6660 2023-01-05  Jonathan Wakely  <jwakely@redhat.com>
6662         PR libstdc++/108290
6663         * include/std/functional (_Bind_front): Add no_unique_address
6664         attribute to data members.
6665         * testsuite/20_util/function_objects/bind_front/107784.cc: Check
6666         size of call wrappers with empty types for targets and bound
6667         arguments.
6669 2023-01-05  Jonathan Wakely  <jwakely@redhat.com>
6671         PR libstdc++/108211
6672         * src/c++20/tzdb.cc (chrono::current_zone()): Check for zone
6673         using only last component of the name.
6675 2023-01-05  Jonathan Wakely  <jwakely@redhat.com>
6677         PR libstdc++/108228
6678         PR libstdc++/108235
6679         * config/abi/pre/gnu.ver: Move zoneinfo_dir_override export to
6680         the latest symbol version.
6681         * src/c++20/tzdb.cc (USE_ATOMIC_SHARED_PTR): Define to 0 if
6682         atomic<_Node*> is not always lock free.
6683         (USE_ATOMIC_LIST_HEAD): New macro.
6684         [__hpux__] (__gnu_cxx::zoneinfo_dir_override()): Provide
6685         definition of weak symbol.
6686         (tzdb_list::_Node::_S_head): Rename to _S_head_cache.
6687         (tzdb_list::_Node::_S_list_head): New function for accessing
6688         list head efficiently.
6689         (tzdb_list::_Node::_S_cache_list_head): New function for
6690         updating _S_list_head.
6692 2023-01-05  Jonathan Wakely  <jwakely@redhat.com>
6694         PR libstdc++/108265
6695         * include/std/chrono (hh_mm_ss): Do not use chrono::abs if
6696         duration rep is unsigned.
6697         * testsuite/std/time/hh_mm_ss/1.cc: Check unsigned rep.
6699 2023-01-04  Iain Sandoe  <iain@sandoe.co.uk>
6701         PR libstdc++/108228
6702         * config/abi/pre/gnu.ver (GLIBCXX_3.4):
6703         Add __gnu_cxx::zoneinfo_dir_override().
6705 2023-01-04  Jonathan Wakely  <jwakely@redhat.com>
6707         PR libstdc++/108258
6708         * include/std/array (__array_traits<T, 0>::operator T*()): Add
6709         constexpr.
6710         * testsuite/23_containers/array/element_access/constexpr_c++17.cc: Check
6711         std::array<T, 0>::data().
6714 Copyright (C) 2023 Free Software Foundation, Inc.
6716 Copying and distribution of this file, with or without modification,
6717 are permitted in any medium without royalty provided the copyright
6718 notice and this notice are preserved.