]> gcc.gnu.org Git - gcc.git/blame - libstdc++-v3/ChangeLog
Daily bump.
[gcc.git] / libstdc++-v3 / ChangeLog
CommitLineData
6f9e2f14
GA
12023-02-28 Jonathan Wakely <jwakely@redhat.com>
2
3 PR libstdc++/108952
4 * include/bits/uses_allocator_args.h
5 (uses_allocator_construction_args): Implement LWG 3527.
6 * testsuite/20_util/pair/astuple/get-2.cc: New test.
7 * testsuite/20_util/scoped_allocator/108952.cc: New test.
8 * testsuite/20_util/uses_allocator/lwg3527.cc: New test.
9
102023-02-28 Jonathan Wakely <jwakely@redhat.com>
11
12 PR libstdc++/108846
13 * include/bits/stl_algobase.h (__copy_move<false, false, RA>)
14 Add __assign_one static member function.
15 (__copy_move<true, false, RA>): Likewise.
16 (__copy_move<IsMove, true, RA>): Do not use memmove for a single
17 value.
18 (__copy_move_backward<IsMove, true, RA>): Likewise.
19 * testsuite/25_algorithms/copy/108846.cc: New test.
20 * testsuite/25_algorithms/copy_backward/108846.cc: New test.
21 * testsuite/25_algorithms/copy_n/108846.cc: New test.
22 * testsuite/25_algorithms/move/108846.cc: New test.
23 * testsuite/25_algorithms/move_backward/108846.cc: New test.
24
252023-02-28 Jonathan Wakely <jwakely@redhat.com>
26
27 * src/c++11/codecvt.cc: Add [[likely]] and [[unlikely]]
28 attributes.
29
bf0e0fc0
GA
302023-02-27 Jonathan Wakely <jwakely@redhat.com>
31
32 * include/bits/basic_ios.h (basic_ios::_M_setstate): Add
33 caveat to comment.
34 * include/bits/basic_string.h (resize_and_overwrite): Add
35 doxygen comment.
36
43411063
GA
372023-02-24 Matthias Kretz <m.kretz@gsi.de>
38
39 * include/experimental/bits/simd.h: Line breaks and indenting
40 fixed to follow the libstdc++ standard.
41 * include/experimental/bits/simd_builtin.h: Likewise.
42 * include/experimental/bits/simd_fixed_size.h: Likewise.
43 * include/experimental/bits/simd_neon.h: Likewise.
44 * include/experimental/bits/simd_ppc.h: Likewise.
45 * include/experimental/bits/simd_scalar.h: Likewise.
46 * include/experimental/bits/simd_x86.h: Likewise.
47
482023-02-24 Matthias Kretz <m.kretz@gsi.de>
49
50 PR libstdc++/108030
51 * include/experimental/bits/simd_fixed_size.h
52 (_SimdImplFixedSize::_S_broadcast): Replace inline with
53 _GLIBCXX_SIMD_INTRINSIC.
54 (_SimdImplFixedSize::_S_generate): Likewise.
55 (_SimdImplFixedSize::_S_load): Likewise.
56 (_SimdImplFixedSize::_S_masked_load): Likewise.
57 (_SimdImplFixedSize::_S_store): Likewise.
58 (_SimdImplFixedSize::_S_masked_store): Likewise.
59 (_SimdImplFixedSize::_S_min): Likewise.
60 (_SimdImplFixedSize::_S_max): Likewise.
61 (_SimdImplFixedSize::_S_complement): Likewise.
62 (_SimdImplFixedSize::_S_unary_minus): Likewise.
63 (_SimdImplFixedSize::_S_plus): Likewise.
64 (_SimdImplFixedSize::_S_minus): Likewise.
65 (_SimdImplFixedSize::_S_multiplies): Likewise.
66 (_SimdImplFixedSize::_S_divides): Likewise.
67 (_SimdImplFixedSize::_S_modulus): Likewise.
68 (_SimdImplFixedSize::_S_bit_and): Likewise.
69 (_SimdImplFixedSize::_S_bit_or): Likewise.
70 (_SimdImplFixedSize::_S_bit_xor): Likewise.
71 (_SimdImplFixedSize::_S_bit_shift_left): Likewise.
72 (_SimdImplFixedSize::_S_bit_shift_right): Likewise.
73 (_SimdImplFixedSize::_S_remquo): Add inline keyword (to be
74 explicit about not always-inline, yet).
75 (_SimdImplFixedSize::_S_isinf): Likewise.
76 (_SimdImplFixedSize::_S_isfinite): Likewise.
77 (_SimdImplFixedSize::_S_isnan): Likewise.
78 (_SimdImplFixedSize::_S_isnormal): Likewise.
79 (_SimdImplFixedSize::_S_signbit): Likewise.
80
812023-02-24 Matthias Kretz <m.kretz@gsi.de>
82
83 PR libstdc++/108856
84 * include/experimental/bits/simd_builtin.h
85 (_SimdImplBuiltin::_S_masked_unary): More efficient
86 implementation of masked inc-/decrement for integers and floats
87 without AVX2.
88 * include/experimental/bits/simd_x86.h
89 (_SimdImplX86::_S_masked_unary): New. Use AVX512 masked subtract
90 builtins for masked inc-/decrement.
91
922023-02-24 Jonathan Wakely <jwakely@redhat.com>
93
94 * include/experimental/executor (executor): Constrain template
95 constructors.
96
972023-02-24 Jonathan Wakely <jwakely@redhat.com>
98
99 * include/experimental/internet (basic_endpoint): Add missing
100 constexpr to comparison operators.
101 * testsuite/experimental/net/internet/endpoint/cons.cc: New test.
102
1032023-02-24 Jonathan Wakely <jwakely@redhat.com>
104
105 * include/experimental/internet (network_v4::netmask()): Avoid
106 undefined shift.
107 (network_v4::broadcast()): Optimize and fix for targets with
108 uint_least32_t wider than 32 bits.
109 (network_v4::to_string(const Allocator&)): Fix for custom
110 allocators and optimize using to_chars.
111 (operator==(const network_v4&, const network_v4&)): Add missing
112 constexpr.
113 (operator==(const network_v6&, const network_v6&)): Likewise.
114 * testsuite/experimental/net/internet/network/v4/cons.cc: New test.
115 * testsuite/experimental/net/internet/network/v4/members.cc: New test.
116
1172023-02-24 Jonathan Wakely <jwakely@redhat.com>
118
119 * include/experimental/internet (address_4(const bytes_type&)):
120 Use __builtin_bit_cast if available, otherwise convert to
121 network byte order.
122 (address_v4::to_bytes()): Likewise, but convert from network
123 byte order.
124 * testsuite/experimental/net/internet/address/v4/cons.cc: Fix
125 incorrect tests. Check for constexpr too.
126 * testsuite/experimental/net/internet/address/v4/creation.cc:
127 Likewise.
128 * testsuite/experimental/net/internet/address/v4/members.cc:
129 Check that bytes_type is a standard-layout type.
130
1312023-02-24 Jonathan Wakely <jwakely@redhat.com>
132
133 * include/experimental/internet (address_v4::to_string):
134 Optimize.
135 * testsuite/experimental/net/internet/address/v4/members.cc:
136 Check more addresses.
137
1382023-02-24 Jonathan Wakely <jwakely@redhat.com>
139
140 * include/ext/aligned_buffer.h (__aligned_buffer): Add
141 diagnostic pragmas.
142
1432023-02-24 Jonathan Wakely <jwakely@redhat.com>
144
145 * testsuite/std/format/arguments/lwg3810.cc: Move dg-options
146 before dg-do.
147
e2b20ed3
GA
1482023-02-23 Matthias Kretz <m.kretz@gsi.de>
149
150 * testsuite/experimental/simd/tests/reductions.cc: Introduce
151 max_distance as the type-dependent max error.
152
1532023-02-23 Matthias Kretz <m.kretz@gsi.de>
154
155 * include/experimental/bits/simd_builtin.h (_S_set): Compare as
156 int. The actual range of these indexes is very small.
157
1582023-02-23 Matthias Kretz <m.kretz@gsi.de>
159
160 * include/experimental/bits/simd_x86.h (_S_bit_shift_left)
161 (_S_bit_shift_right): Declare constexpr. The implementation was
162 already expecting constexpr evaluation.
163
1642023-02-23 Matthias Kretz <m.kretz@gsi.de>
165
166 PR libstdc++/108030
167 * include/experimental/bits/simd_detail.h
168 (_GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA): Define as empty for
169 __clang__.
170
1712023-02-23 Matthias Kretz <m.kretz@gsi.de>
172
173 PR libstdc++/108030
174 * include/experimental/bits/simd.h (__vector_broadcast):
175 Implement via __vector_broadcast_impl instead of
176 __call_with_n_evaluations + 2 lambdas.
177 (__vector_broadcast_impl): New.
178
b6f98991
GA
1792023-02-22 Alexandre Oliva <oliva@adacore.com>
180
181 * src/c++11/shared_ptr.cc (__gnu_internal::get_mutex):
182 Avoid destruction of the mutex pool.
183
1842023-02-22 Alexandre Oliva <oliva@adacore.com>
185
186 * testsuite/27_io/basic_ofstream/open/char/noreplace.cc: xfail
187 on vxworks.
188 * testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc:
189 Likewise.
190
1912023-02-22 Alexandre Oliva <oliva@adacore.com>
192
193 * testsuite/17_intro/names.cc: Undef func on vxworks >= 7 in
194 kernel mode.
195
65c64105
GA
1962023-02-20 Andreas Schwab <schwab@linux-m68k.org>
197
198 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
199
2002023-02-20 Matthias Kretz <m.kretz@gsi.de>
201
202 * include/experimental/bits/simd.h (__extract_part, split):
203 Use reserved name for template parameter.
204
2052023-02-20 Andreas Schwab <schwab@suse.de>
206
207 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
208
0263e9d5
GA
2092023-02-18 Gerald Pfeifer <gerald@pfeifer.com>
210
211 * doc/xml/faq.xml: Switch two links to www.open-std.org to https.
212 * doc/html/faq.html: Regenerate.
213
88cc4495
GA
2142023-02-16 Matthias Kretz <m.kretz@gsi.de>
215
216 * include/experimental/bits/simd_math.h (__hypot): Bitcasting
217 between scalars requires the __bit_cast helper function instead
218 of simd_bit_cast.
219
2202023-02-16 Matthias Kretz <m.kretz@gsi.de>
221
222 * include/experimental/bits/simd_x86.h
223 (_SimdImplX86::_S_not_equal_to, _SimdImplX86::_S_less)
224 (_SimdImplX86::_S_less_equal): Do not call
225 __builtin_is_constant_evaluated in constexpr-if.
226
2272023-02-16 Matthias Kretz <m.kretz@gsi.de>
228
229 * testsuite/experimental/simd/tests/bits/verify.h
230 (verify::verify): Use %zx for size_t in format string.
231
2322023-02-16 Matthias Kretz <m.kretz@gsi.de>
233
234 * testsuite/experimental/simd/generate_makefile.sh: Generate and
235 pre-compile pch.h, which includes all headers that do not depend
236 on command-line macros.
237 * testsuite/experimental/simd/tests/bits/main.h: New file.
238 (iterate_abis, main): Moved from verify.h.
239 * testsuite/experimental/simd/tests/bits/verify.h
240 (iterate_abis, main): Moved to main.h.
241 * testsuite/experimental/simd/tests/bits/conversions.h: Add
242 include guard.
243 (genHalfBits): Simplify.
244 * testsuite/experimental/simd/tests/bits/make_vec.h: Add include
245 guard.
246 (make_alternating_mask): Moved from mask_loadstore.
247 * testsuite/experimental/simd/tests/bits/mathreference.h: Add
248 include guard.
249 * testsuite/experimental/simd/tests/bits/test_values.h: Ditto.
250 * testsuite/experimental/simd/tests/mask_loadstore.cc
251 (make_mask, make_alternating_mask): Removed.
252 * testsuite/experimental/simd/tests/mask_reductions.cc: Ditto.
253 * testsuite/experimental/simd/tests/operators.cc (genHalfBits):
254 Removed.
255 * testsuite/experimental/simd/tests/abs.cc: Only include
256 bits/main.h.
257 Ditto.
258 * testsuite/experimental/simd/tests/algorithms.cc: Ditto.
259 * testsuite/experimental/simd/tests/broadcast.cc: Ditto.
260 * testsuite/experimental/simd/tests/casts.cc: Ditto.
261 * testsuite/experimental/simd/tests/fpclassify.cc: Ditto.
262 * testsuite/experimental/simd/tests/frexp.cc: Ditto.
263 * testsuite/experimental/simd/tests/generator.cc: Ditto.
264 * testsuite/experimental/simd/tests/hypot3_fma.cc: Ditto.
265 * testsuite/experimental/simd/tests/integer_operators.cc: Ditto.
266 * testsuite/experimental/simd/tests/ldexp_scalbn_scalbln_modf.cc:
267 * testsuite/experimental/simd/tests/loadstore.cc: Ditto.
268 * testsuite/experimental/simd/tests/logarithm.cc: Ditto.
269 * testsuite/experimental/simd/tests/mask_broadcast.cc: Ditto.
270 * testsuite/experimental/simd/tests/mask_conversions.cc: Ditto.
271 * testsuite/experimental/simd/tests/mask_implicit_cvt.cc: Ditto.
272 * testsuite/experimental/simd/tests/mask_operator_cvt.cc: Ditto.
273 * testsuite/experimental/simd/tests/mask_operators.cc: Ditto.
274 * testsuite/experimental/simd/tests/math_1arg.cc: Ditto.
275 * testsuite/experimental/simd/tests/math_2arg.cc: Ditto.
276 * testsuite/experimental/simd/tests/operator_cvt.cc: Ditto.
277 * testsuite/experimental/simd/tests/reductions.cc: Ditto.
278 * testsuite/experimental/simd/tests/remqo.cc: Ditto.
279 * testsuite/experimental/simd/tests/simd.cc: Ditto.
280 * testsuite/experimental/simd/tests/sincos.cc: Ditto.
281 * testsuite/experimental/simd/tests/split_concat.cc: Ditto.
282 * testsuite/experimental/simd/tests/splits.cc: Ditto.
283 * testsuite/experimental/simd/tests/trigonometric.cc: Ditto.
284 * testsuite/experimental/simd/tests/trunc_ceil_floor.cc: Ditto.
285 * testsuite/experimental/simd/tests/where.cc: Ditto.
286
2872023-02-16 Matthias Kretz <m.kretz@gsi.de>
288
289 * testsuite/experimental/simd/README.md: Document the timeout
290 and timeout-factor directives. Minor typo fixed.
291
2922023-02-16 Matthias Kretz <m.kretz@gsi.de>
293
294 PR libstdc++/108030
295 * include/experimental/bits/simd_detail.h: Define
296 _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
297 * include/experimental/bits/simd.h: Annotate lambdas with
298 _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA.
299 * include/experimental/bits/simd_builtin.h: Ditto.
300 * include/experimental/bits/simd_converter.h: Ditto.
301 * include/experimental/bits/simd_fixed_size.h: Ditto.
302 * include/experimental/bits/simd_math.h: Ditto.
303 * include/experimental/bits/simd_neon.h: Ditto.
304 * include/experimental/bits/simd_x86.h: Ditto.
305
3062023-02-16 Matthias Kretz <m.kretz@gsi.de>
307
308 * include/experimental/bits/simd.h
309 (_SimdWrapper::_M_is_constprop_none_of)
310 (_SimdWrapper::_M_is_constprop_all_of): Return false unless the
311 computed result still satisfies __builtin_constant_p.
312
3132023-02-16 Jonathan Wakely <jwakely@redhat.com>
314
315 * testsuite/std/format/arguments/lwg3810.cc: Replace UTF-8
316 ellipsis character.
317
3182023-02-16 Jonathan Wakely <jwakely@redhat.com>
319
320 * include/Makefile.am: Add new header.
321 * include/Makefile.in: Regenerate.
322 * include/experimental/synchronized_value: New file.
323 * testsuite/experimental/synchronized_value.cc: New test.
324
3252023-02-16 Jonathan Wakely <jwakely@redhat.com>
326
327 * include/experimental/optional: Fix header name in comment.
328
3292023-02-16 Jonathan Wakely <jwakely@redhat.com>
330
331 * include/std/format (__format::_Arg_store): New class template.
332 (basic_format_args): Remove nested type _Store and add deduction
333 guide from _Arg_store.
334 (basic_format_arg, make_format_args): Adjust.
335 * testsuite/std/format/arguments/lwg3810.cc: New test.
336
3372023-02-16 Jonathan Wakely <jwakely@redhat.com>
338
339 * include/bits/stl_pair.h (pair) [C++20]: Add non-dangling
340 constraints to constructors and add deleted overloads for the
341 dangling cases, as per P2255R2.
342 (pair) [!C++20 && _GLIBCXX_DEBUG]: Add static assertions to
343 make dangling cases ill-formed.
344 * testsuite/20_util/pair/dangling_ref.cc: New test.
345
3462023-02-16 Jonathan Wakely <jwakely@redhat.com>
347
348 * testsuite/17_intro/names_pstl.cc: Require et tbb_backend.
349
3502023-02-16 Jonathan Wakely <jwakely@redhat.com>
351
352 * include/ext/throw_allocator.h: Use reserved names for
353 parameters.
354
3552023-02-16 Jonathan Wakely <jwakely@redhat.com>
356
357 * testsuite/17_intro/names_pstl.cc: Add space after effective
358 target name.
359
3602023-02-16 Jonathan Wakely <jwakely@redhat.com>
361
362 * include/pstl/algorithm_fwd.h (__pattern_search_n)
363 (__brick_unique_copy, __brick_adjacent_find)
364 (__brick_generate_n, __pattern_generate_n): Use reserved names
365 for parameters.
366 * include/pstl/algorithm_impl.h (__brick_unique_copy)
367 (__pattern_reverse, __brick_generate_n): Likewise.
368 * include/pstl/execution_impl.h (__prefer_unsequenced_tag)
369 (__prefer_parallel_tag): Likewise.
370 * include/pstl/glue_algorithm_impl.h (transform): Likewise.
371 * include/pstl/glue_numeric_defs.h (adjacent_difference):
372 Likewise.
373 * include/pstl/numeric_impl.h (__brick_adjacent_difference):
374 Likewise.
375 * include/pstl/parallel_backend_tbb.h (__merge_func): Likewise.
376 * include/pstl/unseq_backend_simd.h (_Combiner)
377 (__simd_min_element, __simd_minmax_element): Likewise.
378 * testsuite/17_intro/names_pstl.cc: New test.
379
3802023-02-16 Jonathan Wakely <jwakely@redhat.com>
381
382 * include/bits/fs_ops.h (create_directory): Use reserved name
383 for parameter.
384 * include/bits/ranges_algo.h (__contains_subrange_fn):
385 Likewise.
386 * include/bits/regex_automaton.h (_State_base::_M_print):
387 Likewise.
388 * include/bits/regex_automaton.tcc(_State_base::_M_print):
389 Likewise.
390 * include/bits/regex_scanner.tcc(_Scanner::_M_print): Likewise.
391 * include/experimental/bits/fs_ops.h (create_directory):
392 Likewise.
393 * include/std/mutex (timed_mutex::_M_clocklock): Likewise.
394 (recursive_timed_mutex:_M_clocklock): Likewise.
395 * include/std/tuple (basic_common_reference): Likewise.
396 * libsupc++/cxxabi_init_exception.h
397 (__cxa_init_primary_exception): Likewise.
398 * testsuite/17_intro/names.cc: Add checks.
399
05467d08
GA
4002023-02-14 Gerald Pfeifer <gerald@pfeifer.com>
401
402 * doc/xml/manual/status_cxx2017.xml: Update an open-std.org link
403 to www.open-std.org and https.
404 * doc/html/manual/status.html: Regenerate.
405
4062023-02-14 Thomas W Rodgers <rodgert@twrodgers.com>
407
408 PR libstdc++/103934
409 * include/std/atomic (atomic_flag_wait): Add.
410 (atomic_flag_wait_explicit): Add.
411 (atomic_flag_notify): Add.
412 (atomic_flag_notify_explicit): Add.
413 * testsuite/29_atomics/atomic_flag/wait_notify/1.cc:
414 Add test case to cover missing atomic_flag free functions.
415
4162023-02-14 Thomas W Rodgers <rodgert@twrodgers.com>
417
418 PR libstdc++/103934
419 * include/std/atomic (atomic_flag_test): Add.
420 (atomic_flag_test_explicit): Add.
421 * testsuite/29_atomics/atomic_flag/test/explicit.cc: Add
422 test case to cover missing atomic_flag free functions.
423 * testsuite/29_atomics/atomic_flag/test/implicit.cc:
424 Likewise.
425
ae719781
GA
4262023-02-13 Gerald Pfeifer <gerald@pfeifer.com>
427
428 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust
429 "The Component Object Model" reference.
430 * doc/html/manual/policy_data_structures.html: Regenerate.
431
22ba8570
GA
4322023-02-12 Gerald Pfeifer <gerald@pfeifer.com>
433
434 * doc/xml/manual/containers.xml: Tweak a link to N1780
435 (C++ standard).
436 * doc/html/manual/associative.html: Regenerate.
437
4382023-02-12 Gerald Pfeifer <gerald@pfeifer.com>
439
440 * doc/xml/manual/ctype.xml: Change www.unix.org to unix.org.
441 * doc/html/manual/facets.html: Regenerate.
442
ee117887
GA
4432023-02-11 Gerald Pfeifer <gerald@pfeifer.com>
444
445 * doc/xml/manual/policy_data_structures_biblio.xml: Update
446 link to "Worst-case efficient priority queues".
447 * doc/html/manual/policy_data_structures.html: Regenerate.
448
f0e73dd0
GA
4492023-02-06 Arsen Arsenović <arsen@aarsen.me>
450
451 * doc/xml/manual/using.xml: Document newly-freestanding
452 headers and the effect of the -ffreestanding flag.
453 * doc/xml/manual/status_cxx2023.xml: Document P1642R11 as
454 completed.
455 * doc/xml/manual/configure.xml: Document that hosted installs
456 respect __STDC_HOSTED__.
457 * doc/xml/manual/test.xml: Document how to run tests in
458 freestanding mode.
459 * doc/html/*: Regenerate.
460
4612023-02-06 Jonathan Wakely <jwakely@redhat.com>
462
463 * include/bits/ranges_algo.h (__find_last_fn): Rename T to _Tp.
464 (__find_last_if_fn): Likewise.
465
4662023-02-06 Jonathan Wakely <jwakely@redhat.com>
467
468 * include/std/type_traits: Add diagnostic pragmas around
469 references to deprecated std::aligned_storage and
470 std::aligned_union traits.
471 * testsuite/20_util/aligned_storage/requirements/alias_decl.cc:
472 Add dg-warning for et c++23.
473 * testsuite/20_util/aligned_storage/requirements/explicit_instantiation.cc:
474 Likewise.
475 * testsuite/20_util/aligned_storage/value.cc: Likewise.
476 * testsuite/20_util/aligned_union/1.cc: Likewise.
477 * testsuite/20_util/aligned_union/requirements/alias_decl.cc:
478 Likewise.
479
4802023-02-06 Nathaniel Shead <nathanieloshead@gmail.com>
481
482 * doc/doxygen/user.cfg.in (PREDEFINED): Add new macros.
483 * include/bits/c++config (_GLIBCXX23_DEPRECATED)
484 (_GLIBCXX23_DEPRECATED_SUGGEST): New macros.
485 * include/std/type_traits (aligned_storage, aligned_union)
486 (aligned_storage_t, aligned_union_t): Deprecate for C++23.
487 * testsuite/20_util/aligned_storage/deprecated-2b.cc: New test.
488 * testsuite/20_util/aligned_union/deprecated-2b.cc: New test.
489
4902023-02-06 Nathaniel Shead <nathanieloshead@gmail.com>
491
492 * doc/doxygen/user.cfg.in (PREDEFINED): Update macros.
493 * include/bits/c++config (_GLIBCXX20_DEPRECATED): Make
494 consistent with other 'deprecated' macros.
495 * include/std/type_traits (is_pod, is_pod_v): Use
496 _GLIBCXX20_DEPRECATED_SUGGEST instead.
497
4982023-02-06 Arsen Arsenović <arsen@aarsen.me>
499
500 * Makefile.am [!_GLIBCXX_HOSTED]: Enable src/ subdirectory.
501 * Makefile.in: Regenerate.
502 * src/Makefile.am [!_GLIBCXX_HOSTED]: Omit compatibility files.
503 There's no history to be compatible with.
504 * src/c++11/Makefile.am [!_GLIBCXX_HOSTED]: Omit hosted-only
505 source files from the build.
506 * src/c++17/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
507 * src/c++20/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
508 * src/c++98/Makefile.am [!_GLIBCXX_HOSTED]: Likewise.
509 * src/Makefile.in: Regenerate.
510 * src/c++11/Makefile.in: Regenerate.
511 * src/c++17/Makefile.in: Regenerate.
512 * src/c++20/Makefile.in: Regenerate.
513 * src/c++98/Makefile.in: Regenerate.
514
5152023-02-06 Jonathan Wakely <jwakely@redhat.com>
516
517 * src/Makefile.am [GLIBCXX_HOSTED] (SUBDIRS): Do not add
518 filesystem, libbacktrace and experimental.
519 * src/Makefile.in: Regenerate.
520
057eb31b
GA
5212023-02-04 Hans-Peter Nilsson <hp@axis.com>
522
523 PR libstdc++/108672
524 * include/pstl/unseq_backend_simd.h (__simd_or): Use __INT32_TYPE__
525 instead of int32_t.
526
5272023-02-04 Gerald Pfeifer <gerald@pfeifer.com>
528
529 * doc/xml/manual/documentation_hacking.xml: Adjust link to pdftex.
530 * doc/html/manual/documentation_hacking.html: Regenerate.
531
5322023-02-04 François Dumont <fdumont@gcc.gnu.org>
533
534 * include/bits/basic_string.h (operator=(basic_string&&)): Transfer move-to
535 storage to the move-from instance when allocators are equal.
536 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc (test04):
537 New test case.
538
49e52115
GA
5392023-02-03 Samuel Thibault <samuel.thibault@gnu.org>
540
541 * config/os/gnu-linux/os_defines.h [!__linux__]
542 (_GLIBCXX_NATIVE_THREAD_ID, _GLIBCXX_GTHREAD_USE_WEAK): Do not define.
543
5442023-02-03 Patrick Palka <ppalka@redhat.com>
545
546 * include/bits/ranges_algo.h (__find_last_fn, find_last):
547 Define.
548 (__find_last_if_fn, find_last_if): Define.
549 (__find_last_if_not_fn, find_last_if_not): Define.
550 * testsuite/25_algorithms/find_last/1.cc: New test.
551 * testsuite/25_algorithms/find_last_if/1.cc: New test.
552 * testsuite/25_algorithms/find_last_if_not/1.cc: New test.
553
5542023-02-03 Patrick Palka <ppalka@redhat.com>
555
556 * include/bits/ranges_algo.h (out_value_result): Define.
557 (iota_result): Define.
558 (__iota_fn, iota): Define.
559 * testsuite/25_algorithms/iota/1.cc: New test.
560
5612023-02-03 Patrick Palka <ppalka@redhat.com>
562
563 * include/bits/ranges_algo.h (__contains_fn, contains): Define.
564 (__contains_subrange_fn, contains_subrange): Define.
565 * testsuite/25_algorithms/contains/1.cc: New test.
566 * testsuite/25_algorithms/contains_subrange/1.cc: New test.
567
a37a0cb3
GA
5682023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
569
570 * doc/xml/manual/abi.xml: Tweak link to ABIcheck project.
571 * doc/html/manual/abi.html: Regenerate.
572
5732023-02-02 Jonathan Wakely <jwakely@redhat.com>
574
575 * src/filesystem/ops-common.h [AVR] (__unsupported): Always use
576 errc::function_not_supported instead of errc::not_supported.
577
5782023-02-02 Jonathan Wakely <jwakely@redhat.com>
579
580 * include/std/sstream (basic_stringbuf::view): Define for old
581 std::string ABI.
582 (basic_istringstream::view, basic_0stringstream::view)
583 (basic_stringstream::view): Likewise.
584 * testsuite/27_io/basic_istringstream/view/char/1.cc: Remove
585 { dg-require-effective-target cxx11_abi }.
586 * testsuite/27_io/basic_istringstream/view/wchar_t/1.cc:
587 Likewise.
588 * testsuite/27_io/basic_ostringstream/view/char/1.cc: Likewise.
589 * testsuite/27_io/basic_ostringstream/view/wchar_t/1.cc:
590 Likewise.
591 * testsuite/27_io/basic_stringbuf/view/char/1.cc: Likewise.
592 * testsuite/27_io/basic_stringbuf/view/wchar_t/1.cc: Likewise.
593 * testsuite/27_io/basic_stringstream/view/char/1.cc: Likewise.
594 * testsuite/27_io/basic_stringstream/view/wchar_t/1.cc:
595 Likewise.
596
5972023-02-02 Jonathan Wakely <jwakely@redhat.com>
598
599 PR libstdc++/108636
600 * config/abi/pre/gnu.ver (GLIBCXX_3.4.31): Export shared_ptr
601 conversion operators for directory iterator comparisons with
602 std::default_sentinel_t.
603 * include/bits/fs_path.h (path::path(string_view, _Type))
604 (path::_Cmpt::_Cmpt(string_view, _Type, size_t)): Move inline
605 definitions to ...
606 * src/c++17/fs_path.cc: ... here.
607 * testsuite/27_io/filesystem/path/108636.cc: New test.
608
6092023-02-02 Jonathan Wakely <jwakely@redhat.com>
610
611 * include/std/variant (variant::operator=): Implement resolution
612 of LWG 3585.
613 * testsuite/20_util/variant/lwg3585.cc: New test.
614
6152023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
616
617 * doc/xml/manual/using_exceptions.xml: Update a www.open-std.org
618 link to https.
619 * doc/html/manual/using_exceptions.html: Regenerate.
620
6212023-02-02 Gerald Pfeifer <gerald@pfeifer.com>
622
623 * doc/xml/manual/debug.xml: Fix link to online GDB manual.
624 * doc/html/manual/debug.html: Regenerate.
625
0a251e74
GA
6262023-02-01 Jonathan Wakely <jwakely@redhat.com>
627
628 * src/c++11/random.cc (random_device::_M_fini): Do not try to
629 close the file handle if the target doesn't support the
630 /dev/random and /dev/urandom files.
631
6322023-02-01 Jonathan Wakely <jwakely@redhat.com>
633
634 * config/os/generic/error_constants.h (errc::value_too_large)
635 [__AVR__]: Define.
636 * src/c++11/system_error.cc
637 (system_category::default_error_condition) [__AVR__]: Only match
638 recognize values equal to EDOM, ERANGE, ENOSYS and EINTR.
639 * src/c++17/fs_ops.cc (fs::current_path) [__AVR__]: Do not check
640 for ENOENT etc. in switch.
641 (fs::remove_all) [__AVR__]: Likewise.
642 * src/filesystem/ops-common.h [__AVR__]: Do not use POSIX open,
643 close etc.
644
6452023-02-01 Jonathan Wakely <jwakely@redhat.com>
646
647 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR) [avr-*-*, msp430-*-*]: Set
648 embed_zoneinfo=no
649 * configure: Regenerate.
650
6512023-02-01 Hans-Peter Nilsson <hp@axis.com>
652
653 PR testsuite/108632
654 * testsuite/std/time/hh_mm_ss/1.cc (size): Add empty
655 struct at end of S0.
656
897a0502
GA
6572023-01-30 Gerald Pfeifer <gerald@pfeifer.com>
658
659 * doc/xml/manual/shared_ptr.xml: Move links from both
660 http://open-std.org and http://www.open-std.org to
661 https://www.open-std.org.
662 * doc/html/manual/memory.html: Regenerate.
663
ee2c965e
GA
6642023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
665
666 * doc/xml/manual/appendix_contributing.xml: Adjust link to
667 ISO C++ standard at ANSI.
668 Move link to www.open-std.org to https.
669 * doc/html/manual/appendix_contributing.html: Regenerate.
670
6712023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
672
673 * doc/xml/manual/documentation_hacking.xml: Move sourceforge.net
674 links to https.
675 * doc/html/manual/documentation_hacking.html: Regenerate.
676
6772023-01-28 Gerald Pfeifer <gerald@pfeifer.com>
678
679 * doc/xml/manual/abi.xml: Update www.open-std.org link to https.
680 * doc/html/manual/abi.html: Regenerate.
681
338eb0f0
GA
6822023-01-27 Jakub Jelinek <jakub@redhat.com>
683
684 PR libstdc++/108568
685 * testsuite/17_intro/names.cc (__unused): For linux or GNU hurd
686 include features.h if present and then check __GLIBC__ and
687 __GLIBC_MINOR__ macros for glibc prior to 2.19, instead of testing
688 __GLIBC_PREREQ which isn't defined yet.
689
6902023-01-27 Jonathan Wakely <jwakely@redhat.com>
691
692 * src/c++20/tzdb.cc (tzdata_stream): Use constant instead of
693 string literal.
694
6952023-01-27 Jonathan Wakely <jwakely@redhat.com>
696
697 PR libstdc++/108554
698 * testsuite/23_containers/map/modifiers/108554.cc: Use dg-bogus.
699
2371d100
GA
7002023-01-26 Jonathan Wakely <jwakely@redhat.com>
701
702 * src/c++20/tzdb.cc (operator>>(istream&, ZoneInfo&)): Allow
703 rules named "+" for compatibility with older tzdata.zi files.
704
7052023-01-26 Jonathan Wakely <jwakely@redhat.com>
706
707 PR libstdc++/108554
708 * include/bits/stl_tree.h (_Rb_tree_insert_and_rebalance): Add
709 nonnull attribute.
710 (_Rb_tree_rebalance_for_erase): Add nonnull and returns_nonnull
711 attributes.
712 * testsuite/23_containers/map/modifiers/108554.cc: New test.
713
7142023-01-26 Jonathan Wakely <jwakely@redhat.com>
715
716 PR libstdc++/108530
717 * src/c++20/tzdb.cc (current_zone): Look for TIMEZONE or ZONE in
718 /etc/sysconfig/clock, not DEFAULT_TIMEZONE.
719
7202023-01-26 Gerald Pfeifer <gerald@pfeifer.com>
721
722 * doc/xml/manual/intro.xml: Update links to www.open-std.org to
723 use https.
724 * doc/html/manual/bugs.html: Regenerate.
725
0fa22168
GA
7262023-01-24 Jonathan Wakely <jwakely@redhat.com>
727
728 PR libstdc++/108530
729 * src/c++20/tzdb.cc (current_zone): Look for DEFAULT_TIMEZONE in
730 /etc/sysconfig/clock.
731
7322023-01-24 Jonathan Wakely <jwakely@redhat.com>
733
734 PR libstdc++/102301
735 * include/bits/ranges_base.h: Include <bits/stl_iterator.h> for
736 std::make_reverse_iterator.
737 * include/std/tuple: Include <bits/ranges_util.h> for subrange.
738 (make_from_tuple): Add static assertion from P2255 to diagnose
739 dangling references.
740 * testsuite/20_util/tuple/make_from_tuple/dangling_ref.cc: New test.
741 * testsuite/20_util/tuple/make_from_tuple/tuple_like.cc: New test.
742
607f278a
GA
7432023-01-23 François Dumont <fdumont@gcc.gnu.org>
744
745 * include/debug/safe_iterator.h (_Safe_iterator<>::_Unchecked): New.
746 (_Safe_iterator(const _Safe_iterator&, _Unchecked)): New.
747 (_Safe_iterator::operator++(int)): Use latter.
748 (_Safe_iterator::operator--(int)): Likewise.
749 (_Safe_iterator(_Iterator, const _Safe_sequence_base*)): Remove !_M_insular()
750 check.
751 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::_Unchecked):
752 New.
753 (_Safe_local_iterator(const _Safe_local_iterator&, _Unchecked)): New.
754 (_Safe_local_iterator::operator++(int)): Use latter.
755 * src/c++11/debug.cc (_S_debug_messages): Add as comment the _Debug_msg_id
756 entry associated to the array entry.
757
9f98cfa5
GA
7582023-01-18 Jonathan Wakely <jwakely@redhat.com>
759
760 * include/bits/fs_path.h (u8path): Add deprecated attribute.
761 * testsuite/27_io/filesystem/path/construct/90281.cc: Add
762 -Wno-deprecated-declarations for C++20 and later.
763 * testsuite/27_io/filesystem/path/factory/u8path-char8_t.cc:
764 Likewise.
765 * testsuite/27_io/filesystem/path/factory/u8path.cc: Likewise.
766 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
767 * testsuite/27_io/filesystem/path/factory/u8path-depr.cc: New test.
768
7692023-01-18 Jonathan Wakely <jwakely@redhat.com>
770
771 * include/bits/random.h (random_device) [!_GLIBCXX_USE_DEV_RANDOM]:
772 Always call _M_fini and _M_getentropy.
773
7742023-01-18 Gerald Pfeifer <gerald@pfeifer.com>
775
776 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust links
777 to www.open-std.org to use https.
778 (COM: Component Model Object Technologies): Rename from...
779 (The Component Object Model): ...to.
780 * doc/html/manual/policy_data_structures.html: Regenerate.
781
7822023-01-18 Dimitrij Mijoski <dmjpp@hotmail.com>
783
784 * testsuite/22_locale/codecvt/codecvt_unicode.cc: Simplify.
785 * testsuite/22_locale/codecvt/codecvt_unicode.h: Simplify.
786 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: Simplify.
787
8d07b193
GA
7882023-01-17 Jonathan Wakely <jwakely@redhat.com>
789
790 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Check $target_os instead
791 of $host. Fix check for file being present during native build.
792 * configure: Regenerate.
793
7942023-01-17 Martin Liska <mliska@suse.cz>
795
796 * src/libbacktrace/Makefile.in: Regenerate.
797
f457a62e
GA
7982023-01-16 Jonathan Wakely <jwakely@redhat.com>
799
800 * src/c++20/tzdb.cc (_GLIBCXX_USE_CXX11_ABI): Define to 1.
801
8022023-01-16 Jonathan Wakely <jwakely@redhat.com>
803
804 PR libstdc++/108413
805 * include/c_compatibility/stdatomic.h: Change copyright line to
806 be consistent with other headers contributed under DCO terms.
807 * include/std/expected: Add full stop to copyright line.
808 * src/c++20/tzdb.cc: Likewise.
809
cc44e55e
GA
8102023-01-15 Gerald Pfeifer <gerald@pfeifer.com>
811
812 * doc/xml/manual/status_cxx2014.xml: Switch www.open-std.org to
813 https.
814 * doc/xml/manual/status_cxx2017.xml: Ditto.
815 * doc/xml/manual/status_cxx2020.xml: Ditto.
816 * doc/xml/manual/status_cxx2023.xml: Ditto.
817 * doc/html/manual/status.html: Regenerate.
818
8192023-01-15 Jonathan Wakely <jwakely@redhat.com>
820
821 * testsuite/std/time/tzdb_list/1.cc: Remove dg-xfail-run-if
822 and fail gracefully if defining the weak symbol doesn't work.
823
8242023-01-15 François Dumont <fdumont@gcc.gnu.org>
825
826 PR libstdc++/108288
827 * include/debug/safe_iterator.h (_Safe_iterator<>::operator++(int)): Extend deadlock
828 fix to other iterator category.
829 (_Safe_iterator<>::operator--(int)): Likewise.
830 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::operator++(int)):
831 Fix deadlock.
832 * testsuite/util/debug/unordered_checks.h (invalid_local_iterator_pre_increment): New.
833 (invalid_local_iterator_post_increment): New.
834 * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_post_increment_neg.cc:
835 New test.
836 * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_pre_increment_neg.cc:
837 New test.
838
8392023-01-15 Jonathan Wakely <jwakely@redhat.com>
840
841 * testsuite/30_threads/jthread/jthread.cc: Remove -pthread from
842 dg-options.
843
8442023-01-15 Jonathan Wakely <jwakely@redhat.com>
845
846 * testsuite/std/time/clock/utc/io.cc: Use ctype to widen char.
847
5013c3bb
GA
8482023-01-14 Björn Schäpers <bjoern@hazardy.de>
849
850 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Add check for
851 windows.h. Add pecoff as FORMAT_FILE.
852 * config.h.in: Regenerate.
853 * configure: Regenerate.
854 * src/libbacktrace/Makefile.am: Regenerate.
855 * src/libbacktrace/Makefile.in: Add pecoff.c as FORMAT_FILE.
856
8572023-01-14 Björn Schäpers <bjoern@hazardy.de>
858
859 * include/std/stacktrace (stacktrace_entry::_S_demangle): Use
860 raw __name if __cxa_demangle could not demangle it.
861
8622023-01-14 Jonathan Wakely <jwakely@redhat.com>
863
864 PR libstdc++/108409
865 * src/c++20/tzdb.cc (current_zone()) [_AIX]: Use TZ environment
866 variable.
867
8682023-01-14 Jonathan Wakely <jwakely@redhat.com>
869
870 * src/c++20/tzdb.cc (TZDB_DISABLED): Disable all code for
871 loading tzdb.
872 * testsuite/std/time/tzdb/leap_seconds.cc: Require tzdb
873 effective target.
874 * testsuite/std/time/tzdb_list/1.cc: Likewise.
875
8762023-01-14 Jonathan Wakely <jwakely@redhat.com>
877
878 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Replace the
879 --with-libstdcxx-zoneinfo-dir configure option with
880 --with-libstdcxx-zoneinfo with yes/no/static choices as well as
881 a directory.
882 * config.h.in: Regenerate.
883 * configure: Regenerate.
884 * doc/xml/manual/configure.xml: Document configure option.
885 * doc/html/manual/configure.html: Regenerate.
886 * src/c++20/Makefile.am: Generate tzdata.zi.h header.
887 * src/c++20/Makefile.in: Regenerate.
888 * src/c++20/tzdb.cc (__gnu_cxx::zoneinfo_dir_override): Return a
889 null pointer if no directory is configured.
890 (zoneinfo_dir): Replace with ...
891 (zoneinfo_file): New function.
892 (tzdata_stream): New istream class.
893 (remote_version, reload_tzdb): Use tzdata_stream.
894 * testsuite/lib/libstdc++.exp (check_effective_target_tzdb):
895 Check new _GLIBCXX_STATIC_TZDATA macro and ignore presence of
896 tzdata.zi file in default location.
897 * src/c++20/tzdata.zi: New file.
898
8992023-01-14 Jonathan Wakely <jwakely@redhat.com>
900
901 * include/bits/chrono_io.h (operator<<): Fix syntax errors.
902 * testsuite/std/time/month_day/io.cc: New test.
903 * testsuite/std/time/month_day_last/io.cc: New test.
904 * testsuite/std/time/month_weekday/io.cc: New test.
905 * testsuite/std/time/month_weekday_last/io.cc: New test.
906 * testsuite/std/time/weekday_indexed/io.cc: New test.
907 * testsuite/std/time/weekday_last/io.cc: New test.
908 * testsuite/std/time/year_month/io.cc: New test.
909 * testsuite/std/time/year_month_day_last/io.cc: New test.
910 * testsuite/std/time/year_month_weekday/io.cc: New test.
911 * testsuite/std/time/year_month_weekday_last/io.cc: New test.
912
9132023-01-14 François Dumont <fdumont@gcc.gnu.org>
914
915 * include/std/format [_GLIBCXX_INLINE_VERSION](to_chars): Adapt __asm symbol
916 specifications.
917 * config/abi/pre/gnu-versioned-namespace.ver: Add to_chars/from_chars symbols
918 export.
919
9202023-01-13 Jonathan Wakely <jwakely@redhat.com>
921
922 * include/bits/std_mutex.h: Include <errno.h>.
923
9242023-01-13 Arsen Arsenović <arsen@aarsen.me>
925
926 * testsuite/20_util/to_chars/version.cc: Mark hosted-only.
927 * testsuite/20_util/uses_allocator/lwg3677.cc: Ditto.
928 * testsuite/20_util/weak_ptr/cons/self_move.cc: Ditto.
929 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Replace usage of
930 std::make_unique with a freestanding-compatible wrapper around
931 unique_ptr.
932 * testsuite/21_strings/basic_string_view/operations/contains/char.cc:
933 Don't test for presence of __cpp_lib_string_contains on !HOSTED.
934 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
935 Ditto.
936 * testsuite/std/ranges/version_c++23.cc: Don't test for presence
937 of __cpp_lib_ranges in !HOSTED.
938
9392023-01-13 Arsen Arsenović <arsen@aarsen.me>
940
941 * include/Makefile.am: Install bits/char_traits.h,
942 std/string_view
943 * include/Makefile.in: Regenerate.
944 * include/bits/char_traits.h: Gate hosted-only, wchar-only and
945 mbstate-only bits behind appropriate #ifs.
946 * include/std/string_view: Gate <iostream> functionality behind
947 HOSTED.
948 * include/std/version: Enable __cpp_lib_constexpr_string_view
949 and __cpp_lib_starts_ends_with in !HOSTED.
950 * include/std/ranges: Re-enable __is_basic_string_view on
951 freestanding, include <string_view> directly.
952 * include/precompiled/stdc++.h: Include <string_view> when
953 !HOSTED too.
954 * testsuite/20_util/function_objects/searchers.cc: Skip testing
955 boyer_moore searchers on freestanding
956 * testsuite/21_strings/basic_string_view/capacity/1.cc: Guard
957 <string>-related tests behind __STDC_HOSTED__.
958 * testsuite/21_strings/basic_string_view/cons/char/1.cc: Ditto.
959 * testsuite/21_strings/basic_string_view/cons/char/2.cc: Remove
960 unused <stdexcept> include.
961 * testsuite/21_strings/basic_string_view/cons/char/3.cc: Remove
962 unused <vector> include.
963 * testsuite/21_strings/basic_string_view/cons/char/range.cc:
964 Guard <string> related testing behind __STDC_HOSTED__.
965 * testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc:
966 Guard <stdexcept> related tests behind __STDC_HOSTED__.
967 * testsuite/21_strings/basic_string_view/element_access/char/1.cc:
968 Ditto.
969 * testsuite/21_strings/basic_string_view/element_access/wchar_t/1.cc:
970 Guard <stdexcept> tests behind __STDC_HOSTED__.
971 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
972 Enable test on freestanding, guard <stdexcept> bits behind
973 __STDC_HOSTED__.
974 * testsuite/21_strings/basic_string_view/operations/substr/char.cc:
975 Guard <stdexcept> bits behind __STDC_HOSTED__.
976 * testsuite/21_strings/basic_string_view/operations/substr/wchar_t.cc:
977 Ditto.
978
9792023-01-13 Dimitrij Mijoski <dmjpp@hotmail.com>
980
981 PR libstdc++/86419
982 * src/c++11/codecvt.cc (read_utf8_code_point): Correctly detect
983 errors in incomplete multibyte sequences.
984 (utf16_in): Remove surrogates parameter. Fix conditions for
985 returning partial.
986 (utf16_out): Fix condition for returning partial.
987 (ucs2_in): Do not pass surrogates argument to utf16_in.
988 * testsuite/22_locale/codecvt/codecvt_unicode.cc: New test.
989 * testsuite/22_locale/codecvt/codecvt_unicode.h: New header for
990 tests.
991 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: New
992 test.
993
9942023-01-13 Jonathan Wakely <jwakely@redhat.com>
995
996 PR libstdc++/108331
997 * config/io/c_io_stdio.h (__c_lock): Define as a typedef for
998 __GTHREAD_LEGACY_MUTEX_T if defined.
999
ecd637e9
GA
10002023-01-13 Jonathan Wakely <jwakely@redhat.com>
1001
1002 PR libstdc++/108327
1003 * config/os/gnu-linux/ldbl-extra.ver (GLIBCXX_LDBL_3.4.31):
1004 Export __try_use_facet specializations for facets in namespace
1005 __gnu_cxx_ldbl128.
1006 * config/os/gnu-linux/ldbl-ieee128-extra.ver
1007 (GLIBCXX_IEEE128_3.4.31): Likewise for facets in namespace
1008 __gnu_cxx_ieee128.
1009 * testsuite/util/testsuite_abi.cc: Add to lists of known and
1010 latest versions.
1011
10122023-01-13 Jonathan Wakely <jwakely@redhat.com>
1013
1014 * include/bits/std_mutex.h: Remove <system_error> include.
1015 * include/std/condition_variable: Add <bits/error_constants.h>
1016 include.
1017 * include/std/mutex: Likewise.
1018 * include/std/shared_mutex: Likewise.
1019
10202023-01-12 Jonathan Wakely <jwakely@redhat.com>
1021
1022 PR libstdc++/77691
1023 * include/experimental/memory_resource
1024 (_GLIBCXX_MAX_ALIGN_MATCHES_MALLOC): Define.
1025 (do_allocate, do_deallocate): Check it.
1026 * testsuite/experimental/memory_resource/new_delete_resource.cc:
1027 Relax expected behaviour for 64-bit hppa-hp-hpux11.11.
1028
10292023-01-12 Jonathan Wakely <jwakely@redhat.com>
1030
1031 * doc/xml/manual/abi.xml: Add latest library versions.
1032 * doc/html/manual/abi.html: Regenerate.
1033
10342023-01-12 François Dumont <fdumont@gcc.gnu.org>
1035
1036 PR libstdc++/107189
1037 * include/bits/stl_tree.h (_Rb_tree<>::_M_insert_range_equal): Remove
1038 unused _Alloc_node instance.
1039
10402023-01-12 Jonathan Wakely <jwakely@redhat.com>
1041
1042 * include/bits/atomic_wait.h (__detail::__platform_wait_t):
1043 Define as unsigned long if always lock-free, and unsigned int
1044 otherwise.
1045
f432ad09
GA
10462023-01-10 Jonathan Wakely <jwakely@redhat.com>
1047
1048 * src/c++20/tzdb.cc (tzdb_list::_S_init_tzdb): Use __try and
1049 __catch macros for exception handling.
1050
10512023-01-10 Jonathan Wakely <jwakely@redhat.com>
1052
1053 PR libstdc++/108221
1054 * include/bits/stl_algobase.h (__lg): Replace six overloads with
1055 a single function template for all integer types.
1056 * include/bits/stl_algo.h (__merge_adaptive_resize): Cast
1057 arithmetic results back to _Distance.
1058
10592023-01-10 Jonathan Wakely <jwakely@redhat.com>
1060
1061 PR libstdc++/108221
1062 * include/std/span (span::span()): Un-simplify constraint to
1063 work for size_t of lesser rank than int.
1064
d901bf8a
GA
10652023-01-07 LIU Hao <lh_mouse@126.com>
1066
1067 PR middle-end/108300
1068 * src/c++11/system_error.cc: Define `WIN32_LEAN_AND_MEAN` before
1069 <windows.h>.
1070 * src/c++11/thread.cc: Likewise.
1071 * src/c++17/fs_ops.cc: Likewise.
1072 * src/filesystem/ops.cc: Likewise.
1073
d808db1f
GA
10742023-01-06 Jonathan Wakely <jwakely@redhat.com>
1075
1076 PR libstdc++/108228
1077 * src/c++20/tzdb.cc (zoneinfo_dir): Add diagnostic pragma.
1078
10792023-01-06 Jonathan Wakely <jwakely@redhat.com>
1080
1081 PR libstdc++/108235
1082 * src/c++20/tzdb.cc (time_zone::_Impl::RulesCounter): New class
1083 template and partial specialization for synchronizing access to
1084 time_zone::_Impl::infos.
1085 (time_zone::_M_get_sys_info, reload_tzdb): Adjust uses of
1086 rules_counter.
1087
10882023-01-06 Patrick Palka <ppalka@redhat.com>
1089
1090 PR libstdc++/108260
1091 * include/bits/utility.h (__cpp_lib_ranges_zip): Define for C++23.
1092 * include/std/ranges (__cpp_lib_ranges_zip): Likewise.
1093 (__cpp_lib_ranges_chunk): Likewise.
1094 (__cpp_lib_ranges_slide): Likewise.
1095 (__cpp_lib_ranges_chunk_by): Likewise.
1096 (__cpp_lib_ranges_join_with): Likewise.
1097 (__cpp_lib_ranges_repeat): Likewise.
1098 (__cpp_lib_ranges_stride): Likewise.
1099 (__cpp_lib_ranges_cartesian_product): Likewise.
1100 (__cpp_lib_ranges_as_rvalue): Likewise.
1101 * include/std/version: Ditto.
1102 * testsuite/20_util/tuple/p2321r2.cc: Verify value of
1103 feature-test macro.
1104 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Likewise.
1105 * testsuite/std/ranges/adaptors/chunk/1.cc: Likewise.
1106 * testsuite/std/ranges/adaptors/chunk_by/1.cc: Likewise.
1107 * testsuite/std/ranges/adaptors/join_with/1.cc: Likewise.
1108 * testsuite/std/ranges/adaptors/slide/1.cc: Likewise.
1109 * testsuite/std/ranges/adaptors/stride/1.cc: Likewise.
1110 * testsuite/std/ranges/cartesian_product/1.cc: Likewise.
1111 * testsuite/std/ranges/repeat/1.cc: Likewise.
1112 * testsuite/std/ranges/zip/1.cc: Likewise.
1113 * testsuite/std/ranges/version_c++23.cc: New test.
1114
11152023-01-06 Jonathan Wakely <jwakely@redhat.com>
1116
1117 PR libstdc++/108214
1118 * include/std/bitset (operator>>): Use alloca in the right
1119 scope, not in a constructor.
1120 * testsuite/20_util/bitset/io/input.cc: Check case from PR.
1121
11222023-01-06 Jonathan Wakely <jwakely@redhat.com>
1123
1124 PR libstdc++/108221
1125 * include/std/format (basic_format_arg) [!__cpp_lib_to_chars]:
1126 Disable visiting floating-point types.
1127
11282023-01-06 Jonathan Wakely <jwakely@redhat.com>
1129
1130 PR libstdc++/108288
1131 * include/debug/safe_iterator.h (_Safe_iterator::operator++(int))
1132 (_Safe_iterator::operator--(int)): Do not hold lock around
1133 construction of return value.
1134
53ef7c1d
GA
11352023-01-05 John David Anglin <danglin@gcc.gnu.org>
1136
1137 * config/cpu/hppa/atomicity.h (_PA_LDCW_INSN): Define.
1138 (__exchange_and_add): Use _PA_LDCW_INSN. Use ordered store for
1139 lock release. Revise loop.
1140 (__atomic_add): Likewise.
1141
11422023-01-05 Jonathan Wakely <jwakely@redhat.com>
1143
1144 PR libstdc++/108212
1145 * python/libstdcxx/v6/printers.py (_utc_timezone): New global
1146 variable.
1147 (StdChronoTimePointPrinter::to_string): Use it.
1148
11492023-01-05 Jonathan Wakely <jwakely@redhat.com>
1150
1151 PR libstdc++/108290
1152 * include/std/functional (_Bind_front): Add no_unique_address
1153 attribute to data members.
1154 * testsuite/20_util/function_objects/bind_front/107784.cc: Check
1155 size of call wrappers with empty types for targets and bound
1156 arguments.
1157
11582023-01-05 Jonathan Wakely <jwakely@redhat.com>
1159
1160 PR libstdc++/108211
1161 * src/c++20/tzdb.cc (chrono::current_zone()): Check for zone
1162 using only last component of the name.
1163
11642023-01-05 Jonathan Wakely <jwakely@redhat.com>
1165
1166 PR libstdc++/108228
1167 PR libstdc++/108235
1168 * config/abi/pre/gnu.ver: Move zoneinfo_dir_override export to
1169 the latest symbol version.
1170 * src/c++20/tzdb.cc (USE_ATOMIC_SHARED_PTR): Define to 0 if
1171 atomic<_Node*> is not always lock free.
1172 (USE_ATOMIC_LIST_HEAD): New macro.
1173 [__hpux__] (__gnu_cxx::zoneinfo_dir_override()): Provide
1174 definition of weak symbol.
1175 (tzdb_list::_Node::_S_head): Rename to _S_head_cache.
1176 (tzdb_list::_Node::_S_list_head): New function for accessing
1177 list head efficiently.
1178 (tzdb_list::_Node::_S_cache_list_head): New function for
1179 updating _S_list_head.
1180
11812023-01-05 Jonathan Wakely <jwakely@redhat.com>
1182
1183 PR libstdc++/108265
1184 * include/std/chrono (hh_mm_ss): Do not use chrono::abs if
1185 duration rep is unsigned.
1186 * testsuite/std/time/hh_mm_ss/1.cc: Check unsigned rep.
1187
faccda27
GA
11882023-01-04 Iain Sandoe <iain@sandoe.co.uk>
1189
1190 PR libstdc++/108228
1191 * config/abi/pre/gnu.ver (GLIBCXX_3.4):
1192 Add __gnu_cxx::zoneinfo_dir_override().
1193
11942023-01-04 Jonathan Wakely <jwakely@redhat.com>
1195
1196 PR libstdc++/108258
1197 * include/std/array (__array_traits<T, 0>::operator T*()): Add
1198 constexpr.
1199 * testsuite/23_containers/array/element_access/constexpr_c++17.cc: Check
1200 std::array<T, 0>::data().
1201
b4df5e92 1202\f
d64f8779 1203Copyright (C) 2023 Free Software Foundation, Inc.
b4df5e92
JW
1204
1205Copying and distribution of this file, with or without modification,
1206are permitted in any medium without royalty provided the copyright
1207notice and this notice are preserved.
This page took 1.286571 seconds and 5 git commands to generate.