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