]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/ChangeLog
Daily bump.
[thirdparty/gcc.git] / libstdc++-v3 / ChangeLog
CommitLineData
607f278a
GA
12023-01-23 François Dumont <fdumont@gcc.gnu.org>
2
3 * include/debug/safe_iterator.h (_Safe_iterator<>::_Unchecked): New.
4 (_Safe_iterator(const _Safe_iterator&, _Unchecked)): New.
5 (_Safe_iterator::operator++(int)): Use latter.
6 (_Safe_iterator::operator--(int)): Likewise.
7 (_Safe_iterator(_Iterator, const _Safe_sequence_base*)): Remove !_M_insular()
8 check.
9 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::_Unchecked):
10 New.
11 (_Safe_local_iterator(const _Safe_local_iterator&, _Unchecked)): New.
12 (_Safe_local_iterator::operator++(int)): Use latter.
13 * src/c++11/debug.cc (_S_debug_messages): Add as comment the _Debug_msg_id
14 entry associated to the array entry.
15
9f98cfa5
GA
162023-01-18 Jonathan Wakely <jwakely@redhat.com>
17
18 * include/bits/fs_path.h (u8path): Add deprecated attribute.
19 * testsuite/27_io/filesystem/path/construct/90281.cc: Add
20 -Wno-deprecated-declarations for C++20 and later.
21 * testsuite/27_io/filesystem/path/factory/u8path-char8_t.cc:
22 Likewise.
23 * testsuite/27_io/filesystem/path/factory/u8path.cc: Likewise.
24 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
25 * testsuite/27_io/filesystem/path/factory/u8path-depr.cc: New test.
26
272023-01-18 Jonathan Wakely <jwakely@redhat.com>
28
29 * include/bits/random.h (random_device) [!_GLIBCXX_USE_DEV_RANDOM]:
30 Always call _M_fini and _M_getentropy.
31
322023-01-18 Gerald Pfeifer <gerald@pfeifer.com>
33
34 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust links
35 to www.open-std.org to use https.
36 (COM: Component Model Object Technologies): Rename from...
37 (The Component Object Model): ...to.
38 * doc/html/manual/policy_data_structures.html: Regenerate.
39
402023-01-18 Dimitrij Mijoski <dmjpp@hotmail.com>
41
42 * testsuite/22_locale/codecvt/codecvt_unicode.cc: Simplify.
43 * testsuite/22_locale/codecvt/codecvt_unicode.h: Simplify.
44 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: Simplify.
45
8d07b193
GA
462023-01-17 Jonathan Wakely <jwakely@redhat.com>
47
48 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Check $target_os instead
49 of $host. Fix check for file being present during native build.
50 * configure: Regenerate.
51
522023-01-17 Martin Liska <mliska@suse.cz>
53
54 * src/libbacktrace/Makefile.in: Regenerate.
55
f457a62e
GA
562023-01-16 Jonathan Wakely <jwakely@redhat.com>
57
58 * src/c++20/tzdb.cc (_GLIBCXX_USE_CXX11_ABI): Define to 1.
59
602023-01-16 Jonathan Wakely <jwakely@redhat.com>
61
62 PR libstdc++/108413
63 * include/c_compatibility/stdatomic.h: Change copyright line to
64 be consistent with other headers contributed under DCO terms.
65 * include/std/expected: Add full stop to copyright line.
66 * src/c++20/tzdb.cc: Likewise.
67
cc44e55e
GA
682023-01-15 Gerald Pfeifer <gerald@pfeifer.com>
69
70 * doc/xml/manual/status_cxx2014.xml: Switch www.open-std.org to
71 https.
72 * doc/xml/manual/status_cxx2017.xml: Ditto.
73 * doc/xml/manual/status_cxx2020.xml: Ditto.
74 * doc/xml/manual/status_cxx2023.xml: Ditto.
75 * doc/html/manual/status.html: Regenerate.
76
772023-01-15 Jonathan Wakely <jwakely@redhat.com>
78
79 * testsuite/std/time/tzdb_list/1.cc: Remove dg-xfail-run-if
80 and fail gracefully if defining the weak symbol doesn't work.
81
822023-01-15 François Dumont <fdumont@gcc.gnu.org>
83
84 PR libstdc++/108288
85 * include/debug/safe_iterator.h (_Safe_iterator<>::operator++(int)): Extend deadlock
86 fix to other iterator category.
87 (_Safe_iterator<>::operator--(int)): Likewise.
88 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::operator++(int)):
89 Fix deadlock.
90 * testsuite/util/debug/unordered_checks.h (invalid_local_iterator_pre_increment): New.
91 (invalid_local_iterator_post_increment): New.
92 * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_post_increment_neg.cc:
93 New test.
94 * testsuite/23_containers/unordered_map/debug/invalid_local_iterator_pre_increment_neg.cc:
95 New test.
96
972023-01-15 Jonathan Wakely <jwakely@redhat.com>
98
99 * testsuite/30_threads/jthread/jthread.cc: Remove -pthread from
100 dg-options.
101
1022023-01-15 Jonathan Wakely <jwakely@redhat.com>
103
104 * testsuite/std/time/clock/utc/io.cc: Use ctype to widen char.
105
5013c3bb
GA
1062023-01-14 Björn Schäpers <bjoern@hazardy.de>
107
108 * acinclude.m4 (GLIBCXX_ENABLE_BACKTRACE): Add check for
109 windows.h. Add pecoff as FORMAT_FILE.
110 * config.h.in: Regenerate.
111 * configure: Regenerate.
112 * src/libbacktrace/Makefile.am: Regenerate.
113 * src/libbacktrace/Makefile.in: Add pecoff.c as FORMAT_FILE.
114
1152023-01-14 Björn Schäpers <bjoern@hazardy.de>
116
117 * include/std/stacktrace (stacktrace_entry::_S_demangle): Use
118 raw __name if __cxa_demangle could not demangle it.
119
1202023-01-14 Jonathan Wakely <jwakely@redhat.com>
121
122 PR libstdc++/108409
123 * src/c++20/tzdb.cc (current_zone()) [_AIX]: Use TZ environment
124 variable.
125
1262023-01-14 Jonathan Wakely <jwakely@redhat.com>
127
128 * src/c++20/tzdb.cc (TZDB_DISABLED): Disable all code for
129 loading tzdb.
130 * testsuite/std/time/tzdb/leap_seconds.cc: Require tzdb
131 effective target.
132 * testsuite/std/time/tzdb_list/1.cc: Likewise.
133
1342023-01-14 Jonathan Wakely <jwakely@redhat.com>
135
136 * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Replace the
137 --with-libstdcxx-zoneinfo-dir configure option with
138 --with-libstdcxx-zoneinfo with yes/no/static choices as well as
139 a directory.
140 * config.h.in: Regenerate.
141 * configure: Regenerate.
142 * doc/xml/manual/configure.xml: Document configure option.
143 * doc/html/manual/configure.html: Regenerate.
144 * src/c++20/Makefile.am: Generate tzdata.zi.h header.
145 * src/c++20/Makefile.in: Regenerate.
146 * src/c++20/tzdb.cc (__gnu_cxx::zoneinfo_dir_override): Return a
147 null pointer if no directory is configured.
148 (zoneinfo_dir): Replace with ...
149 (zoneinfo_file): New function.
150 (tzdata_stream): New istream class.
151 (remote_version, reload_tzdb): Use tzdata_stream.
152 * testsuite/lib/libstdc++.exp (check_effective_target_tzdb):
153 Check new _GLIBCXX_STATIC_TZDATA macro and ignore presence of
154 tzdata.zi file in default location.
155 * src/c++20/tzdata.zi: New file.
156
1572023-01-14 Jonathan Wakely <jwakely@redhat.com>
158
159 * include/bits/chrono_io.h (operator<<): Fix syntax errors.
160 * testsuite/std/time/month_day/io.cc: New test.
161 * testsuite/std/time/month_day_last/io.cc: New test.
162 * testsuite/std/time/month_weekday/io.cc: New test.
163 * testsuite/std/time/month_weekday_last/io.cc: New test.
164 * testsuite/std/time/weekday_indexed/io.cc: New test.
165 * testsuite/std/time/weekday_last/io.cc: New test.
166 * testsuite/std/time/year_month/io.cc: New test.
167 * testsuite/std/time/year_month_day_last/io.cc: New test.
168 * testsuite/std/time/year_month_weekday/io.cc: New test.
169 * testsuite/std/time/year_month_weekday_last/io.cc: New test.
170
1712023-01-14 François Dumont <fdumont@gcc.gnu.org>
172
173 * include/std/format [_GLIBCXX_INLINE_VERSION](to_chars): Adapt __asm symbol
174 specifications.
175 * config/abi/pre/gnu-versioned-namespace.ver: Add to_chars/from_chars symbols
176 export.
177
1782023-01-13 Jonathan Wakely <jwakely@redhat.com>
179
180 * include/bits/std_mutex.h: Include <errno.h>.
181
1822023-01-13 Arsen Arsenović <arsen@aarsen.me>
183
184 * testsuite/20_util/to_chars/version.cc: Mark hosted-only.
185 * testsuite/20_util/uses_allocator/lwg3677.cc: Ditto.
186 * testsuite/20_util/weak_ptr/cons/self_move.cc: Ditto.
187 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Replace usage of
188 std::make_unique with a freestanding-compatible wrapper around
189 unique_ptr.
190 * testsuite/21_strings/basic_string_view/operations/contains/char.cc:
191 Don't test for presence of __cpp_lib_string_contains on !HOSTED.
192 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
193 Ditto.
194 * testsuite/std/ranges/version_c++23.cc: Don't test for presence
195 of __cpp_lib_ranges in !HOSTED.
196
1972023-01-13 Arsen Arsenović <arsen@aarsen.me>
198
199 * include/Makefile.am: Install bits/char_traits.h,
200 std/string_view
201 * include/Makefile.in: Regenerate.
202 * include/bits/char_traits.h: Gate hosted-only, wchar-only and
203 mbstate-only bits behind appropriate #ifs.
204 * include/std/string_view: Gate <iostream> functionality behind
205 HOSTED.
206 * include/std/version: Enable __cpp_lib_constexpr_string_view
207 and __cpp_lib_starts_ends_with in !HOSTED.
208 * include/std/ranges: Re-enable __is_basic_string_view on
209 freestanding, include <string_view> directly.
210 * include/precompiled/stdc++.h: Include <string_view> when
211 !HOSTED too.
212 * testsuite/20_util/function_objects/searchers.cc: Skip testing
213 boyer_moore searchers on freestanding
214 * testsuite/21_strings/basic_string_view/capacity/1.cc: Guard
215 <string>-related tests behind __STDC_HOSTED__.
216 * testsuite/21_strings/basic_string_view/cons/char/1.cc: Ditto.
217 * testsuite/21_strings/basic_string_view/cons/char/2.cc: Remove
218 unused <stdexcept> include.
219 * testsuite/21_strings/basic_string_view/cons/char/3.cc: Remove
220 unused <vector> include.
221 * testsuite/21_strings/basic_string_view/cons/char/range.cc:
222 Guard <string> related testing behind __STDC_HOSTED__.
223 * testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc:
224 Guard <stdexcept> related tests behind __STDC_HOSTED__.
225 * testsuite/21_strings/basic_string_view/element_access/char/1.cc:
226 Ditto.
227 * testsuite/21_strings/basic_string_view/element_access/wchar_t/1.cc:
228 Guard <stdexcept> tests behind __STDC_HOSTED__.
229 * testsuite/21_strings/basic_string_view/operations/contains/char/2.cc:
230 Enable test on freestanding, guard <stdexcept> bits behind
231 __STDC_HOSTED__.
232 * testsuite/21_strings/basic_string_view/operations/substr/char.cc:
233 Guard <stdexcept> bits behind __STDC_HOSTED__.
234 * testsuite/21_strings/basic_string_view/operations/substr/wchar_t.cc:
235 Ditto.
236
2372023-01-13 Dimitrij Mijoski <dmjpp@hotmail.com>
238
239 PR libstdc++/86419
240 * src/c++11/codecvt.cc (read_utf8_code_point): Correctly detect
241 errors in incomplete multibyte sequences.
242 (utf16_in): Remove surrogates parameter. Fix conditions for
243 returning partial.
244 (utf16_out): Fix condition for returning partial.
245 (ucs2_in): Do not pass surrogates argument to utf16_in.
246 * testsuite/22_locale/codecvt/codecvt_unicode.cc: New test.
247 * testsuite/22_locale/codecvt/codecvt_unicode.h: New header for
248 tests.
249 * testsuite/22_locale/codecvt/codecvt_unicode_wchar_t.cc: New
250 test.
251
2522023-01-13 Jonathan Wakely <jwakely@redhat.com>
253
254 PR libstdc++/108331
255 * config/io/c_io_stdio.h (__c_lock): Define as a typedef for
256 __GTHREAD_LEGACY_MUTEX_T if defined.
257
ecd637e9
GA
2582023-01-13 Jonathan Wakely <jwakely@redhat.com>
259
260 PR libstdc++/108327
261 * config/os/gnu-linux/ldbl-extra.ver (GLIBCXX_LDBL_3.4.31):
262 Export __try_use_facet specializations for facets in namespace
263 __gnu_cxx_ldbl128.
264 * config/os/gnu-linux/ldbl-ieee128-extra.ver
265 (GLIBCXX_IEEE128_3.4.31): Likewise for facets in namespace
266 __gnu_cxx_ieee128.
267 * testsuite/util/testsuite_abi.cc: Add to lists of known and
268 latest versions.
269
2702023-01-13 Jonathan Wakely <jwakely@redhat.com>
271
272 * include/bits/std_mutex.h: Remove <system_error> include.
273 * include/std/condition_variable: Add <bits/error_constants.h>
274 include.
275 * include/std/mutex: Likewise.
276 * include/std/shared_mutex: Likewise.
277
2782023-01-12 Jonathan Wakely <jwakely@redhat.com>
279
280 PR libstdc++/77691
281 * include/experimental/memory_resource
282 (_GLIBCXX_MAX_ALIGN_MATCHES_MALLOC): Define.
283 (do_allocate, do_deallocate): Check it.
284 * testsuite/experimental/memory_resource/new_delete_resource.cc:
285 Relax expected behaviour for 64-bit hppa-hp-hpux11.11.
286
2872023-01-12 Jonathan Wakely <jwakely@redhat.com>
288
289 * doc/xml/manual/abi.xml: Add latest library versions.
290 * doc/html/manual/abi.html: Regenerate.
291
2922023-01-12 François Dumont <fdumont@gcc.gnu.org>
293
294 PR libstdc++/107189
295 * include/bits/stl_tree.h (_Rb_tree<>::_M_insert_range_equal): Remove
296 unused _Alloc_node instance.
297
2982023-01-12 Jonathan Wakely <jwakely@redhat.com>
299
300 * include/bits/atomic_wait.h (__detail::__platform_wait_t):
301 Define as unsigned long if always lock-free, and unsigned int
302 otherwise.
303
f432ad09
GA
3042023-01-10 Jonathan Wakely <jwakely@redhat.com>
305
306 * src/c++20/tzdb.cc (tzdb_list::_S_init_tzdb): Use __try and
307 __catch macros for exception handling.
308
3092023-01-10 Jonathan Wakely <jwakely@redhat.com>
310
311 PR libstdc++/108221
312 * include/bits/stl_algobase.h (__lg): Replace six overloads with
313 a single function template for all integer types.
314 * include/bits/stl_algo.h (__merge_adaptive_resize): Cast
315 arithmetic results back to _Distance.
316
3172023-01-10 Jonathan Wakely <jwakely@redhat.com>
318
319 PR libstdc++/108221
320 * include/std/span (span::span()): Un-simplify constraint to
321 work for size_t of lesser rank than int.
322
d901bf8a
GA
3232023-01-07 LIU Hao <lh_mouse@126.com>
324
325 PR middle-end/108300
326 * src/c++11/system_error.cc: Define `WIN32_LEAN_AND_MEAN` before
327 <windows.h>.
328 * src/c++11/thread.cc: Likewise.
329 * src/c++17/fs_ops.cc: Likewise.
330 * src/filesystem/ops.cc: Likewise.
331
d808db1f
GA
3322023-01-06 Jonathan Wakely <jwakely@redhat.com>
333
334 PR libstdc++/108228
335 * src/c++20/tzdb.cc (zoneinfo_dir): Add diagnostic pragma.
336
3372023-01-06 Jonathan Wakely <jwakely@redhat.com>
338
339 PR libstdc++/108235
340 * src/c++20/tzdb.cc (time_zone::_Impl::RulesCounter): New class
341 template and partial specialization for synchronizing access to
342 time_zone::_Impl::infos.
343 (time_zone::_M_get_sys_info, reload_tzdb): Adjust uses of
344 rules_counter.
345
3462023-01-06 Patrick Palka <ppalka@redhat.com>
347
348 PR libstdc++/108260
349 * include/bits/utility.h (__cpp_lib_ranges_zip): Define for C++23.
350 * include/std/ranges (__cpp_lib_ranges_zip): Likewise.
351 (__cpp_lib_ranges_chunk): Likewise.
352 (__cpp_lib_ranges_slide): Likewise.
353 (__cpp_lib_ranges_chunk_by): Likewise.
354 (__cpp_lib_ranges_join_with): Likewise.
355 (__cpp_lib_ranges_repeat): Likewise.
356 (__cpp_lib_ranges_stride): Likewise.
357 (__cpp_lib_ranges_cartesian_product): Likewise.
358 (__cpp_lib_ranges_as_rvalue): Likewise.
359 * include/std/version: Ditto.
360 * testsuite/20_util/tuple/p2321r2.cc: Verify value of
361 feature-test macro.
362 * testsuite/std/ranges/adaptors/as_rvalue/1.cc: Likewise.
363 * testsuite/std/ranges/adaptors/chunk/1.cc: Likewise.
364 * testsuite/std/ranges/adaptors/chunk_by/1.cc: Likewise.
365 * testsuite/std/ranges/adaptors/join_with/1.cc: Likewise.
366 * testsuite/std/ranges/adaptors/slide/1.cc: Likewise.
367 * testsuite/std/ranges/adaptors/stride/1.cc: Likewise.
368 * testsuite/std/ranges/cartesian_product/1.cc: Likewise.
369 * testsuite/std/ranges/repeat/1.cc: Likewise.
370 * testsuite/std/ranges/zip/1.cc: Likewise.
371 * testsuite/std/ranges/version_c++23.cc: New test.
372
3732023-01-06 Jonathan Wakely <jwakely@redhat.com>
374
375 PR libstdc++/108214
376 * include/std/bitset (operator>>): Use alloca in the right
377 scope, not in a constructor.
378 * testsuite/20_util/bitset/io/input.cc: Check case from PR.
379
3802023-01-06 Jonathan Wakely <jwakely@redhat.com>
381
382 PR libstdc++/108221
383 * include/std/format (basic_format_arg) [!__cpp_lib_to_chars]:
384 Disable visiting floating-point types.
385
3862023-01-06 Jonathan Wakely <jwakely@redhat.com>
387
388 PR libstdc++/108288
389 * include/debug/safe_iterator.h (_Safe_iterator::operator++(int))
390 (_Safe_iterator::operator--(int)): Do not hold lock around
391 construction of return value.
392
53ef7c1d
GA
3932023-01-05 John David Anglin <danglin@gcc.gnu.org>
394
395 * config/cpu/hppa/atomicity.h (_PA_LDCW_INSN): Define.
396 (__exchange_and_add): Use _PA_LDCW_INSN. Use ordered store for
397 lock release. Revise loop.
398 (__atomic_add): Likewise.
399
4002023-01-05 Jonathan Wakely <jwakely@redhat.com>
401
402 PR libstdc++/108212
403 * python/libstdcxx/v6/printers.py (_utc_timezone): New global
404 variable.
405 (StdChronoTimePointPrinter::to_string): Use it.
406
4072023-01-05 Jonathan Wakely <jwakely@redhat.com>
408
409 PR libstdc++/108290
410 * include/std/functional (_Bind_front): Add no_unique_address
411 attribute to data members.
412 * testsuite/20_util/function_objects/bind_front/107784.cc: Check
413 size of call wrappers with empty types for targets and bound
414 arguments.
415
4162023-01-05 Jonathan Wakely <jwakely@redhat.com>
417
418 PR libstdc++/108211
419 * src/c++20/tzdb.cc (chrono::current_zone()): Check for zone
420 using only last component of the name.
421
4222023-01-05 Jonathan Wakely <jwakely@redhat.com>
423
424 PR libstdc++/108228
425 PR libstdc++/108235
426 * config/abi/pre/gnu.ver: Move zoneinfo_dir_override export to
427 the latest symbol version.
428 * src/c++20/tzdb.cc (USE_ATOMIC_SHARED_PTR): Define to 0 if
429 atomic<_Node*> is not always lock free.
430 (USE_ATOMIC_LIST_HEAD): New macro.
431 [__hpux__] (__gnu_cxx::zoneinfo_dir_override()): Provide
432 definition of weak symbol.
433 (tzdb_list::_Node::_S_head): Rename to _S_head_cache.
434 (tzdb_list::_Node::_S_list_head): New function for accessing
435 list head efficiently.
436 (tzdb_list::_Node::_S_cache_list_head): New function for
437 updating _S_list_head.
438
4392023-01-05 Jonathan Wakely <jwakely@redhat.com>
440
441 PR libstdc++/108265
442 * include/std/chrono (hh_mm_ss): Do not use chrono::abs if
443 duration rep is unsigned.
444 * testsuite/std/time/hh_mm_ss/1.cc: Check unsigned rep.
445
faccda27
GA
4462023-01-04 Iain Sandoe <iain@sandoe.co.uk>
447
448 PR libstdc++/108228
449 * config/abi/pre/gnu.ver (GLIBCXX_3.4):
450 Add __gnu_cxx::zoneinfo_dir_override().
451
4522023-01-04 Jonathan Wakely <jwakely@redhat.com>
453
454 PR libstdc++/108258
455 * include/std/array (__array_traits<T, 0>::operator T*()): Add
456 constexpr.
457 * testsuite/23_containers/array/element_access/constexpr_c++17.cc: Check
458 std::array<T, 0>::data().
459
b4df5e92 460\f
d64f8779 461Copyright (C) 2023 Free Software Foundation, Inc.
b4df5e92
JW
462
463Copying and distribution of this file, with or without modification,
464are permitted in any medium without royalty provided the copyright
465notice and this notice are preserved.