| 1 |
2024-12-29 Gerald Pfeifer <[email protected]> |
| 2 |
|
| 3 |
* doc/html/manual/profile_mode_diagnostics.html: Delete. |
| 4 |
|
| 5 |
2024-12-29 Hans-Peter Nilsson <[email protected]> |
| 6 |
|
| 7 |
* testsuite/std/time/year_month_day/3.cc (test01): Add ifdeffery to |
| 8 |
limit the tested dates. For simulators, pass start and end dates |
| 9 |
limiting the tested range to 100000 days, centered on days (0). |
| 10 |
* testsuite/std/time/year_month_day/4.cc: Ditto. |
| 11 |
|
| 12 |
2024-12-28 Jakub Jelinek <[email protected]> |
| 13 |
|
| 14 |
PR libstdc++/118196 |
| 15 |
* testsuite/24_iterators/range_generators/pr118196.cc: Include |
| 16 |
<generator> rather than "<generator>". |
| 17 |
|
| 18 |
2024-12-27 Arsen Arsenović <[email protected]> |
| 19 |
|
| 20 |
PR libstdc++/118196 |
| 21 |
* include/std/generator (generator::operator=(generator)): Add |
| 22 |
missing 'return *this;'. |
| 23 |
* testsuite/24_iterators/range_generators/pr118196.cc: New test. |
| 24 |
|
| 25 |
2024-12-27 Arsen Arsenović <[email protected]> |
| 26 |
|
| 27 |
PR libstdc++/118022 |
| 28 |
* include/std/generator |
| 29 |
(_Promise_erased::yield_value(const _Yielded_deref&)): Don't |
| 30 |
implicit-constuct _Yielded_decvref. |
| 31 |
* testsuite/24_iterators/range_generators/pr118022.cc: New test. |
| 32 |
|
| 33 |
2024-12-19 François Dumont <[email protected]> |
| 34 |
|
| 35 |
PR libstdc++/57272 |
| 36 |
* include/bits/stl_tree.h |
| 37 |
[_GLIBCXX_USE_ALLOC_PTR_FOR_RB_TREE]: New macro to control usage of the |
| 38 |
code required to support fancy allocator pointer type. |
| 39 |
(_Rb_tree_node_base::_Const_Base_ptr): Remove. |
| 40 |
(_Rb_tree_node_base::_S_minimum, _Rb_tree_node_base::_S_maximum): Remove |
| 41 |
overloads for _Const_Base_ptr. |
| 42 |
(_Rb_tree_node_base::_M_base_ptr()): New. |
| 43 |
(_Rb_tree_node::_Link_type): Remove. |
| 44 |
(_Rb_tree_node::_M_node_ptr()): New. |
| 45 |
(__rb_tree::_Node_base<>): New. |
| 46 |
(__rb_tree::_Header<>): New. |
| 47 |
(__rb_tree::_Node<>): New. |
| 48 |
(_Rb_tree_increment(const _Rb_tree_node_base*)): Remove declaration. |
| 49 |
(_Rb_tree_decrement(const _Rb_tree_node_base*)): Remove declaration. |
| 50 |
(_Rb_tree_iterator<>::_Self): Remove. |
| 51 |
(_Rb_tree_iterator<>::_Link_type): Rename into... |
| 52 |
(_Rb_tree_iterator<>::_Node_ptr): ...this. |
| 53 |
(_Rb_tree_const_iterator<>::_Link_type): Rename into... |
| 54 |
(_Rb_tree_const_iterator<>::_Node_ptr): ...this. |
| 55 |
(_Rb_tree_const_iterator<>::_M_const_cast): Remove. |
| 56 |
(_Rb_tree_const_iterator<>::_M_node): Change type into _Base_ptr. |
| 57 |
(__rb_tree::_Iterator<>): New. |
| 58 |
(__rb_tree::_Node_traits<>): New. |
| 59 |
(_Rb_tree<>::_Node_base, _Rb_tree::_Node): New. |
| 60 |
(_Rb_tree<>::_Link_type): Rename into... |
| 61 |
(_Rb_tree<>::_Node_ptr): ...this. |
| 62 |
(_Rb_tree<>::_Const_Base_ptr, _Rb_tree<>::_Const_Node_ptr): Remove. |
| 63 |
(_Rb_tree<>::_M_mbegin): Remove. |
| 64 |
(_Rb_tree<>::_M_begin_node()): New. |
| 65 |
(_S_key(const _Node&)): New. |
| 66 |
(_S_key(_Base_ptr)): New, call latter. |
| 67 |
(_S_key(_Node_ptr)): Likewise. |
| 68 |
(_Rb_tree<>::_S_left(_Const_Base_ptr)): Remove. |
| 69 |
(_Rb_tree<>::_S_right(_Const_Base_ptr)): Remove. |
| 70 |
(_Rb_tree<>::_S_maximum(_Const_Base_ptr)): Remove. |
| 71 |
(_Rb_tree<>::_S_minimum(_Const_Base_ptr)): Remove. |
| 72 |
* testsuite/23_containers/map/allocator/ext_ptr.cc: New test case. |
| 73 |
* testsuite/23_containers/multimap/allocator/ext_ptr.cc: New test case. |
| 74 |
* testsuite/23_containers/multiset/allocator/ext_ptr.cc: New test case. |
| 75 |
* testsuite/23_containers/set/allocator/ext_ptr.cc: New test case. |
| 76 |
* testsuite/23_containers/set/requirements/explicit_instantiation/alloc_ptr.cc: |
| 77 |
New test case. |
| 78 |
* testsuite/23_containers/set/requirements/explicit_instantiation/alloc_ptr_ignored.cc: |
| 79 |
New test case. |
| 80 |
|
| 81 |
2024-12-19 Patrick Palka <[email protected]> |
| 82 |
Jonathan Wakely <[email protected]> |
| 83 |
|
| 84 |
* include/Makefile.am: Add new header <flat_set>. |
| 85 |
* include/Makefile.in: Regenerate. |
| 86 |
* include/bits/version.def (__cpp_flat_set): Define. |
| 87 |
* include/bits/version.h: Regenerate |
| 88 |
* include/precompiled/stdc++.h: Include <flat_set>. |
| 89 |
* include/std/flat_set: New file. |
| 90 |
* src/c++23/std.cc.in: Export <flat_set>. |
| 91 |
* testsuite/23_containers/flat_multiset/1.cc: New test. |
| 92 |
* testsuite/23_containers/flat_set/1.cc: New test. |
| 93 |
|
| 94 |
2024-12-19 Patrick Palka <[email protected]> |
| 95 |
Jonathan Wakely <[email protected]> |
| 96 |
|
| 97 |
* include/Makefile.am: Add new header <flat_map>. |
| 98 |
* include/Makefile.in: Regenerate. |
| 99 |
* include/bits/alloc_traits.h (__not_allocator_like): New concept. |
| 100 |
* include/bits/stl_function.h (__transparent_comparator): Likewise. |
| 101 |
* include/bits/stl_iterator_base_types.h (__has_input_iter_cat): |
| 102 |
Likewise. |
| 103 |
* include/bits/uses_allocator.h (__allocator_for): Likewise. |
| 104 |
* include/bits/utility.h (sorted_unique_t): Define for C++23. |
| 105 |
(sorted_unique): Likewise. |
| 106 |
(sorted_equivalent_t): Likewise. |
| 107 |
(sorted_equivalent): Likewise. |
| 108 |
* include/bits/version.def (flat_map): Define. |
| 109 |
* include/bits/version.h: Regenerate. |
| 110 |
* include/precompiled/stdc++.h: Include <flat_map>. |
| 111 |
* include/std/flat_map: New file. |
| 112 |
* src/c++23/std.cc.in: Export <flat_map>. |
| 113 |
* testsuite/23_containers/flat_map/1.cc: New test. |
| 114 |
* testsuite/23_containers/flat_multimap/1.cc: New test. |
| 115 |
|
| 116 |
2024-12-19 Patrick Palka <[email protected]> |
| 117 |
|
| 118 |
* include/bits/ranges_base.h (__detail::__range_key_type): |
| 119 |
Define as per P1206R7. |
| 120 |
(__detail::__range_mapped_type): Likewise. |
| 121 |
|
| 122 |
2024-12-18 François Dumont <[email protected]> |
| 123 |
|
| 124 |
* include/bits/move.h (std::addressof): Call __builtin_addressof. |
| 125 |
|
| 126 |
2024-12-18 Tamar Christina <[email protected]> |
| 127 |
|
| 128 |
* include/bits/hashtable.h |
| 129 |
(_M_find_before_node): Make it likely that the map has at least one |
| 130 |
entry and so we do at least one iteration. |
| 131 |
|
| 132 |
2024-12-18 Jonathan Wakely <[email protected]> |
| 133 |
|
| 134 |
PR libstdc++/118088 |
| 135 |
* include/bits/stl_queue.h (priority_queue(priority_queue&&)): |
| 136 |
Clear the source object after moving from it. |
| 137 |
(priority_queue(priority_queue&&, const Alloc&)): Likewise. |
| 138 |
(operator=(priority_queue&&)): Likewise. |
| 139 |
* testsuite/23_containers/priority_queue/118088.cc: New test. |
| 140 |
|
| 141 |
2024-12-18 Tamar Christina <[email protected]> |
| 142 |
|
| 143 |
* include/bits/hashtable.h: Inline _M_locate. |
| 144 |
|
| 145 |
2024-12-18 Jonathan Wakely <[email protected]> |
| 146 |
|
| 147 |
* include/bits/basic_string.h (__to_wstring_numeric): Add 'i' |
| 148 |
and 'I' to mapping. |
| 149 |
|
| 150 |
2024-12-18 Luca Bacci <[email protected]> |
| 151 |
|
| 152 |
PR libstdc++/98723 |
| 153 |
* include/bits/regex_compiler.tcc (_BracketMatcher::_M_apply): |
| 154 |
Only use transform_primary when an equivalence set is used. |
| 155 |
|
| 156 |
2024-12-17 Jonathan Wakely <[email protected]> |
| 157 |
|
| 158 |
* include/debug/safe_local_iterator.h (_GLIBCXX_DEBUG_VERIFY_OPERANDS): |
| 159 |
Add parentheses to avoid -Wparentheses warning. |
| 160 |
|
| 161 |
2024-12-17 Jonathan Wakely <[email protected]> |
| 162 |
|
| 163 |
PR libstdc++/118035 |
| 164 |
* include/bits/deque.tcc (_M_range_insert_aux): Return |
| 165 |
immediately if inserting an empty range. |
| 166 |
* testsuite/23_containers/deque/modifiers/insert/118035.cc: New |
| 167 |
test. |
| 168 |
|
| 169 |
2024-12-16 Jonathan Wakely <[email protected]> |
| 170 |
|
| 171 |
* include/bits/hashtable_policy.h (_Local_iterator_base): Use |
| 172 |
default member-initializers. |
| 173 |
|
| 174 |
2024-12-16 Jonathan Wakely <[email protected]> |
| 175 |
|
| 176 |
* include/bits/hashtable_policy.h: Replace typedefs with |
| 177 |
alias-declarations. Remove redundant std:: qualification. |
| 178 |
(_Mod_range_hashing, _Mask_range_hashing): Remove adaptable |
| 179 |
function object typedefs. |
| 180 |
|
| 181 |
2024-12-16 Jonathan Wakely <[email protected]> |
| 182 |
|
| 183 |
* include/bits/hashtable_policy.h (_Hash_code_storage): Remove. |
| 184 |
(_Hash_obj_storage): New class template. Store the hash |
| 185 |
function as a union member instead of using a byte buffer. |
| 186 |
(_Local_iterator_base): Use _Hash_obj_storage instead of |
| 187 |
_Hash_code_storage, adjust members that construct and destroy |
| 188 |
the hash object. |
| 189 |
(_Local_iterator_base::_M_incr): Calculate bucket index. |
| 190 |
|
| 191 |
2024-12-16 Jonathan Wakely <[email protected]> |
| 192 |
|
| 193 |
* include/bits/hashtable.h (_Hashtable::swap): Swap hash |
| 194 |
function and equality predicate here. Inline allocator swap |
| 195 |
instead of using __alloc_on_swap. |
| 196 |
* include/bits/hashtable_policy.h (_Hashtable_ebo_helper): |
| 197 |
Replace EBO with no_unique_address attribute. Remove NTTP. |
| 198 |
(_Hash_code_base): Replace base class with data member using |
| 199 |
no_unique_address attribute. |
| 200 |
(_Hash_code_base::_M_swap): Remove. |
| 201 |
(_Hash_code_base::_M_hash): Remove. |
| 202 |
(_Hashtable_base): Replace base class with data member using |
| 203 |
no_unique_address attribute. |
| 204 |
(_Hashtable_base::_M_swap): Remove. |
| 205 |
(_Hashtable_alloc): Replace base class with data member using |
| 206 |
no_unique_address attribute. |
| 207 |
|
| 208 |
2024-12-16 Jonathan Wakely <[email protected]> |
| 209 |
|
| 210 |
PR libstdc++/57272 |
| 211 |
* include/bits/forward_list.h (__fwd_list::_Node): Add |
| 212 |
user-provided special member functions to union. |
| 213 |
* include/bits/stl_list.h (__list::_Node): Likewise. |
| 214 |
(_Node_base::_M_hook, _Node_base::swap): Use _M_base() instead |
| 215 |
of std::pointer_traits::pointer_to. |
| 216 |
(_Node_base::_M_transfer): Likewise. Add noexcept. |
| 217 |
(_List_base::_M_put_node): Use 'if constexpr' to avoid using |
| 218 |
pointer_traits::pointer_to when not necessary. |
| 219 |
(_List_base::_M_destroy_node): Fix parameter to be the pointer |
| 220 |
type used internally, not the allocator's pointer. |
| 221 |
(list::_M_create_node): Likewise. |
| 222 |
* testsuite/23_containers/forward_list/requirements/explicit_instantiation/alloc_ptr.cc: |
| 223 |
Check explicit instantiation of non-trivial value type. |
| 224 |
* testsuite/23_containers/list/requirements/explicit_instantiation/alloc_ptr.cc: |
| 225 |
Likewise. |
| 226 |
* testsuite/23_containers/forward_list/requirements/explicit_instantiation/alloc_ptr_ignored.cc: |
| 227 |
Fix macro name. |
| 228 |
* testsuite/23_containers/list/requirements/explicit_instantiation/alloc_ptr_ignored.cc: |
| 229 |
Likewise. |
| 230 |
|
| 231 |
2024-12-14 Abdo Eid <[email protected]> |
| 232 |
|
| 233 |
* include/c_compatibility/wchar.h (fgetwc): Remove duplicate |
| 234 |
using-declaration. |
| 235 |
|
| 236 |
2024-12-13 Patrick Palka <[email protected]> |
| 237 |
|
| 238 |
PR libstdc++/112349 |
| 239 |
* include/bits/ranges_algo.h (__min_fn::operator()): Turn local |
| 240 |
object __tmp into a reference. |
| 241 |
* include/bits/ranges_util.h (__max_fn::operator()): Likewise. |
| 242 |
* testsuite/25_algorithms/max/constrained.cc (test04): New test. |
| 243 |
* testsuite/25_algorithms/min/constrained.cc (test04): New test. |
| 244 |
|
| 245 |
2024-12-13 Jonathan Wakely <[email protected]> |
| 246 |
|
| 247 |
* include/std/spanstream (basic_spanbuf::seekoff): Return an |
| 248 |
error for invalid seekdir values. |
| 249 |
|
| 250 |
2024-12-13 Jonathan Wakely <[email protected]> |
| 251 |
|
| 252 |
* include/bits/ranges_cmp.h (not_equal_to): Make order of |
| 253 |
expressions in noexcept-specifier match the body. |
| 254 |
* testsuite/20_util/function_objects/range.cmp/not_equal_to.cc: |
| 255 |
Check noexcept. |
| 256 |
|
| 257 |
2024-12-13 Jonathan Wakely <[email protected]> |
| 258 |
|
| 259 |
* include/bits/regex.tcc: Fix -Wsign-compare warning. |
| 260 |
|
| 261 |
2024-12-13 Jonathan Wakely <[email protected]> |
| 262 |
|
| 263 |
* include/pstl/parallel_backend_tbb.h (__merge_func): Fix order |
| 264 |
of mem-initializers. |
| 265 |
|
| 266 |
2024-12-13 Jonathan Wakely <[email protected]> |
| 267 |
|
| 268 |
* testsuite/26_numerics/random/random_device/entropy.cc: Fix |
| 269 |
indentation to avoid -Wmisleading-indentation warning. |
| 270 |
|
| 271 |
2024-12-12 Jonathan Wakely <[email protected]> |
| 272 |
|
| 273 |
* testsuite/23_containers/unordered_map/modifiers/reserve.cc: |
| 274 |
Cast to size_t to fix -Wsign-compare warning. |
| 275 |
* testsuite/23_containers/unordered_set/hash_policy/71181.cc: |
| 276 |
Likewise. |
| 277 |
* testsuite/23_containers/unordered_set/insert/move_range.cc: |
| 278 |
Likewise. |
| 279 |
|
| 280 |
2024-12-12 Jonathan Wakely <[email protected]> |
| 281 |
|
| 282 |
* include/bits/hashtable_policy.h (_Local_iterator_base): Fix |
| 283 |
-Wsign-compare warnings. |
| 284 |
|
| 285 |
2024-12-12 Jonathan Wakely <[email protected]> |
| 286 |
|
| 287 |
* src/c++17/fs_dir.cc: Fix typo in comment. |
| 288 |
|
| 289 |
2024-12-11 Jonathan Wakely <[email protected]> |
| 290 |
|
| 291 |
PR libstdc++/109517 |
| 292 |
PR libstdc++/109976 |
| 293 |
* include/debug/helper_functions.h (__valid_range_aux): Treat |
| 294 |
all input iterator ranges as valid during constant evaluation. |
| 295 |
|
| 296 |
2024-12-11 Jonathan Wakely <[email protected]> |
| 297 |
|
| 298 |
PR libstdc++/106212 |
| 299 |
* include/std/array (operator==): Use std::__equal_aux1 instead |
| 300 |
of std::equal. |
| 301 |
* testsuite/23_containers/array/comparison_operators/106212.cc: |
| 302 |
New test. |
| 303 |
|
| 304 |
2024-12-11 Jonathan Wakely <[email protected]> |
| 305 |
|
| 306 |
PR libstdc++/117966 |
| 307 |
* include/std/span (span(T (&)[N])): Do not delegate to |
| 308 |
constructor that performs redundant checks. |
| 309 |
(span(array<T, N>&), span(const array<T, N>&)): Likewise. |
| 310 |
(span(Range&&), span(const span<T, N>&)): Likewise. |
| 311 |
* testsuite/23_containers/span/117966.cc: New test. |
| 312 |
|
| 313 |
2024-12-11 Jonathan Wakely <[email protected]> |
| 314 |
|
| 315 |
* include/std/generator (_Promise_alloc): Rename template |
| 316 |
parameter. Use __alloc_rebind to rebind allocator. |
| 317 |
(_Promise_alloc::operator new): Replace constraints with a |
| 318 |
static_assert in the body. Rename allocator parameter. |
| 319 |
(_Promise_alloc<void>::_M_allocate): Rename allocator parameter. |
| 320 |
Use __alloc_rebind to rebind allocator. |
| 321 |
(_Promise_alloc<void>::operator new): Rename allocator |
| 322 |
parameter. |
| 323 |
* testsuite/24_iterators/range_generators/alloc.cc: New test. |
| 324 |
* testsuite/24_iterators/range_generators/lwg3900.cc: New test. |
| 325 |
|
| 326 |
2024-12-11 Jonathan Wakely <[email protected]> |
| 327 |
|
| 328 |
* include/std/ostream (println): Pass stream's locale to |
| 329 |
std::format, as per LWG 4088. |
| 330 |
* testsuite/27_io/basic_ostream/print/1.cc: Check std::println |
| 331 |
with custom locale. Remove unused brit_punc class. |
| 332 |
|
| 333 |
2024-12-10 Jonathan Wakely <[email protected]> |
| 334 |
|
| 335 |
* include/bits/memory_resource.h (polymoprhic_allocator): Use |
| 336 |
feature test macro for P0339R6 features. |
| 337 |
|
| 338 |
2024-12-10 Marek Polacek <[email protected]> |
| 339 |
|
| 340 |
PR c++/117788 |
| 341 |
* testsuite/std/ranges/adaptors/conditionally_borrowed.cc: Add a |
| 342 |
FIXME, adjust. |
| 343 |
|
| 344 |
2024-12-10 Jonathan Wakely <[email protected]> |
| 345 |
|
| 346 |
* include/bits/stl_uninitialized.h (__is_bitwise_relocatable): |
| 347 |
Revert to depending on is_trivial. |
| 348 |
|
| 349 |
2024-12-10 Giuseppe D'Angelo <[email protected]> |
| 350 |
|
| 351 |
* include/std/type_traits: Deprecate is_trivial and |
| 352 |
is_trivial_v. |
| 353 |
* include/experimental/type_traits: Suppress the deprecation |
| 354 |
warning. |
| 355 |
* testsuite/20_util/is_trivial/requirements/explicit_instantiation.cc: |
| 356 |
Amend the test to suppress the deprecation warning. |
| 357 |
* testsuite/20_util/is_trivial/requirements/typedefs.cc: |
| 358 |
Likewise. |
| 359 |
* testsuite/20_util/is_trivial/value.cc: Likewise. |
| 360 |
* testsuite/20_util/variable_templates_for_traits.cc: Likewise. |
| 361 |
* testsuite/experimental/type_traits/value.cc: Likewise. |
| 362 |
* testsuite/18_support/max_align_t/requirements/2.cc: Update the |
| 363 |
test with P3247R2's new wording. |
| 364 |
|
| 365 |
2024-12-10 Giuseppe D'Angelo <[email protected]> |
| 366 |
|
| 367 |
* testsuite/20_util/specialized_algorithms/uninitialized_copy/102064.cc: |
| 368 |
Port away from is_trivial. |
| 369 |
* testsuite/20_util/specialized_algorithms/uninitialized_copy_n/102064.cc: |
| 370 |
Likewise. |
| 371 |
* testsuite/20_util/specialized_algorithms/uninitialized_default/94540.cc: |
| 372 |
Likewise. |
| 373 |
* testsuite/20_util/specialized_algorithms/uninitialized_default_n/94540.cc: |
| 374 |
Likewise. |
| 375 |
* testsuite/20_util/specialized_algorithms/uninitialized_fill/102064.cc: |
| 376 |
Likewise. |
| 377 |
* testsuite/20_util/specialized_algorithms/uninitialized_fill_n/102064.cc: |
| 378 |
Likewise. |
| 379 |
* testsuite/20_util/specialized_algorithms/uninitialized_value_construct/94540.cc: |
| 380 |
Likewise. |
| 381 |
* testsuite/20_util/specialized_algorithms/uninitialized_value_construct_n/94540.cc: |
| 382 |
Likewise. |
| 383 |
* testsuite/23_containers/vector/cons/94540.cc: Likewise. |
| 384 |
* testsuite/25_algorithms/copy/move_iterators/69478.cc: |
| 385 |
Likewise. |
| 386 |
* testsuite/25_algorithms/copy_backward/move_iterators/69478.cc: |
| 387 |
Likewise. |
| 388 |
* testsuite/25_algorithms/move/69478.cc: Likewise. |
| 389 |
* testsuite/25_algorithms/move_backward/69478.cc: Likewise. |
| 390 |
* testsuite/25_algorithms/rotate/constrained.cc: Likewise. |
| 391 |
* testsuite/25_algorithms/rotate_copy/constrained.cc: Likewise. |
| 392 |
|
| 393 |
2024-12-10 Giuseppe D'Angelo <[email protected]> |
| 394 |
|
| 395 |
* include/bits/ranges_uninitialized.h: port some if |
| 396 |
constexpr away from is_trivial, and towards more specific |
| 397 |
detections instead. |
| 398 |
|
| 399 |
2024-12-10 Giuseppe D'Angelo <[email protected]> |
| 400 |
|
| 401 |
* include/bits/stl_uninitialized.h: Amended the |
| 402 |
__is_bitwise_relocatable type trait. |
| 403 |
|
| 404 |
2024-12-10 Giuseppe D'Angelo <[email protected]> |
| 405 |
|
| 406 |
* include/pstl/algorithm_impl.h (__remove_elements): Port away |
| 407 |
from is_trivial. |
| 408 |
(__pattern_inplace_merge): Likewise. |
| 409 |
* include/pstl/glue_memory_impl.h (uninitialized_copy): Likewise. |
| 410 |
(uninitialized_copy_n): Likewise. |
| 411 |
(uninitialized_move): Likewise. |
| 412 |
(uninitialized_move_n): Likewise. |
| 413 |
(uninitialized_default_construct): Likewise. |
| 414 |
(uninitialized_default_construct_n): Likewise. |
| 415 |
(uninitialized_value_construct): Likewise. |
| 416 |
(uninitialized_value_construct_n): Likewise. |
| 417 |
* testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: |
| 418 |
Likewise. |
| 419 |
* testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: |
| 420 |
Likewise. |
| 421 |
* testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: |
| 422 |
Likewise. |
| 423 |
* testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: |
| 424 |
Likewise. |
| 425 |
|
| 426 |
2024-12-10 Giuseppe D'Angelo <[email protected]> |
| 427 |
|
| 428 |
* include/bits/basic_string.h: Add a static_assert on the |
| 429 |
char-like type. |
| 430 |
* include/std/string_view: Port away from is_trivial. |
| 431 |
|
| 432 |
2024-12-09 Jonathan Wakely <[email protected]> |
| 433 |
|
| 434 |
PR libstdc++/102259 |
| 435 |
* config/io/basic_file_stdio.cc (basic_file::xsgetn): Limit n to |
| 436 |
_GLIBCXX_MAX_READ_SIZE if that macro is defined. |
| 437 |
* config/os/bsd/darwin/os_defines.h (_GLIBCXX_MAX_READ_SIZE): |
| 438 |
Define to INT_MAX-1. |
| 439 |
* config/os/bsd/freebsd/os_defines.h (_GLIBCXX_MAX_READ_SIZE): |
| 440 |
Likewise. |
| 441 |
|
| 442 |
2024-12-09 Jonathan Wakely <[email protected]> |
| 443 |
|
| 444 |
* include/bits/allocator.h (allocator::is_always_equal): Do not |
| 445 |
define for C++26. |
| 446 |
(allocator<void>::is_always_equal): Likewise. |
| 447 |
* testsuite/20_util/allocator/requirements/typedefs.cc: Check |
| 448 |
that is_always_equal is not present in C++26. |
| 449 |
* testsuite/20_util/allocator/void.cc: Do not require |
| 450 |
is_always_equal for C++26. |
| 451 |
* testsuite/23_containers/vector/bool/cons/constexpr.cc: Add |
| 452 |
missing override of base's is_always_equal. |
| 453 |
* testsuite/23_containers/vector/cons/constexpr.cc: Likewise. |
| 454 |
|
| 455 |
2024-12-09 Jonathan Wakely <[email protected]> |
| 456 |
|
| 457 |
PR libstdc++/117962 |
| 458 |
* include/debug/safe_container.h: Make allocator-extended move |
| 459 |
constructor a no-op during constant evaluation. |
| 460 |
|
| 461 |
2024-12-09 Jonathan Wakely <[email protected]> |
| 462 |
|
| 463 |
PR libstdc++/117921 |
| 464 |
* testsuite/23_containers/set/modifiers/swap/adl.cc: Add |
| 465 |
equality comparison for Allocator. |
| 466 |
* testsuite/23_containers/unordered_set/modifiers/swap-2.cc: |
| 467 |
Likewise. |
| 468 |
|
| 469 |
2024-12-07 Jonathan Wakely <[email protected]> |
| 470 |
|
| 471 |
* include/std/format: Fix typo in Doxygen comment. |
| 472 |
|
| 473 |
2024-12-07 Matthew Malcomson <[email protected]> |
| 474 |
|
| 475 |
* .editorconfig: Adjust globbing style to standard syntax. |
| 476 |
|
| 477 |
2024-12-05 Jonathan Wakely <[email protected]> |
| 478 |
|
| 479 |
PR libstdc++/117921 |
| 480 |
* include/bits/hashtable_policy.h (_Hash_code_base::_M_swap): |
| 481 |
Use ADL swap for Hash members. |
| 482 |
(_Hashtable_base::_M_swap): Use ADL swap for _Equal members. |
| 483 |
* include/bits/stl_tree.h (_Rb_tree::swap): Use ADL swap for |
| 484 |
_Compare members. |
| 485 |
* testsuite/23_containers/set/modifiers/swap/adl.cc: New test. |
| 486 |
* testsuite/23_containers/unordered_set/modifiers/swap-2.cc: New |
| 487 |
test. |
| 488 |
|
| 489 |
2024-12-03 Jonathan Wakely <[email protected]> |
| 490 |
|
| 491 |
PR libstdc++/108236 |
| 492 |
* include/pstl/glue_numeric_impl.h (exclusive_scan): Pass __init |
| 493 |
as rvalue. |
| 494 |
* include/pstl/numeric_impl.h (__brick_transform_scan): Do not |
| 495 |
write through __result until after reading through __first. Move |
| 496 |
__init into return value. |
| 497 |
(__pattern_transform_scan): Pass __init as rvalue. |
| 498 |
* include/std/numeric (exclusive_scan): Move construct instead |
| 499 |
of copy constructing. |
| 500 |
* testsuite/26_numerics/exclusive_scan/2.cc: New test. |
| 501 |
* testsuite/26_numerics/pstl/numeric_ops/108236.cc: New test. |
| 502 |
|
| 503 |
2024-12-03 Jonathan Wakely <[email protected]> |
| 504 |
|
| 505 |
* include/bits/alloc_traits.h (__do_alloc_on_copy): Remove. |
| 506 |
(__do_alloc_on_move __do_alloc_on_swap): Remove. |
| 507 |
(__alloc_on_copy, __alloc_on_move, __alloc_on_swap): Use if |
| 508 |
constexpr. |
| 509 |
|
| 510 |
2024-12-03 Jonathan Wakely <[email protected]> |
| 511 |
|
| 512 |
PR libstdc++/57272 |
| 513 |
* include/bits/forward_list.h (_GLIBCXX_USE_ALLOC_PTR_FOR_LIST): |
| 514 |
Define. |
| 515 |
(_Fwd_list_node_base::_M_base_ptr): New member functions. |
| 516 |
(_Fwd_list_node::_M_node_ptr): New member function. |
| 517 |
(_Fwd_list_iterator, _Fwd_list_const_iterator): Make internal |
| 518 |
member functions and data member private. Declare forward_list |
| 519 |
and _Fwd_list_base as friends. |
| 520 |
(__fwdlist::_Node_base, __fwdlist::_Node, __fwdlist::_Iterator): |
| 521 |
New class templates. |
| 522 |
(__fwdlist::_Node_traits): New class template. |
| 523 |
(_Fwd_list_base): Use _Node_traits to get types. Use _Base_ptr |
| 524 |
instad of _Fwd_list_node_base*. Use _M_base_ptr() instead of |
| 525 |
taking address of head node. |
| 526 |
(forward_list): Likewise. |
| 527 |
(_Fwd_list_base::_M_get_node): Do not define for versioned |
| 528 |
namespace. |
| 529 |
(_Fwd_list_base::_M_put_node): Only convert pointer if needed. |
| 530 |
(_Fwd_list_base::_M_create_node): Use __allocate_guarded_obj. |
| 531 |
(_Fwd_list_base::_M_destroy_node): New member function. |
| 532 |
* include/bits/forward_list.tcc (_Fwd_list_base::_M_insert_after) |
| 533 |
(forward_list::_M_splice_after, forward_list::insert_after): Use |
| 534 |
const_iterator::_M_const_cast() instead of casting pointers. |
| 535 |
(_Fwd_list_base::_M_erase_after): Use _M_destroy_node. |
| 536 |
(forward_list::remove, forward_list::remove_if): Only do |
| 537 |
downcasts when accessing the value. |
| 538 |
(forward_list::sort): Likewise. |
| 539 |
* testsuite/23_containers/forward_list/capacity/1.cc: Check |
| 540 |
max_size for new node type. |
| 541 |
* testsuite/23_containers/forward_list/capacity/node_sizes.cc: |
| 542 |
New test. |
| 543 |
* testsuite/23_containers/forward_list/requirements/explicit_instantiation/alloc_ptr.cc: |
| 544 |
New test. |
| 545 |
* testsuite/23_containers/forward_list/requirements/explicit_instantiation/alloc_ptr_ignored.cc: |
| 546 |
New test. |
| 547 |
* testsuite/23_containers/forward_list/requirements/completeness.cc: New file. |
| 548 |
|
| 549 |
2024-12-03 Jonathan Wakely <[email protected]> |
| 550 |
|
| 551 |
PR libstdc++/57272 |
| 552 |
PR libstdc++/110952 |
| 553 |
* include/bits/allocated_ptr.h (__allocated_ptr::get): Add |
| 554 |
const. |
| 555 |
(__allocated_ptr::operator bool, __allocated_ptr::release): New |
| 556 |
member functions. |
| 557 |
(__allocate_guarded): Add inline. |
| 558 |
(__allocated_obj): New class template. |
| 559 |
(__allocate_guarded_obj): New function template. |
| 560 |
* include/bits/list.tcc (_List_base::_M_clear()): Replace uses |
| 561 |
of raw pointers. Use _M_destroy_node. |
| 562 |
(list::emplace, list::insert): Likewise. |
| 563 |
(list::sort): Adjust check for 0 or 1 wsize. Use template |
| 564 |
argument list for _Scratch_list. |
| 565 |
* include/bits/stl_list.h (_GLIBCXX_USE_ALLOC_PTR_FOR_LIST): |
| 566 |
Define. |
| 567 |
(_List_node_base::_Base_ptr): New typedef. |
| 568 |
(_List_node_base::_M_base): New member functions. |
| 569 |
(_List_node_header::_M_base): Make public and add |
| 570 |
using-declaration for base class overload. |
| 571 |
(__list::_Node_traits, __list::_Node_base) |
| 572 |
(__list::_Node_header, __list::_Node, __list::_Iterator): New |
| 573 |
class templates. |
| 574 |
(_Scratch_list): Turn class into class template. Use _Base_ptr |
| 575 |
typedef instead of _List_node_base*. |
| 576 |
(_List_node::_Node_ptr): New typedef. |
| 577 |
(_List_node::_M_node_ptr): New member function. |
| 578 |
(_List_base, _List_impl): Use _Node_traits to get node types. |
| 579 |
(_List_base::_M_put_node): Convert to fancy pointer if needed. |
| 580 |
(_List_base::_M_destroy_node): New member function. |
| 581 |
(_List_base(_List_base&&, _Node_alloc_type&&)): Use if constexpr |
| 582 |
to make function a no-op for fancy pointers. |
| 583 |
(_List_base::_S_distance, _List_base::_M_distance) |
| 584 |
(_List_base::_M_node_count): Likewise. |
| 585 |
(list): Use _Node_traits to get iterator, node and pointer |
| 586 |
types. |
| 587 |
(list::_M_create_node): Use _Node_ptr typedef instead of _Node*. |
| 588 |
Use __allocate_guarded_obj instead of _M_get_node. |
| 589 |
(list::end, list::cend, list::empty): Use node header's |
| 590 |
_M_base() function instead of taking its address. |
| 591 |
(list::swap): Use _Node_traits to get node base type. |
| 592 |
(list::_M_create_node, list::_M_insert): Use _Node_ptr instead |
| 593 |
of _Node*. |
| 594 |
(list::_M_erase): Likewise. Use _M_destroy_node. |
| 595 |
(__distance): Overload for __list::_Iterator. |
| 596 |
(_Node_base::swap, _Node_base::_M_transfer): Define non-inline |
| 597 |
member functions of class templates. |
| 598 |
(_Node_header::_M_reverse): Likewise. |
| 599 |
* testsuite/23_containers/list/capacity/29134.cc: Check max_size |
| 600 |
for allocator of new node type. |
| 601 |
* testsuite/23_containers/list/capacity/node_sizes.cc: New test. |
| 602 |
* testsuite/23_containers/list/requirements/explicit_instantiation/alloc_ptr.cc: |
| 603 |
New test. |
| 604 |
* testsuite/23_containers/list/requirements/explicit_instantiation/alloc_ptr_ignored.cc: |
| 605 |
New test. |
| 606 |
* testsuite/23_containers/list/requirements/completeness.cc: New file. |
| 607 |
|
| 608 |
2024-12-03 Jonathan Wakely <[email protected]> |
| 609 |
|
| 610 |
* include/bits/stl_list.h (_List_iterator): Remove _Self typedef |
| 611 |
and just use injected-class-name instead. |
| 612 |
(_List_const_iterator): Likewise. |
| 613 |
|
| 614 |
2024-12-03 Jonathan Wakely <[email protected]> |
| 615 |
|
| 616 |
* include/bits/stl_list.h (_List_size): New struct. |
| 617 |
(_List_node_header): Replace _M_size member with _List_size base |
| 618 |
class. |
| 619 |
(_List_node_header(_List_node_header&&)): Replace explicit uses |
| 620 |
of _M_size with initializing the base. |
| 621 |
(_List_node_header::_M_init): Likewise. |
| 622 |
(_List_base::_S_distance, _List_base::_M_distance) |
| 623 |
(_List_base::_M_node_count): Move to end of class body and add |
| 624 |
comment. |
| 625 |
(list::_S_distance, list::_M_node_count): Likewise. |
| 626 |
(list::size): Inline _M_node_count effects to here. |
| 627 |
(list::splice(iterator, list&, iterator, iterator)): Use #if and |
| 628 |
call std::distance instead of _S_distance. |
| 629 |
|
| 630 |
2024-12-03 Jonathan Wakely <[email protected]> |
| 631 |
|
| 632 |
* include/bits/stl_bvector.h (vector(const allocator_type&)): |
| 633 |
Add noexcept, as per LWG 3778. |
| 634 |
* testsuite/23_containers/vector/bool/cons/lwg3778.cc: New test. |
| 635 |
|
| 636 |
2024-12-03 Jonathan Wakely <[email protected]> |
| 637 |
|
| 638 |
PR libstdc++/117889 |
| 639 |
PR libstdc++/117858 |
| 640 |
* include/std/optional (optional(const optional<U>&)): Fix copy |
| 641 |
and paste error in constraints. |
| 642 |
(optional(optional<U>&&)): Likewise. |
| 643 |
* testsuite/20_util/optional/assignment/117858.cc: Move to ... |
| 644 |
* testsuite/20_util/optional/cons/117858.cc: New test. |
| 645 |
|
| 646 |
2024-12-02 Jonathan Wakely <[email protected]> |
| 647 |
|
| 648 |
* include/bits/stl_construct.h (_Destroy(FwdIter, FwdIter)): Use |
| 649 |
'if constexpr' instead of dispatching to a member function of a |
| 650 |
class template. |
| 651 |
(_Destroy_n(FwdIter, Size)): Likewise. |
| 652 |
(_Destroy_aux, _Destroy_n_aux): Only define for C++98. |
| 653 |
|
| 654 |
2024-12-02 Jonathan Wakely <[email protected]> |
| 655 |
|
| 656 |
* src/c++23/std.cc.in: Disable deprecated warnings when |
| 657 |
exporting std::rel_ops members. |
| 658 |
|
| 659 |
2024-11-30 Jonathan Wakely <[email protected]> |
| 660 |
|
| 661 |
PR libstdc++/117858 |
| 662 |
* testsuite/20_util/optional/assignment/117858.cc: Also test |
| 663 |
assignment from rvalue optional. |
| 664 |
|
| 665 |
2024-11-30 Jonathan Wakely <[email protected]> |
| 666 |
|
| 667 |
PR libstdc++/117858 |
| 668 |
* include/std/optional (operator=(const optional<U>&)): Fix copy |
| 669 |
and paste error in constraints. |
| 670 |
(operator=(optional<U>&&)): Likewise. |
| 671 |
* testsuite/20_util/optional/assignment/117858.cc: New test. |
| 672 |
|
| 673 |
2024-11-30 Jonathan Wakely <[email protected]> |
| 674 |
|
| 675 |
* include/Makefile.am: Add bits/monostate.h. |
| 676 |
* include/Makefile.in: Regenerate. |
| 677 |
* include/std/utility: Include <bits/monostate.h>. |
| 678 |
* include/std/variant (monostate, hash<monostate>): Move |
| 679 |
definitions to ... |
| 680 |
* include/bits/monostate.h: New file. |
| 681 |
* testsuite/20_util/headers/utility/synopsis.cc: Add monostate |
| 682 |
and hash<monostate> declarations. |
| 683 |
* testsuite/20_util/monostate/requirements.cc: New test. |
| 684 |
|
| 685 |
2024-11-30 Jonathan Wakely <[email protected]> |
| 686 |
|
| 687 |
* testsuite/20_util/headers/utility/synopsis.cc: Add |
| 688 |
declarations from C++11 and later. |
| 689 |
|
| 690 |
2024-11-30 Jakub Jelinek <[email protected]> |
| 691 |
|
| 692 |
* include/std/functional (_Bind_check_arity): Add , before ... . |
| 693 |
* include/bits/refwrap.h (_Mem_fn_traits, _Weak_result_type_impl): |
| 694 |
Likewise. |
| 695 |
* include/tr1/type_traits (is_function): Likewise. |
| 696 |
|
| 697 |
2024-11-28 Jonathan Wakely <[email protected]> |
| 698 |
|
| 699 |
* include/std/stacktrace (basic_stacktrace::_M_impl::_M_resize): |
| 700 |
Use std::_Destroy to destroy removed elements. |
| 701 |
|
| 702 |
2024-11-28 Jonathan Wakely <[email protected]> |
| 703 |
|
| 704 |
* python/libstdcxx/v6/printers.py: Reorder registrations. |
| 705 |
|
| 706 |
2024-11-28 Jonathan Wakely <[email protected]> |
| 707 |
|
| 708 |
PR libstdc++/117822 |
| 709 |
* include/std/stacktrace (stacktrace(stacktrace&&, const A&)): |
| 710 |
Fix typo in qualified-id for is_always_equal trait. |
| 711 |
* testsuite/19_diagnostics/stacktrace/stacktrace.cc: Test |
| 712 |
allocator-extended constructors and allocator propagation. |
| 713 |
|
| 714 |
2024-11-28 Jonathan Wakely <[email protected]> |
| 715 |
|
| 716 |
* include/bits/stl_relops.h (rel_ops): Add deprecated attribute. |
| 717 |
* testsuite/20_util/headers/utility/using_namespace_std_rel_ops.cc: |
| 718 |
Add dg-warning for -Wdeprecated warnings. |
| 719 |
* testsuite/20_util/rel_ops.cc: Likewise. |
| 720 |
* testsuite/util/testsuite_containers.h: Disable -Wdeprecated |
| 721 |
warnings when using rel_ops. |
| 722 |
|
| 723 |
2024-11-28 Jonathan Wakely <[email protected]> |
| 724 |
|
| 725 |
* include/bits/stl_list.h: Reduce duplication in doxygen |
| 726 |
comments. |
| 727 |
|
| 728 |
2024-11-28 Marek Polacek <[email protected]> |
| 729 |
|
| 730 |
PR c++/113798 |
| 731 |
* testsuite/20_util/tuple/element_access/get_neg.cc: Adjust |
| 732 |
dg-prune-output. |
| 733 |
|
| 734 |
2024-11-28 Jonathan Wakely <[email protected]> |
| 735 |
|
| 736 |
PR libstdc++/117210 |
| 737 |
* config/os/bsd/dragonfly/os_defines.h: Include <sys/cdefs.h>. |
| 738 |
* config/os/bsd/freebsd/os_defines.h: Likewise. |
| 739 |
|
| 740 |
2024-11-27 Jan Hubicka <[email protected]> |
| 741 |
|
| 742 |
* include/bits/basic_string.h (basic_string::size(), |
| 743 |
basic_string::length(), basic_string::capacity()): Add |
| 744 |
__builtin_unreachable to declare value ranges. |
| 745 |
(basic_string::empty()): Implement directly |
| 746 |
(basic_string::max_size()): Account correctly the terminating 0 |
| 747 |
and limits implied by ptrdiff_t. |
| 748 |
|
| 749 |
2024-11-27 Jonathan Wakely <[email protected]> |
| 750 |
|
| 751 |
* include/bits/c++config (__glibcxx_assert): Remove useless |
| 752 |
__builtin_expect from constexpr-only assertion. Improve |
| 753 |
comments. |
| 754 |
|
| 755 |
2024-11-27 Jonathan Wakely <[email protected]> |
| 756 |
|
| 757 |
PR libstdc++/117650 |
| 758 |
* include/bits/c++config (__glibcxx_assert_fail): Add cold |
| 759 |
attribute. |
| 760 |
* include/debug/formatter.h (_Error_formatter::_M_error): |
| 761 |
Likewise. |
| 762 |
|
| 763 |
2024-11-27 Patrick Palka <[email protected]> |
| 764 |
|
| 765 |
* include/std/ranges (views::__adaptor::_RangeAdaptorClosure): |
| 766 |
Befriend both operator| overloads. |
| 767 |
* src/c++23/std.cc.in: Don't export views::__adaptor::operator|. |
| 768 |
|
| 769 |
2024-11-27 Jason Merrill <[email protected]> |
| 770 |
|
| 771 |
* src/c++23/std.cc.in: Fix iter_move/swap. Add fold_left_first, to, |
| 772 |
concat, and some operators. |
| 773 |
|
| 774 |
2024-11-27 Jonathan Wakely <[email protected]> |
| 775 |
|
| 776 |
* include/bits/forward_list.h (forward_list::front): Add |
| 777 |
non-empty assertions. |
| 778 |
* include/bits/stl_list.h (list::front, list::back): Add |
| 779 |
non-empty assertions. |
| 780 |
|
| 781 |
2024-11-27 Jonathan Wakely <[email protected]> |
| 782 |
|
| 783 |
* include/bits/forward_list.h (operator=(forward_list&&)): Use |
| 784 |
if constexpr instead of dispatching to _M_move_assign. |
| 785 |
(assign(InputIterator, InputIterator)): Use if constexpr instead |
| 786 |
of dispatching to _M_assign. |
| 787 |
(assign(size_type, const T&)): Use if constexpr instead of |
| 788 |
dispatching to _M_assign_n. |
| 789 |
(_M_move_assign, _M_assign_n): Do not define for versioned |
| 790 |
namespace. |
| 791 |
(_M_assign): Remove. |
| 792 |
|
| 793 |
2024-11-27 Jonathan Wakely <[email protected]> |
| 794 |
|
| 795 |
* include/bits/stl_list.h (operator=(list&&)): Use if constexpr |
| 796 |
instead of dispatching to _M_move_assign. |
| 797 |
(_M_move_assign): Do not define for versioned namespace. |
| 798 |
|
| 799 |
2024-11-27 Jonathan Wakely <[email protected]> |
| 800 |
|
| 801 |
PR libstdc++/105857 |
| 802 |
* config/locale/dragonfly/codecvt_members.cc (do_length): Limit |
| 803 |
size of alloca buffer to 4k. |
| 804 |
* config/locale/gnu/codecvt_members.cc (do_length): Likewise. |
| 805 |
* testsuite/22_locale/codecvt/length/wchar_t/105857.cc: New |
| 806 |
test. |
| 807 |
|
| 808 |
2024-11-26 Jonathan Wakely <[email protected]> |
| 809 |
|
| 810 |
PR libstdc++/117751 |
| 811 |
* testsuite/18_support/50594.cc: Edit dg-options to include the |
| 812 |
-fno-assume-sane-operators-new-delete option. |
| 813 |
|
| 814 |
2024-11-26 Jan Hubicka <[email protected]> |
| 815 |
|
| 816 |
* include/bits/deque.tcc (std::deque::_M_reallocate_map): Add |
| 817 |
__builtin_unreachable check to declare that maps are not very large. |
| 818 |
* include/bits/stl_deque.h (std::deque::size): Add __builtin_unreachable |
| 819 |
to check for maximal size of map. |
| 820 |
|
| 821 |
2024-11-26 Jonathan Wakely <[email protected]> |
| 822 |
|
| 823 |
* include/bits/range_access.h (begin, end, ssize): Add |
| 824 |
conditional noexcept. |
| 825 |
* testsuite/18_support/initializer_list/range_access.cc: Check |
| 826 |
results and noexcept-specifier for std::begin and std::end. |
| 827 |
* testsuite/24_iterators/headers/iterator/range_access_c++11.cc: |
| 828 |
Check for conditional noexcept on std::begin and std::end. |
| 829 |
* testsuite/24_iterators/headers/iterator/range_access_c++14.cc: |
| 830 |
Likewise. |
| 831 |
* testsuite/24_iterators/headers/iterator/range_access_c++17.cc: |
| 832 |
Likewise. |
| 833 |
* testsuite/24_iterators/range_access/range_access.cc: Check |
| 834 |
conditional noexcept is correct. |
| 835 |
* testsuite/24_iterators/range_access/range_access_cpp17.cc: |
| 836 |
Check std::size, std::empty and std::data. |
| 837 |
* testsuite/24_iterators/range_access/range_access_cpp20.cc: |
| 838 |
Check conditional noexcept on std::ssize. |
| 839 |
|
| 840 |
2024-11-26 Jonathan Wakely <[email protected]> |
| 841 |
|
| 842 |
* include/bits/forward_list.h: Use Markdown in Doxygen comments. |
| 843 |
|
| 844 |
2024-11-26 Jonathan Wakely <[email protected]> |
| 845 |
|
| 846 |
PR libstdc++/117630 |
| 847 |
* src/c++11/Makefile.am: Add new file. |
| 848 |
* src/c++11/Makefile.in: Regnerate. |
| 849 |
* src/c++11/cow-stdexcept.cc (error_category::_M_message): Move |
| 850 |
member function definition to ... |
| 851 |
* src/c++11/cow-system_error.cc: New file. |
| 852 |
|
| 853 |
2024-11-20 Jonathan Wakely <[email protected]> |
| 854 |
|
| 855 |
* include/bits/stl_set.h (set::find): Use const_iterator in |
| 856 |
return type, not iterator. |
| 857 |
|
| 858 |
2024-11-20 Jonathan Wakely <[email protected]> |
| 859 |
|
| 860 |
PR libstdc++/117686 |
| 861 |
* include/bits/hashtable.h (_Hashtable::_M_emplace_uniq): |
| 862 |
Adjust usage of __is_key_type to avoid false positive. |
| 863 |
* testsuite/23_containers/unordered_set/insert/117686.cc: |
| 864 |
New test. |
| 865 |
|
| 866 |
2024-11-19 Jason Merrill <[email protected]> |
| 867 |
|
| 868 |
* src/c++23/libstdc++.modules.json.in: Remove C++ comment. |
| 869 |
|
| 870 |
2024-11-18 David Malcolm <[email protected]> |
| 871 |
|
| 872 |
* testsuite/lib/libstdc++.exp: Add |
| 873 |
"load_gcc_lib dg-test-cleanup.exp". |
| 874 |
|
| 875 |
2024-11-18 Jonathan Wakely <[email protected]> |
| 876 |
|
| 877 |
* include/bits/hashtable.h (_Hashtable::_M_src_hash_code): |
| 878 |
Improve comments. |
| 879 |
(_Hashtable::_M_merge_unique(_Hashtable&)): Use pointer_traits |
| 880 |
to get before-begin pointer. Only use static_cast on valid |
| 881 |
nodes, not the before-begin pointer. Reuse a hash code cached in |
| 882 |
the node when possible. |
| 883 |
(_Hashtable::_M_merge_multi(_Hashtable&)): Likewise. |
| 884 |
|
| 885 |
2024-11-18 Gerald Pfeifer <[email protected]> |
| 886 |
|
| 887 |
* doc/xml/manual/allocator.xml: Update reference to Angelika |
| 888 |
Langer's article. |
| 889 |
* doc/html/manual/memory.html: Regenerate. |
| 890 |
|
| 891 |
2024-11-17 Jason Merrill <[email protected]> |
| 892 |
|
| 893 |
PR libstdc++/106852 |
| 894 |
* include/bits/version.def: Add __cpp_lib_modules. |
| 895 |
* include/bits/version.h: Regenerate. |
| 896 |
* src/c++23/Makefile.am: Add modules std and std.compat. |
| 897 |
* src/c++23/Makefile.in: Regenerate. |
| 898 |
* src/c++23/std-clib.cc.in: New file. |
| 899 |
* src/c++23/std.cc.in: New file. |
| 900 |
* src/c++23/std.compat.cc.in: New file. |
| 901 |
* src/c++23/libstdc++.modules.json.in: New file. |
| 902 |
|
| 903 |
2024-11-17 Gerald Pfeifer <[email protected]> |
| 904 |
|
| 905 |
* doc/xml/manual/intro.xml: Move a gcc.gnu.org link to https. |
| 906 |
* doc/html/manual/license.html: Regenerate. |
| 907 |
|
| 908 |
2024-11-17 Gerald Pfeifer <[email protected]> |
| 909 |
|
| 910 |
* doc/xml/manual/io.xml: Update link to Angelika Langer's book. |
| 911 |
* doc/html/manual/streambufs.html: Regenerate. |
| 912 |
|
| 913 |
2024-11-17 Jan Hubicka <[email protected]> |
| 914 |
|
| 915 |
PR tree-optimization/109442 |
| 916 |
* include/bits/stl_vector.h: (vector::size(), |
| 917 |
vector::capacity()): Add __builtin_unreachable call to announce |
| 918 |
that size and capacity are non-negative. |
| 919 |
|
| 920 |
2024-11-16 Jonathan Wakely <[email protected]> |
| 921 |
|
| 922 |
* Makefile.am: Use $(MAKE) -C dir instead of cd dir && $(MAKE). |
| 923 |
* Makefile.in: Regenerate. |
| 924 |
|
| 925 |
2024-11-15 Jonathan Wakely <[email protected]> |
| 926 |
|
| 927 |
* include/bits/stl_list.h (list::emplace_back): Fix indentation. |
| 928 |
|
| 929 |
2024-11-14 Jonathan Wakely <[email protected]> |
| 930 |
|
| 931 |
* include/bits/ranges_algo.h (__is_permutation_fn::operator()): |
| 932 |
Short-circuit for sized ranges with different sizes, as per LWG |
| 933 |
3560. |
| 934 |
* include/bits/ranges_algobase.h (__equal_fn::operator()): |
| 935 |
Likewise. |
| 936 |
* include/bits/stl_algo.h (__is_permutation): Use if-constexpr |
| 937 |
for random access iterator branches. |
| 938 |
* include/bits/stl_algobase.h (__equal4): Likewise. |
| 939 |
* testsuite/25_algorithms/equal/lwg3560.cc: New test. |
| 940 |
* testsuite/25_algorithms/is_permutation/lwg3560.cc: New test. |
| 941 |
|
| 942 |
2024-11-14 Patrick Palka <[email protected]> |
| 943 |
|
| 944 |
* include/std/ranges (keys_view): Adjust as per LWG 3563. |
| 945 |
(values_view): Likewise. |
| 946 |
* testsuite/std/ranges/adaptors/elements.cc (test08): New test. |
| 947 |
|
| 948 |
2024-11-14 Jonathan Wakely <[email protected]> |
| 949 |
|
| 950 |
* include/bits/ranges_util.h (subrange::begin): Fix constraint, |
| 951 |
as per LWG 3589. |
| 952 |
* testsuite/std/ranges/subrange/lwg3589.cc: New test. |
| 953 |
|
| 954 |
2024-11-14 Jonathan Wakely <[email protected]> |
| 955 |
|
| 956 |
* include/bits/c++config (_GLIBCXX_NODISCARD): Expand for C++11 |
| 957 |
and C++14. |
| 958 |
* testsuite/22_locale/locale/cons/12438.cc: Adjust dg-warning to |
| 959 |
expect nodiscard warnings for C++11 and C++14 as well. |
| 960 |
* testsuite/22_locale/locale/operations/2.cc: Likewise. |
| 961 |
* testsuite/25_algorithms/equal/debug/1_neg.cc: Likewise. |
| 962 |
* testsuite/25_algorithms/equal/debug/2_neg.cc: Likewise. |
| 963 |
* testsuite/25_algorithms/equal/debug/3_neg.cc: Likewise. |
| 964 |
* testsuite/25_algorithms/find_first_of/concept_check_1.cc: |
| 965 |
Likewise. |
| 966 |
* testsuite/25_algorithms/is_permutation/2.cc: Likewise. |
| 967 |
* testsuite/25_algorithms/lexicographical_compare/71545.cc: |
| 968 |
Likewise. |
| 969 |
* testsuite/25_algorithms/lower_bound/33613.cc: Likewise. |
| 970 |
* testsuite/25_algorithms/lower_bound/debug/irreflexive.cc: |
| 971 |
Likewise. |
| 972 |
* testsuite/25_algorithms/lower_bound/debug/partitioned_neg.cc: |
| 973 |
Likewise. |
| 974 |
* testsuite/25_algorithms/lower_bound/debug/partitioned_pred_neg.cc: Likewise. |
| 975 |
* testsuite/25_algorithms/minmax/3.cc: Likewise. |
| 976 |
* testsuite/25_algorithms/search/78346.cc: Likewise. |
| 977 |
* testsuite/25_algorithms/search_n/58358.cc: Likewise. |
| 978 |
* testsuite/25_algorithms/unique/1.cc: Likewise. |
| 979 |
* testsuite/25_algorithms/unique/11480.cc: Likewise. |
| 980 |
* testsuite/25_algorithms/upper_bound/33613.cc: Likewise. |
| 981 |
* testsuite/25_algorithms/upper_bound/debug/partitioned_neg.cc: |
| 982 |
Likewise. |
| 983 |
* testsuite/25_algorithms/upper_bound/debug/partitioned_pred_neg.cc: Likewise. |
| 984 |
* testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: |
| 985 |
Likewise. |
| 986 |
* testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: |
| 987 |
Likewise. |
| 988 |
* testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: |
| 989 |
Likewise. |
| 990 |
* testsuite/ext/concept_checks.cc: Likewise. |
| 991 |
* testsuite/ext/is_heap/47709.cc: Likewise. |
| 992 |
* testsuite/ext/is_sorted/cxx0x.cc: Likewise. |
| 993 |
|
| 994 |
2024-11-14 Jason Merrill <[email protected]> |
| 995 |
|
| 996 |
* include/precompiled/stdc++.h: <coroutine> is C++20. |
| 997 |
|
| 998 |
2024-11-14 Jonathan Wakely <[email protected]> |
| 999 |
|
| 1000 |
* include/bits/stl_iterator.h (operator+): Add constraint to |
| 1001 |
move_iterator operator. |
| 1002 |
* testsuite/24_iterators/move_iterator/rel_ops_c++20.cc: |
| 1003 |
|
| 1004 |
2024-11-14 Jonathan Wakely <[email protected]> |
| 1005 |
|
| 1006 |
* include/bits/stl_iterator.h (__normal_iterator): Replace |
| 1007 |
enable_if constraint with requires-clause. |
| 1008 |
|
| 1009 |
2024-11-14 Jonathan Wakely <[email protected]> |
| 1010 |
|
| 1011 |
* include/bits/stl_iterator.h: Make use of feature test macros |
| 1012 |
more consistent. Improve doxygen comments. |
| 1013 |
|
| 1014 |
2024-11-14 Jonathan Wakely <[email protected]> |
| 1015 |
|
| 1016 |
PR libstdc++/117560 |
| 1017 |
* include/bits/fs_dir.h (enable_borrowed_range, enable_view): |
| 1018 |
Define specializations for directory iterators, as per LWG 3480. |
| 1019 |
* testsuite/27_io/filesystem/iterators/lwg3480.cc: New test. |
| 1020 |
|
| 1021 |
2024-11-13 Jonathan Wakely <[email protected]> |
| 1022 |
|
| 1023 |
* doc/xml/manual/evolution.xml: Document removal of nested types |
| 1024 |
from std::hash specializations. |
| 1025 |
* doc/html/manual/api.html: Regenerate. |
| 1026 |
* include/bits/functional_hash.h (__hash_base): Remove |
| 1027 |
deprecated nested types for C++20. |
| 1028 |
(__hash_empty_base): Define new class template. |
| 1029 |
(__is_hash_enabled_for): Define new variable template. |
| 1030 |
(__poison_hash): Remove. |
| 1031 |
(__hash_not_enabled): Define new class template. |
| 1032 |
(__hash_enum): Remove partial specialization for non-enums. |
| 1033 |
(hash): Derive from __hash_not_enabled for non-enums, instead of |
| 1034 |
__hash_enum. |
| 1035 |
* include/bits/unique_ptr.h (__uniq_ptr_hash): Derive from |
| 1036 |
__hash_base. Conditionally derive from __hash_empty_base. |
| 1037 |
(__uniq_ptr_hash<>): Remove disabled specialization. |
| 1038 |
(hash): Do not derive from __hash_base unconditionally. |
| 1039 |
Conditionally derive from either __uniq_ptr_hash or |
| 1040 |
__hash_not_enabled. |
| 1041 |
* include/std/optional (__optional_hash_call_base): Remove. |
| 1042 |
(__optional_hash): Define new class template. |
| 1043 |
(hash): Derive from either |
| 1044 |
(hash): Conditionally derive from either __optional_hash or |
| 1045 |
__hash_not_enabled. Remove nested typedefs. |
| 1046 |
* include/std/variant (_Base_dedup): Replace __poison_hash with |
| 1047 |
__hash_empty_base. |
| 1048 |
(__variant_hash_call_base_impl): Remove. |
| 1049 |
(__variant_hash): Define new class template. |
| 1050 |
(hash): Conditionally derive from either __variant_hash or |
| 1051 |
__hash_not_enabled. Remove nested typedefs. |
| 1052 |
* testsuite/20_util/optional/hash.cc: Check whether nested types |
| 1053 |
are present. |
| 1054 |
* testsuite/20_util/variant/hash.cc: Likewise. |
| 1055 |
* testsuite/20_util/optional/hash_abi.cc: New test. |
| 1056 |
* testsuite/20_util/unique_ptr/hash/abi.cc: New test. |
| 1057 |
* testsuite/20_util/unique_ptr/hash/types.cc: New test. |
| 1058 |
* testsuite/20_util/variant/hash_abi.cc: New test. |
| 1059 |
|
| 1060 |
2024-11-13 Jonathan Wakely <[email protected]> |
| 1061 |
|
| 1062 |
* include/bits/hashtable.h (__location_type): New struct. |
| 1063 |
(_M_locate): New member function. |
| 1064 |
(_M_find_before_node(const key_type&)): Remove. |
| 1065 |
(_M_find_node): Move variable initialization into condition. |
| 1066 |
(_M_find_node_tr): Likewise. |
| 1067 |
(operator=(initializer_list<T>), try_emplace, _M_reinsert_node) |
| 1068 |
(_M_merge_unique, find, erase(const key_type&)): Use _M_locate |
| 1069 |
for lookup. |
| 1070 |
|
| 1071 |
2024-11-13 Jonathan Wakely <[email protected]> |
| 1072 |
|
| 1073 |
* include/bits/hashtable.h (_M_merge_unique): Add overload for |
| 1074 |
merging from same type. |
| 1075 |
(_M_merge_unique<Compatible>): Simplify size tracking. Add |
| 1076 |
comment. |
| 1077 |
(_M_merge_multi): Add overload for merging from same type. |
| 1078 |
(_M_merge_multi<Compatible>): Add comment. |
| 1079 |
* include/bits/unordered_map.h (unordered_map::merge): Check for |
| 1080 |
self-merge in the lvalue overload. Call _M_merge_unique directly |
| 1081 |
for the rvalue overload. |
| 1082 |
(unordered_multimap::merge): Likewise. |
| 1083 |
* include/bits/unordered_set.h (unordered_set::merge): Likewise. |
| 1084 |
(unordered_multiset::merge): Likewise. |
| 1085 |
* testsuite/23_containers/unordered_map/modifiers/merge.cc: |
| 1086 |
Add more tests. |
| 1087 |
* testsuite/23_containers/unordered_multimap/modifiers/merge.cc: |
| 1088 |
Likewise. |
| 1089 |
* testsuite/23_containers/unordered_multiset/modifiers/merge.cc: |
| 1090 |
Likewise. |
| 1091 |
* testsuite/23_containers/unordered_set/modifiers/merge.cc: |
| 1092 |
Likewise. |
| 1093 |
|
| 1094 |
2024-11-13 Jonathan Wakely <[email protected]> |
| 1095 |
|
| 1096 |
* include/bits/hashtable_policy.h (_Hashtable_base::_S_equals): |
| 1097 |
Remove. |
| 1098 |
(_Hashtable_base::_S_node_equals): Remove. |
| 1099 |
(_Hashtable_base::_M_key_equals_tr): Fix inaccurate |
| 1100 |
static_assert string. |
| 1101 |
(_Hashtable_base::_M_equals, _Hashtable_base::_M_equals_tr): Use |
| 1102 |
'if constexpr' instead of _S_equals. |
| 1103 |
(_Hashtable_base::_M_node_equals): Use 'if constexpr' instead of |
| 1104 |
_S_node_equals. |
| 1105 |
|
| 1106 |
2024-11-13 Jonathan Wakely <[email protected]> |
| 1107 |
|
| 1108 |
* include/bits/hashtable.h (_Hashtable): Remove _Equality base |
| 1109 |
class. |
| 1110 |
(_Hashtable::_M_equal): Define equality comparison here instead |
| 1111 |
of in _Equality::_M_equal. |
| 1112 |
* include/bits/hashtable_policy.h (_Equality): Remove. |
| 1113 |
|
| 1114 |
2024-11-13 Jonathan Wakely <[email protected]> |
| 1115 |
|
| 1116 |
* include/bits/hashtable.h (_Hashtable): Remove inheritance from |
| 1117 |
__detail::_Insert and move its members into _Hashtable. |
| 1118 |
* include/bits/hashtable_policy.h (__detail::_Insert): Remove. |
| 1119 |
|
| 1120 |
2024-11-13 Jonathan Wakely <[email protected]> |
| 1121 |
|
| 1122 |
* include/bits/hashtable.h (operator=(const _Hashtable&)): Use |
| 1123 |
RAII instead of try-catch. |
| 1124 |
(_M_assign(_Ht&&, _NodeGenerator&)): Likewise. |
| 1125 |
|
| 1126 |
2024-11-13 Jonathan Wakely <[email protected]> |
| 1127 |
|
| 1128 |
* include/bits/hashtable.h (_Hashtable::__fwd_value_for): |
| 1129 |
Remove. |
| 1130 |
(_Hashtable::_M_assign): Use static_cast instead of |
| 1131 |
__fwd_value_for. |
| 1132 |
|
| 1133 |
2024-11-13 Jonathan Wakely <[email protected]> |
| 1134 |
|
| 1135 |
* include/bits/hashtable.h (_Hashtable): Remove typedefs for |
| 1136 |
node generators. |
| 1137 |
(_Hashtable::_M_assign(_Ht&&)): Add new overload. |
| 1138 |
(_Hashtable::operator=(initializer_list<value_type>)): Add local |
| 1139 |
typedef for node generator. |
| 1140 |
(_Hashtable::_M_assign_elements): Likewise. |
| 1141 |
(_Hashtable::operator=(const _Hashtable&)): Use new _M_assign |
| 1142 |
overload. |
| 1143 |
(_Hashtable(const _Hashtable&)): Likewise. |
| 1144 |
(_Hashtable(const _Hashtable&, const allocator_type&)): |
| 1145 |
Likewise. |
| 1146 |
(_Hashtable(_Hashtable&&, __node_alloc_type&&, false_type)): |
| 1147 |
Likewise. |
| 1148 |
* include/bits/hashtable_policy.h (_Insert): Remove typedef for |
| 1149 |
node generator. |
| 1150 |
|
| 1151 |
2024-11-13 Jonathan Wakely <[email protected]> |
| 1152 |
|
| 1153 |
* include/bits/hashtable.h (_Hashtable::_M_erase): Remove |
| 1154 |
overloads for erasing by key, moving logic to ... |
| 1155 |
(_Hashtable::erase): ... here. |
| 1156 |
|
| 1157 |
2024-11-13 Jonathan Wakely <[email protected]> |
| 1158 |
|
| 1159 |
PR libstdc++/115285 |
| 1160 |
* include/bits/hashtable.h (_Hashtable::_M_emplace): Replace |
| 1161 |
with _M_emplace_uniq and _M_emplace_multi. |
| 1162 |
(_Hashtable::_S_forward_key, _Hashtable::_M_insert_unique) |
| 1163 |
(_Hashtable::_M_insert_unique_aux, _Hashtable::_M_insert): |
| 1164 |
Remove. |
| 1165 |
* include/bits/hashtable_policy.h (_ConvertToValueType): |
| 1166 |
Remove. |
| 1167 |
(_Insert_base::_M_insert_range): Remove overload for unique keys |
| 1168 |
and rename overload for non-unique keys to ... |
| 1169 |
(_Insert_base::_M_insert_range_multi): ... this. |
| 1170 |
(_Insert_base::insert): Call _M_emplace_uniq or _M_emplace_multi |
| 1171 |
instead of _M_insert. Add insert overloads from _Insert. |
| 1172 |
(_Insert_base): Rename to _Insert. |
| 1173 |
(_Insert): Remove |
| 1174 |
* testsuite/23_containers/unordered_map/96088.cc: Adjust |
| 1175 |
expected number of allocations. |
| 1176 |
* testsuite/23_containers/unordered_set/96088.cc: Likewise. |
| 1177 |
|
| 1178 |
2024-11-13 Jonathan Wakely <[email protected]> |
| 1179 |
|
| 1180 |
* include/bits/hashtable_policy.h (_ReuseOrAllocNode::operator()): |
| 1181 |
Replace parameter pack with a single parameter. Assign to |
| 1182 |
existing value when possible. |
| 1183 |
* testsuite/23_containers/unordered_multiset/allocator/move_assign.cc: |
| 1184 |
Adjust expected count of operations. |
| 1185 |
* testsuite/23_containers/unordered_set/allocator/move_assign.cc: |
| 1186 |
Likewise. |
| 1187 |
|
| 1188 |
2024-11-13 Jonathan Wakely <[email protected]> |
| 1189 |
|
| 1190 |
* include/bits/hashtable.h (operator=(initializer_list)): |
| 1191 |
Refactor to not use _M_insert_range. |
| 1192 |
|
| 1193 |
2024-11-13 Jonathan Wakely <[email protected]> |
| 1194 |
|
| 1195 |
* testsuite/util/testsuite_performance.h (time_counter): Add |
| 1196 |
comment about times. |
| 1197 |
(time_counter::system_time): Use correct split value. |
| 1198 |
|
| 1199 |
2024-11-13 Jonathan Wakely <[email protected]> |
| 1200 |
|
| 1201 |
* scripts/check_performance: Add timestamp to output file at |
| 1202 |
start of run. |
| 1203 |
|
| 1204 |
2024-11-13 Jonathan Wakely <[email protected]> |
| 1205 |
|
| 1206 |
* testsuite/util/testsuite_performance.h: Use |
| 1207 |
__gnu_cxx::__is_single_threaded instead of __gthread_active_p(). |
| 1208 |
|
| 1209 |
2024-11-13 Jonathan Wakely <[email protected]> |
| 1210 |
|
| 1211 |
* testsuite/performance/ext/pb_ds/hash_int_erase_mem.cc: Replace |
| 1212 |
std::unary_function with result_type and argument_type typedefs. |
| 1213 |
* testsuite/util/performance/assoc/multimap_common_type.hpp: |
| 1214 |
Likewise. |
| 1215 |
|
| 1216 |
2024-11-13 Jonathan Wakely <[email protected]> |
| 1217 |
|
| 1218 |
* testsuite/performance/20_util/memory_resource/pools.cc: Fix |
| 1219 |
-Wunused-value warnings about unnamed std::lock_guard objects. |
| 1220 |
|
| 1221 |
2024-11-11 Jonathan Wakely <[email protected]> |
| 1222 |
|
| 1223 |
* include/bits/locale_conv.h (wstring_convert, wbuffer_convert): |
| 1224 |
Adjust strings passed to exception constructors. |
| 1225 |
|
| 1226 |
2024-11-11 Jonathan Wakely <[email protected]> |
| 1227 |
|
| 1228 |
PR libstdc++/117520 |
| 1229 |
* include/std/text_encoding (aliases_view:_Iterator::operator+=): |
| 1230 |
Fix typos that caused == to be used instead of =. |
| 1231 |
(aliases_view::_Iterator): Fix friend declaration. |
| 1232 |
* testsuite/std/text_encoding/members.cc: Adjust expected |
| 1233 |
behaviour of invalid subscript. Add tests for other erroneous |
| 1234 |
operations on iterators. |
| 1235 |
|
| 1236 |
2024-11-11 Jonathan Wakely <[email protected]> |
| 1237 |
|
| 1238 |
* include/bits/unicode.h (_Utf_iterator::_M_read_utf16): Add |
| 1239 |
parentheses. |
| 1240 |
|
| 1241 |
2024-11-08 Jakub Jelinek <[email protected]> |
| 1242 |
|
| 1243 |
* libsupc++/new (::operator new, ::operator new[]): Add malloc |
| 1244 |
attribute where missing. Add alloc_align attribute when |
| 1245 |
std::align_val_t is present and where it was missing. Formatting fix. |
| 1246 |
|
| 1247 |
2024-11-08 Jonathan Wakely <[email protected]> |
| 1248 |
|
| 1249 |
* include/bits/hashtable.h (_Hashtable): Add 'inline' to some |
| 1250 |
one-line constructors. |
| 1251 |
|
| 1252 |
2024-11-08 Jonathan Wakely <[email protected]> |
| 1253 |
|
| 1254 |
* include/bits/hashtable_policy.h (_Insert_base::try_emplace): |
| 1255 |
Do not define for C++11 and C++14. |
| 1256 |
* include/debug/map.h (try_emplace): Use feature test macro. |
| 1257 |
* include/debug/unordered_map (try_emplace): Likewise. |
| 1258 |
* testsuite/17_intro/names.cc: Define try_emplace before C++17. |
| 1259 |
|
| 1260 |
2024-11-08 Jonathan Wakely <[email protected]> |
| 1261 |
|
| 1262 |
* include/bits/hashtable_policy.h (__distance_fw): Replace tag |
| 1263 |
dispatching with 'if constexpr'. |
| 1264 |
|
| 1265 |
2024-11-07 Jonathan Wakely <[email protected]> |
| 1266 |
|
| 1267 |
* include/bits/hashtable.h (_M_insert_unique_node): Improve |
| 1268 |
comment. |
| 1269 |
|
| 1270 |
2024-11-07 Jonathan Wakely <[email protected]> |
| 1271 |
|
| 1272 |
PR libstdc++/115285 |
| 1273 |
* include/bits/hashtable.h (_Hashtable::_S_forward_key): Remove. |
| 1274 |
(_Hashtable::_M_insert_unique_aux): Replace _S_forward_key with |
| 1275 |
a static_cast to a type defined using conditional_t. |
| 1276 |
(_Hashtable::_M_insert): Replace _ConvertToValueType with a |
| 1277 |
static_cast to a type defined using conditional_t. |
| 1278 |
* include/bits/hashtable_policy.h (_ConvertToValueType): Remove. |
| 1279 |
* testsuite/23_containers/unordered_map/insert/115285.cc: New test. |
| 1280 |
* testsuite/23_containers/unordered_set/insert/115285.cc: New test. |
| 1281 |
* testsuite/23_containers/unordered_set/96088.cc: Adjust |
| 1282 |
expected number of allocations. |
| 1283 |
|
| 1284 |
2024-11-07 Jonathan Wakely <[email protected]> |
| 1285 |
|
| 1286 |
* include/bits/stl_pair.h (__is_pair): Define for C++11 and |
| 1287 |
C++14 as well. |
| 1288 |
|
| 1289 |
2024-11-07 Jonathan Wakely <[email protected]> |
| 1290 |
|
| 1291 |
* include/bits/hashtable.h (_Hashtable): Fix comment grammar. |
| 1292 |
|
| 1293 |
2024-11-07 Jonathan Wakely <[email protected]> |
| 1294 |
|
| 1295 |
* include/bits/hashtable.h: Add is_permutation to comment. |
| 1296 |
* include/bits/hashtable_policy.h: Remove it from comment. |
| 1297 |
|
| 1298 |
2024-11-07 Jonathan Wakely <[email protected]> |
| 1299 |
|
| 1300 |
* include/bits/hashtable.h: Fix spelling in comment. |
| 1301 |
|
| 1302 |
2024-11-06 Jonathan Wakely <[email protected]> |
| 1303 |
|
| 1304 |
* doc/xml/manual/evolution.xml: Document deprecations. |
| 1305 |
* doc/html/*: Regenerate. |
| 1306 |
* include/c_compatibility/complex.h (_GLIBCXX_COMPLEX_H): Move |
| 1307 |
include guard to start of file. Include <complex> directly |
| 1308 |
instead of <ccomplex>. |
| 1309 |
* include/c_compatibility/tgmath.h: Include <cmath> and |
| 1310 |
<complex> directly, instead of <ctgmath>. |
| 1311 |
* include/c_global/ccomplex: Add deprecated #warning for C++17 |
| 1312 |
and #error for C++20 if _GLIBCXX_USE_DEPRECATED == 0. |
| 1313 |
* include/c_global/ciso646: Likewise. |
| 1314 |
* include/c_global/cstdalign: Likewise. |
| 1315 |
* include/c_global/cstdbool: Likewise. |
| 1316 |
* include/c_global/ctgmath: Likewise. |
| 1317 |
* include/c_std/ciso646: Likewise. |
| 1318 |
* include/precompiled/stdc++.h: Do not include ccomplex, |
| 1319 |
ciso646, cstdalign, cstdbool, or ctgmath in C++17 and later. |
| 1320 |
* testsuite/18_support/headers/cstdalign/macros.cc: Check for |
| 1321 |
warnings and errors for unsupported dialects. |
| 1322 |
* testsuite/18_support/headers/cstdbool/macros.cc: Likewise. |
| 1323 |
* testsuite/26_numerics/headers/ctgmath/complex.cc: Likewise. |
| 1324 |
* testsuite/27_io/objects/char/1.cc: Do not include <ciso646>. |
| 1325 |
* testsuite/27_io/objects/wchar_t/1.cc: Likewise. |
| 1326 |
* testsuite/18_support/headers/cstdbool/std_c++0x_neg.cc: Removed. |
| 1327 |
* testsuite/18_support/headers/cstdalign/std_c++0x_neg.cc: Removed. |
| 1328 |
* testsuite/26_numerics/headers/ccomplex/std_c++0x_neg.cc: Removed. |
| 1329 |
* testsuite/26_numerics/headers/ctgmath/std_c++0x_neg.cc: Removed. |
| 1330 |
* testsuite/18_support/headers/ciso646/macros.cc: New test. |
| 1331 |
* testsuite/18_support/headers/ciso646/macros.h.cc: New test. |
| 1332 |
* testsuite/18_support/headers/cstdbool/macros.h.cc: New test. |
| 1333 |
* testsuite/26_numerics/headers/ccomplex/complex.cc: New test. |
| 1334 |
* testsuite/26_numerics/headers/ccomplex/complex.h.cc: New test. |
| 1335 |
* testsuite/26_numerics/headers/ctgmath/complex.h.cc: New test. |
| 1336 |
* testsuite/18_support/headers/cstdalign/macros.h.cc: New file. |
| 1337 |
|
| 1338 |
2024-11-06 Jonathan Wakely <[email protected]> |
| 1339 |
|
| 1340 |
* include/c_compatibility/complex.h (_GLIBCXX_COMPLEX_H): Move |
| 1341 |
include guard to start of the header. |
| 1342 |
* include/c_global/ctgmath (_GLIBCXX_CTGMATH): Likewise. |
| 1343 |
|
| 1344 |
2024-11-06 Jonathan Wakely <[email protected]> |
| 1345 |
|
| 1346 |
* include/bits/shared_ptr_base.h (__shared_ptr_deref): New |
| 1347 |
function template. |
| 1348 |
(__shared_ptr_access, __shared_ptr_access<>): Use it. |
| 1349 |
|
| 1350 |
2024-11-06 Jonathan Wakely <[email protected]> |
| 1351 |
|
| 1352 |
* src/c++17/fs_dir.cc (fs::directory_iterator::operator*): Use |
| 1353 |
shared_ptr::operator* instead of shared_ptr::operator->. |
| 1354 |
(fs::recursive_directory_iterator::options): Likewise. |
| 1355 |
(fs::recursive_directory_iterator::depth): Likewise. |
| 1356 |
(fs::recursive_directory_iterator::recursion_pending): Likewise. |
| 1357 |
(fs::recursive_directory_iterator::operator*): Likewise. |
| 1358 |
(fs::recursive_directory_iterator::disable_recursion_pending): |
| 1359 |
Likewise. |
| 1360 |
|
| 1361 |
2024-11-04 Nathaniel Shead <[email protected]> |
| 1362 |
|
| 1363 |
PR testsuite/113710 |
| 1364 |
PR c++/113814 |
| 1365 |
* include/bits/stl_pair.h: Remove workaround. |
| 1366 |
|
| 1367 |
2024-11-04 Jakub Jelinek <[email protected]> |
| 1368 |
|
| 1369 |
PR libstdc++/117406 |
| 1370 |
* testsuite/26_numerics/headers/cmath/117406.cc: Use |
| 1371 |
std::numeric_limits<int>::max() instead of INT_MAX. |
| 1372 |
|
| 1373 |
2024-11-02 Jakub Jelinek <[email protected]> |
| 1374 |
|
| 1375 |
PR libstdc++/117406 |
| 1376 |
* include/c_global/cmath (std::ilogb(_Float16), std::llrint(_Float16), |
| 1377 |
std::llround(_Float16), std::lrint(_Float16), std::lround(_Float16)): |
| 1378 |
Don't cast __builtin_* return to _Float16. |
| 1379 |
(std::ilogb(__gnu_cxx::__bfloat16_t), |
| 1380 |
std::llrint(__gnu_cxx::__bfloat16_t), |
| 1381 |
std::llround(__gnu_cxx::__bfloat16_t), |
| 1382 |
std::lrint(__gnu_cxx::__bfloat16_t), |
| 1383 |
std::lround(__gnu_cxx::__bfloat16_t)): Don't cast __builtin_* return to |
| 1384 |
__gnu_cxx::__bfloat16_t. |
| 1385 |
* testsuite/26_numerics/headers/cmath/117406.cc: New test. |
| 1386 |
|
| 1387 |
2024-11-01 Jonathan Wakely <[email protected]> |
| 1388 |
|
| 1389 |
* include/bits/unordered_map.h: Check __glibcxx_node_extract and |
| 1390 |
__glibcxx_unordered_map_try_emplace instead of __cplusplus. |
| 1391 |
* include/bits/unordered_set.h: Check __glibcxx_node_extract |
| 1392 |
instead of __cplusplus. |
| 1393 |
|
| 1394 |
2024-11-01 Jonathan Wakely <[email protected]> |
| 1395 |
|
| 1396 |
* include/bits/hashtable.h: Improve comments. |
| 1397 |
|
| 1398 |
2024-11-01 Jonathan Wakely <[email protected]> |
| 1399 |
|
| 1400 |
PR libstdc++/111055 |
| 1401 |
* include/bits/forward_list.h |
| 1402 |
(forward_list(from_range, R&&, const Alloc&), assign_range) |
| 1403 |
(prepend_range, insert_range_after): Define. |
| 1404 |
* include/bits/stl_list.h (list(from_range, R&&, const Alloc&)) |
| 1405 |
(assign_range, prepend_range, append_range, insert_range): |
| 1406 |
Define. |
| 1407 |
* include/debug/forward_list |
| 1408 |
(forward_list(from_range, R&&, const Alloc&), assign_range) |
| 1409 |
(prepend_range, insert_range_after): Define. |
| 1410 |
* include/debug/list (list(from_range, R&&, const Alloc&)) |
| 1411 |
(assign_range, prepend_range, append_range, insert_range): |
| 1412 |
Define. |
| 1413 |
* testsuite/23_containers/forward_list/cons/from_range.cc: New |
| 1414 |
test. |
| 1415 |
* testsuite/23_containers/forward_list/modifiers/assign_range.cc: |
| 1416 |
New test. |
| 1417 |
* testsuite/23_containers/forward_list/modifiers/insert_range_after.cc: |
| 1418 |
New test. |
| 1419 |
* testsuite/23_containers/forward_list/modifiers/prepend_range.cc: |
| 1420 |
New test. |
| 1421 |
* testsuite/23_containers/list/cons/from_range.cc: New test. |
| 1422 |
* testsuite/23_containers/list/modifiers/append_range.cc: New |
| 1423 |
test. |
| 1424 |
* testsuite/23_containers/list/modifiers/assign/assign_range.cc: |
| 1425 |
New test. |
| 1426 |
* testsuite/23_containers/list/modifiers/insert/insert_range.cc: |
| 1427 |
New test. |
| 1428 |
* testsuite/23_containers/list/modifiers/prepend_range.cc: New |
| 1429 |
test. |
| 1430 |
|
| 1431 |
2024-11-01 Jonathan Wakely <[email protected]> |
| 1432 |
|
| 1433 |
* testsuite/23_containers/unordered_set/pr115285.cc: Include |
| 1434 |
missing header for std::vector. |
| 1435 |
|
| 1436 |
2024-11-01 Jonathan Wakely <[email protected]> |
| 1437 |
|
| 1438 |
* libsupc++/typeinfo: Remove whitespace in #endif |
| 1439 |
|
| 1440 |
2024-10-31 Jonathan Wakely <[email protected]> |
| 1441 |
|
| 1442 |
* libsupc++/new (operator new): Add attribute align_alloc(2) to |
| 1443 |
overloads taking a std::align_val_t argument. |
| 1444 |
* testsuite/18_support/new_aligned_warn.cc: New test. |
| 1445 |
|
| 1446 |
2024-10-30 Jonathan Wakely <[email protected]> |
| 1447 |
|
| 1448 |
* testsuite/23_containers/vector/cons/from_range.cc: Fix copy & |
| 1449 |
paste error in comment. |
| 1450 |
* testsuite/23_containers/vector/modifiers/append_range.cc: |
| 1451 |
Likewise. |
| 1452 |
* testsuite/23_containers/vector/modifiers/assign/assign_range.cc: |
| 1453 |
Likewise. |
| 1454 |
* testsuite/23_containers/vector/modifiers/insert/insert_range.cc: |
| 1455 |
Likewise. |
| 1456 |
|
| 1457 |
2024-10-30 Jonathan Wakely <[email protected]> |
| 1458 |
|
| 1459 |
* doc/xml/manual/using_exceptions.xml: Fix typos and grammatical |
| 1460 |
errors. |
| 1461 |
* doc/html/manual/using_exceptions.html: Regenerate. |
| 1462 |
|
| 1463 |
2024-10-30 Jonathan Wakely <[email protected]> |
| 1464 |
|
| 1465 |
* include/bits/c++config (_GLIBCXX_DOUBLE_IS_IEEE_BINARY32): |
| 1466 |
Define. |
| 1467 |
(_GLIBCXX_LDOUBLE_IS_IEEE_BINARY64): Define. |
| 1468 |
(_GLIBCXX_LDOUBLE_IS_IEEE_BINARY32): Define. |
| 1469 |
* include/bits/cpp_type_traits.h (__memcpyable): Define |
| 1470 |
specializations when double and long double are compatible. |
| 1471 |
|
| 1472 |
2024-10-30 Jonathan Wakely <[email protected]> |
| 1473 |
|
| 1474 |
* include/bits/cpp_type_traits.h (__memcpyable): Add |
| 1475 |
specializations for compatible floating-point types. |
| 1476 |
|
| 1477 |
2024-10-29 Patrick Palka <[email protected]> |
| 1478 |
|
| 1479 |
PR libstdc++/112641 |
| 1480 |
* include/std/ranges (drop_view::begin): Reimplement const |
| 1481 |
overload so that it's O(1) always. |
| 1482 |
* testsuite/std/ranges/adaptors/drop.cc (test10): New test. |
| 1483 |
|
| 1484 |
2024-10-29 Jakub Jelinek <[email protected]> |
| 1485 |
|
| 1486 |
PR libstdc++/117321 |
| 1487 |
* include/c_global/cmath (nextafter(_Float16, _Float16)): Use |
| 1488 |
if consteval rather than if (std::__is_constant_evaluated()) around |
| 1489 |
the __builtin_nextafterf16 call. |
| 1490 |
(nextafter(__gnu_cxx::__bfloat16_t, __gnu_cxx::__bfloat16_t)): Use |
| 1491 |
if consteval rather than if (std::__is_constant_evaluated()) around |
| 1492 |
the __builtin_nextafterf16b call. |
| 1493 |
* testsuite/26_numerics/headers/cmath/117321.cc: New test. |
| 1494 |
|
| 1495 |
2024-10-28 Jonathan Wakely <[email protected]> |
| 1496 |
|
| 1497 |
* testsuite/23_containers/vector/bool/cons/from_range.cc: Use |
| 1498 |
dg-do run instead of compile. |
| 1499 |
(test_ranges): Use do_test instead of do_test_a for rvalue |
| 1500 |
range. |
| 1501 |
(test_constexpr): Call function template instead of just |
| 1502 |
instantiating it. |
| 1503 |
* testsuite/23_containers/vector/bool/modifiers/assign/assign_range.cc: |
| 1504 |
Use dg-do run instead of compile. |
| 1505 |
(do_test): Use same test logic for vector<bool> as for primary |
| 1506 |
template. |
| 1507 |
(test_constexpr): Call function template instead of just |
| 1508 |
instantiating it. |
| 1509 |
* testsuite/23_containers/vector/bool/modifiers/insert/append_range.cc: |
| 1510 |
Use dg-do run instead of compile. |
| 1511 |
(test_ranges): Use do_test instead of do_test_a for rvalue |
| 1512 |
range. |
| 1513 |
(test_constexpr): Call function template instead of just |
| 1514 |
instantiating it. |
| 1515 |
* testsuite/23_containers/vector/bool/modifiers/insert/insert_range.cc: |
| 1516 |
Use dg-do run instead of compile. |
| 1517 |
(do_test): Fix incorrect function arguments to match intended |
| 1518 |
results. |
| 1519 |
(test_ranges): Use do_test instead of do_test_a for rvalue |
| 1520 |
range. |
| 1521 |
(test_constexpr): Call function template instead of just |
| 1522 |
instantiating it. |
| 1523 |
* testsuite/23_containers/vector/cons/from_range.cc: Use dg-do |
| 1524 |
run instead of compile. |
| 1525 |
(test_ranges): Fix ill-formed call to do_test. |
| 1526 |
(test_constexpr): Call function template instead of just |
| 1527 |
instantiating it. |
| 1528 |
* testsuite/23_containers/vector/modifiers/append_range.cc: |
| 1529 |
Use dg-do run instead of compile. |
| 1530 |
(test_constexpr): Likewise. |
| 1531 |
* testsuite/23_containers/vector/modifiers/assign/assign_range.cc: |
| 1532 |
Use dg-do run instead of compile. |
| 1533 |
(do_test): Do not reuse input ranges. |
| 1534 |
(test_constexpr): Call function template instead of just |
| 1535 |
instantiating it. |
| 1536 |
* testsuite/23_containers/vector/modifiers/insert/insert_range.cc: |
| 1537 |
Use dg-do run instead of compile. |
| 1538 |
(do_test): Fix incorrect function arguments to match intended |
| 1539 |
results. |
| 1540 |
(test_constexpr): Call function template instead of just |
| 1541 |
instantiating it. |
| 1542 |
|
| 1543 |
2024-10-27 Jonathan Wakely <[email protected]> |
| 1544 |
|
| 1545 |
PR libstdc++/111055 |
| 1546 |
* include/bits/ranges_base.h (__container_compatible_range): New |
| 1547 |
concept. |
| 1548 |
* include/bits/stl_bvector.h (vector(from_range, R&&, const Alloc&)) |
| 1549 |
(assign_range, insert_range, append_range): Define. |
| 1550 |
* include/bits/stl_uninitialized.h (__do_uninit_copy): Support |
| 1551 |
non-common ranges. |
| 1552 |
(__uninitialized_copy_a): Likewise. |
| 1553 |
* include/bits/stl_vector.h (_Vector_base::_M_append_range_to): |
| 1554 |
New function. |
| 1555 |
(_Vector_base::_M_append_range): Likewise. |
| 1556 |
(vector(from_range, R&&, const Alloc&), assign_range): Define. |
| 1557 |
(append_range): Define. |
| 1558 |
(insert_range): Declare. |
| 1559 |
* include/debug/vector (vector(from_range, R&&, const Alloc&)) |
| 1560 |
(assign_range, insert_range, append_range): Define. |
| 1561 |
* include/bits/vector.tcc (insert_range): Define. |
| 1562 |
* testsuite/util/testsuite_iterators.h (input_iterator_wrapper_rval): |
| 1563 |
New class template. |
| 1564 |
* testsuite/23_containers/vector/bool/cons/from_range.cc: New test. |
| 1565 |
* testsuite/23_containers/vector/bool/modifiers/assign/assign_range.cc: |
| 1566 |
New test. |
| 1567 |
* testsuite/23_containers/vector/bool/modifiers/insert/append_range.cc: |
| 1568 |
New test. |
| 1569 |
* testsuite/23_containers/vector/bool/modifiers/insert/insert_range.cc: |
| 1570 |
New test. |
| 1571 |
* testsuite/23_containers/vector/cons/from_range.cc: New test. |
| 1572 |
* testsuite/23_containers/vector/modifiers/append_range.cc: New test. |
| 1573 |
* testsuite/23_containers/vector/modifiers/assign/assign_range.cc: |
| 1574 |
New test. |
| 1575 |
* testsuite/23_containers/vector/modifiers/insert/insert_range.cc: |
| 1576 |
New test. |
| 1577 |
|
| 1578 |
2024-10-27 Jonathan Wakely <[email protected]> |
| 1579 |
|
| 1580 |
* include/bits/stl_bvector.h (emplace_back, emplace): Forward |
| 1581 |
parameter pack to preserve value category. |
| 1582 |
* testsuite/23_containers/vector/bool/emplace_rvalue.cc: New |
| 1583 |
test. |
| 1584 |
|
| 1585 |
2024-10-25 Jonathan Wakely <[email protected]> |
| 1586 |
|
| 1587 |
* testsuite/21_strings/basic_string/operators/char/op_plus_string_view.cc: |
| 1588 |
Check __cpp_lib_constexpr_string. |
| 1589 |
|
| 1590 |
2024-10-25 Giuseppe D'Angelo <[email protected]> |
| 1591 |
|
| 1592 |
* include/bits/basic_string.h: Implement the four operator+ |
| 1593 |
overloads between basic_string and (types convertible to) |
| 1594 |
basic_string_view. |
| 1595 |
* include/bits/version.def: Bump the feature-testing macro. |
| 1596 |
* include/bits/version.h: Regenerate. |
| 1597 |
* testsuite/21_strings/basic_string/operators/char/op_plus_fspath_neg.cc: New test. |
| 1598 |
* testsuite/21_strings/basic_string/operators/char/op_plus_string_view.cc: New test. |
| 1599 |
* testsuite/21_strings/basic_string/operators/char/op_plus_string_view_compat.cc: |
| 1600 |
New test. |
| 1601 |
|
| 1602 |
2024-10-25 Jakub Jelinek <[email protected]> |
| 1603 |
|
| 1604 |
* include/debug/debug.h: Remove trailing whitespace. |
| 1605 |
* include/parallel/base.h: Likewise. |
| 1606 |
* include/parallel/types.h: Likewise. |
| 1607 |
* include/parallel/settings.h: Likewise. |
| 1608 |
* include/parallel/multiseq_selection.h: Likewise. |
| 1609 |
* include/parallel/partition.h: Likewise. |
| 1610 |
* include/parallel/random_number.h: Likewise. |
| 1611 |
* include/parallel/find_selectors.h: Likewise. |
| 1612 |
* include/parallel/partial_sum.h: Likewise. |
| 1613 |
* include/parallel/list_partition.h: Likewise. |
| 1614 |
* include/parallel/search.h: Likewise. |
| 1615 |
* include/parallel/algorithmfwd.h: Likewise. |
| 1616 |
* include/parallel/random_shuffle.h: Likewise. |
| 1617 |
* include/parallel/multiway_mergesort.h: Likewise. |
| 1618 |
* include/parallel/sort.h: Likewise. |
| 1619 |
* include/parallel/algobase.h: Likewise. |
| 1620 |
* include/parallel/numericfwd.h: Likewise. |
| 1621 |
* include/parallel/multiway_merge.h: Likewise. |
| 1622 |
* include/parallel/losertree.h: Likewise. |
| 1623 |
* include/bits/basic_ios.h: Likewise. |
| 1624 |
* include/bits/stringfwd.h: Likewise. |
| 1625 |
* include/bits/ostream_insert.h: Likewise. |
| 1626 |
* include/bits/stl_heap.h: Likewise. |
| 1627 |
* include/bits/unordered_map.h: Likewise. |
| 1628 |
* include/bits/hashtable_policy.h: Likewise. |
| 1629 |
* include/bits/stl_iterator_base_funcs.h: Likewise. |
| 1630 |
* include/bits/valarray_before.h: Likewise. |
| 1631 |
* include/bits/regex.h: Likewise. |
| 1632 |
* include/bits/postypes.h: Likewise. |
| 1633 |
* include/bits/stl_iterator.h: Likewise. |
| 1634 |
* include/bits/localefwd.h: Likewise. |
| 1635 |
* include/bits/stl_algo.h: Likewise. |
| 1636 |
* include/bits/ios_base.h: Likewise. |
| 1637 |
* include/bits/stl_function.h: Likewise. |
| 1638 |
* include/bits/basic_string.h: Likewise. |
| 1639 |
* include/bits/hashtable.h: Likewise. |
| 1640 |
* include/bits/valarray_after.h: Likewise. |
| 1641 |
* include/bits/char_traits.h: Likewise. |
| 1642 |
* include/bits/gslice.h: Likewise. |
| 1643 |
* include/bits/locale_facets_nonio.h: Likewise. |
| 1644 |
* include/bits/mask_array.h: Likewise. |
| 1645 |
* include/bits/specfun.h: Likewise. |
| 1646 |
* include/bits/random.h: Likewise. |
| 1647 |
* include/bits/slice_array.h: Likewise. |
| 1648 |
* include/bits/valarray_array.h: Likewise. |
| 1649 |
* include/tr1/float.h: Likewise. |
| 1650 |
* include/tr1/functional_hash.h: Likewise. |
| 1651 |
* include/tr1/math.h: Likewise. |
| 1652 |
* include/tr1/hashtable_policy.h: Likewise. |
| 1653 |
* include/tr1/stdio.h: Likewise. |
| 1654 |
* include/tr1/complex.h: Likewise. |
| 1655 |
* include/tr1/stdbool.h: Likewise. |
| 1656 |
* include/tr1/stdarg.h: Likewise. |
| 1657 |
* include/tr1/inttypes.h: Likewise. |
| 1658 |
* include/tr1/fenv.h: Likewise. |
| 1659 |
* include/tr1/stdlib.h: Likewise. |
| 1660 |
* include/tr1/wchar.h: Likewise. |
| 1661 |
* include/tr1/tgmath.h: Likewise. |
| 1662 |
* include/tr1/limits.h: Likewise. |
| 1663 |
* include/tr1/wctype.h: Likewise. |
| 1664 |
* include/tr1/stdint.h: Likewise. |
| 1665 |
* include/tr1/ctype.h: Likewise. |
| 1666 |
* include/tr1/random.h: Likewise. |
| 1667 |
* include/tr1/shared_ptr.h: Likewise. |
| 1668 |
* include/ext/mt_allocator.h: Likewise. |
| 1669 |
* include/ext/sso_string_base.h: Likewise. |
| 1670 |
* include/ext/debug_allocator.h: Likewise. |
| 1671 |
* include/ext/vstring_fwd.h: Likewise. |
| 1672 |
* include/ext/pointer.h: Likewise. |
| 1673 |
* include/ext/pod_char_traits.h: Likewise. |
| 1674 |
* include/ext/malloc_allocator.h: Likewise. |
| 1675 |
* include/ext/vstring.h: Likewise. |
| 1676 |
* include/ext/bitmap_allocator.h: Likewise. |
| 1677 |
* include/ext/pool_allocator.h: Likewise. |
| 1678 |
* include/ext/type_traits.h: Likewise. |
| 1679 |
* include/ext/ropeimpl.h: Likewise. |
| 1680 |
* include/ext/codecvt_specializations.h: Likewise. |
| 1681 |
* include/ext/throw_allocator.h: Likewise. |
| 1682 |
* include/ext/extptr_allocator.h: Likewise. |
| 1683 |
* include/ext/atomicity.h: Likewise. |
| 1684 |
* include/ext/concurrence.h: Likewise. |
| 1685 |
* include/c_compatibility/wchar.h: Likewise. |
| 1686 |
* include/c_compatibility/stdint.h: Likewise. |
| 1687 |
* include/backward/hash_fun.h: Likewise. |
| 1688 |
* include/backward/binders.h: Likewise. |
| 1689 |
* include/backward/hashtable.h: Likewise. |
| 1690 |
* include/backward/auto_ptr.h: Likewise. |
| 1691 |
* libsupc++/eh_arm.cc: Likewise. |
| 1692 |
* libsupc++/unwind-cxx.h: Likewise. |
| 1693 |
* libsupc++/si_class_type_info.cc: Likewise. |
| 1694 |
* libsupc++/vec.cc: Likewise. |
| 1695 |
* libsupc++/class_type_info.cc: Likewise. |
| 1696 |
* libsupc++/vmi_class_type_info.cc: Likewise. |
| 1697 |
* libsupc++/guard_error.cc: Likewise. |
| 1698 |
* libsupc++/bad_typeid.cc: Likewise. |
| 1699 |
* libsupc++/eh_personality.cc: Likewise. |
| 1700 |
* libsupc++/atexit_arm.cc: Likewise. |
| 1701 |
* libsupc++/pmem_type_info.cc: Likewise. |
| 1702 |
* libsupc++/vterminate.cc: Likewise. |
| 1703 |
* libsupc++/eh_terminate.cc: Likewise. |
| 1704 |
* libsupc++/bad_cast.cc: Likewise. |
| 1705 |
* libsupc++/exception_ptr.h: Likewise. |
| 1706 |
* libsupc++/eh_throw.cc: Likewise. |
| 1707 |
* libsupc++/bad_alloc.cc: Likewise. |
| 1708 |
* libsupc++/nested_exception.cc: Likewise. |
| 1709 |
* libsupc++/pointer_type_info.cc: Likewise. |
| 1710 |
* libsupc++/pbase_type_info.cc: Likewise. |
| 1711 |
* libsupc++/bad_array_new.cc: Likewise. |
| 1712 |
* libsupc++/pure.cc: Likewise. |
| 1713 |
* libsupc++/eh_exception.cc: Likewise. |
| 1714 |
* libsupc++/bad_array_length.cc: Likewise. |
| 1715 |
* libsupc++/cxxabi.h: Likewise. |
| 1716 |
* libsupc++/guard.cc: Likewise. |
| 1717 |
* libsupc++/eh_catch.cc: Likewise. |
| 1718 |
* libsupc++/cxxabi_forced.h: Likewise. |
| 1719 |
* libsupc++/tinfo.h: Likewise. |
| 1720 |
|
| 1721 |
2024-10-24 François Dumont <[email protected]> |
| 1722 |
|
| 1723 |
* testsuite/23_containers/unordered_map/96088.cc (test03): Fix increments |
| 1724 |
value when _GLIBCXX_USE_CXX11_ABI is equal to 0. |
| 1725 |
|
| 1726 |
2024-10-24 Jonathan Wakely <[email protected]> |
| 1727 |
|
| 1728 |
* testsuite/26_numerics/complex/ext_c++23.cc: Fix typo in macro. |
| 1729 |
* testsuite/26_numerics/headers/cmath/constexpr_std_c++23.cc: |
| 1730 |
Likewise. |
| 1731 |
* testsuite/26_numerics/headers/cmath/functions_std_c++23.cc: |
| 1732 |
Likewise. |
| 1733 |
* testsuite/26_numerics/headers/cmath/nextafter_c++23.cc: |
| 1734 |
Likewise. |
| 1735 |
|
| 1736 |
2024-10-24 Jonathan Wakely <[email protected]> |
| 1737 |
|
| 1738 |
* include/std/variant (__throw_bad_variant_access(unsigned)): |
| 1739 |
Define new function as inline friend, with namespace-scope |
| 1740 |
declaration using noreturn attribute. |
| 1741 |
(__throw_bad_variant_access(const char*)): Remove. |
| 1742 |
(__throw_bad_variant_access(bool)): Remove. |
| 1743 |
(visit, visit<R>): Adjust calls to __throw_bad_variant_access. |
| 1744 |
|
| 1745 |
2024-10-24 Ricardo Jesus <[email protected]> |
| 1746 |
|
| 1747 |
* config/cpu/aarch64/opt/ext/opt_random.h (__VEXT): Replace uses |
| 1748 |
of __builtin_shuffle with __builtin_shufflevector. |
| 1749 |
(__aarch64_lsl_128): Move shift amount to a template parameter. |
| 1750 |
(__aarch64_lsr_128): Move shift amount to a template parameter. |
| 1751 |
(__aarch64_recursion): Update call sites of __aarch64_lsl_128 |
| 1752 |
and __aarch64_lsr_128. |
| 1753 |
|
| 1754 |
2024-10-23 Jonathan Wakely <[email protected]> |
| 1755 |
|
| 1756 |
* testsuite/18_support/headers/cstdalign/macros.cc: New test. |
| 1757 |
|
| 1758 |
2024-10-23 Jonathan Wakely <[email protected]> |
| 1759 |
|
| 1760 |
* doc/xml/manual/evolution.xml: Document that assertions are |
| 1761 |
enabled for unoptimized builds. |
| 1762 |
* doc/html/*: Regenerate. |
| 1763 |
|
| 1764 |
2024-10-23 Jonathan Wakely <[email protected]> |
| 1765 |
|
| 1766 |
* doc/xml/manual/test.xml: Add GLIBCXX_TESTSUITE_STDS example. |
| 1767 |
* doc/html/manual/test.html: Regenerate. |
| 1768 |
|
| 1769 |
2024-10-23 Jonathan Wakely <[email protected]> |
| 1770 |
|
| 1771 |
* include/bits/basic_string.h (assign(Iter, Iter)): Call |
| 1772 |
std::to_address instead of __to_address. |
| 1773 |
|
| 1774 |
2024-10-23 François Dumont <[email protected]> |
| 1775 |
|
| 1776 |
PR libstdc++/115285 |
| 1777 |
* include/bits/hashtable.h (_S_forward_key<_Kt>): Always return a temporary |
| 1778 |
key_type instance. |
| 1779 |
* testsuite/23_containers/unordered_map/96088.cc: Adapt to additional instanciation. |
| 1780 |
Also check that mapped_type is not instantiated when there is no insertion. |
| 1781 |
* testsuite/23_containers/unordered_multimap/96088.cc: Adapt to additional |
| 1782 |
instanciation. |
| 1783 |
* testsuite/23_containers/unordered_multiset/96088.cc: Likewise. |
| 1784 |
* testsuite/23_containers/unordered_set/96088.cc: Likewise. |
| 1785 |
* testsuite/23_containers/unordered_set/pr115285.cc: New test case. |
| 1786 |
|
| 1787 |
2024-10-22 Patrick Palka <[email protected]> |
| 1788 |
|
| 1789 |
* include/std/ranges (concat_view::begin): Add space after |
| 1790 |
'requires' starting a requires-clause. |
| 1791 |
(concat_view::end): Likewise. Refine condition for returning an |
| 1792 |
iterator rather than default_sentinel as per LWG 4166. |
| 1793 |
* testsuite/std/ranges/concat/1.cc (test03): Verify LWG 4166 |
| 1794 |
example. |
| 1795 |
|
| 1796 |
2024-10-22 Jonathan Wakely <[email protected]> |
| 1797 |
|
| 1798 |
* include/bits/basic_string.h (basic_string::assign): Replace |
| 1799 |
use of __to_address with __niter_base or std::to_address as |
| 1800 |
appropriate. |
| 1801 |
* include/bits/ptr_traits.h (__to_address): Add comment. |
| 1802 |
* include/bits/shared_ptr_base.h (__shared_ptr): Qualify calls |
| 1803 |
to __to_address. |
| 1804 |
* include/bits/stl_algo.h (find): Replace use of __to_address |
| 1805 |
with __niter_base or std::to_address as appropriate. Only use |
| 1806 |
either of them when the range is not empty. |
| 1807 |
* include/bits/stl_iterator.h (__to_address): Remove overload |
| 1808 |
for __normal_iterator. |
| 1809 |
* include/debug/safe_iterator.h (__to_address): Remove overload |
| 1810 |
for _Safe_iterator. |
| 1811 |
* include/std/ranges (views::counted): Replace use of |
| 1812 |
__to_address with std::to_address. |
| 1813 |
* testsuite/24_iterators/normal_iterator/to_address.cc: Removed. |
| 1814 |
|
| 1815 |
2024-10-21 Jonathan Wakely <[email protected]> |
| 1816 |
|
| 1817 |
* testsuite/26_numerics/headers/cmath/types_std_c++0x_neg.cc: |
| 1818 |
Move to ... |
| 1819 |
* testsuite/26_numerics/headers/cmath/specfun_c++17.cc: here and |
| 1820 |
adjust test to be valid for all -std dialects. |
| 1821 |
|
| 1822 |
2024-10-21 Jonathan Wakely <[email protected]> |
| 1823 |
|
| 1824 |
* include/bits/stl_vector.h (vector::_M_data_ptr): Remove |
| 1825 |
non-const overloads. Always return non-const pointer. |
| 1826 |
|
| 1827 |
2024-10-21 Jonathan Wakely <[email protected]> |
| 1828 |
|
| 1829 |
PR libstdc++/117220 |
| 1830 |
* include/bits/stl_iterator.h: Move _GLIBCXX_NODISCARD |
| 1831 |
annotations after __attribute__((__always_inline__)). |
| 1832 |
|
| 1833 |
2024-10-18 Jonathan Wakely <[email protected]> |
| 1834 |
|
| 1835 |
* include/bits/ranges_algobase.h (ranges::__assign_one): Remove. |
| 1836 |
(__copy_or_move, __copy_or_move_backward): Use std::__assign_one |
| 1837 |
instead of ranges::__assign_one. |
| 1838 |
|
| 1839 |
2024-10-18 Jonathan Wakely <[email protected]> |
| 1840 |
|
| 1841 |
* include/bits/stl_algobase.h (__copy_move_a1, __copy_move_a) |
| 1842 |
(__copy_move_backward_a1, __copy_move_backward_a, move_backward) |
| 1843 |
(__fill_a1, __fill_a, fill, __fill_n_a, fill_n, __equal_aux): |
| 1844 |
Add always_inline attribute to one-line forwarding functions. |
| 1845 |
|
| 1846 |
2024-10-18 Jonathan Wakely <[email protected]> |
| 1847 |
|
| 1848 |
* include/bits/stl_algo.h (find): Add nodiscard. |
| 1849 |
|
| 1850 |
2024-10-18 Jonathan Wakely <[email protected]> |
| 1851 |
|
| 1852 |
PR libstdc++/115444 |
| 1853 |
PR libstdc++/114817 |
| 1854 |
* include/bits/stl_algo.h (__copy_n): Remove generic overload |
| 1855 |
and overload for random access iterators. |
| 1856 |
(copy_n): Inline generic version of __copy_n here. Do not defer |
| 1857 |
to std::copy for random access iterators. |
| 1858 |
* include/bits/stl_algobase.h (__copy_move): Remove. |
| 1859 |
(__nothrow_contiguous_iterator, __memcpyable_iterators): New |
| 1860 |
concepts. |
| 1861 |
(__assign_one, _GLIBCXX_TO_ADDR, _GLIBCXX_ADVANCE): New helpers. |
| 1862 |
(__copy_move_a2): Inline __copy_move logic and conditional |
| 1863 |
memmove optimization into the most generic overload. |
| 1864 |
(__copy_n_a): Likewise. |
| 1865 |
(__copy_move_backward): Remove. |
| 1866 |
(__copy_move_backward_a2): Inline __copy_move_backward logic and |
| 1867 |
memmove optimization into the most generic overload. |
| 1868 |
* testsuite/20_util/specialized_algorithms/uninitialized_copy/114817.cc: |
| 1869 |
New test. |
| 1870 |
* testsuite/20_util/specialized_algorithms/uninitialized_copy_n/114817.cc: |
| 1871 |
New test. |
| 1872 |
* testsuite/25_algorithms/copy/114817.cc: New test. |
| 1873 |
* testsuite/25_algorithms/copy/115444.cc: New test. |
| 1874 |
* testsuite/25_algorithms/copy_n/114817.cc: New test. |
| 1875 |
|
| 1876 |
2024-10-18 Jonathan Wakely <[email protected]> |
| 1877 |
|
| 1878 |
* include/bits/stl_iterator.h (__normal_iterator): Make all |
| 1879 |
members and overloaded operators constexpr before C++20, and add |
| 1880 |
always_inline attribute |
| 1881 |
(__to_address): Add nodiscard and always_inline attributes. |
| 1882 |
(__make_move_if_noexcept_iterator): Add nodiscard |
| 1883 |
and make unconditionally constexpr. |
| 1884 |
(__niter_base(__normal_iterator), __niter_base(Iter)): |
| 1885 |
Add nodiscard and always_inline attributes. |
| 1886 |
(__niter_base(reverse_iterator), __niter_base(move_iterator)) |
| 1887 |
(__miter_base): Add inline. |
| 1888 |
(__niter_wrap(From, To)): Add nodiscard attribute. |
| 1889 |
(__niter_wrap(const Iter&, Iter)): Add nodiscard and |
| 1890 |
always_inline attributes. |
| 1891 |
|
| 1892 |
2024-10-18 Jonathan Wakely <[email protected]> |
| 1893 |
|
| 1894 |
PR libstdc++/68350 |
| 1895 |
PR libstdc++/93059 |
| 1896 |
* include/bits/stl_uninitialized.h (__check_constructible) |
| 1897 |
(_GLIBCXX_USE_ASSIGN_FOR_INIT): Remove. |
| 1898 |
[C++98] (__unwrappable_niter): New trait. |
| 1899 |
(__uninitialized_copy<true>): Replace use of std::copy. |
| 1900 |
(uninitialized_copy): Fix Doxygen comments. Open-code memcpy |
| 1901 |
optimization for C++11 and later. |
| 1902 |
(__uninitialized_fill<true>): Replace use of std::fill. |
| 1903 |
(uninitialized_fill): Fix Doxygen comments. Open-code memset |
| 1904 |
optimization for C++11 and later. |
| 1905 |
(__uninitialized_fill_n<true>): Replace use of std::fill_n. |
| 1906 |
(uninitialized_fill_n): Fix Doxygen comments. Open-code memset |
| 1907 |
optimization for C++11 and later. |
| 1908 |
* testsuite/20_util/specialized_algorithms/uninitialized_copy/64476.cc: |
| 1909 |
Adjust expected behaviour to match what the standard specifies. |
| 1910 |
* testsuite/20_util/specialized_algorithms/uninitialized_fill_n/sizes.cc: |
| 1911 |
Likewise. |
| 1912 |
* testsuite/20_util/specialized_algorithms/uninitialized_copy/1.cc: |
| 1913 |
Adjust dg-error directives. |
| 1914 |
* testsuite/20_util/specialized_algorithms/uninitialized_copy/89164.cc: |
| 1915 |
Likewise. |
| 1916 |
* testsuite/20_util/specialized_algorithms/uninitialized_copy_n/89164.cc: |
| 1917 |
Likewise. |
| 1918 |
* testsuite/20_util/specialized_algorithms/uninitialized_fill/89164.cc: |
| 1919 |
Likewise. |
| 1920 |
* testsuite/20_util/specialized_algorithms/uninitialized_fill_n/89164.cc: |
| 1921 |
Likewise. |
| 1922 |
* testsuite/23_containers/vector/cons/89164.cc: Likewise. |
| 1923 |
* testsuite/23_containers/vector/cons/89164_c++17.cc: Likewise. |
| 1924 |
|
| 1925 |
2024-10-18 Jonathan Wakely <[email protected]> |
| 1926 |
|
| 1927 |
* include/bits/stl_algobase.h (__niter_base, __niter_wrap): Move |
| 1928 |
to ... |
| 1929 |
* include/bits/stl_iterator.h: ... here. |
| 1930 |
(__niter_base, __miter_base): Move all overloads to the end of |
| 1931 |
the header. |
| 1932 |
* testsuite/24_iterators/normal_iterator/wrapping.cc: New test. |
| 1933 |
|
| 1934 |
2024-10-16 Jonathan Wakely <[email protected]> |
| 1935 |
|
| 1936 |
* python/libstdcxx/v6/printers.py (strip_fundts_namespace): New. |
| 1937 |
(StdExpAnyPrinter, StdExpOptionalPrinter): Use it. |
| 1938 |
|
| 1939 |
2024-10-15 Jonathan Wakely <[email protected]> |
| 1940 |
|
| 1941 |
PR libstdc++/106676 |
| 1942 |
* include/bits/iterator_concepts.h (__cpp17_fwd_iterator): Use |
| 1943 |
is_reference instead of is_value_reference. |
| 1944 |
rvalue references. |
| 1945 |
* include/std/ranges (transform_view:__iter_cat::_S_iter_cat): |
| 1946 |
Likewise. |
| 1947 |
(zip_transform_view::__iter_cat::_S_iter_cat): Likewise. |
| 1948 |
(adjacent_transform_view::__iter_cat::_S_iter_cat): Likewise. |
| 1949 |
(join_with_view::__iter_cat::_S_iter_cat): Likewise. |
| 1950 |
* testsuite/std/ranges/adaptors/transform.cc: Check |
| 1951 |
iterator_category when the transformation function returns an |
| 1952 |
rvalue reference type. |
| 1953 |
|
| 1954 |
2024-10-14 Jonathan Wakely <[email protected]> |
| 1955 |
|
| 1956 |
* include/std/ranges (transform_view:_Iterator): Use const F& |
| 1957 |
to determine value_type and iterator_category of |
| 1958 |
_Iterator<true>, as per LWG 3564. |
| 1959 |
* testsuite/std/ranges/adaptors/transform.cc: Check value_type |
| 1960 |
and iterator_category. |
| 1961 |
|
| 1962 |
2024-10-14 Jonathan Wakely <[email protected]> |
| 1963 |
|
| 1964 |
PR libstdc++/117135 |
| 1965 |
* config/locale/generic/time_members.cc |
| 1966 |
(__timepunct<wchar_t>::_M_initialize_timepunc): Set |
| 1967 |
_M_date_time_format for C locale. Set %Ex formats to the same |
| 1968 |
values as the %x formats. |
| 1969 |
|
| 1970 |
2024-10-14 Jonathan Wakely <[email protected]> |
| 1971 |
|
| 1972 |
* include/bits/version.def (constrained_equality): Bump value. |
| 1973 |
* include/bits/version.h: Regenerate. |
| 1974 |
* include/std/expected (operator==): Add constraints and |
| 1975 |
noexcept specifiers. |
| 1976 |
* testsuite/20_util/optional/relops/constrained.cc: Adjust |
| 1977 |
check for feature test macro. |
| 1978 |
* testsuite/20_util/pair/comparison_operators/constrained.cc: |
| 1979 |
Likewise. |
| 1980 |
* testsuite/20_util/tuple/comparison_operators/constrained.cc: |
| 1981 |
Likewise. |
| 1982 |
* testsuite/20_util/variant/relops/constrained.cc: Likewise. |
| 1983 |
* testsuite/20_util/expected/equality_constrained.cc: New test. |
| 1984 |
|
| 1985 |
2024-10-14 Jonathan Wakely <[email protected]> |
| 1986 |
|
| 1987 |
PR libstdc++/117094 |
| 1988 |
* include/bits/ranges_algobase.h (__fill_fn): Use std::move for |
| 1989 |
iterator that might not be copyable. |
| 1990 |
* testsuite/25_algorithms/fill/constrained.cc: Check |
| 1991 |
non-copyable iterator with sized sentinel. |
| 1992 |
|
| 1993 |
2024-10-14 Jonathan Wakely <[email protected]> |
| 1994 |
|
| 1995 |
PR libstdc++/93059 |
| 1996 |
* include/bits/stl_algobase.h (__fill_a1(T*, T*, const T&)): |
| 1997 |
Change template parameters and enable_if condition to allow the |
| 1998 |
fill value to be an integer. |
| 1999 |
|
| 2000 |
2024-10-14 Jonathan Wakely <[email protected]> |
| 2001 |
|
| 2002 |
PR libstdc++/93059 |
| 2003 |
* include/bits/cpp_type_traits.h (__memcpyable): Add partial |
| 2004 |
specialization for pointers to distinct types. |
| 2005 |
(__memcpyable_integer): New trait to control which types can use |
| 2006 |
cross-type memcpy optimizations. |
| 2007 |
|
| 2008 |
2024-10-13 Sam James <[email protected]> |
| 2009 |
|
| 2010 |
* testsuite/17_intro/names_fortify.cc: Undefine _FORTIFY_SOURCE. |
| 2011 |
|
| 2012 |
2024-10-13 Jonathan Wakely <[email protected]> |
| 2013 |
|
| 2014 |
PR libstdc++/117121 |
| 2015 |
* include/bits/ranges_algobase.h (copy_backward): Decrement |
| 2016 |
output iterator before assigning one element through it. |
| 2017 |
* testsuite/25_algorithms/copy/108846.cc: Ensure the algorithm's |
| 2018 |
effects are correct for a single memcpyable element. |
| 2019 |
* testsuite/25_algorithms/copy_backward/108846.cc: Likewise. |
| 2020 |
* testsuite/25_algorithms/copy_n/108846.cc: Likewise. |
| 2021 |
|
| 2022 |
2024-10-11 Jonathan Wakely <[email protected]> |
| 2023 |
|
| 2024 |
* include/bits/stl_iterator.h (__niter_base(move_iterator<I>)) |
| 2025 |
(__is_move_iterator, __miter_base, _GLIBCXX_MAKE_MOVE_ITERATOR) |
| 2026 |
(_GLIBCXX_MAKE_MOVE_IF_NOEXCEPT_ITERATOR): Move earlier in the |
| 2027 |
file. |
| 2028 |
|
| 2029 |
2024-10-11 Jonathan Wakely <[email protected]> |
| 2030 |
|
| 2031 |
* include/bits/cpp_type_traits.h (__is_byte<byte>): Guard with |
| 2032 |
__glibcxx_byte macro instead of checking __cplusplus. |
| 2033 |
|
| 2034 |
2024-10-11 Jonathan Wakely <[email protected]> |
| 2035 |
|
| 2036 |
PR libstdc++/117085 |
| 2037 |
* include/bits/chrono_io.h (__formatter_chrono::_M_c): Add L |
| 2038 |
option to format string. |
| 2039 |
* testsuite/std/time/format.cc: Move to... |
| 2040 |
* testsuite/std/time/format/format.cc: ...here. |
| 2041 |
* testsuite/std/time/format_localized.cc: Move to... |
| 2042 |
* testsuite/std/time/format/localized.cc: ...here. |
| 2043 |
* testsuite/std/time/format/pr117085.cc: New test. |
| 2044 |
|
| 2045 |
2024-10-11 Jonathan Wakely <[email protected]> |
| 2046 |
|
| 2047 |
* testsuite/22_locale/time_get/get/char/5.cc: Fix dg-do |
| 2048 |
directive. |
| 2049 |
* testsuite/22_locale/time_get/get/wchar_t/5.cc: Likewise. |
| 2050 |
|
| 2051 |
2024-10-11 Jonathan Wakely <[email protected]> |
| 2052 |
|
| 2053 |
* testsuite/20_util/duration/io.cc [!__cpp_lib_char8_t]: Define |
| 2054 |
char8_t as a typedef for unsigned char. |
| 2055 |
* testsuite/std/format/parse_ctx_neg.cc: Skip for -fno-char8_t. |
| 2056 |
|
| 2057 |
2024-10-09 Jonathan Wakely <[email protected]> |
| 2058 |
|
| 2059 |
PR libstdc++/116210 |
| 2060 |
* testsuite/17_intro/names.cc (sz): Undef for versions of Glibc |
| 2061 |
that use it in the fortify wrappers. |
| 2062 |
* testsuite/17_intro/names_fortify.cc: New test. |
| 2063 |
|
| 2064 |
2024-10-09 Jonathan Wakely <[email protected]> |
| 2065 |
|
| 2066 |
PR libstdc++/116969 |
| 2067 |
* include/bits/locale_facets_nonio.tcc (money_put::__do_put): |
| 2068 |
Remove diagnostic pragmas. |
| 2069 |
(__glibcxx_snprintfibm128): Declare type manually, instead of |
| 2070 |
using __typeof__(__builtin_snprintf). |
| 2071 |
|
| 2072 |
2024-10-09 Frank Scheiner <[email protected]> |
| 2073 |
|
| 2074 |
* testsuite/17_intro/names.cc [__linux__ && __ia64__]: Undefine |
| 2075 |
'u' as used in glibc headers. |
| 2076 |
|
| 2077 |
2024-10-09 Jonathan Wakely <[email protected]> |
| 2078 |
|
| 2079 |
PR libstdc++/116992 |
| 2080 |
* include/bits/semaphore_base.h (_GLIBCXX_USE_POSIX_SEMAPHORE): |
| 2081 |
Undefine and issue a warning if POSIX sem_t is not supported. |
| 2082 |
* testsuite/30_threads/semaphore/platform_try_acquire_for.cc: |
| 2083 |
Prune new warning. |
| 2084 |
|
| 2085 |
2024-10-09 Jonathan Wakely <[email protected]> |
| 2086 |
|
| 2087 |
PR libstdc++/116991 |
| 2088 |
* include/std/complex (__complex_acos): Cast literal to |
| 2089 |
destination type. |
| 2090 |
|
| 2091 |
2024-10-09 Jonathan Wakely <[email protected]> |
| 2092 |
|
| 2093 |
* include/std/latch (latch::count_down): Add assertions for |
| 2094 |
preconditions. Cast parameter to avoid -Wsign-compare on some |
| 2095 |
targets. |
| 2096 |
|
| 2097 |
2024-10-09 Jonathan Wakely <[email protected]> |
| 2098 |
|
| 2099 |
PR libstdc++/112808 |
| 2100 |
* doc/xml/manual/using.xml (_GLIBCXX_ASSERTIONS): Document |
| 2101 |
implicit definition for -O0 compilation. |
| 2102 |
(_GLIBCXX_NO_ASSERTIONS): Document. |
| 2103 |
* doc/html/manual/using_macros.html: Regenerate. |
| 2104 |
* include/bits/c++config [!__OPTIMIZE__] (_GLIBCXX_ASSERTIONS): |
| 2105 |
Define for unoptimized builds. |
| 2106 |
|
| 2107 |
2024-10-09 Jonathan Wakely <[email protected]> |
| 2108 |
|
| 2109 |
PR libstdc++/61458 |
| 2110 |
* doc/doxygen/user.cfg.in (GENERATE_BUGLIST): Set to NO. |
| 2111 |
* include/std/type_traits (__aligned_storage_msa): Remove. |
| 2112 |
(__aligned_storage_max_align_t): New struct. |
| 2113 |
(__aligned_storage_default_alignment): New function. |
| 2114 |
(aligned_storage): Use __aligned_storage_default_alignment for |
| 2115 |
default alignment. Replace union with a struct containing an |
| 2116 |
aligned buffer. Improve Doxygen comment. |
| 2117 |
(aligned_storage_t): Use __aligned_storage_default_alignment for |
| 2118 |
default alignment. |
| 2119 |
|
| 2120 |
2024-10-09 Jonathan Wakely <[email protected]> |
| 2121 |
|
| 2122 |
* include/bits/shared_ptr_base.h: Remove cv-qualifiers from |
| 2123 |
type managed by _Sp_counted_ptr_inplace, as per LWG 3210. |
| 2124 |
* include/bits/stl_construct.h: Do not cast away cv-qualifiers |
| 2125 |
when passing pointer to placement new. |
| 2126 |
* include/std/expected: Use remove_cv_t for union member, as per |
| 2127 |
LWG 3891. |
| 2128 |
* testsuite/20_util/allocator/void.cc: Do not test construction |
| 2129 |
via const pointer. |
| 2130 |
|
| 2131 |
2024-10-09 Jonathan Wakely <[email protected]> |
| 2132 |
|
| 2133 |
* include/bits/stl_construct.h (construct_at): Support array |
| 2134 |
types (LWG 3436). |
| 2135 |
* testsuite/20_util/specialized_algorithms/construct_at/array.cc: |
| 2136 |
New test. |
| 2137 |
* testsuite/20_util/specialized_algorithms/construct_at/array_neg.cc: |
| 2138 |
New test. |
| 2139 |
|
| 2140 |
2024-10-09 Jonathan Wakely <[email protected]> |
| 2141 |
|
| 2142 |
* include/bits/chrono_io.h (__formatter_chrono::_M_c): Add |
| 2143 |
[[unlikely]] attribute to condition for missing %c format in |
| 2144 |
locale. Use %T instead of %H:%M:%S in fallback. |
| 2145 |
|
| 2146 |
2024-10-09 Jonathan Wakely <[email protected]> |
| 2147 |
|
| 2148 |
PR libstdc++/116755 |
| 2149 |
* include/bits/chrono_io.h (operator<<): Use +d.count() for |
| 2150 |
duration inserter. |
| 2151 |
(__formatter_chrono::_M_format): Likewise for %Q format. |
| 2152 |
* testsuite/20_util/duration/io.cc: Test durations with |
| 2153 |
character types as reps. |
| 2154 |
|
| 2155 |
2024-10-08 Jakub Jelinek <[email protected]> |
| 2156 |
|
| 2157 |
* include/bits/unicode.h (std::__unicode::__v15_1_0): Rename inline |
| 2158 |
namespace to ... |
| 2159 |
(std::__unicode::__v16_0_0): ... this. |
| 2160 |
(_GLIBCXX_GET_UNICODE_DATA): Change from 150100 to 160000. |
| 2161 |
* include/bits/unicode-data.h: Regenerated. |
| 2162 |
* testsuite/ext/unicode/properties.cc: Check for _Gcb_SpacingMark |
| 2163 |
on U+11F03 rather than U+1D16D as the latter lost SpacingMark property |
| 2164 |
in Unicode 16.0. |
| 2165 |
|
| 2166 |
2024-10-05 Giuseppe D'Angelo <[email protected]> |
| 2167 |
|
| 2168 |
* include/bits/version.def: Added the feature-testing macro. |
| 2169 |
* include/bits/version.h: Regenerated. |
| 2170 |
* include/std/type_traits: Add support for |
| 2171 |
std::is_virtual_base_of and std::is_virtual_base_of_v, |
| 2172 |
implemented in terms of the compiler builtin. |
| 2173 |
* testsuite/20_util/is_virtual_base_of/value.cc: New test. |
| 2174 |
|
| 2175 |
2024-10-05 Patrick Palka <[email protected]> |
| 2176 |
|
| 2177 |
* include/bits/ranges_base.h (__distance_fn::operator()): |
| 2178 |
Adjust iterator/sentinel overloads as per LWG 3664. |
| 2179 |
* testsuite/24_iterators/range_operations/distance.cc: |
| 2180 |
Test LWG 3664 example. |
| 2181 |
|
| 2182 |
2024-10-04 Patrick Palka <[email protected]> |
| 2183 |
|
| 2184 |
* include/std/ranges (single_view::empty): Define as per LWG 4035. |
| 2185 |
(iota_view::empty): Define as per LWG 4001. |
| 2186 |
(lazy_split_view::_OuterIter::value_type): Remove default |
| 2187 |
constructor and make other constructor private as per LWG 4013. |
| 2188 |
(common_view::begin): Disable non-const overload for simple |
| 2189 |
views as per LWG 4012. |
| 2190 |
(common_view::end): Likewise. |
| 2191 |
(adjacent_view::base): Define as per LWG 3848. |
| 2192 |
(adjacent_transform_view::base): Likewise. |
| 2193 |
(chunk_view::_InnerIter::iter_move): Define as per LWG 3851. |
| 2194 |
(chunk_view::_InnerIter::itep_swap): Likewise. |
| 2195 |
(slide_view::base): Define as per LWG 3848. |
| 2196 |
(repeat_view): Adjust deduction guide as per LWG 4053. |
| 2197 |
(_Repeat::operator()): Adjust single-parameter overload as per |
| 2198 |
LWG 4054. |
| 2199 |
* testsuite/std/ranges/adaptors/adjacent/1.cc: Verify existence |
| 2200 |
of base member function. |
| 2201 |
* testsuite/std/ranges/adaptors/adjacent_transform/1.cc: Likewise. |
| 2202 |
* testsuite/std/ranges/adaptors/chunk/1.cc: Test LWG 3851 example. |
| 2203 |
* testsuite/std/ranges/adaptors/slide/1.cc: Verify existence of |
| 2204 |
base member function. |
| 2205 |
* testsuite/std/ranges/iota/iota_view.cc: Test LWG 4001 example. |
| 2206 |
* testsuite/std/ranges/repeat/1.cc: Test LWG 4053/4054 examples. |
| 2207 |
|
| 2208 |
2024-10-04 Jonathan Wakely <[email protected]> |
| 2209 |
|
| 2210 |
* include/parallel/algobase.h (search): Use sequential algorithm |
| 2211 |
for constant evaluation. |
| 2212 |
* include/parallel/algorithmfwd.h (search): Add |
| 2213 |
_GLIBCXX20_CONSTEXPR. |
| 2214 |
* include/parallel/multiway_merge.h: Remove stray semi-colon. |
| 2215 |
* include/parallel/multiseq_selection.h: Add diagnostic pragmas |
| 2216 |
for -Wlong-long warning. |
| 2217 |
* include/parallel/quicksort.h: Likewise. |
| 2218 |
* include/parallel/random_number.h: Likewise. |
| 2219 |
* include/parallel/settings.h: Likewise. |
| 2220 |
* include/parallel/workstealing.h: Replace ++ and -- on volatile |
| 2221 |
variables. |
| 2222 |
* testsuite/17_intro/names.cc: Skip names defined by |
| 2223 |
<tr1/random>. |
| 2224 |
* testsuite/20_util/pair/dangling_ref.cc: Skip test if Parallel |
| 2225 |
Mode is enabled. |
| 2226 |
* testsuite/20_util/tuple/dangling_ref.cc: Likewise. |
| 2227 |
|
| 2228 |
2024-10-04 Jonathan Wakely <[email protected]> |
| 2229 |
|
| 2230 |
PR libstdc++/116964 |
| 2231 |
* include/std/shared_mutex (__shared_mutex_cv): Use [this] for |
| 2232 |
lambda captures. |
| 2233 |
(shared_timed_mutex) [!_GLIBCXX_USE_PTHREAD_RWLOCK_T]: Likewise. |
| 2234 |
|
| 2235 |
2024-10-03 Jonathan Wakely <[email protected]> |
| 2236 |
|
| 2237 |
* include/bits/unicode.h (__unicode::__is_incb_linker): Use |
| 2238 |
_GLIBCXX_STD_A namespace for std::find. |
| 2239 |
|
| 2240 |
2024-10-03 Jonathan Wakely <[email protected]> |
| 2241 |
|
| 2242 |
PR libstdc++/116944 |
| 2243 |
* include/parallel/base.h: Move diagnostic pragmas earlier. |
| 2244 |
|
| 2245 |
2024-10-03 Jonathan Wakely <[email protected]> |
| 2246 |
|
| 2247 |
* include/bits/locale_facets_nonio.tcc (money_put::__do_get): |
| 2248 |
Ignore -Wformat warning for __ibm128 arguments. |
| 2249 |
* include/tr1/tuple (ignore): Ignore -Wunused warning. |
| 2250 |
|
| 2251 |
2024-10-03 François Dumont <[email protected]> |
| 2252 |
|
| 2253 |
* include/bits/hashtable_policy.h (_NodeBuilder<>::_S_build): Remove |
| 2254 |
const qualification on _NodeGenerator instance. |
| 2255 |
(_ReuseOrAllocNode<>::operator()(_Args&&...)): Remove const qualification. |
| 2256 |
(_ReuseOrAllocNode<>::_M_nodes): Remove mutable. |
| 2257 |
(_Insert_base<>::_M_insert_range): Remove _NodeGetter const qualification. |
| 2258 |
(_Hash_code_base<>::_M_bucket_index(const _Hash_node_value<>&, size_t)): |
| 2259 |
Simplify noexcept declaration, we already static_assert that _RangeHash functor |
| 2260 |
is noexcept. |
| 2261 |
* include/bits/hashtable.h: Rework comments. Remove const qualifier on |
| 2262 |
_NodeGenerator& arguments. |
| 2263 |
|
| 2264 |
2024-10-02 Jonathan Wakely <[email protected]> |
| 2265 |
|
| 2266 |
* config/locale/dragonfly/time_members.cc |
| 2267 |
(__timepunct<char>::_M_initialize_timepunc) |
| 2268 |
(__timepunct<wchar_t>::_M_initialize_timepunc): Set |
| 2269 |
_M_date_time_format for C locale. Set %Ex formats to the same |
| 2270 |
values as the %x formats. |
| 2271 |
* config/locale/generic/time_members.cc: Likewise. |
| 2272 |
* config/locale/gnu/time_members.cc: Likewise. |
| 2273 |
* testsuite/22_locale/time_get/get/char/5.cc: New test. |
| 2274 |
* testsuite/22_locale/time_get/get/wchar_t/5.cc: New test. |
| 2275 |
|
| 2276 |
2024-10-02 Jonathan Wakely <[email protected]> |
| 2277 |
|
| 2278 |
* include/bits/chrono_io.h (__detail::__use_floor): New |
| 2279 |
function. |
| 2280 |
(__detail::__round): New function. |
| 2281 |
(from_stream): Use __detail::__round. |
| 2282 |
* testsuite/std/time/clock/file/io.cc: Check for expected |
| 2283 |
rounding in parse. |
| 2284 |
* testsuite/std/time/clock/gps/io.cc: Likewise. |
| 2285 |
|
| 2286 |
2024-10-02 Jonathan Wakely <[email protected]> |
| 2287 |
|
| 2288 |
* include/bits/postypes.h: Fix -Wlong-long warning. |
| 2289 |
|
| 2290 |
2024-10-01 Hans-Peter Nilsson <[email protected]> |
| 2291 |
|
| 2292 |
PR libstdc++/116895 |
| 2293 |
* config/os/newlib/ctype_base.h: Avoid signed-overflow warnings by |
| 2294 |
explicitly casting initializer expressions to mask. |
| 2295 |
|
| 2296 |
2024-09-27 Jonathan Wakely <[email protected]> |
| 2297 |
|
| 2298 |
* include/bits/istream.tcc: Add diagnostic pragmas around uses |
| 2299 |
of long long and extern template. |
| 2300 |
* include/bits/locale_facets.h: Likewise. |
| 2301 |
* include/bits/locale_facets.tcc: Likewise. |
| 2302 |
* include/bits/locale_facets_nonio.tcc: Likewise. |
| 2303 |
* include/bits/ostream.tcc: Likewise. |
| 2304 |
* include/bits/stl_algobase.h: Likewise. |
| 2305 |
* include/c_global/cstdlib: Likewise. |
| 2306 |
* include/ext/pb_ds/detail/resize_policy/hash_prime_size_policy_imp.hpp: |
| 2307 |
Likewise. |
| 2308 |
* include/ext/pointer.h: Likewise. |
| 2309 |
* include/ext/stdio_sync_filebuf.h: Likewise. |
| 2310 |
* include/std/istream: Likewise. |
| 2311 |
* include/std/ostream: Likewise. |
| 2312 |
* include/tr1/cmath: Likewise. |
| 2313 |
* include/tr1/type_traits: Likewise. |
| 2314 |
* include/tr1/functional_hash.h: Likewise. Remove semi-colons |
| 2315 |
at namespace scope that aren't needed after macro expansion. |
| 2316 |
* include/tr1/tuple: Remove semi-colon at namespace scope. |
| 2317 |
* include/bits/vector.tcc: Change LL suffix to just L. |
| 2318 |
|
| 2319 |
2024-09-27 Jonathan Wakely <[email protected]> |
| 2320 |
|
| 2321 |
* include/experimental/bits/fs_path.h (path::_Cvt): Refactor to |
| 2322 |
use if-constexpr. |
| 2323 |
(path::string(const Allocator&)): Likewise. |
| 2324 |
|
| 2325 |
2024-09-27 Jonathan Wakely <[email protected]> |
| 2326 |
|
| 2327 |
* include/bits/basic_string.tcc (resize_for_overwrite): Fix |
| 2328 |
-Wsign-compare warning. |
| 2329 |
* include/bits/cow_string.h (resize_for_overwrite): Likewise. |
| 2330 |
|
| 2331 |
2024-09-27 Jonathan Wakely <[email protected]> |
| 2332 |
|
| 2333 |
* testsuite/20_util/bind/dangling_ref.cc: Add an additional |
| 2334 |
dg-warning for -Wreturn-local-addr warning. |
| 2335 |
* testsuite/30_threads/packaged_task/cons/dangling_ref.cc: |
| 2336 |
Likewise. |
| 2337 |
|
| 2338 |
2024-09-27 Jonathan Wakely <[email protected]> |
| 2339 |
|
| 2340 |
* include/bits/atomic_base.h (__atomic_base<T*>::_M_type_size): |
| 2341 |
Replace overloaded functions with static _S_type_size. |
| 2342 |
* include/std/atomic (atomic<T*>): Use is_object_v instead of |
| 2343 |
is_object. |
| 2344 |
* testsuite/29_atomics/atomic/operators/pointer_partial_void.cc: |
| 2345 |
Add dg-warning for -Wpointer-arith warning. |
| 2346 |
|
| 2347 |
2024-09-26 Jonathan Wakely <[email protected]> |
| 2348 |
|
| 2349 |
* include/bits/cow_string.h (__resize_for_overwrite): Add |
| 2350 |
inline keyword to function with always_inline attribute. |
| 2351 |
|
| 2352 |
2024-09-26 Nathaniel Shead <[email protected]> |
| 2353 |
|
| 2354 |
PR libstdc++/115126 |
| 2355 |
* include/bits/shared_ptr.h (std::__is_shared_ptr): Remove |
| 2356 |
unnecessary 'static'. |
| 2357 |
* include/bits/unique_ptr.h (std::__is_unique_ptr): Likewise. |
| 2358 |
* include/std/future (std::__create_task_state): Likewise. |
| 2359 |
* include/std/shared_mutex (_GLIBCXX_GTRHW): Likewise. |
| 2360 |
(__glibcxx_rwlock_init): Likewise. |
| 2361 |
(__glibcxx_rwlock_timedrdlock): Likewise. |
| 2362 |
(__glibcxx_rwlock_timedwrlock): Likewise. |
| 2363 |
(__glibcxx_rwlock_rdlock): Likewise. |
| 2364 |
(__glibcxx_rwlock_tryrdlock): Likewise. |
| 2365 |
(__glibcxx_rwlock_wrlock): Likewise. |
| 2366 |
(__glibcxx_rwlock_trywrlock): Likewise. |
| 2367 |
(__glibcxx_rwlock_unlock): Likewise. |
| 2368 |
(__glibcxx_rwlock_destroy): Likewise. |
| 2369 |
(__glibcxx_rwlock_init): Likewise. |
| 2370 |
* include/pstl/algorithm_impl.h |
| 2371 |
(__pstl::__internal::__set_algo_cut_off): Mark inline. |
| 2372 |
* include/pstl/unseq_backend_simd.h |
| 2373 |
(__pstl::__unseq_backend::__lane_size): Mark inline. |
| 2374 |
|
| 2375 |
2024-09-26 Jakub Jelinek <[email protected]> |
| 2376 |
|
| 2377 |
PR libstdc++/116859 |
| 2378 |
* config/os/bsd/freebsd/os_defines.h |
| 2379 |
(_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC, |
| 2380 |
_GLIBCXX_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): Avoid |
| 2381 |
-Wexpansion-to-defined warnings. |
| 2382 |
* config/os/bsd/dragonfly/os_defines.h |
| 2383 |
(_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC): Likewise. |
| 2384 |
|
| 2385 |
2024-09-26 Jonathan Wakely <[email protected]> |
| 2386 |
Andrew Waterman <[email protected]> |
| 2387 |
|
| 2388 |
PR libstdc++/113578 |
| 2389 |
* include/std/ostream (_S_cast_flt): New static member function |
| 2390 |
to restore signbit after casting to double or long double. |
| 2391 |
(operator<<(float), operator<<(_Float16), operator<<(_Float32)) |
| 2392 |
(operator<<(_Float64), operator(_Float128)) |
| 2393 |
(operator<<(__bfloat16_t)): Use _S_cast_flt. |
| 2394 |
testsuite/27_io/basic_ostream/inserters_arithmetic/lwg4101.cc: |
| 2395 |
New test. |
| 2396 |
* testsuite/27_io/basic_ostream/inserters_arithmetic/lwg4101.cc: New file. |
| 2397 |
|
| 2398 |
2024-09-26 Jonathan Wakely <[email protected]> |
| 2399 |
|
| 2400 |
* testsuite/27_io/basic_istringstream/cons/2020.cc: Fix comment |
| 2401 |
referring to basic_filebuf. |
| 2402 |
* testsuite/27_io/basic_istringstream/requirements/base_classes.cc: |
| 2403 |
Likewise. |
| 2404 |
* testsuite/27_io/basic_ostringstream/cons/2020.cc: Likewise. |
| 2405 |
* testsuite/27_io/basic_ostringstream/requirements/base_classes.cc: |
| 2406 |
Likewise. |
| 2407 |
* testsuite/27_io/basic_stringbuf/cons/2020.cc: Likewise. |
| 2408 |
* testsuite/27_io/basic_stringbuf/requirements/explicit_instantiation/2.cc: |
| 2409 |
Likewise. |
| 2410 |
* testsuite/27_io/basic_stringbuf/requirements/explicit_instantiation/4.cc: |
| 2411 |
Likewise. |
| 2412 |
* testsuite/27_io/basic_stringstream/cons/2020.cc: Likewise. |
| 2413 |
* testsuite/27_io/basic_stringstream/requirements/base_classes.cc: |
| 2414 |
Likewise. |
| 2415 |
|
| 2416 |
2024-09-26 Jonathan Wakely <[email protected]> |
| 2417 |
|
| 2418 |
* include/bits/basic_ios.h (basic_ios::operator bool()): |
| 2419 |
Add [[nodiscard]] attribute. |
| 2420 |
(basic_ios::operator!(), basic_ios::rdstate()) |
| 2421 |
(basic_ios::good(), basic_ios::eof(), basic_ios::fail()) |
| 2422 |
(basic_ios::bad(), basic_ios::exceptions(), basic_ios::tie()) |
| 2423 |
(basic_ios::rdbuf(), basic_ios::fill()): Likewise. |
| 2424 |
* include/bits/ios_base.h (ios_base::flags()): Likewise. |
| 2425 |
(ios_base::precision(), ios_base::width(), ios_base::getloc()): |
| 2426 |
Likewise. |
| 2427 |
* include/std/fstream (basic_filebuf::is_open) |
| 2428 |
(basic_ifstream::rdbuf(), basic_ifstream::is_open) |
| 2429 |
(basic_ofstream::rdbuf(), basic_ofstream::is_open) |
| 2430 |
(basic_fstream::rdbuf(), basic_fstream::is_open): Likewise. |
| 2431 |
* include/std/spanstream (basic_spanbuf::span()) |
| 2432 |
(basic_ispanstream::span(), basic_ispanstream::rdbuf()) |
| 2433 |
(basic_ospanstream::span(), basic_ospanstream::rdbuf()) |
| 2434 |
(basic_spanstream::span(), basic_spanstream::rdbuf()): |
| 2435 |
Likewise. |
| 2436 |
* include/std/sstream (basic_stringbuf::str()) |
| 2437 |
(basic_istringstream::rdbuf(), basic_istringstream::str()) |
| 2438 |
(basic_ostringstream::rdbuf(), basic_ostringstream::str()) |
| 2439 |
(basic_stringstream::rdbuf(), basic_stringstream::str()): |
| 2440 |
Likewise. |
| 2441 |
* testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: |
| 2442 |
Suppress -Wunused-result warnings. |
| 2443 |
* testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/01.cc: |
| 2444 |
Likewise. |
| 2445 |
|
| 2446 |
2024-09-26 Iain Sandoe <[email protected]> |
| 2447 |
|
| 2448 |
PR libstdc++/116853 |
| 2449 |
* include/bits/basic_string.h: Ignore suggest-attribute=format |
| 2450 |
warning when using posix vsnprintf in to_string() implementations. |
| 2451 |
|
| 2452 |
2024-09-26 Jonathan Wakely <[email protected]> |
| 2453 |
|
| 2454 |
* include/std/stacktrace (basic_stacktrace::_Impl::_M_allocate): |
| 2455 |
Do not assume allocators only throw std::bad_alloc. |
| 2456 |
|
| 2457 |
2024-09-26 Jonathan Wakely <[email protected]> |
| 2458 |
|
| 2459 |
PR libstdc++/116857 |
| 2460 |
* libsupc++/guard.cc (__cxa_guard_acquire): Remove |
| 2461 |
_GLIBCXX_NOTHROW to match declaration in <cxxabi.h>. |
| 2462 |
|
| 2463 |
2024-09-25 Sam James <[email protected]> |
| 2464 |
|
| 2465 |
PR libstdc++/101831 |
| 2466 |
* testsuite/23_containers/array/capacity/empty.cc: Add missing brace. |
| 2467 |
* testsuite/23_containers/array/capacity/max_size.cc: Ditto. |
| 2468 |
* testsuite/23_containers/array/capacity/size.cc: Ditto. |
| 2469 |
|
| 2470 |
2024-09-25 Jason Merrill <[email protected]> |
| 2471 |
|
| 2472 |
* acinclude.m4 (WARN_FLAGS): Remove -Wsystem-headers. |
| 2473 |
* configure: Regenerate. |
| 2474 |
* include/bits/algorithmfwd.h: #ifdef out #pragma GCC system_header. |
| 2475 |
* include/bits/atomic_base.h |
| 2476 |
* include/bits/atomic_futex.h |
| 2477 |
* include/bits/atomic_timed_wait.h |
| 2478 |
* include/bits/atomic_wait.h |
| 2479 |
* include/bits/basic_ios.h |
| 2480 |
* include/bits/basic_string.h |
| 2481 |
* include/bits/boost_concept_check.h |
| 2482 |
* include/bits/char_traits.h |
| 2483 |
* include/bits/charconv.h |
| 2484 |
* include/bits/chrono.h |
| 2485 |
* include/bits/chrono_io.h |
| 2486 |
* include/bits/codecvt.h |
| 2487 |
* include/bits/concept_check.h |
| 2488 |
* include/bits/cpp_type_traits.h |
| 2489 |
* include/bits/elements_of.h |
| 2490 |
* include/bits/enable_special_members.h |
| 2491 |
* include/bits/erase_if.h |
| 2492 |
* include/bits/forward_list.h |
| 2493 |
* include/bits/functional_hash.h |
| 2494 |
* include/bits/gslice.h |
| 2495 |
* include/bits/gslice_array.h |
| 2496 |
* include/bits/hashtable.h |
| 2497 |
* include/bits/indirect_array.h |
| 2498 |
* include/bits/invoke.h |
| 2499 |
* include/bits/ios_base.h |
| 2500 |
* include/bits/iterator_concepts.h |
| 2501 |
* include/bits/locale_classes.h |
| 2502 |
* include/bits/locale_facets.h |
| 2503 |
* include/bits/locale_facets_nonio.h |
| 2504 |
* include/bits/localefwd.h |
| 2505 |
* include/bits/mask_array.h |
| 2506 |
* include/bits/max_size_type.h |
| 2507 |
* include/bits/memory_resource.h |
| 2508 |
* include/bits/memoryfwd.h |
| 2509 |
* include/bits/move_only_function.h |
| 2510 |
* include/bits/node_handle.h |
| 2511 |
* include/bits/ostream_insert.h |
| 2512 |
* include/bits/out_ptr.h |
| 2513 |
* include/bits/parse_numbers.h |
| 2514 |
* include/bits/postypes.h |
| 2515 |
* include/bits/quoted_string.h |
| 2516 |
* include/bits/range_access.h |
| 2517 |
* include/bits/ranges_base.h |
| 2518 |
* include/bits/refwrap.h |
| 2519 |
* include/bits/sat_arith.h |
| 2520 |
* include/bits/semaphore_base.h |
| 2521 |
* include/bits/slice_array.h |
| 2522 |
* include/bits/std_abs.h |
| 2523 |
* include/bits/std_function.h |
| 2524 |
* include/bits/std_mutex.h |
| 2525 |
* include/bits/std_thread.h |
| 2526 |
* include/bits/stl_iterator_base_funcs.h |
| 2527 |
* include/bits/stl_iterator_base_types.h |
| 2528 |
* include/bits/stl_tree.h |
| 2529 |
* include/bits/stream_iterator.h |
| 2530 |
* include/bits/streambuf_iterator.h |
| 2531 |
* include/bits/stringfwd.h |
| 2532 |
* include/bits/this_thread_sleep.h |
| 2533 |
* include/bits/unique_lock.h |
| 2534 |
* include/bits/uses_allocator_args.h |
| 2535 |
* include/bits/utility.h |
| 2536 |
* include/bits/valarray_after.h |
| 2537 |
* include/bits/valarray_array.h |
| 2538 |
* include/bits/valarray_before.h |
| 2539 |
* include/bits/version.h |
| 2540 |
* include/c_compatibility/fenv.h |
| 2541 |
* include/c_compatibility/inttypes.h |
| 2542 |
* include/c_compatibility/stdint.h |
| 2543 |
* include/decimal/decimal.h |
| 2544 |
* include/experimental/bits/net.h |
| 2545 |
* include/experimental/bits/shared_ptr.h |
| 2546 |
* include/ext/aligned_buffer.h |
| 2547 |
* include/ext/alloc_traits.h |
| 2548 |
* include/ext/atomicity.h |
| 2549 |
* include/ext/concurrence.h |
| 2550 |
* include/ext/numeric_traits.h |
| 2551 |
* include/ext/pod_char_traits.h |
| 2552 |
* include/ext/pointer.h |
| 2553 |
* include/ext/stdio_filebuf.h |
| 2554 |
* include/ext/stdio_sync_filebuf.h |
| 2555 |
* include/ext/string_conversions.h |
| 2556 |
* include/ext/type_traits.h |
| 2557 |
* include/ext/vstring.h |
| 2558 |
* include/ext/vstring_fwd.h |
| 2559 |
* include/ext/vstring_util.h |
| 2560 |
* include/parallel/algorithmfwd.h |
| 2561 |
* include/parallel/numericfwd.h |
| 2562 |
* include/tr1/functional_hash.h |
| 2563 |
* include/tr1/hashtable.h |
| 2564 |
* include/tr1/random.h |
| 2565 |
* libsupc++/exception.h |
| 2566 |
* libsupc++/hash_bytes.h |
| 2567 |
* include/bits/basic_ios.tcc |
| 2568 |
* include/bits/basic_string.tcc |
| 2569 |
* include/bits/fstream.tcc |
| 2570 |
* include/bits/istream.tcc |
| 2571 |
* include/bits/locale_classes.tcc |
| 2572 |
* include/bits/locale_facets.tcc |
| 2573 |
* include/bits/locale_facets_nonio.tcc |
| 2574 |
* include/bits/ostream.tcc |
| 2575 |
* include/bits/sstream.tcc |
| 2576 |
* include/bits/streambuf.tcc |
| 2577 |
* include/bits/string_view.tcc |
| 2578 |
* include/bits/version.tpl |
| 2579 |
* include/experimental/bits/string_view.tcc |
| 2580 |
* include/ext/pb_ds/detail/resize_policy/hash_prime_size_policy_imp.hpp |
| 2581 |
* include/ext/random.tcc |
| 2582 |
* include/ext/vstring.tcc |
| 2583 |
* include/tr2/bool_set.tcc |
| 2584 |
* include/tr2/dynamic_bitset.tcc |
| 2585 |
* include/bits/c++config |
| 2586 |
* include/c/cassert |
| 2587 |
* include/c/cctype |
| 2588 |
* include/c/cerrno |
| 2589 |
* include/c/cfloat |
| 2590 |
* include/c/ciso646 |
| 2591 |
* include/c/climits |
| 2592 |
* include/c/clocale |
| 2593 |
* include/c/cmath |
| 2594 |
* include/c/csetjmp |
| 2595 |
* include/c/csignal |
| 2596 |
* include/c/cstdarg |
| 2597 |
* include/c/cstddef |
| 2598 |
* include/c/cstdio |
| 2599 |
* include/c/cstdlib |
| 2600 |
* include/c/cstring |
| 2601 |
* include/c/ctime |
| 2602 |
* include/c/cuchar |
| 2603 |
* include/c/cwchar |
| 2604 |
* include/c/cwctype |
| 2605 |
* include/c_global/cassert |
| 2606 |
* include/c_global/ccomplex |
| 2607 |
* include/c_global/cctype |
| 2608 |
* include/c_global/cerrno |
| 2609 |
* include/c_global/cfenv |
| 2610 |
* include/c_global/cfloat |
| 2611 |
* include/c_global/cinttypes |
| 2612 |
* include/c_global/ciso646 |
| 2613 |
* include/c_global/climits |
| 2614 |
* include/c_global/clocale |
| 2615 |
* include/c_global/cmath |
| 2616 |
* include/c_global/csetjmp |
| 2617 |
* include/c_global/csignal |
| 2618 |
* include/c_global/cstdalign |
| 2619 |
* include/c_global/cstdarg |
| 2620 |
* include/c_global/cstdbool |
| 2621 |
* include/c_global/cstddef |
| 2622 |
* include/c_global/cstdint |
| 2623 |
* include/c_global/cstdio |
| 2624 |
* include/c_global/cstdlib |
| 2625 |
* include/c_global/cstring |
| 2626 |
* include/c_global/ctgmath |
| 2627 |
* include/c_global/ctime |
| 2628 |
* include/c_global/cuchar |
| 2629 |
* include/c_global/cwchar |
| 2630 |
* include/c_global/cwctype |
| 2631 |
* include/c_std/cassert |
| 2632 |
* include/c_std/cctype |
| 2633 |
* include/c_std/cerrno |
| 2634 |
* include/c_std/cfloat |
| 2635 |
* include/c_std/ciso646 |
| 2636 |
* include/c_std/climits |
| 2637 |
* include/c_std/clocale |
| 2638 |
* include/c_std/cmath |
| 2639 |
* include/c_std/csetjmp |
| 2640 |
* include/c_std/csignal |
| 2641 |
* include/c_std/cstdarg |
| 2642 |
* include/c_std/cstddef |
| 2643 |
* include/c_std/cstdio |
| 2644 |
* include/c_std/cstdlib |
| 2645 |
* include/c_std/cstring |
| 2646 |
* include/c_std/ctime |
| 2647 |
* include/c_std/cuchar |
| 2648 |
* include/c_std/cwchar |
| 2649 |
* include/c_std/cwctype |
| 2650 |
* include/debug/array |
| 2651 |
* include/debug/bitset |
| 2652 |
* include/debug/deque |
| 2653 |
* include/debug/forward_list |
| 2654 |
* include/debug/list |
| 2655 |
* include/debug/map |
| 2656 |
* include/debug/set |
| 2657 |
* include/debug/string |
| 2658 |
* include/debug/unordered_map |
| 2659 |
* include/debug/unordered_set |
| 2660 |
* include/debug/vector |
| 2661 |
* include/decimal/decimal |
| 2662 |
* include/experimental/algorithm |
| 2663 |
* include/experimental/any |
| 2664 |
* include/experimental/array |
| 2665 |
* include/experimental/buffer |
| 2666 |
* include/experimental/chrono |
| 2667 |
* include/experimental/contract |
| 2668 |
* include/experimental/deque |
| 2669 |
* include/experimental/executor |
| 2670 |
* include/experimental/filesystem |
| 2671 |
* include/experimental/forward_list |
| 2672 |
* include/experimental/functional |
| 2673 |
* include/experimental/internet |
| 2674 |
* include/experimental/io_context |
| 2675 |
* include/experimental/iterator |
| 2676 |
* include/experimental/list |
| 2677 |
* include/experimental/map |
| 2678 |
* include/experimental/memory |
| 2679 |
* include/experimental/memory_resource |
| 2680 |
* include/experimental/net |
| 2681 |
* include/experimental/netfwd |
| 2682 |
* include/experimental/numeric |
| 2683 |
* include/experimental/propagate_const |
| 2684 |
* include/experimental/ratio |
| 2685 |
* include/experimental/regex |
| 2686 |
* include/experimental/scope |
| 2687 |
* include/experimental/set |
| 2688 |
* include/experimental/socket |
| 2689 |
* include/experimental/string |
| 2690 |
* include/experimental/string_view |
| 2691 |
* include/experimental/synchronized_value |
| 2692 |
* include/experimental/system_error |
| 2693 |
* include/experimental/timer |
| 2694 |
* include/experimental/tuple |
| 2695 |
* include/experimental/type_traits |
| 2696 |
* include/experimental/unordered_map |
| 2697 |
* include/experimental/unordered_set |
| 2698 |
* include/experimental/vector |
| 2699 |
* include/ext/algorithm |
| 2700 |
* include/ext/cmath |
| 2701 |
* include/ext/functional |
| 2702 |
* include/ext/iterator |
| 2703 |
* include/ext/memory |
| 2704 |
* include/ext/numeric |
| 2705 |
* include/ext/random |
| 2706 |
* include/ext/rb_tree |
| 2707 |
* include/ext/rope |
| 2708 |
* include/parallel/algorithm |
| 2709 |
* include/std/algorithm |
| 2710 |
* include/std/any |
| 2711 |
* include/std/array |
| 2712 |
* include/std/atomic |
| 2713 |
* include/std/barrier |
| 2714 |
* include/std/bit |
| 2715 |
* include/std/bitset |
| 2716 |
* include/std/charconv |
| 2717 |
* include/std/chrono |
| 2718 |
* include/std/codecvt |
| 2719 |
* include/std/complex |
| 2720 |
* include/std/concepts |
| 2721 |
* include/std/condition_variable |
| 2722 |
* include/std/coroutine |
| 2723 |
* include/std/deque |
| 2724 |
* include/std/execution |
| 2725 |
* include/std/expected |
| 2726 |
* include/std/filesystem |
| 2727 |
* include/std/format |
| 2728 |
* include/std/forward_list |
| 2729 |
* include/std/fstream |
| 2730 |
* include/std/functional |
| 2731 |
* include/std/future |
| 2732 |
* include/std/generator |
| 2733 |
* include/std/iomanip |
| 2734 |
* include/std/ios |
| 2735 |
* include/std/iosfwd |
| 2736 |
* include/std/iostream |
| 2737 |
* include/std/istream |
| 2738 |
* include/std/iterator |
| 2739 |
* include/std/latch |
| 2740 |
* include/std/limits |
| 2741 |
* include/std/list |
| 2742 |
* include/std/locale |
| 2743 |
* include/std/map |
| 2744 |
* include/std/memory |
| 2745 |
* include/std/memory_resource |
| 2746 |
* include/std/mutex |
| 2747 |
* include/std/numbers |
| 2748 |
* include/std/numeric |
| 2749 |
* include/std/optional |
| 2750 |
* include/std/ostream |
| 2751 |
* include/std/print |
| 2752 |
* include/std/queue |
| 2753 |
* include/std/random |
| 2754 |
* include/std/ranges |
| 2755 |
* include/std/ratio |
| 2756 |
* include/std/regex |
| 2757 |
* include/std/scoped_allocator |
| 2758 |
* include/std/semaphore |
| 2759 |
* include/std/set |
| 2760 |
* include/std/shared_mutex |
| 2761 |
* include/std/span |
| 2762 |
* include/std/spanstream |
| 2763 |
* include/std/sstream |
| 2764 |
* include/std/stack |
| 2765 |
* include/std/stacktrace |
| 2766 |
* include/std/stdexcept |
| 2767 |
* include/std/streambuf |
| 2768 |
* include/std/string |
| 2769 |
* include/std/string_view |
| 2770 |
* include/std/syncstream |
| 2771 |
* include/std/system_error |
| 2772 |
* include/std/text_encoding |
| 2773 |
* include/std/thread |
| 2774 |
* include/std/tuple |
| 2775 |
* include/std/type_traits |
| 2776 |
* include/std/typeindex |
| 2777 |
* include/std/unordered_map |
| 2778 |
* include/std/unordered_set |
| 2779 |
* include/std/utility |
| 2780 |
* include/std/valarray |
| 2781 |
* include/std/variant |
| 2782 |
* include/std/vector |
| 2783 |
* include/std/version |
| 2784 |
* include/tr1/array |
| 2785 |
* include/tr1/cfenv |
| 2786 |
* include/tr1/cinttypes |
| 2787 |
* include/tr1/cmath |
| 2788 |
* include/tr1/complex |
| 2789 |
* include/tr1/cstdbool |
| 2790 |
* include/tr1/cstdint |
| 2791 |
* include/tr1/cstdio |
| 2792 |
* include/tr1/cstdlib |
| 2793 |
* include/tr1/cwchar |
| 2794 |
* include/tr1/cwctype |
| 2795 |
* include/tr1/functional |
| 2796 |
* include/tr1/memory |
| 2797 |
* include/tr1/random |
| 2798 |
* include/tr1/regex |
| 2799 |
* include/tr1/tuple |
| 2800 |
* include/tr1/type_traits |
| 2801 |
* include/tr1/unordered_map |
| 2802 |
* include/tr1/unordered_set |
| 2803 |
* include/tr1/utility |
| 2804 |
* include/tr2/bool_set |
| 2805 |
* include/tr2/dynamic_bitset |
| 2806 |
* include/tr2/type_traits |
| 2807 |
* libsupc++/atomic_lockfree_defines.h |
| 2808 |
* libsupc++/compare |
| 2809 |
* libsupc++/cxxabi.h |
| 2810 |
* libsupc++/cxxabi_forced.h |
| 2811 |
* libsupc++/cxxabi_init_exception.h |
| 2812 |
* libsupc++/exception |
| 2813 |
* libsupc++/initializer_list |
| 2814 |
* libsupc++/new |
| 2815 |
* libsupc++/typeinfo: Likewise. |
| 2816 |
* testsuite/20_util/ratio/operations/ops_overflow_neg.cc |
| 2817 |
* testsuite/23_containers/array/tuple_interface/get_neg.cc |
| 2818 |
* testsuite/23_containers/vector/cons/destructible_debug_neg.cc |
| 2819 |
* testsuite/24_iterators/operations/prev_neg.cc |
| 2820 |
* testsuite/ext/type_traits/add_unsigned_floating_neg.cc |
| 2821 |
* testsuite/ext/type_traits/add_unsigned_integer_neg.cc |
| 2822 |
* testsuite/ext/type_traits/remove_unsigned_floating_neg.cc |
| 2823 |
* testsuite/ext/type_traits/remove_unsigned_integer_neg.cc: Adjust |
| 2824 |
line numbers. |
| 2825 |
|
| 2826 |
2024-09-25 Jason Merrill <[email protected]> |
| 2827 |
|
| 2828 |
* include/parallel/base.h: Suppress -Wdeprecated-declarations. |
| 2829 |
* include/parallel/multiseq_selection.h: Likewise. |
| 2830 |
|
| 2831 |
2024-09-24 Nathaniel Shead <[email protected]> |
| 2832 |
|
| 2833 |
* include/std/format: Remove unnecessary 'static'. |
| 2834 |
|
| 2835 |
2024-09-23 Jason Merrill <[email protected]> |
| 2836 |
|
| 2837 |
* include/bits/c++config: Don't try to disable -Wc++??-extensions |
| 2838 |
when compiling as C. |
| 2839 |
|
| 2840 |
2024-09-23 Jason Merrill <[email protected]> |
| 2841 |
|
| 2842 |
* libsupc++/new: Add _GLIBCXX_TXN_SAFE. |
| 2843 |
|
| 2844 |
2024-09-22 Jonathan Wakely <[email protected]> |
| 2845 |
|
| 2846 |
* include/std/format (__format::__is_formattable_integer): New |
| 2847 |
variable template and specializations. |
| 2848 |
(template<integral, __char> struct formatter): Replace |
| 2849 |
constraints on first arg with __is_formattable_integer. |
| 2850 |
* testsuite/std/format/formatter/requirements.cc: Check that |
| 2851 |
std::formatter specializations for char8_t and const int are |
| 2852 |
disabled. |
| 2853 |
|
| 2854 |
2024-09-22 Jonathan Wakely <[email protected]> |
| 2855 |
|
| 2856 |
PR libstdc++/116754 |
| 2857 |
* include/bits/ranges_algobase.h (__copy_or_move): Fix order of |
| 2858 |
arguments to __memcpyable. |
| 2859 |
|
| 2860 |
2024-09-22 Jonathan Wakely <[email protected]> |
| 2861 |
|
| 2862 |
PR libstdc++/116755 |
| 2863 |
* include/bits/chrono_io.h (formatter<duration<R,P>>::format): |
| 2864 |
Cast negative integral durations to unsigned rep. |
| 2865 |
* testsuite/20_util/duration/io.cc: Test the most negative |
| 2866 |
integer durations. |
| 2867 |
|
| 2868 |
2024-09-22 Jonathan Wakely <[email protected]> |
| 2869 |
|
| 2870 |
* include/bits/stl_vector.h (operator<=>): Use constexpr |
| 2871 |
instead of _GLIBCXX20_CONSTEXPR macro. |
| 2872 |
|
| 2873 |
2024-09-22 Jonathan Wakely <[email protected]> |
| 2874 |
|
| 2875 |
* libsupc++/exception_ptr.h (__exception_ptr::_M_safe_bool_dummy): |
| 2876 |
Remove __attribute__((const)) from function returning void. |
| 2877 |
|
| 2878 |
2024-09-22 Jonathan Wakely <[email protected]> |
| 2879 |
|
| 2880 |
* src/c++11/cxx11-ios_failure.cc (__iosfail_type_info): Unhide |
| 2881 |
the three-arg overload of __do_upcast. |
| 2882 |
|
| 2883 |
2024-09-22 Jonathan Wakely <[email protected]> |
| 2884 |
|
| 2885 |
* include/bits/version.def: Sort C++26 entries alphabetically. |
| 2886 |
* include/bits/version.h: Regenerate. |
| 2887 |
|
| 2888 |
2024-09-22 Jonathan Wakely <[email protected]> |
| 2889 |
|
| 2890 |
* include/bits/iterator_concepts.h: Add projected_value_t. |
| 2891 |
* include/bits/algorithmfwd.h: Add the default template |
| 2892 |
parameter to the relevant forward declarations. |
| 2893 |
* include/pstl/glue_algorithm_defs.h: Likewise. |
| 2894 |
* include/bits/ranges_algo.h: Add the default template |
| 2895 |
parameter to range-based algorithms. |
| 2896 |
* include/bits/ranges_algobase.h: Likewise. |
| 2897 |
* include/bits/ranges_util.h: Likewise. |
| 2898 |
* include/bits/ranges_base.h: Add helper macros. |
| 2899 |
* include/bits/stl_iterator_base_types.h: Add helper macro. |
| 2900 |
* include/bits/version.def: Add the new feature-testing macro. |
| 2901 |
* include/bits/version.h: Regenerate. |
| 2902 |
* include/std/algorithm: Pull the feature-testing macro. |
| 2903 |
* include/std/ranges: Likewise. |
| 2904 |
* include/std/deque: Pull the feature-testing macro, add |
| 2905 |
the default for std::erase. |
| 2906 |
* include/std/forward_list: Likewise. |
| 2907 |
* include/std/list: Likewise. |
| 2908 |
* include/std/string: Likewise. |
| 2909 |
* include/std/vector: Likewise. |
| 2910 |
* testsuite/23_containers/default_template_value.cc: New test. |
| 2911 |
* testsuite/25_algorithms/default_template_value.cc: New test. |
| 2912 |
|
| 2913 |
2024-09-21 Jason Merrill <[email protected]> |
| 2914 |
|
| 2915 |
* include/c_compatibility/ctype.h |
| 2916 |
* include/c_compatibility/errno.h |
| 2917 |
* include/c_compatibility/float.h |
| 2918 |
* include/c_compatibility/iso646.h |
| 2919 |
* include/c_compatibility/limits.h |
| 2920 |
* include/c_compatibility/locale.h |
| 2921 |
* include/c_compatibility/setjmp.h |
| 2922 |
* include/c_compatibility/signal.h |
| 2923 |
* include/c_compatibility/stdarg.h |
| 2924 |
* include/c_compatibility/stdbool.h |
| 2925 |
* include/c_compatibility/stddef.h |
| 2926 |
* include/c_compatibility/stdio.h |
| 2927 |
* include/c_compatibility/string.h |
| 2928 |
* include/c_compatibility/tgmath.h |
| 2929 |
* include/c_compatibility/time.h |
| 2930 |
* include/c_compatibility/uchar.h |
| 2931 |
* include/c_compatibility/wchar.h |
| 2932 |
* include/c_compatibility/wctype.h |
| 2933 |
* include/c_global/ccomplex |
| 2934 |
* include/c_global/cctype |
| 2935 |
* include/c_global/cerrno |
| 2936 |
* include/c_global/cfloat |
| 2937 |
* include/c_global/climits |
| 2938 |
* include/c_global/clocale |
| 2939 |
* include/c_global/cmath |
| 2940 |
* include/c_global/csetjmp |
| 2941 |
* include/c_global/csignal |
| 2942 |
* include/c_global/cstdalign |
| 2943 |
* include/c_global/cstdarg |
| 2944 |
* include/c_global/cstdbool |
| 2945 |
* include/c_global/cstdio |
| 2946 |
* include/c_global/cstdlib |
| 2947 |
* include/c_global/cstring |
| 2948 |
* include/c_global/ctgmath |
| 2949 |
* include/c_global/ctime |
| 2950 |
* include/c_global/cwchar |
| 2951 |
* include/c_global/cwctype: Move header guard before #includes. |
| 2952 |
|
| 2953 |
2024-09-20 Jonathan Wakely <[email protected]> |
| 2954 |
|
| 2955 |
PR libstdc++/116529 |
| 2956 |
* include/bits/unique_ptr.h (unique_ptr(auto_ptr<U>&&)): |
| 2957 |
Use pointer instead of T*. |
| 2958 |
* testsuite/20_util/unique_ptr/creation/116529.cc: New test. |
| 2959 |
|
| 2960 |
2024-09-20 Jonathan Wakely <[email protected]> |
| 2961 |
|
| 2962 |
PR libstdc++/116777 |
| 2963 |
* doc/xml/manual/using.xml: Document features that are not |
| 2964 |
supported for the gcc4-compatible ABI. |
| 2965 |
* doc/html/manual/using_dual_abi.html: Regenerate. |
| 2966 |
|
| 2967 |
2024-09-19 Jason Merrill <[email protected]> |
| 2968 |
|
| 2969 |
* include/bits/algorithmfwd.h: |
| 2970 |
* include/bits/allocator.h: |
| 2971 |
* include/bits/codecvt.h: |
| 2972 |
* include/bits/concept_check.h: |
| 2973 |
* include/bits/cpp_type_traits.h: |
| 2974 |
* include/bits/hashtable.h: |
| 2975 |
* include/bits/iterator_concepts.h: |
| 2976 |
* include/bits/ostream_insert.h: |
| 2977 |
* include/bits/ranges_base.h: |
| 2978 |
* include/bits/regex_automaton.h: |
| 2979 |
* include/bits/std_abs.h: |
| 2980 |
* include/bits/stl_algo.h: |
| 2981 |
* include/c_compatibility/fenv.h: |
| 2982 |
* include/c_compatibility/inttypes.h: |
| 2983 |
* include/c_compatibility/stdint.h: |
| 2984 |
* include/ext/concurrence.h: |
| 2985 |
* include/ext/type_traits.h: |
| 2986 |
* testsuite/ext/type_traits/add_unsigned_floating_neg.cc: |
| 2987 |
* testsuite/ext/type_traits/add_unsigned_integer_neg.cc: |
| 2988 |
* testsuite/ext/type_traits/remove_unsigned_floating_neg.cc: |
| 2989 |
* testsuite/ext/type_traits/remove_unsigned_integer_neg.cc: |
| 2990 |
* include/bits/basic_ios.tcc: |
| 2991 |
* include/bits/basic_string.tcc: |
| 2992 |
* include/bits/fstream.tcc: |
| 2993 |
* include/bits/istream.tcc: |
| 2994 |
* include/bits/locale_classes.tcc: |
| 2995 |
* include/bits/locale_facets.tcc: |
| 2996 |
* include/bits/ostream.tcc: |
| 2997 |
* include/bits/regex_compiler.tcc: |
| 2998 |
* include/bits/sstream.tcc: |
| 2999 |
* include/bits/streambuf.tcc: |
| 3000 |
* configure: Regenerate. |
| 3001 |
* include/bits/c++config: |
| 3002 |
* include/c/cassert: |
| 3003 |
* include/c/cctype: |
| 3004 |
* include/c/cerrno: |
| 3005 |
* include/c/cfloat: |
| 3006 |
* include/c/climits: |
| 3007 |
* include/c/clocale: |
| 3008 |
* include/c/cmath: |
| 3009 |
* include/c/csetjmp: |
| 3010 |
* include/c/csignal: |
| 3011 |
* include/c/cstdarg: |
| 3012 |
* include/c/cstddef: |
| 3013 |
* include/c/cstdio: |
| 3014 |
* include/c/cstdlib: |
| 3015 |
* include/c/cstring: |
| 3016 |
* include/c/ctime: |
| 3017 |
* include/c/cwchar: |
| 3018 |
* include/c/cwctype: |
| 3019 |
* include/c_global/climits: |
| 3020 |
* include/c_global/cmath: |
| 3021 |
* include/c_global/cstddef: |
| 3022 |
* include/c_global/cstdlib: |
| 3023 |
* include/decimal/decimal: |
| 3024 |
* include/ext/rope: |
| 3025 |
* include/std/any: |
| 3026 |
* include/std/charconv: |
| 3027 |
* include/std/complex: |
| 3028 |
* include/std/coroutine: |
| 3029 |
* include/std/format: |
| 3030 |
* include/std/iomanip: |
| 3031 |
* include/std/limits: |
| 3032 |
* include/std/numbers: |
| 3033 |
* include/tr1/functional: |
| 3034 |
* include/tr1/tuple: |
| 3035 |
* include/tr1/type_traits: |
| 3036 |
* libsupc++/compare: |
| 3037 |
* libsupc++/new: Add #pragma GCC diagnostic to suppress |
| 3038 |
undesired warnings. |
| 3039 |
* acinclude.m4: Change -Wabi version from 2 to 19. |
| 3040 |
|
| 3041 |
2024-09-18 Jason Merrill <[email protected]> |
| 3042 |
|
| 3043 |
* include/bits/basic_ios.h: Add braces. |
| 3044 |
|
| 3045 |
2024-09-16 Jonathan Wakely <[email protected]> |
| 3046 |
|
| 3047 |
* .editorconfig: New file. |
| 3048 |
* include/std/.editorconfig: New file. |
| 3049 |
|
| 3050 |
2024-09-16 Gerald Pfeifer <[email protected]> |
| 3051 |
|
| 3052 |
* doc/xml/manual/intro.xml: Update link to installation docs. |
| 3053 |
* doc/html/manual/make.html: Regenerate. |
| 3054 |
|
| 3055 |
2024-09-15 Jonathan Wakely <[email protected]> |
| 3056 |
|
| 3057 |
* include/std/span (span::__iter_tag): Declare nested type. |
| 3058 |
(span::iterator): Use __iter_tag as second template argument. |
| 3059 |
* include/std/stacktrace (basic_stacktrace::iterator): Use _Impl |
| 3060 |
as second template argument. |
| 3061 |
|
| 3062 |
2024-09-15 Jonathan Wakely <[email protected]> |
| 3063 |
|
| 3064 |
* doc/xml/manual/using.xml (_GLIBCXX_NO_FREESTANDING_CHRONO): |
| 3065 |
Document macro. |
| 3066 |
* doc/html/*: Regenerate. |
| 3067 |
* include/bits/chrono.h [_GLIBCXX_NO_FREESTANDING_CHRONO]: |
| 3068 |
Only include <bits/require_hosted.h> when this macro is defined. |
| 3069 |
[_GLIBCXX_HOSTED]: Only define clocks for hosted. |
| 3070 |
* include/bits/version.def (chrono_udls): Remove hosted=yes. |
| 3071 |
* include/bits/version.h: Regenerate. |
| 3072 |
* include/std/chrono [_GLIBCXX_HOSTED]: Only define clocks and |
| 3073 |
time zone utilities for hosted. |
| 3074 |
* testsuite/std/time/freestanding.cc: New test. |
| 3075 |
|
| 3076 |
2024-09-15 Jonathan Wakely <[email protected]> |
| 3077 |
|
| 3078 |
* include/bits/locale_classes.h (__is_facet): New helper. |
| 3079 |
* include/bits/locale_classes.tcc (locale::combine): Check that |
| 3080 |
_Facet type is valid. |
| 3081 |
|
| 3082 |
2024-09-15 Jonathan Wakely <[email protected]> |
| 3083 |
|
| 3084 |
PR libstdc++/110512 |
| 3085 |
* include/pstl/execution_impl.h (__are_random_access_iterators): |
| 3086 |
Recognize C++20 random access iterators, and use more efficient |
| 3087 |
implementations. |
| 3088 |
* testsuite/25_algorithms/pstl/110512.cc: New test. |
| 3089 |
|
| 3090 |
2024-09-14 Jonathan Wakely <[email protected]> |
| 3091 |
|
| 3092 |
* include/std/format (__formatter_fp::_M_localize): Add comments |
| 3093 |
and micro-optimize string copy. |
| 3094 |
|
| 3095 |
2024-09-14 Jonathan Wakely <[email protected]> |
| 3096 |
|
| 3097 |
* include/bits/semaphore_base.h (__platform_semaphore): Refactor |
| 3098 |
loops to all use similar forms. |
| 3099 |
(__platform_semaphore::_M_try_acquire_until): Use chrono::ceil |
| 3100 |
to explicitly convert to __clock_t::time_point. |
| 3101 |
* testsuite/30_threads/semaphore/try_acquire_for.cc: Check that |
| 3102 |
using a very high resolution timeout compiles. |
| 3103 |
* testsuite/30_threads/semaphore/platform_try_acquire_for.cc: |
| 3104 |
New test. |
| 3105 |
|
| 3106 |
2024-09-13 Giuseppe D'Angelo <[email protected]> |
| 3107 |
|
| 3108 |
PR libstdc++/108846 |
| 3109 |
PR libstdc++/116471 |
| 3110 |
* include/bits/ranges_algobase.h (__assign_one): New helper |
| 3111 |
function. |
| 3112 |
(__copy_or_move): Remove a spurious static_assert; use |
| 3113 |
__assign_one for memcpyable ranges of length 1. |
| 3114 |
(__copy_or_move_backward): Likewise. |
| 3115 |
* testsuite/25_algorithms/copy/108846.cc: Extend to range-based |
| 3116 |
algorithms, and cover both memcpyable and non-memcpyable |
| 3117 |
cases. |
| 3118 |
* testsuite/25_algorithms/copy_backward/108846.cc: Likewise. |
| 3119 |
* testsuite/25_algorithms/copy_n/108846.cc: Likewise. |
| 3120 |
* testsuite/25_algorithms/move/108846.cc: Likewise. |
| 3121 |
* testsuite/25_algorithms/move_backward/108846.cc: Likewise. |
| 3122 |
|
| 3123 |
2024-09-12 Jonathan Wakely <[email protected]> |
| 3124 |
|
| 3125 |
* include/std/optional (__is_bool): Remove. |
| 3126 |
|
| 3127 |
2024-09-12 Jonathan Wakely <[email protected]> |
| 3128 |
|
| 3129 |
* libsupc++/new (launder): Add static_assert and remove deleted |
| 3130 |
overloads. |
| 3131 |
* testsuite/18_support/launder/requirements_neg.cc: Adjust |
| 3132 |
expected diagnostics. |
| 3133 |
|
| 3134 |
2024-09-11 Alex Coplan <[email protected]> |
| 3135 |
|
| 3136 |
PR libstdc++/116140 |
| 3137 |
* include/bits/stl_algobase.h (std::__find_if): Add #pragma to |
| 3138 |
request GCC to unroll the loop. |
| 3139 |
|
| 3140 |
2024-09-10 Jonathan Wakely <[email protected]> |
| 3141 |
|
| 3142 |
PR libstdc++/116159 |
| 3143 |
* include/std/iostream (ios_base_library_init): Only define for |
| 3144 |
ELF targets. |
| 3145 |
* src/c++98/ios_init.cc (ios_base_library_init): Likewise. |
| 3146 |
|
| 3147 |
2024-09-10 Jonathan Wakely <[email protected]> |
| 3148 |
|
| 3149 |
PR libstdc++/116641 |
| 3150 |
* include/bits/basic_string.h (operator=(basic_string&&)): Call |
| 3151 |
_M_assign instead of assign. |
| 3152 |
* testsuite/21_strings/basic_string/allocator/116641.cc: New |
| 3153 |
test. |
| 3154 |
|
| 3155 |
2024-09-10 Jonathan Wakely <[email protected]> |
| 3156 |
|
| 3157 |
* testsuite/18_support/new_nothrow.cc (THROW_BAD_ALLOC): Define |
| 3158 |
macro to add exception specifications for C++98 mode. |
| 3159 |
(NOEXCEPT): Expand to throw() for C++98 mode. |
| 3160 |
* testsuite/26_numerics/headers/numeric/synopsis.cc (gcd, lcm): |
| 3161 |
Add noexcept. |
| 3162 |
|
| 3163 |
2024-09-06 Jonathan Wakely <[email protected]> |
| 3164 |
|
| 3165 |
* include/bits/chrono_io.h (from_stream): Fix conversions in |
| 3166 |
overloads for gps_time and tai_time. |
| 3167 |
* testsuite/std/time/clock/file/io.cc: Test round tripping using |
| 3168 |
chrono::parse. Add additional std::format tests. |
| 3169 |
* testsuite/std/time/clock/gps/io.cc: Likewise. |
| 3170 |
* testsuite/std/time/clock/local/io.cc: Likewise. |
| 3171 |
* testsuite/std/time/clock/tai/io.cc: Likewise. |
| 3172 |
* testsuite/std/time/clock/utc/io.cc: Likewise. |
| 3173 |
|
| 3174 |
2024-09-06 Jason Merrill <[email protected]> |
| 3175 |
|
| 3176 |
* include/bits/regex_constants.h: Add __ to attribute. |
| 3177 |
|
| 3178 |
2024-09-06 Jason Merrill <[email protected]> |
| 3179 |
|
| 3180 |
* include/bits/c++config: Avoid redefining __GLIBCXX__. |
| 3181 |
|
| 3182 |
2024-09-06 Jason Merrill <[email protected]> |
| 3183 |
|
| 3184 |
PR c++/46457 |
| 3185 |
PR c++/81665 |
| 3186 |
* include/bits/regex_constants.h: Use flag_enum. |
| 3187 |
|
| 3188 |
2024-09-06 Jason Merrill <[email protected]> |
| 3189 |
|
| 3190 |
* include/bits/ios_base.h (_GLIBCXX_NOREPLACE_UNUSED): New. |
| 3191 |
(_Ios_Openmode): Add unused attributes. |
| 3192 |
* testsuite/27_io/ios_base/types/openmode/case_label.cc: Handle |
| 3193 |
noreplace. |
| 3194 |
|
| 3195 |
2024-09-03 Jonathan Wakely <[email protected]> |
| 3196 |
|
| 3197 |
* src/c++17/fs_ops.cc (auto_win_file_handle): Add error_code& |
| 3198 |
member and set it if CreateFileW or GetFileInformationByHandle |
| 3199 |
fails. |
| 3200 |
(fs::equiv_files) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Simplify |
| 3201 |
control flow. |
| 3202 |
(fs::hard_link_count) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Clear ec |
| 3203 |
on success. |
| 3204 |
* testsuite/27_io/filesystem/operations/hard_link_count.cc: |
| 3205 |
Check error handling. |
| 3206 |
|
| 3207 |
2024-09-03 Jonathan Wakely <[email protected]> |
| 3208 |
|
| 3209 |
PR libstdc++/116549 |
| 3210 |
* include/bits/stl_iterator.h (disable_sized_sentinel_for): |
| 3211 |
Define specialization for two move_iterator types, as per LWG |
| 3212 |
3736. |
| 3213 |
* testsuite/24_iterators/move_iterator/lwg3736.cc: New test. |
| 3214 |
|
| 3215 |
2024-09-03 Jonathan Wakely <[email protected]> |
| 3216 |
|
| 3217 |
* include/experimental/any (experimental::any::_Storage): Use |
| 3218 |
array of unsigned char instead of deprecated |
| 3219 |
std::aligned_storage. |
| 3220 |
* include/std/any (any::_Storage): Likewise. |
| 3221 |
* testsuite/20_util/any/layout.cc: New test. |
| 3222 |
|
| 3223 |
2024-09-03 Dhruv Chawla <[email protected]> |
| 3224 |
|
| 3225 |
* include/std/deque: Define macro |
| 3226 |
__glibcxx_want_allocator_traits_is_always_equal. |
| 3227 |
* include/std/forward_list: Likewise. |
| 3228 |
* include/std/list: Likewise. |
| 3229 |
* include/std/map: Likewise. |
| 3230 |
* include/std/scoped_allocator: Likewise. |
| 3231 |
* include/std/set: Likewise. |
| 3232 |
* include/std/string: Likewise. |
| 3233 |
* include/std/unordered_map: Likewise. |
| 3234 |
* include/std/unordered_set: Likewise. |
| 3235 |
* include/std/vector: Likewise. |
| 3236 |
* testsuite/20_util/headers/memory/version.cc: New test. |
| 3237 |
* testsuite/20_util/scoped_allocator/version.cc: Likewise. |
| 3238 |
* testsuite/21_strings/headers/string/version.cc: Likewise. |
| 3239 |
* testsuite/23_containers/deque/version.cc: Likewise. |
| 3240 |
* testsuite/23_containers/forward_list/version.cc: Likewise. |
| 3241 |
* testsuite/23_containers/list/version.cc: Likewise. |
| 3242 |
* testsuite/23_containers/map/version.cc: Likewise. |
| 3243 |
* testsuite/23_containers/set/version.cc: Likewise. |
| 3244 |
* testsuite/23_containers/unordered_map/version.cc: Likewise. |
| 3245 |
* testsuite/23_containers/unordered_set/version.cc: Likewise. |
| 3246 |
* testsuite/23_containers/vector/version.cc: Likewise. |
| 3247 |
|
| 3248 |
2024-09-02 Alexandre Oliva <[email protected]> |
| 3249 |
|
| 3250 |
* testsuite/30_threads/future/members/poll.cc: Factor out |
| 3251 |
calibration, and run it unconditionally. Lower its |
| 3252 |
strictness. Bump wait_until_*'s slowness factor. |
| 3253 |
|
| 3254 |
2024-09-02 Alexandre Oliva <[email protected]> |
| 3255 |
|
| 3256 |
PR libstdc++/91486 |
| 3257 |
* testsuite/30_threads/async/async.cc |
| 3258 |
(test_pr91486_wait_for): Mark status as unused. |
| 3259 |
(test_pr91486_wait_until): Likewise. Initialize epoch later. |
| 3260 |
|
| 3261 |
2024-09-02 Andreas Schwab <[email protected]> |
| 3262 |
|
| 3263 |
PR libstdc++/116513 |
| 3264 |
* libsupc++/compare (_S_fp_bits) [__fmt == _M68k_80bit]: Shift |
| 3265 |
padding out of exponent word. |
| 3266 |
|
| 3267 |
2024-08-28 Jonathan Wakely <[email protected]> |
| 3268 |
|
| 3269 |
* configure.ac: Fix check for O_NONBLOCK. |
| 3270 |
* config.h.in: Regenerate. |
| 3271 |
* configure: Regenerate. |
| 3272 |
|
| 3273 |
2024-08-28 Jonathan Wakely <[email protected]> |
| 3274 |
|
| 3275 |
* include/experimental/io_context: Remove name of unused |
| 3276 |
parameter. |
| 3277 |
* include/experimental/socket: Add [[maybe_unused]] attribute. |
| 3278 |
|
| 3279 |
2024-08-28 Jonathan Wakely <[email protected]> |
| 3280 |
|
| 3281 |
* include/std/format (format_parse_context::check_dynamic_spec): |
| 3282 |
Add [[maybe_unused]] attribute and comment. |
| 3283 |
|
| 3284 |
2024-08-28 Jonathan Wakely <[email protected]> |
| 3285 |
|
| 3286 |
* include/std/ranges (to): Remove unused typedef. |
| 3287 |
|
| 3288 |
2024-08-28 Kim Gräsman <[email protected]> |
| 3289 |
|
| 3290 |
* config/cpu/aarch64/opt/ext/opt_random.h: Improve doxygen file |
| 3291 |
docs. |
| 3292 |
* config/cpu/i486/opt/ext/opt_random.h: Likewise. |
| 3293 |
|
| 3294 |
2024-08-28 Kim Gräsman <[email protected]> |
| 3295 |
|
| 3296 |
* include/bits/cpp_type_traits.h: Improve doxygen file docs. |
| 3297 |
|
| 3298 |
2024-08-28 Jason Merrill <[email protected]> |
| 3299 |
|
| 3300 |
* include/std/istream: Add cast to avoid -Wsign-compare. |
| 3301 |
* include/std/stacktrace: Likewise. |
| 3302 |
|
| 3303 |
2024-08-28 Jason Merrill <[email protected]> |
| 3304 |
|
| 3305 |
* testsuite/20_util/default_delete/void_neg.cc: Fix regexp quoting. |
| 3306 |
|
| 3307 |
2024-08-28 Jason Merrill <[email protected]> |
| 3308 |
|
| 3309 |
* include/std/coroutine (coroutine_handle): Use nullptr instead of |
| 3310 |
0 as initializer for _M_fr_ptr. |
| 3311 |
|
| 3312 |
2024-08-28 Jason Merrill <[email protected]> |
| 3313 |
|
| 3314 |
* include/bits/stl_uninitialized.h (__uninitialized_move_copy): Add |
| 3315 |
missing return. |
| 3316 |
|
| 3317 |
2024-08-28 Jason Merrill <[email protected]> |
| 3318 |
|
| 3319 |
* include/decimal/decimal.h (_DEFINE_DECIMAL_BINARY_OP_WITH_INT): |
| 3320 |
Remove redundant semicolons. |
| 3321 |
|
| 3322 |
2024-08-27 Jonathan Wakely <[email protected]> |
| 3323 |
|
| 3324 |
PR libstdc++/115098 |
| 3325 |
* python/libstdcxx/v6/printers.py (StdBitReferencePrinter): Add |
| 3326 |
comment. |
| 3327 |
* testsuite/libstdc++-prettyprinters/simple.cc: Do not default |
| 3328 |
construct std::vector<bool>::reference. |
| 3329 |
* testsuite/libstdc++-prettyprinters/simple11.cc: Likewise. |
| 3330 |
|
| 3331 |
2024-08-23 Jonathan Wakely <[email protected]> |
| 3332 |
|
| 3333 |
* doc/xml/manual/documentation_hacking.xml: Update minimum |
| 3334 |
Doxygen version. |
| 3335 |
* doc/html/*: Regenerate. |
| 3336 |
|
| 3337 |
2024-08-23 Jonathan Wakely <[email protected]> |
| 3338 |
|
| 3339 |
* include/std/tuple: Do not include implementation details in |
| 3340 |
Doxygen documentation. |
| 3341 |
|
| 3342 |
2024-08-23 Jonathan Wakely <[email protected]> |
| 3343 |
|
| 3344 |
* include/bits/alloc_traits.h: Improve doxygen docs for |
| 3345 |
allocator_traits specializations. |
| 3346 |
* include/bits/memory_resource.h: Likewise. |
| 3347 |
|
| 3348 |
2024-08-23 Jonathan Wakely <[email protected]> |
| 3349 |
|
| 3350 |
* include/std/optional (__is_derived_from_optional): New |
| 3351 |
concept. |
| 3352 |
(operator<=>): Use __is_derived_from_optional. |
| 3353 |
* testsuite/20_util/optional/relops/lwg3746.cc: New test. |
| 3354 |
|
| 3355 |
2024-08-23 Jonathan Wakely <[email protected]> |
| 3356 |
|
| 3357 |
* include/bits/locale_classes.tcc (__try_use_facet): Also avoid |
| 3358 |
dynamic_cast for const-qualified facet types. |
| 3359 |
|
| 3360 |
2024-08-23 Jonathan Wakely <[email protected]> |
| 3361 |
|
| 3362 |
PR libstdc++/108619 |
| 3363 |
* include/bits/alloc_traits.h (__allocator_traits_base): Add |
| 3364 |
variable templates for detecting which allocator operations are |
| 3365 |
supported. |
| 3366 |
(allocator_traits): Use 'if constexpr' instead of dispatching to |
| 3367 |
overloads constrained with enable_if. |
| 3368 |
(allocator_traits<allocator<T>>::construct): Use Construct if |
| 3369 |
construct_at is not supported. Use |
| 3370 |
__is_nothrow_new_constructible for noexcept-specifier. |
| 3371 |
(allocator_traits<allocator<void>>::construct): Use |
| 3372 |
__is_nothrow_new_constructible for noexcept-specifier. |
| 3373 |
* include/bits/new_allocator.h (construct): Likewise. |
| 3374 |
* include/ext/malloc_allocator.h (construct): Likewise. |
| 3375 |
* include/std/type_traits (__is_nothrow_new_constructible): New |
| 3376 |
variable template. |
| 3377 |
* testsuite/20_util/allocator/89510.cc: Adjust expected results. |
| 3378 |
* testsuite/ext/malloc_allocator/89510.cc: Likewise. |
| 3379 |
* testsuite/ext/new_allocator/89510.cc: Likewise. |
| 3380 |
* testsuite/20_util/allocator_traits/members/108619.cc: New test. |
| 3381 |
|
| 3382 |
2024-08-23 Jonathan Wakely <[email protected]> |
| 3383 |
|
| 3384 |
* include/bits/chrono_io.h (__formatter_chrono::_M_C_y_Y): |
| 3385 |
Ignore modifiers unless the formatting locale is not the C |
| 3386 |
locale. |
| 3387 |
(__formatter_chrono::_M_d_e): Likewise. |
| 3388 |
(__formatter_chrono::_M_H_I): Likewise. |
| 3389 |
(__formatter_chrono::_M_m): Likewise. |
| 3390 |
(__formatter_chrono::_M_M): Likewise. |
| 3391 |
(__formatter_chrono::_M_S): Likewise. |
| 3392 |
(__formatter_chrono::_M_u_w): Likewise. |
| 3393 |
(__formatter_chrono::_M_U_V_W): Likewise. |
| 3394 |
|
| 3395 |
2024-08-23 Jonathan Wakely <[email protected]> |
| 3396 |
|
| 3397 |
PR libstdc++/115939 |
| 3398 |
* include/bits/hashtable_policy.h (_Node_iterator): Add |
| 3399 |
operator== and operator!=. |
| 3400 |
(_Node_const_iterator): Likewise. |
| 3401 |
* testsuite/23_containers/unordered_map/115939.cc: New test. |
| 3402 |
|
| 3403 |
2024-08-23 Giovanni Bajo <[email protected]> |
| 3404 |
Jonathan Wakely <[email protected]> |
| 3405 |
|
| 3406 |
PR libstdc++/88935 |
| 3407 |
* include/bits/stl_algo.h (random_shuffle) [RAND_MAX < INT_MAX]: |
| 3408 |
Use xorshift instead of rand(). |
| 3409 |
* testsuite/25_algorithms/random_shuffle/88935.cc: New test. |
| 3410 |
|
| 3411 |
2024-08-23 Jonathan Wakely <[email protected]> |
| 3412 |
|
| 3413 |
PR c++/116369 |
| 3414 |
* include/debug/safe_base.h (_Safe_sequence_base::_M_iterators): |
| 3415 |
Add mutable specifier. |
| 3416 |
(_Safe_sequence_base::_M_const_iterators): Likewise. |
| 3417 |
|
| 3418 |
2024-08-23 Jonathan Wakely <[email protected]> |
| 3419 |
|
| 3420 |
* src/c++11/debug.cc: Replace throw() with noexcept. |
| 3421 |
|
| 3422 |
2024-08-23 Jonathan Wakely <[email protected]> |
| 3423 |
|
| 3424 |
* include/std/variant [C++20] (_Uninitialized): Always use the |
| 3425 |
primary template. |
| 3426 |
[C++20] (__get_n): Access the _M_storage member directly. |
| 3427 |
|
| 3428 |
2024-08-23 Jonathan Wakely <[email protected]> |
| 3429 |
|
| 3430 |
PR libstdc++/115098 |
| 3431 |
* include/bits/stl_bvector.h (_Bit_reference): Make default |
| 3432 |
constructor private. Declare vector and bit iterators as |
| 3433 |
friends. |
| 3434 |
* include/std/bitset (bitset::reference): Make constructor and |
| 3435 |
data members private. |
| 3436 |
* testsuite/20_util/bitset/115098.cc: New test. |
| 3437 |
* testsuite/23_containers/vector/bool/115098.cc: New test. |
| 3438 |
|
| 3439 |
2024-08-22 Patrick Palka <[email protected]> |
| 3440 |
|
| 3441 |
* testsuite/25_algorithms/contains/1.cc: Verify value of |
| 3442 |
__cpp_lib_ranges_contains. |
| 3443 |
* testsuite/25_algorithms/find_last/1.cc: Verify value of |
| 3444 |
__cpp_lib_ranges_find_last. |
| 3445 |
* testsuite/26_numerics/iota/2.cc: Verify value of |
| 3446 |
__cpp_lib_ranges_iota. |
| 3447 |
|
| 3448 |
2024-08-22 Patrick Palka <[email protected]> |
| 3449 |
|
| 3450 |
* include/bits/iterator_concepts.h (__detail::__projected): Define |
| 3451 |
an optimized partial specialization for when the projection is |
| 3452 |
std::identity. |
| 3453 |
* testsuite/24_iterators/indirect_callable/projected.cc: Verify the |
| 3454 |
optimization. |
| 3455 |
|
| 3456 |
2024-08-22 Patrick Palka <[email protected]> |
| 3457 |
|
| 3458 |
* include/bits/iterator_concepts.h (indirectly_unary_invocable): |
| 3459 |
Relax as per P2997R1. |
| 3460 |
(indirectly_regular_unary_invocable): Likewise. |
| 3461 |
(indirect_unary_predicate): Likewise. |
| 3462 |
(indirect_binary_predicate): Likewise. |
| 3463 |
(indirect_equivalence_relation): Likewise. |
| 3464 |
(indirect_strict_weak_order): Likewise. |
| 3465 |
* include/bits/version.def (ranges): Update value for C++26. |
| 3466 |
* include/bits/version.h: Regenerate. |
| 3467 |
* testsuite/24_iterators/indirect_callable/p2997r1.cc: New test. |
| 3468 |
* testsuite/std/ranges/version_c++23.cc: Remove. |
| 3469 |
* testsuite/std/ranges/headers/ranges/synopsis.cc: Refine the |
| 3470 |
__cpp_lib_ranges checks. |
| 3471 |
|
| 3472 |
2024-08-22 Patrick Palka <[email protected]> |
| 3473 |
|
| 3474 |
* include/bits/iterator_concepts.h (__detail::__indirect_value): |
| 3475 |
Define. |
| 3476 |
(__indirect_value_t): Define as per P2609R3. |
| 3477 |
(iter_common_reference_t): Adjust as per P2609R3. |
| 3478 |
(indirectly_unary_invocable): Likewise. |
| 3479 |
(indirectly_regular_unary_invocable): Likewise. |
| 3480 |
(indirect_unary_predicate): Likewise. |
| 3481 |
(indirect_binary_predicate): Likewise. |
| 3482 |
(indirect_equivalence_relation): Likewise. |
| 3483 |
(indirect_strict_weak_order): Likewise. |
| 3484 |
(__detail::__projected::__type): Define member aliases |
| 3485 |
__projected_Iter and __projected_Proj providing the |
| 3486 |
template arguments of the current specialization. |
| 3487 |
* include/bits/version.def (ranges): Update value. |
| 3488 |
* include/bits/version.h: Regenerate. |
| 3489 |
* testsuite/24_iterators/indirect_callable/p2609r3.cc: New test. |
| 3490 |
* testsuite/std/ranges/version_c++23.cc: Update expected value |
| 3491 |
of __cpp_lib_ranges macro. |
| 3492 |
|
| 3493 |
2024-08-21 Jonathan Wakely <[email protected]> |
| 3494 |
|
| 3495 |
PR tree-optimization/102958 |
| 3496 |
* include/bits/char_traits.h (char_traits<char8_t>::length): Use |
| 3497 |
strlen. |
| 3498 |
|
| 3499 |
2024-08-21 Jonathan Wakely <[email protected]> |
| 3500 |
|
| 3501 |
PR libstdc++/114862 |
| 3502 |
* src/c++98/locale_facets.cc (__num_base::_S_format_float): |
| 3503 |
Check uppercase flag for fixed format. |
| 3504 |
* testsuite/22_locale/num_put/put/char/lwg4084.cc: New test. |
| 3505 |
|
| 3506 |
2024-08-21 Jonathan Wakely <[email protected]> |
| 3507 |
|
| 3508 |
PR libstdc++/116381 |
| 3509 |
* include/std/variant (variant): Fix conditions for |
| 3510 |
static_assert to match the spec. |
| 3511 |
* testsuite/20_util/variant/types_neg.cc: New test. |
| 3512 |
|
| 3513 |
2024-08-20 Jonathan Wakely <[email protected]> |
| 3514 |
|
| 3515 |
* include/std/optional: Remove redundant redeclaration. |
| 3516 |
|
| 3517 |
2024-08-20 Jonathan Wakely <[email protected]> |
| 3518 |
|
| 3519 |
* include/std/text_encoding: Fix indentation. |
| 3520 |
|
| 3521 |
2024-08-20 Jonathan Wakely <[email protected]> |
| 3522 |
|
| 3523 |
PR libstdc++/115744 |
| 3524 |
* testsuite/18_support/headers/new/synopsis.cc [C++26]: Add |
| 3525 |
constexpr to placement operator new and operator new[]. |
| 3526 |
|
| 3527 |
2024-08-18 Gerald Pfeifer <[email protected]> |
| 3528 |
|
| 3529 |
* doc/xml/manual/prerequisites.xml: Remove note from the |
| 3530 |
GCC 4.0.1 days. |
| 3531 |
* doc/html/manual/setup.html: Regenerate. |
| 3532 |
|
| 3533 |
2024-08-17 Gerald Pfeifer <[email protected]> |
| 3534 |
|
| 3535 |
* doc/xml/manual/abi.xml: Update reference to |
| 3536 |
gcc.gnu.org/onlinedocs. |
| 3537 |
* doc/xml/manual/concurrency_extensions.xml (interface): Ditto. |
| 3538 |
* doc/xml/manual/extensions.xml: Ditto. |
| 3539 |
* doc/xml/manual/parallel_mode.xml: Ditto. |
| 3540 |
* doc/xml/manual/shared_ptr.xml: Ditto. |
| 3541 |
* doc/xml/manual/using_exceptions.xml: Ditto. And change GNU GCC |
| 3542 |
to GCC. |
| 3543 |
* doc/html/manual/abi.html: Regenerate. |
| 3544 |
* doc/html/manual/ext_concurrency_impl.html: Ditto. |
| 3545 |
* doc/html/manual/ext_demangling.html: Ditto. |
| 3546 |
* doc/html/manual/memory.html: Ditto. |
| 3547 |
* doc/html/manual/parallel_mode_design.html: Ditto. |
| 3548 |
* doc/html/manual/parallel_mode_using.html: Ditto. |
| 3549 |
* doc/html/manual/using_exceptions.html: Ditto. |
| 3550 |
|
| 3551 |
2024-08-17 Gerald Pfeifer <[email protected]> |
| 3552 |
|
| 3553 |
* doc/xml/manual/prerequisites.xml: Tweak two links to |
| 3554 |
installation docs. Fix grammar. |
| 3555 |
* doc/html/manual/setup.html: Regenerate. |
| 3556 |
|
| 3557 |
2024-08-16 Hans-Peter Nilsson <[email protected]> |
| 3558 |
|
| 3559 |
PR libstdc++/116362 |
| 3560 |
* configure.ac: Check newlib configuration whether iconv is enabled. |
| 3561 |
* configure: Regenerate. |
| 3562 |
|
| 3563 |
2024-08-16 Hans-Peter Nilsson <[email protected]> |
| 3564 |
|
| 3565 |
* testsuite/lib/prune.exp (libstdc++-dg-prune): Prune |
| 3566 |
uncapitalized "in function" warning from linker. |
| 3567 |
|
| 3568 |
2024-08-08 Jakub Jelinek <[email protected]> |
| 3569 |
|
| 3570 |
PR c++/115744 |
| 3571 |
* libsupc++/new (__glibcxx_want_constexpr_new): Define before |
| 3572 |
including bits/version.h. |
| 3573 |
(_GLIBCXX_PLACEMENT_CONSTEXPR): Define. |
| 3574 |
(operator new, operator new[]): Use it for placement new instead |
| 3575 |
of inline. |
| 3576 |
* include/bits/version.def (constexpr_new): New FTM. |
| 3577 |
* include/bits/version.h: Regenerate. |
| 3578 |
|
| 3579 |
2024-08-06 Jonathan Wakely <[email protected]> |
| 3580 |
|
| 3581 |
PR libstdc++/116247 |
| 3582 |
* include/bits/fs_path.h: Use __UINTPTR_TYPE__ instead of |
| 3583 |
uintptr_t. |
| 3584 |
* include/bits/shared_ptr_atomic.h: Likewise. |
| 3585 |
* include/ext/pointer.h: Include <stdint.h>. |
| 3586 |
|
| 3587 |
2024-08-03 Patrick Palka <[email protected]> |
| 3588 |
|
| 3589 |
* include/bits/move.h (__like_impl): New metafunction. |
| 3590 |
(__like_t): Redefine in terms of __like_impl. |
| 3591 |
(forward_like): Redefine in terms of __like_t. |
| 3592 |
* testsuite/20_util/forward_like/2_neg.cc: Don't expect |
| 3593 |
error outside the immediate context anymore. |
| 3594 |
|
| 3595 |
2024-08-02 Jonathan Wakely <[email protected]> |
| 3596 |
|
| 3597 |
* testsuite/libstdc++-prettyprinters/shared_ptr.cc: Include |
| 3598 |
<cstdint>. |
| 3599 |
|
| 3600 |
2024-08-01 Jonathan Wakely <[email protected]> |
| 3601 |
|
| 3602 |
* include/bits/utility.h (__is_in_place_type): Remove. |
| 3603 |
* include/std/variant (__is_in_place_tag): Remove. |
| 3604 |
|
| 3605 |
2024-08-01 Jonathan Wakely <[email protected]> |
| 3606 |
|
| 3607 |
* include/bits/align.h (align, assume_aligned): Use |
| 3608 |
__UINTPTR_TYPE__ instead of uintptr_t. Do not include |
| 3609 |
<stdint.h>. |
| 3610 |
* include/bits/atomic_base.h (__atomic_ref): Likewise. |
| 3611 |
* include/bits/atomic_wait.h (__waiter_pool_base::_S_for): |
| 3612 |
Likewise. |
| 3613 |
* include/std/atomic: Include <cstdint>. |
| 3614 |
|
| 3615 |
2024-08-01 Jonathan Wakely <[email protected]> |
| 3616 |
|
| 3617 |
* include/bits/atomic_base.h (__atomic_impl::compare_exchange_weak): |
| 3618 |
Remove unused parameter. |
| 3619 |
(__atomic_impl::compare_exchange_strong): Likewise. |
| 3620 |
|
| 3621 |
2024-08-01 Jonathan Wakely <[email protected]> |
| 3622 |
|
| 3623 |
PR libstdc++/113807 |
| 3624 |
* include/std/bitset (bitset::_M_is_equal()): Use memcmp to |
| 3625 |
optimize operator==. |
| 3626 |
|
| 3627 |
2024-08-01 Jonathan Wakely <[email protected]> |
| 3628 |
|
| 3629 |
* testsuite/26_numerics/random/discrete_distribution/operators/values.cc: |
| 3630 |
Use ARGS to limit number of iterations for simulators. |
| 3631 |
|
| 3632 |
2024-08-01 Jonathan Wakely <[email protected]> |
| 3633 |
|
| 3634 |
PR libstdc++/113841 |
| 3635 |
* include/bits/basic_string.h (basic_string::basic_string()): |
| 3636 |
Constrain so that it's only present if the allocator is default |
| 3637 |
constructible. |
| 3638 |
* include/bits/cow_string.h (basic_string::basic_string()): |
| 3639 |
Likewise. |
| 3640 |
* testsuite/21_strings/basic_string/cons/113841.cc: New test. |
| 3641 |
|
| 3642 |
2024-08-01 Jonathan Wakely <[email protected]> |
| 3643 |
|
| 3644 |
PR libstdc++/99942 |
| 3645 |
* include/bits/cow_string.h (data()): Change to noexcept(false). |
| 3646 |
|
| 3647 |
2024-08-01 Jonathan Wakely <[email protected]> |
| 3648 |
|
| 3649 |
* testsuite/23_containers/map/operators/1_neg.cc (test01): Remove test variable |
| 3650 |
and use 'no match' dg-error patter. |
| 3651 |
* testsuite/23_containers/set/operators/1_neg.cc (test01): Likewise. |
| 3652 |
|
| 3653 |
2024-07-31 François Dumont <[email protected]> |
| 3654 |
|
| 3655 |
* testsuite/23_containers/map/operators/1_neg.cc (test01): Add test variable |
| 3656 |
declaration. |
| 3657 |
* testsuite/23_containers/set/operators/1_neg.cc (test01): Likewise. |
| 3658 |
|
| 3659 |
2024-07-31 Jonathan Wakely <[email protected]> |
| 3660 |
|
| 3661 |
* src/c++20/format.cc [!_GLIBCXX_HAS_GTHREADS] (mutex): Define |
| 3662 |
dummy mutex type. |
| 3663 |
* testsuite/std/time/format_localized.cc: Use loop variable |
| 3664 |
instead of creating the same locale on every iteration. |
| 3665 |
|
| 3666 |
2024-07-31 Sam James <[email protected]> |
| 3667 |
|
| 3668 |
* testsuite/28_regex/traits/char/translate.cc: Drop bogus 'dg_do run'. |
| 3669 |
|
| 3670 |
2024-07-31 Jonathan Wakely <[email protected]> |
| 3671 |
|
| 3672 |
* src/c++11/system_error.cc (strerror_string): Handle |
| 3673 |
non-conforming NULL return from strerror. |
| 3674 |
|
| 3675 |
2024-07-31 Jonathan Wakely <[email protected]> |
| 3676 |
|
| 3677 |
* testsuite/lib/libstdc++.exp (check_v3_target_namedlocale): |
| 3678 |
Only append "@euro" to ".ISO8859-15" locales for Glibc. |
| 3679 |
|
| 3680 |
2024-07-31 Jonathan Wakely <[email protected]> |
| 3681 |
|
| 3682 |
* include/bits/version.def (format): Update value for C++26. |
| 3683 |
* include/bits/version.h: Regenerate. |
| 3684 |
* include/std/format (runtime_format, wruntime_format): Check |
| 3685 |
__cpp_lib_format instead of __cplusplus. |
| 3686 |
* testsuite/std/format/functions/format.cc: Update expected |
| 3687 |
value of macro for C++26 mode. |
| 3688 |
|
| 3689 |
2024-07-31 Jonathan Wakely <[email protected]> |
| 3690 |
|
| 3691 |
PR libstdc++/110356 |
| 3692 |
* include/bits/c++config (_GLIBCXX26_DEPRECATED): Define. |
| 3693 |
(_GLIBCXX26_DEPRECATED_SUGGEST): Define. |
| 3694 |
* include/bits/version.def (format): Update for C++26. |
| 3695 |
* include/bits/version.h: Regenerate. |
| 3696 |
* include/std/format (basic_format_arg::visit): New member |
| 3697 |
functions. |
| 3698 |
(visit_format_arg): Add deprecated attribute. |
| 3699 |
* testsuite/std/format/arguments/args.cc: Expect deprecated |
| 3700 |
warnings. Check member visit. |
| 3701 |
* testsuite/std/format/functions/format.cc: Update expected |
| 3702 |
value for __cpp_lib_format macro. |
| 3703 |
* testsuite/std/format/parse_ctx.cc: Add dg-warning for |
| 3704 |
deprecation. |
| 3705 |
|
| 3706 |
2024-07-31 Jonathan Wakely <[email protected]> |
| 3707 |
|
| 3708 |
PR libstdc++/110356 |
| 3709 |
* include/bits/version.def (variant): Update for C++26. |
| 3710 |
* include/bits/version.h: Regenerate. |
| 3711 |
* include/std/variant (variant::visit): New member functions. |
| 3712 |
* testsuite/20_util/variant/visit.cc: Check second alternative. |
| 3713 |
* testsuite/20_util/variant/visit_member.cc: New test. |
| 3714 |
|
| 3715 |
2024-07-31 Jonathan Wakely <[email protected]> |
| 3716 |
|
| 3717 |
PR libstdc++/115776 |
| 3718 |
* include/bits/version.def (format): Update for C++26. |
| 3719 |
* include/bits/version.h: Regenerate. |
| 3720 |
* include/std/format (basic_format_parse_context): Remove |
| 3721 |
default argument from constructor and split into two |
| 3722 |
constructors. Make the constructor taking size_t private for |
| 3723 |
C++26 and later. |
| 3724 |
(basic_format_parse_context::check_dynamic_spec): New member |
| 3725 |
function template. |
| 3726 |
(basic_format_parse_context::check_dynamic_spec_integral): New |
| 3727 |
member function. |
| 3728 |
(basic_format_parse_context::check_dynamic_spec_string): |
| 3729 |
Likewise. |
| 3730 |
(__format::_Spec::_S_parse_width_or_precision): Use |
| 3731 |
check_dynamic_spec_integral. |
| 3732 |
(__format::__to_arg_t_enum): New helper function. |
| 3733 |
(basic_format_arg): Declare __to_arg_t_enum as friend. |
| 3734 |
(__format::_Scanner): Define and use a derived parse context |
| 3735 |
type. |
| 3736 |
(__format::_Checking_scanner): Make arg types available to parse |
| 3737 |
context. |
| 3738 |
* testsuite/std/format/functions/format.cc: Check for new values |
| 3739 |
of __cpp_lib_format macro. |
| 3740 |
* testsuite/std/format/parse_ctx.cc: Check all members of |
| 3741 |
basic_format_parse_context. |
| 3742 |
* testsuite/std/format/parse_ctx_neg.cc: New test. |
| 3743 |
* testsuite/std/format/string.cc: Add more checks for dynamic |
| 3744 |
width and precision args. |
| 3745 |
|
| 3746 |
2024-07-31 Jonathan Wakely <[email protected]> |
| 3747 |
|
| 3748 |
* include/bits/version.def (format): Update value for P2510R3. |
| 3749 |
* include/bits/version.h: Regenerate. |
| 3750 |
* include/std/format (_GLIBCXX_P2518R3): Remove misspelled macro |
| 3751 |
and check __glibcxx_format instead. |
| 3752 |
* testsuite/std/format/functions/format.cc: Check value of the |
| 3753 |
__cpp_lib_format macro for formatting pointers support. |
| 3754 |
* testsuite/std/format/parse_ctx.cc: Likewise. |
| 3755 |
|
| 3756 |
2024-07-31 Jonathan Wakely <[email protected]> |
| 3757 |
|
| 3758 |
PR libstdc++/109162 |
| 3759 |
* acinclude.m4 (libtool_VERSION): Update to 6:34:0. |
| 3760 |
* config/abi/pre/gnu.ver: Disambiguate old patters. Add new |
| 3761 |
GLIBCXX_3.4.34 symbol version and new exports. |
| 3762 |
* configure: Regenerate. |
| 3763 |
* include/bits/chrono_io.h (_ChronoSpec::_M_locale_specific): |
| 3764 |
Add new accessor functions to use a reserved bit in _Spec. |
| 3765 |
(__formatter_chrono::_M_parse): Use _M_locale_specific(true) |
| 3766 |
when chrono-specs contains locale-dependent conversion |
| 3767 |
specifiers. |
| 3768 |
(__formatter_chrono::_M_format): Open iconv descriptor if |
| 3769 |
conversion to UTF-8 will be needed. |
| 3770 |
(__formatter_chrono::_M_write): New function to write a |
| 3771 |
localized string with possible character conversion. |
| 3772 |
(__formatter_chrono::_M_a_A, __formatter_chrono::_M_b_B) |
| 3773 |
(__formatter_chrono::_M_p, __formatter_chrono::_M_r) |
| 3774 |
(__formatter_chrono::_M_x, __formatter_chrono::_M_X) |
| 3775 |
(__formatter_chrono::_M_locale_fmt): Use _M_write. |
| 3776 |
* include/bits/version.def (format): Update value. |
| 3777 |
* include/bits/version.h: Regenerate. |
| 3778 |
* include/std/format (_GLIBCXX_P2518R3): Check feature test |
| 3779 |
macro instead of __cplusplus. |
| 3780 |
(basic_format_context): Declare __formatter_chrono as friend. |
| 3781 |
* src/c++20/Makefile.am: Add new file. |
| 3782 |
* src/c++20/Makefile.in: Regenerate. |
| 3783 |
* src/c++20/format.cc: New file. |
| 3784 |
* testsuite/std/time/format_localized.cc: New test. |
| 3785 |
* testsuite/util/testsuite_abi.cc: Add new symbol version. |
| 3786 |
|
| 3787 |
2024-07-30 Jonathan Wakely <[email protected]> |
| 3788 |
|
| 3789 |
* include/bits/chrono_io.h (__local_time_fmt_for): New alias |
| 3790 |
template. |
| 3791 |
(formatter<zoned_time<D, P>>): Use __local_time_fmt_for. |
| 3792 |
* testsuite/std/time/zoned_time/io.cc: Check zoned_time<minutes> |
| 3793 |
can be formatted. |
| 3794 |
|
| 3795 |
2024-07-30 Jonathan Wakely <[email protected]> |
| 3796 |
|
| 3797 |
* include/bits/chrono_io.h (__local_fmt_t): Remove unused |
| 3798 |
declaration. |
| 3799 |
(__formatter_chrono::_M_format_to_ostream): Add explicit |
| 3800 |
handling for specializations of __local_time_fmt, including the |
| 3801 |
time zone abbreviation in the output if __is_neg is true. |
| 3802 |
(formatter<chrono::tai_time<D>>::format): Add comment. |
| 3803 |
(formatter<chrono::gps_time<D>>::format): Likewise. |
| 3804 |
(formatter<chrono::__detail::__local_time_fmt::format): Call |
| 3805 |
_M_format with true for the __is_neg flag. |
| 3806 |
* testsuite/std/time/clock/gps/io.cc: Remove unused variable. |
| 3807 |
* testsuite/std/time/clock/local/io.cc: Fix test error that |
| 3808 |
checked tai_time instead of local_time. Add tests for |
| 3809 |
local-time-format-t formatting. |
| 3810 |
* testsuite/std/time/clock/system/io.cc: Check empty |
| 3811 |
chrono-specs. |
| 3812 |
* testsuite/std/time/clock/tai/io.cc: Likewise. |
| 3813 |
* testsuite/std/time/zoned_time/io.cc: Likewise. |
| 3814 |
|
| 3815 |
2024-07-30 Jonathan Wakely <[email protected]> |
| 3816 |
|
| 3817 |
* include/std/expected (expected(U&&), operator=(U&&)) |
| 3818 |
(value_or): Use remove_cv_t on default template argument, as per |
| 3819 |
LWG 3886. |
| 3820 |
* include/std/optional (optional(U&&), operator=(U&&)) |
| 3821 |
(value_or): Likewise. |
| 3822 |
* testsuite/20_util/expected/lwg3886.cc: New test. |
| 3823 |
* testsuite/20_util/optional/cons/lwg3886.cc: New test. |
| 3824 |
|
| 3825 |
2024-07-30 Jonathan Wakely <[email protected]> |
| 3826 |
|
| 3827 |
* src/c++17/fs_ops.cc: Fix file name in comment. |
| 3828 |
|
| 3829 |
2024-07-30 Jonathan Wakely <[email protected]> |
| 3830 |
|
| 3831 |
* src/c++17/fs_ops.cc (auto_win_file_handle): Change constructor |
| 3832 |
parameter from const path& to const wchar_t*. |
| 3833 |
(fs::equiv_files): New function. |
| 3834 |
(fs::equivalent): Use equiv_files. |
| 3835 |
* src/filesystem/ops-common.h (fs::equiv_files): Declare. |
| 3836 |
(do_copy_file): Use equiv_files. |
| 3837 |
* src/filesystem/ops.cc (fs::equiv_files): Define. |
| 3838 |
(fs::copy, fs::equivalent): Use equiv_files. |
| 3839 |
* testsuite/27_io/filesystem/operations/copy.cc: Test |
| 3840 |
overwriting directory contents recursively. |
| 3841 |
* testsuite/27_io/filesystem/operations/copy_file.cc: Test |
| 3842 |
overwriting existing files. |
| 3843 |
|
| 3844 |
2024-07-30 Lennox Shou Hao Ho <[email protected]> |
| 3845 |
|
| 3846 |
PR libstdc++/113663 |
| 3847 |
* src/c++17/fs_ops.cc (fs::equivalent): Moved helper class |
| 3848 |
auto_handle to anonymous namespace as auto_win_file_handle. |
| 3849 |
(fs::hard_link_count): Changed Windows implementation to use |
| 3850 |
information provided by GetFileInformationByHandle which is more |
| 3851 |
reliable. |
| 3852 |
* testsuite/27_io/filesystem/operations/hard_link_count.cc: New |
| 3853 |
test. |
| 3854 |
|
| 3855 |
2024-07-29 Thomas Schwinge <[email protected]> |
| 3856 |
|
| 3857 |
* testsuite/lib/libstdc++.exp (file-io-diff): Polish. |
| 3858 |
|
| 3859 |
2024-07-28 Sam James <[email protected]> |
| 3860 |
|
| 3861 |
PR libstdc++/110572 |
| 3862 |
* testsuite/18_support/type_info/110572.cc: Fix dg-do directive order. |
| 3863 |
|
| 3864 |
2024-07-27 Jonathan Wakely <[email protected]> |
| 3865 |
|
| 3866 |
* include/std/charconv (__to_chars_16, __to_chars_10) |
| 3867 |
(__to_chars_8, __to_chars_2, __to_chars): Cast ptrdiff_t to |
| 3868 |
size_t for comparison. |
| 3869 |
(__to_chars_i): Check for first >= last instead of first == last |
| 3870 |
for initial sanity check. |
| 3871 |
|
| 3872 |
2024-07-27 Jonathan Wakely <[email protected]> |
| 3873 |
|
| 3874 |
* include/bits/std_function.h: Add comment about LWG 3617 being |
| 3875 |
supported. |
| 3876 |
|
| 3877 |
2024-07-27 Jonathan Wakely <[email protected]> |
| 3878 |
|
| 3879 |
* include/bits/stl_algobase.h (__find_if): Remove overloads for |
| 3880 |
dispatching on iterator_category. Do not unroll loop manually. |
| 3881 |
* include/bits/stl_algo.h (__find_if_not): Remove |
| 3882 |
iterator_category argument from __find_if call. |
| 3883 |
|
| 3884 |
2024-07-25 Jonathan Wakely <[email protected]> |
| 3885 |
|
| 3886 |
* include/std/expected (expected::value): Add assertions for LWG |
| 3887 |
3843 requirements. |
| 3888 |
(expected<cv void, E>::value): Add assertions for LWG 3940 |
| 3889 |
requirements. |
| 3890 |
|
| 3891 |
2024-07-25 Jonathan Wakely <[email protected]> |
| 3892 |
|
| 3893 |
* include/std/format (basic_format_args): Remove default |
| 3894 |
constructor, as per LWG 4106. |
| 3895 |
* testsuite/std/format/arguments/args.cc: Check it isn't default |
| 3896 |
constructible. |
| 3897 |
|
| 3898 |
2024-07-25 Jonathan Wakely <[email protected]> |
| 3899 |
|
| 3900 |
* include/bits/utility.h (_Swallow_assign): Make assignment |
| 3901 |
constexpr for C++11 as well, and add noexcept. |
| 3902 |
* include/std/tuple (_Swallow_assign, ignore): Move to |
| 3903 |
bits/utility.h. |
| 3904 |
* testsuite/20_util/headers/utility/ignore.cc: New test. |
| 3905 |
|
| 3906 |
2024-07-25 Jonathan Wakely <[email protected]> |
| 3907 |
|
| 3908 |
* include/std/optional: Reorder parameters in comparison |
| 3909 |
operators as per LWG 2945. |
| 3910 |
|
| 3911 |
2024-07-25 Patrick Palka <[email protected]> |
| 3912 |
|
| 3913 |
PR libstdc++/116038 |
| 3914 |
* include/std/functional (_Bind_front::operator()): Use __like_t |
| 3915 |
instead of std::forward when forwarding __self. |
| 3916 |
(_Bind_back::operator()): Likewise. |
| 3917 |
* include/std/ranges (_Partial::operator()): Likewise. |
| 3918 |
(_Pipe::operator()): Likewise. |
| 3919 |
* testsuite/20_util/function_objects/bind_back/116038.cc: New test. |
| 3920 |
* testsuite/20_util/function_objects/bind_front/116038.cc: New test. |
| 3921 |
* testsuite/std/ranges/adaptors/116038.cc: New test. |
| 3922 |
|
| 3923 |
2024-07-25 Jonathan Wakely <[email protected]> |
| 3924 |
|
| 3925 |
* include/std/expected (bad_expected_access<void>): Add noexcept |
| 3926 |
to special member functions, as per LWG 4031. |
| 3927 |
* testsuite/20_util/expected/bad.cc: Check for nothrow copy and |
| 3928 |
move members. |
| 3929 |
|
| 3930 |
2024-07-25 Jonathan Wakely <[email protected]> |
| 3931 |
|
| 3932 |
* include/std/optional (optional): Use C++20 features to |
| 3933 |
simplify overload sets for constructors and assignment |
| 3934 |
operators. |
| 3935 |
|
| 3936 |
2024-07-25 Jonathan Wakely <[email protected]> |
| 3937 |
|
| 3938 |
* include/std/optional (optional): Constrain constructors to |
| 3939 |
prevent problematic bool conversions, as per LWG 3836. |
| 3940 |
* testsuite/20_util/optional/cons/lwg3836.cc: New test. |
| 3941 |
|
| 3942 |
2024-07-25 Jonathan Wakely <[email protected]> |
| 3943 |
|
| 3944 |
* include/std/expected (expected): Constrain constructors to |
| 3945 |
prevent problematic bool conversions, as per LWG 3836. |
| 3946 |
* testsuite/20_util/expected/lwg3836.cc: New test. |
| 3947 |
|
| 3948 |
2024-07-25 Jonathan Wakely <[email protected]> |
| 3949 |
|
| 3950 |
* include/std/optional (_Optional_payload_base::_Storage) |
| 3951 |
[C++20]: Define constrained non-trivial destructor. |
| 3952 |
(_Optional_payload_base::_Storage<U, false>) [C++20]: Do not |
| 3953 |
define partial specialization when primary template has |
| 3954 |
constrained destructor. |
| 3955 |
(_Optional_base) [C++20]: Define constrained trivial copy and |
| 3956 |
move cons and move constructors. Define payload accessors here |
| 3957 |
instead of inheriting them from _Optional_base_impl. |
| 3958 |
(_Optional_base_impl, _Optional_base<T, false, true>) |
| 3959 |
(_Optional_base<T, true, false>, _Optional_base<T, true, true>) |
| 3960 |
[C++20]: Do not define. |
| 3961 |
|
| 3962 |
2024-07-25 Jonathan Wakely <[email protected]> |
| 3963 |
|
| 3964 |
* include/std/optional (optional): Add using-declaraction for |
| 3965 |
_Base::_M_get and declare optional<U> as friend. |
| 3966 |
(optional(const optional<U>&)): Use |
| 3967 |
_M_get instead of operator*. |
| 3968 |
(optional(optional<U>&&)): Likewise. |
| 3969 |
(operator=(const optional<U>&)): Likewise. |
| 3970 |
(operator=(optional<U>&&)): Likewise. |
| 3971 |
(and_then, tansform): Likewise. |
| 3972 |
|
| 3973 |
2024-07-25 Jonathan Wakely <[email protected]> |
| 3974 |
|
| 3975 |
* include/std/optional (_Optional_base_impl::_M_get()): Move |
| 3976 |
assertions to ... |
| 3977 |
(optional::operator->, optional::operator*): ... here. |
| 3978 |
|
| 3979 |
2024-07-25 Andrew Pinski <[email protected]> |
| 3980 |
|
| 3981 |
* testsuite/lib/libstdc++.exp (v3_target_compile): Call |
| 3982 |
string trim on v3_target_compile before calling split. |
| 3983 |
|
| 3984 |
2024-07-24 Jonathan Wakely <[email protected]> |
| 3985 |
|
| 3986 |
PR libstdc++/116070 |
| 3987 |
* include/std/istream: Check feature test macro before using |
| 3988 |
is_class_v and is_same_v. |
| 3989 |
* include/std/ostream: Likewise. |
| 3990 |
|
| 3991 |
2024-07-24 Jonathan Wakely <[email protected]> |
| 3992 |
|
| 3993 |
PR libstdc++/116070 |
| 3994 |
* include/bits/stl_bvector.h: Check feature test macro before |
| 3995 |
using is_default_constructible_v. |
| 3996 |
|
| 3997 |
2024-07-24 Michael Levine <[email protected]> |
| 3998 |
|
| 3999 |
* include/bits/ranges_algobase.h: Remove duplicate include of |
| 4000 |
<bits/stl_algobase.h>. |
| 4001 |
|
| 4002 |
2024-07-24 Jonathan Wakely <[email protected]> |
| 4003 |
|
| 4004 |
PR libstdc++/12048 |
| 4005 |
* testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc: Move to... |
| 4006 |
* testsuite/ext/stdio_sync_filebuf/wchar_t/12048-1.cc: ...here. |
| 4007 |
* testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc: Move to... |
| 4008 |
* testsuite/ext/stdio_sync_filebuf/wchar_t/12048-2.cc: ...here. |
| 4009 |
* testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc: Move to... |
| 4010 |
* testsuite/ext/stdio_sync_filebuf/wchar_t/12048-3.cc: ...here. |
| 4011 |
* testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc: Move to... |
| 4012 |
* testsuite/ext/stdio_sync_filebuf/wchar_t/12048-4.cc: ...here. |
| 4013 |
|
| 4014 |
2024-07-24 Jonathan Wakely <[email protected]> |
| 4015 |
|
| 4016 |
* testsuite/lib/libstdc++.exp (libstdc++_init): Do not copy all |
| 4017 |
data files into test directory. |
| 4018 |
|
| 4019 |
2024-07-24 Jonathan Wakely <[email protected]> |
| 4020 |
|
| 4021 |
* testsuite/20_util/hash/chi2_q_document_words.cc: Use |
| 4022 |
dg-additional-files for input text. |
| 4023 |
* testsuite/performance/ext/pb_ds/all_text_find.cc: Likewise. |
| 4024 |
* testsuite/performance/ext/pb_ds/multimap_text_find.hpp: |
| 4025 |
Likewise. |
| 4026 |
* testsuite/performance/ext/pb_ds/multimap_text_insert.hpp: |
| 4027 |
Likewise. |
| 4028 |
* testsuite/performance/ext/pb_ds/multimap_text_insert_mem.hpp: |
| 4029 |
Likewise. |
| 4030 |
* testsuite/performance/ext/pb_ds/priority_queue_text_join.cc: |
| 4031 |
Likewise. |
| 4032 |
* testsuite/performance/ext/pb_ds/priority_queue_text_modify.hpp: Likewise. |
| 4033 |
* testsuite/performance/ext/pb_ds/priority_queue_text_pop_mem.cc: Likewise. |
| 4034 |
* testsuite/performance/ext/pb_ds/priority_queue_text_push.cc: |
| 4035 |
Likewise. |
| 4036 |
* testsuite/performance/ext/pb_ds/priority_queue_text_push_pop.cc: Likewise. |
| 4037 |
* testsuite/performance/ext/pb_ds/tree_text_insert.cc: Likewise. |
| 4038 |
* testsuite/performance/ext/pb_ds/tree_text_lor_find.cc: |
| 4039 |
Likewise. |
| 4040 |
|
| 4041 |
2024-07-24 Jonathan Wakely <[email protected]> |
| 4042 |
|
| 4043 |
* testsuite/25_algorithms/advance/istreambuf_iterators/char/2.cc: |
| 4044 |
Use dg-additional-files. |
| 4045 |
* testsuite/25_algorithms/advance/istreambuf_iterators/wchar_t/2.cc: |
| 4046 |
Likewise. |
| 4047 |
* testsuite/25_algorithms/copy/streambuf_iterators/char/4.cc: |
| 4048 |
Likewise. |
| 4049 |
* testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/4.cc: |
| 4050 |
Likewise. |
| 4051 |
* testsuite/25_algorithms/copy_n/istreambuf_iterator/2.cc: |
| 4052 |
Likewise. |
| 4053 |
* testsuite/25_algorithms/copy_n/istreambuf_iterator/deque.cc: |
| 4054 |
Likewise. |
| 4055 |
* testsuite/25_algorithms/find/istreambuf_iterators/char/2.cc: |
| 4056 |
Likewise. |
| 4057 |
* testsuite/25_algorithms/find/istreambuf_iterators/wchar_t/2.cc: |
| 4058 |
Likewise. |
| 4059 |
|
| 4060 |
2024-07-24 Jonathan Wakely <[email protected]> |
| 4061 |
|
| 4062 |
* testsuite/27_io/basic_filebuf/close/char/1.cc: Remove |
| 4063 |
@require@ and @diff@. Use dg-final file-io-diff action. |
| 4064 |
* testsuite/27_io/basic_istream/extractors_other/char/2.cc: |
| 4065 |
Likewise. |
| 4066 |
* testsuite/27_io/basic_istream/extractors_other/wchar_t/2.cc: |
| 4067 |
Likewise. |
| 4068 |
* testsuite/27_io/basic_istream/get/char/2.cc: Likewise. |
| 4069 |
* testsuite/27_io/basic_istream/get/wchar_t/2.cc: Likewise. |
| 4070 |
* testsuite/27_io/basic_istream/ignore/char/3.cc: Likewise. |
| 4071 |
* testsuite/27_io/basic_istream/ignore/wchar_t/3.cc: Likewise. |
| 4072 |
* testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise. |
| 4073 |
* testsuite/27_io/basic_istream/peek/wchar_t/6414.cc: Likewise. |
| 4074 |
* testsuite/27_io/basic_istream/seekg/char/fstream.cc: Likewise. |
| 4075 |
* testsuite/27_io/basic_istream/seekg/wchar_t/fstream.cc: |
| 4076 |
Likewise. |
| 4077 |
* testsuite/27_io/basic_istream/tellg/char/fstream.cc: Likewise. |
| 4078 |
* testsuite/27_io/basic_istream/tellg/wchar_t/fstream.cc: |
| 4079 |
Likewise. |
| 4080 |
* testsuite/27_io/basic_ofstream/open/char/1.cc: Likewise. |
| 4081 |
* testsuite/27_io/basic_ostream/inserters_other/char/1.cc: |
| 4082 |
Likewise. |
| 4083 |
* testsuite/27_io/basic_ostream/inserters_other/wchar_t/1.cc: |
| 4084 |
Likewise. |
| 4085 |
* testsuite/27_io/ios_base/sync_with_stdio/1.cc: Likewise. |
| 4086 |
* testsuite/27_io/basic_ostream/inserters_other/char/2.cc: |
| 4087 |
Likewise. Check file positions. |
| 4088 |
* testsuite/27_io/basic_ostream/inserters_other/wchar_t/2.cc: |
| 4089 |
Likewise. |
| 4090 |
* testsuite/lib/libstdc++.exp (file-io-diff): New proc. |
| 4091 |
|
| 4092 |
2024-07-24 Jonathan Wakely <[email protected]> |
| 4093 |
|
| 4094 |
* testsuite/27_io/basic_filebuf/imbue/char/2.cc: Use |
| 4095 |
dg-additional-files. |
| 4096 |
* testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise. |
| 4097 |
* testsuite/27_io/basic_filebuf/open/char/path.cc: Likewise. |
| 4098 |
* testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: |
| 4099 |
Likewise. |
| 4100 |
* testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Likewise. |
| 4101 |
* testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Likewise. |
| 4102 |
* testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise. |
| 4103 |
* testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Likewise. |
| 4104 |
* testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Likewise. |
| 4105 |
* testsuite/27_io/basic_filebuf/sgetn/char/3.cc: Likewise. |
| 4106 |
* testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise. |
| 4107 |
* testsuite/27_io/basic_fstream/cons/char/path.cc: Likewise. |
| 4108 |
* testsuite/27_io/basic_fstream/open/char/path.cc: Likewise. |
| 4109 |
* testsuite/27_io/basic_ifstream/assign/1.cc: Likewise. |
| 4110 |
* testsuite/27_io/basic_ifstream/cons/move.cc: Likewise. |
| 4111 |
* testsuite/27_io/basic_ifstream/cons/char/path.cc: Likewise. |
| 4112 |
* testsuite/27_io/basic_ifstream/open/char/path.cc: Likewise. |
| 4113 |
* testsuite/27_io/basic_ifstream/open/wchar_t/1.cc: Likewise. |
| 4114 |
* testsuite/27_io/objects/char/10.cc: Likewise. |
| 4115 |
* testsuite/27_io/objects/char/12048-1.cc: Likewise. |
| 4116 |
* testsuite/27_io/objects/char/12048-2.cc: Likewise. |
| 4117 |
* testsuite/27_io/objects/char/12048-3.cc: Likewise. |
| 4118 |
* testsuite/27_io/objects/char/12048-4.cc: Likewise. |
| 4119 |
* testsuite/27_io/objects/char/12048-5.cc: Likewise. |
| 4120 |
* testsuite/27_io/objects/wchar_t/12048-1.cc: Likewise. |
| 4121 |
* testsuite/27_io/objects/wchar_t/12048-2.cc: Likewise. |
| 4122 |
* testsuite/27_io/objects/wchar_t/12048-3.cc: Likewise. |
| 4123 |
* testsuite/27_io/objects/wchar_t/12048-4.cc: Likewise. |
| 4124 |
* testsuite/27_io/objects/wchar_t/12048-5.cc: Likewise. |
| 4125 |
* testsuite/ext/stdio_sync_filebuf/char/12048-1.cc: Likewise. |
| 4126 |
* testsuite/ext/stdio_sync_filebuf/char/12048-2.cc: Likewise. |
| 4127 |
* testsuite/ext/stdio_sync_filebuf/char/12048-3.cc: Likewise. |
| 4128 |
* testsuite/ext/stdio_sync_filebuf/char/12048-4.cc: Likewise. |
| 4129 |
* testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc: Likewise. |
| 4130 |
* testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc: Likewise. |
| 4131 |
* testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc: Likewise. |
| 4132 |
* testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc: Likewise. |
| 4133 |
|
| 4134 |
2024-07-24 Jonathan Wakely <[email protected]> |
| 4135 |
|
| 4136 |
* testsuite/27_io/basic_filebuf/close/char/2.cc: Remove |
| 4137 |
@require@ and @diff@ markup. Use dg-additional-files. Remove |
| 4138 |
unused variable. |
| 4139 |
* testsuite/27_io/basic_filebuf/close/char/3.cc: Remove |
| 4140 |
@require@ and @diff@ markup. Use dg-additional-files. |
| 4141 |
* testsuite/27_io/basic_filebuf/close/char/4.cc: Likewise. |
| 4142 |
* testsuite/27_io/basic_filebuf/close/char/5.cc: Likewise. |
| 4143 |
* testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise. |
| 4144 |
* testsuite/27_io/basic_filebuf/is_open/char/1.cc: Likewise. |
| 4145 |
* testsuite/27_io/basic_filebuf/open/char/1.cc: Likewise. |
| 4146 |
* testsuite/27_io/basic_filebuf/open/char/2.cc: Likewise. |
| 4147 |
* testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: Likewise. |
| 4148 |
* testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Likewise. |
| 4149 |
* testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: Likewise. |
| 4150 |
* testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: Likewise. |
| 4151 |
* testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Likewise. |
| 4152 |
* testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Likewise. |
| 4153 |
* testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Likewise. |
| 4154 |
* testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Likewise. |
| 4155 |
* testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Likewise. |
| 4156 |
* testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Likewise. |
| 4157 |
* testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Likewise. |
| 4158 |
* testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Likewise. |
| 4159 |
* testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: Likewise. |
| 4160 |
* testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Likewise. |
| 4161 |
* testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: Likewise. |
| 4162 |
* testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: Likewise. |
| 4163 |
* testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Likewise. |
| 4164 |
* testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Likewise. |
| 4165 |
* testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Likewise. |
| 4166 |
* testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Likewise. |
| 4167 |
* testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: Likewise. |
| 4168 |
* testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Likewise. |
| 4169 |
* testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Likewise. |
| 4170 |
* testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: Likewise. |
| 4171 |
* testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: Likewise. |
| 4172 |
* testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: |
| 4173 |
Likewise. |
| 4174 |
* testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: |
| 4175 |
Likewise. |
| 4176 |
* testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: Likewise. |
| 4177 |
* testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: Likewise. |
| 4178 |
* testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: Likewise. |
| 4179 |
* testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: Likewise. |
| 4180 |
* testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Likewise. |
| 4181 |
Remove unused variable. |
| 4182 |
* testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: Remove |
| 4183 |
@require@ and @diff@ markup. Use dg-additional-files. |
| 4184 |
* testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: Likewise. |
| 4185 |
* testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: Likewise. |
| 4186 |
* testsuite/27_io/basic_ifstream/cons/char/1.cc: Likewise. |
| 4187 |
* testsuite/27_io/basic_ifstream/open/char/1.cc: Likewise. |
| 4188 |
* testsuite/27_io/basic_ifstream/rdbuf/char/2832.cc: Likewise. |
| 4189 |
* testsuite/27_io/basic_istream/readsome/char/6746-2.cc: |
| 4190 |
Likewise. |
| 4191 |
* testsuite/27_io/basic_istream/readsome/wchar_t/6746-2.cc: |
| 4192 |
Likewise. |
| 4193 |
* testsuite/27_io/basic_istream/seekg/char/sstream.cc: Likewise. |
| 4194 |
* testsuite/27_io/basic_istream/seekg/wchar_t/sstream.cc: |
| 4195 |
Likewise. |
| 4196 |
* testsuite/27_io/basic_istream/tellg/char/1.cc: Likewise. |
| 4197 |
* testsuite/27_io/basic_istream/tellg/char/sstream.cc: Likewise. |
| 4198 |
* testsuite/27_io/basic_istream/tellg/wchar_t/1.cc: Likewise. |
| 4199 |
* testsuite/27_io/basic_istream/tellg/wchar_t/sstream.cc: |
| 4200 |
Likewise. |
| 4201 |
* testsuite/27_io/basic_ofstream/open/char/1.cc: Likewise. |
| 4202 |
* testsuite/lib/dg-options.exp (dg-additional-files): Append to |
| 4203 |
v3_additional_files instead of replacing. |
| 4204 |
* testsuite/lib/libstdc++.exp (v3_target_compile): Reset |
| 4205 |
v3_additional_files after copying files. |
| 4206 |
|
| 4207 |
2024-07-24 Jonathan Wakely <[email protected]> |
| 4208 |
|
| 4209 |
* testsuite/27_io/basic_filebuf/close/char/4879.cc: Remove |
| 4210 |
@require@ and @diff@ comments. |
| 4211 |
* testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise. |
| 4212 |
* testsuite/27_io/basic_filebuf/open/char/3.cc: Likewise. |
| 4213 |
* testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise. |
| 4214 |
* testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Likewise. |
| 4215 |
* testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: Likewise. |
| 4216 |
* testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Likewise. |
| 4217 |
* testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: Likewise. |
| 4218 |
* testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Likewise. |
| 4219 |
* testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: Likewise. |
| 4220 |
* testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: Likewise. |
| 4221 |
* testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: |
| 4222 |
Likewise. |
| 4223 |
* testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: |
| 4224 |
Likewise. |
| 4225 |
* testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: |
| 4226 |
Likewise. |
| 4227 |
* testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: |
| 4228 |
Likewise. |
| 4229 |
* testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Likewise. |
| 4230 |
* testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: Likewise. |
| 4231 |
* testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Likewise. |
| 4232 |
* testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: Likewise. |
| 4233 |
* testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Likewise. |
| 4234 |
* testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Likewise. |
| 4235 |
* testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: Likewise. |
| 4236 |
* testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: Likewise. |
| 4237 |
* testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Likewise. |
| 4238 |
Remove unused variable. |
| 4239 |
* testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: Likewise. |
| 4240 |
* testsuite/27_io/basic_ofstream/cons/char/1.cc: Remove |
| 4241 |
@require@ and @diff@ comments. Remove unused variables. |
| 4242 |
* testsuite/27_io/basic_ofstream/rdbuf/char/2832.cc: Remove |
| 4243 |
* testsuite/27_io/ios_base/sync_with_stdio/2.cc: Likewise. |
| 4244 |
|
| 4245 |
2024-07-23 Jonathan Wakely <[email protected]> |
| 4246 |
|
| 4247 |
* src/c++23/print.cc (__open_terminal): Use [[maybe_unused]] on |
| 4248 |
parameter. |
| 4249 |
|
| 4250 |
2024-07-23 Detlef Vollmann <[email protected]> |
| 4251 |
|
| 4252 |
PR libstdc++/115482 |
| 4253 |
* src/c++23/print.cc (__open_terminal) [__AVR__]: Do not use |
| 4254 |
isatty. |
| 4255 |
|
| 4256 |
2024-07-18 Patrick Palka <[email protected]> |
| 4257 |
|
| 4258 |
* include/experimental/socket |
| 4259 |
(basic_socket_iostream::basic_socket_iostream): Fix typo. |
| 4260 |
* include/tr2/dynamic_bitset |
| 4261 |
(__dynamic_bitset_base::_M_is_proper_subset_of): Likewise. |
| 4262 |
|
| 4263 |
2024-07-12 Alexandre Oliva <[email protected]> |
| 4264 |
|
| 4265 |
* testsuite/decimal/binary-arith.cc: Require dfprt. |
| 4266 |
* testsuite/decimal/comparison.cc: Likewise. |
| 4267 |
* testsuite/decimal/compound-assignment.cc: Likewise. |
| 4268 |
* testsuite/decimal/compound-assignment-memfunc.cc: Likewise. |
| 4269 |
* testsuite/decimal/make-decimal.cc: Likewise. |
| 4270 |
* testsuite/decimal/pr54036-1.cc: Likewise. |
| 4271 |
* testsuite/decimal/pr54036-2.cc: Likewise. |
| 4272 |
* testsuite/decimal/pr54036-3.cc: Likewise. |
| 4273 |
* testsuite/decimal/unary-arith.cc: Likewise. |
| 4274 |
|
| 4275 |
2024-07-11 Jonathan Wakely <[email protected]> |
| 4276 |
|
| 4277 |
* testsuite/29_atomics/atomic_ref/bool.cc: New test. |
| 4278 |
|
| 4279 |
2024-07-11 Damien Lebrun-Grandie <[email protected]> |
| 4280 |
|
| 4281 |
* include/bits/atomic_base.h (__atomic_ref): Do not use integral |
| 4282 |
specialization for bool. |
| 4283 |
|
| 4284 |
2024-07-11 Gerald Pfeifer <[email protected]> |
| 4285 |
|
| 4286 |
* doc/xml/manual/using.xml: Switch gcc.gnu.org links to https. |
| 4287 |
* doc/html/manual/using_concurrency.html: Regenerate. |
| 4288 |
* doc/html/manual/using_dynamic_or_shared.html: Ditto. |
| 4289 |
* doc/html/manual/using_headers.html: Ditto. |
| 4290 |
* doc/html/manual/using_namespaces.html: Ditto. |
| 4291 |
|
| 4292 |
2024-07-11 Jonathan Wakely <[email protected]> |
| 4293 |
|
| 4294 |
PR libstdc++/108636 |
| 4295 |
* testsuite/27_io/filesystem/path/108636.cc: Require normal |
| 4296 |
mode. |
| 4297 |
|
| 4298 |
2024-07-10 Jonathan Wakely <[email protected]> |
| 4299 |
|
| 4300 |
PR libstdc++/114387 |
| 4301 |
* include/std/format (basic_format_context): Define copy |
| 4302 |
operations as deleted, as per LWG 4061. |
| 4303 |
* testsuite/std/format/context.cc: New test. |
| 4304 |
|
| 4305 |
2024-07-10 Jonathan Wakely <[email protected]> |
| 4306 |
|
| 4307 |
* src/c++26/text_encoding.cc (__locale_encoding): Add to unnamed |
| 4308 |
namespace. |
| 4309 |
(std::locale::encoding): Optimize for "C" and "*" names. |
| 4310 |
|
| 4311 |
2024-07-10 Jonathan Wakely <[email protected]> |
| 4312 |
|
| 4313 |
PR libstdc++/115854 |
| 4314 |
* include/bits/stl_bvector.h (_Bvector_base): Convert allocator |
| 4315 |
to rebound type explicitly. |
| 4316 |
* testsuite/23_containers/vector/allocator/115854.cc: New test. |
| 4317 |
* testsuite/23_containers/vector/bool/allocator/115854.cc: New test. |
| 4318 |
|
| 4319 |
2024-07-10 Jonathan Wakely <[email protected]> |
| 4320 |
|
| 4321 |
PR libstdc++/115799 |
| 4322 |
* include/bits/ranges_util.h (__find_fn): Make conversion |
| 4323 |
from difference type ti size_t explicit. |
| 4324 |
* testsuite/25_algorithms/find/bytes.cc: Check ranges::find with |
| 4325 |
__gnu_test::test_contiguous_range. |
| 4326 |
* testsuite/std/ranges/range.cc: Adjust expected difference_type |
| 4327 |
for __gnu_test::test_contiguous_range. |
| 4328 |
* testsuite/util/testsuite_iterators.h (contiguous_iterator_wrapper): |
| 4329 |
Use __max_diff_type as difference type. |
| 4330 |
(test_range::sentinel, test_sized_range_sized_sent::sentinel): |
| 4331 |
Ensure that operator- returns difference_type. |
| 4332 |
|
| 4333 |
2024-07-10 Marek Polacek <[email protected]> |
| 4334 |
|
| 4335 |
* testsuite/std/ranges/access/101782.cc: Don't compile with |
| 4336 |
-fconcepts-ts. |
| 4337 |
|
| 4338 |
2024-07-08 Jonathan Wakely <[email protected]> |
| 4339 |
|
| 4340 |
PR libstdc++/115807 |
| 4341 |
* include/c_compatibility/stdatomic.h (_Atomic): Ensure it |
| 4342 |
refers to std::atomic in the global namespace. |
| 4343 |
* testsuite/29_atomics/headers/stdatomic.h/115807.cc: New test. |
| 4344 |
|
| 4345 |
2024-07-07 Gerald Pfeifer <[email protected]> |
| 4346 |
|
| 4347 |
* doc/xml/manual/configure.xml: Update Autobook 14 link. |
| 4348 |
Update GCC installation instructions link. |
| 4349 |
* doc/html/manual/configure.html: Regenerate. |
| 4350 |
|
| 4351 |
2024-07-07 Jonathan Wakely <[email protected]> |
| 4352 |
|
| 4353 |
PR libstdc++/115799 |
| 4354 |
* include/bits/stl_algo.h (find): Use 'if constexpr' so that |
| 4355 |
memchr optimization is a discarded statement for non-contiguous |
| 4356 |
iterators. |
| 4357 |
* testsuite/25_algorithms/find/bytes.cc: Check with input |
| 4358 |
iterators. |
| 4359 |
|
| 4360 |
2024-07-07 Jonathan Wakely <[email protected]> |
| 4361 |
|
| 4362 |
PR libstdc++/115799 |
| 4363 |
* include/bits/ranges_util.h (__find_fn): Return iterator |
| 4364 |
instead of sentinel. |
| 4365 |
* testsuite/25_algorithms/find/constrained.cc: Check non-common |
| 4366 |
contiguous sized range of char. |
| 4367 |
|
| 4368 |
2024-07-06 Jonathan Wakely <[email protected]> |
| 4369 |
|
| 4370 |
* testsuite/17_intro/headers/c++1998/all_attributes.cc: Add |
| 4371 |
attribute names from later standards and remove dg-options. |
| 4372 |
* testsuite/17_intro/headers/c++1998/stdc++.cc: Add c++98_only |
| 4373 |
target selector. |
| 4374 |
* testsuite/17_intro/headers/c++1998/stdc++_multiple_inclusion.cc: |
| 4375 |
Remove content and include stdc++.cc twice instead. |
| 4376 |
* testsuite/17_intro/headers/c++2011/stdc++.cc: Replace |
| 4377 |
dg-options with c++11 target selector. |
| 4378 |
* testsuite/17_intro/headers/c++2011/stdc++_multiple_inclusion.cc: |
| 4379 |
Remove content and include stdc++.cc twice instead. |
| 4380 |
* testsuite/17_intro/headers/c++2011/all_attributes.cc: Removed. |
| 4381 |
* testsuite/17_intro/headers/c++2011/all_no_exceptions.cc: Removed. |
| 4382 |
* testsuite/17_intro/headers/c++2011/all_no_rtti.cc: Removed. |
| 4383 |
* testsuite/17_intro/headers/c++2011/all_pedantic_errors.cc: Removed. |
| 4384 |
* testsuite/17_intro/headers/c++2011/charset.cc: Removed. |
| 4385 |
* testsuite/17_intro/headers/c++2011/operator_names.cc: Removed. |
| 4386 |
* testsuite/17_intro/headers/c++2014/all_attributes.cc: Removed. |
| 4387 |
* testsuite/17_intro/headers/c++2014/all_no_exceptions.cc: Removed. |
| 4388 |
* testsuite/17_intro/headers/c++2014/all_no_rtti.cc: Removed. |
| 4389 |
* testsuite/17_intro/headers/c++2014/all_pedantic_errors.cc: Removed. |
| 4390 |
* testsuite/17_intro/headers/c++2014/charset.cc: Removed. |
| 4391 |
* testsuite/17_intro/headers/c++2014/operator_names.cc: Removed. |
| 4392 |
* testsuite/17_intro/headers/c++2014/stdc++.cc: Removed. |
| 4393 |
* testsuite/17_intro/headers/c++2014/stdc++_multiple_inclusion.cc: Removed. |
| 4394 |
* testsuite/17_intro/headers/c++2017/all_attributes.cc: Removed. |
| 4395 |
* testsuite/17_intro/headers/c++2017/all_no_exceptions.cc: Removed. |
| 4396 |
* testsuite/17_intro/headers/c++2017/all_no_rtti.cc: Removed. |
| 4397 |
* testsuite/17_intro/headers/c++2017/all_pedantic_errors.cc: Removed. |
| 4398 |
* testsuite/17_intro/headers/c++2017/charset.cc: Removed. |
| 4399 |
* testsuite/17_intro/headers/c++2017/operator_names.cc: Removed. |
| 4400 |
* testsuite/17_intro/headers/c++2017/stdc++.cc: Removed. |
| 4401 |
* testsuite/17_intro/headers/c++2017/stdc++_multiple_inclusion.cc: Removed. |
| 4402 |
* testsuite/17_intro/headers/c++2020/all_attributes.cc: Removed. |
| 4403 |
* testsuite/17_intro/headers/c++2020/all_no_exceptions.cc: Removed. |
| 4404 |
* testsuite/17_intro/headers/c++2020/all_no_rtti.cc: Removed. |
| 4405 |
* testsuite/17_intro/headers/c++2020/all_pedantic_errors.cc: Removed. |
| 4406 |
* testsuite/17_intro/headers/c++2020/charset.cc: Removed. |
| 4407 |
* testsuite/17_intro/headers/c++2020/operator_names.cc: Removed. |
| 4408 |
* testsuite/17_intro/headers/c++2020/stdc++.cc: Removed. |
| 4409 |
* testsuite/17_intro/headers/c++2020/stdc++_multiple_inclusion.cc: Removed. |
| 4410 |
|
| 4411 |
2024-07-06 Jonathan Wakely <[email protected]> |
| 4412 |
|
| 4413 |
* include/std/variant (_Variant_storage::_M_reset): Use |
| 4414 |
__unlikely__ form of attribute instead of unlikely. |
| 4415 |
|
| 4416 |
2024-07-06 Jonathan Wakely <[email protected]> |
| 4417 |
|
| 4418 |
PR libstdc++/115797 |
| 4419 |
* include/std/type_traits: Ensure "C++" language linkage. |
| 4420 |
* testsuite/17_intro/headers/c++2011/linkage.cc: Replace |
| 4421 |
dg-options with c++11 target selector. |
| 4422 |
|
| 4423 |
2024-07-05 Jonathan Wakely <[email protected]> |
| 4424 |
|
| 4425 |
PR c++/115747 |
| 4426 |
* testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: |
| 4427 |
Add dg-error for new C++26 diagnostics. |
| 4428 |
|
| 4429 |
2024-07-05 Jonathan Wakely <[email protected]> |
| 4430 |
|
| 4431 |
* include/bits/stl_uninitialized.h (_UninitDestroyGuard): New |
| 4432 |
class template and partial specialization. |
| 4433 |
(__do_uninit_copy, __do_uninit_fill, __do_uninit_fill_n) |
| 4434 |
(__uninitialized_copy_a, __uninitialized_fill_a) |
| 4435 |
(__uninitialized_fill_n_a, __uninitialized_copy_move) |
| 4436 |
(__uninitialized_move_copy, __uninitialized_fill_move) |
| 4437 |
(__uninitialized_move_fill, __uninitialized_default_1) |
| 4438 |
(__uninitialized_default_n_a, __uninitialized_default_novalue_1) |
| 4439 |
(__uninitialized_default_novalue_n_1, __uninitialized_copy_n) |
| 4440 |
(__uninitialized_copy_n_pair): Use it. |
| 4441 |
|
| 4442 |
2024-07-05 Jonathan Wakely <[email protected]> |
| 4443 |
|
| 4444 |
PR libstdc++/88545 |
| 4445 |
PR libstdc++/115040 |
| 4446 |
* include/bits/cpp_type_traits.h (__can_use_memchr_for_find): |
| 4447 |
New variable template. |
| 4448 |
* include/bits/ranges_util.h (__find_fn): Use memchr when |
| 4449 |
possible. |
| 4450 |
* include/bits/stl_algo.h (find): Likewise. |
| 4451 |
* testsuite/25_algorithms/find/bytes.cc: New test. |
| 4452 |
|
| 4453 |
2024-07-04 John David Anglin <[email protected]> |
| 4454 |
|
| 4455 |
PR libstdc++/98678 |
| 4456 |
* testsuite/30_threads/future/members/poll.cc: Skip on hppa*-*-linux*. |
| 4457 |
|
| 4458 |
2024-06-28 Jonathan Wakely <[email protected]> |
| 4459 |
|
| 4460 |
PR libstdc++/115585 |
| 4461 |
* src/c++11/assert_fail.cc (__glibcxx_assert_fail): Add |
| 4462 |
definition for non-verbose builds. |
| 4463 |
|
| 4464 |
2024-06-28 Jonathan Wakely <[email protected]> |
| 4465 |
|
| 4466 |
PR libstdc++/101485 |
| 4467 |
* include/bits/stl_algobase.h (__equal_aux1): Check for |
| 4468 |
std::byte as well. |
| 4469 |
* testsuite/25_algorithms/equal/101485.cc: New test. |
| 4470 |
|
| 4471 |
2024-06-28 Jonathan Wakely <[email protected]> |
| 4472 |
|
| 4473 |
PR libstdc++/104395 |
| 4474 |
* include/bits/new_allocator.h: Disable extended alignment |
| 4475 |
support in C++98 mode. |
| 4476 |
* include/bits/stl_tempbuf.h: Likewise. |
| 4477 |
* include/ext/bitmap_allocator.h: Likewise. |
| 4478 |
* include/ext/malloc_allocator.h: Likewise. |
| 4479 |
* include/ext/mt_allocator.h: Likewise. |
| 4480 |
* include/ext/pool_allocator.h: Likewise. |
| 4481 |
* testsuite/ext/104395.cc: New test. |
| 4482 |
|
| 4483 |
2024-06-28 Jonathan Wakely <[email protected]> |
| 4484 |
|
| 4485 |
* include/ext/aligned_buffer.h (__aligned_membuf): Use |
| 4486 |
alignas(T) directly instead of defining a struct and using 9its |
| 4487 |
alignment. |
| 4488 |
(__aligned_buffer): Remove use of std::aligned_storage. |
| 4489 |
* testsuite/abi/aligned_buffers.cc: New test. |
| 4490 |
|
| 4491 |
2024-06-27 Jonathan Wakely <[email protected]> |
| 4492 |
|
| 4493 |
PR libstdc++/37475 |
| 4494 |
* config/locale/gnu/codecvt_members.cc (Guard): New RAII type. |
| 4495 |
(do_out, do_in): Return partial if the destination is empty but |
| 4496 |
the source is not. Use Guard to restore locale on scope exit. |
| 4497 |
Return immediately on any conversion error. |
| 4498 |
(do_encoding, do_max_length, do_length): Use Guard. |
| 4499 |
* testsuite/22_locale/codecvt/in/char/37475.cc: New test. |
| 4500 |
* testsuite/22_locale/codecvt/in/wchar_t/37475.cc: New test. |
| 4501 |
* testsuite/22_locale/codecvt/out/char/37475.cc: New test. |
| 4502 |
* testsuite/22_locale/codecvt/out/wchar_t/37475.cc: New test. |
| 4503 |
|
| 4504 |
2024-06-27 Alexandre Oliva <[email protected]> |
| 4505 |
|
| 4506 |
PR libstdc++/115454 |
| 4507 |
* testsuite/experimental/simd/pr115454_find_last_set.cc: Defer |
| 4508 |
to check_vect_support_and_set_flags's default dg-do action. |
| 4509 |
|
| 4510 |
2024-06-27 Jonathan Wakely <[email protected]> |
| 4511 |
|
| 4512 |
PR libstdc++/115668 |
| 4513 |
* include/bits/chrono_io.h (formatter<duration<R,P, C>::format): |
| 4514 |
Do not use chrono::abs. |
| 4515 |
* testsuite/20_util/duration/io.cc: Check formatting a duration |
| 4516 |
with unsigned rep. |
| 4517 |
|
| 4518 |
2024-06-27 Jonathan Wakely <[email protected]> |
| 4519 |
|
| 4520 |
PR libstdc++/103191 |
| 4521 |
* include/bits/stl_bvector.h (vector<bool>::operator[]) |
| 4522 |
(vector<bool>::front, vector<bool>::back): Add debug assertions. |
| 4523 |
* testsuite/23_containers/vector/bool/element_access/constexpr.cc: |
| 4524 |
Remove dg-error that no longer triggers. |
| 4525 |
|
| 4526 |
2024-06-27 Jonathan Wakely <[email protected]> |
| 4527 |
|
| 4528 |
PR libstdc++/111250 |
| 4529 |
* include/debug/assertions.h (__glibcxx_requires_non_empty_range) |
| 4530 |
(__glibcxx_requires_nonempty, __glibcxx_requires_subscript): |
| 4531 |
Define to __glibcxx_assert expressions or to debug mode |
| 4532 |
__glibcxx_check_xxx expressions. |
| 4533 |
* testsuite/23_containers/array/element_access/constexpr_c++17.cc: |
| 4534 |
Add checks for out-of-bounds accesses in constant expressions. |
| 4535 |
* testsuite/23_containers/vector/element_access/constexpr.cc: |
| 4536 |
Likewise. |
| 4537 |
|
| 4538 |
2024-06-26 Jonathan Wakely <[email protected]> |
| 4539 |
|
| 4540 |
* scripts/update_release_branch.sh: New file. |
| 4541 |
|
| 4542 |
2024-06-26 Jonathan Wakely <[email protected]> |
| 4543 |
|
| 4544 |
* testsuite/20_util/specialized_algorithms/uninitialized_copy/808590.cc: |
| 4545 |
Copy defaulted assignment operator from 808590-cxx11.cc to |
| 4546 |
suppress a warning. |
| 4547 |
* testsuite/20_util/specialized_algorithms/uninitialized_copy/808590-cxx11.cc: |
| 4548 |
Removed. |
| 4549 |
|
| 4550 |
2024-06-26 Jonathan Wakely <[email protected]> |
| 4551 |
|
| 4552 |
PR libstdc++/90276 |
| 4553 |
* testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: |
| 4554 |
Increase timeout for debug mode. |
| 4555 |
* testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: |
| 4556 |
Likewise. |
| 4557 |
* testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: |
| 4558 |
Likewise. |
| 4559 |
* testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: |
| 4560 |
Likewise. |
| 4561 |
* testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: |
| 4562 |
Likewise. |
| 4563 |
* testsuite/25_algorithms/pstl/alg_sorting/set_symmetric_difference.cc: |
| 4564 |
Likewise. |
| 4565 |
|
| 4566 |
2024-06-26 Jonathan Wakely <[email protected]> |
| 4567 |
|
| 4568 |
PR libstdc++/90276 |
| 4569 |
* testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc |
| 4570 |
[_GLIBCXX_DEBUG]: Add xfail-run-if for debug mode. |
| 4571 |
* testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc |
| 4572 |
[_GLIBCXX_DEBUG]: Reduce size of test data. |
| 4573 |
* testsuite/25_algorithms/pstl/alg_sorting/includes.cc: |
| 4574 |
Likewise. |
| 4575 |
* testsuite/25_algorithms/pstl/alg_sorting/set_util.h: |
| 4576 |
Likewise. |
| 4577 |
|
| 4578 |
2024-06-26 Jonathan Wakely <[email protected]> |
| 4579 |
|
| 4580 |
* src/c++20/tzdb.cc (minmax_year, minmax_year2): Remove. |
| 4581 |
(years_from_to): New class replacing minmax_year and |
| 4582 |
minmax_year2. |
| 4583 |
(format_abbrev_str, select_std_or_dst_abbrev): Move earlier in |
| 4584 |
the file. Handle "-" for letters. |
| 4585 |
(ZoneInfo::to): Use format_abbrev_str to expand %z. |
| 4586 |
(ZoneInfo::set_abbrev): Remove exception. Change parameter from |
| 4587 |
reference to value. |
| 4588 |
(operator>>(istream&, Rule&)): Do not clear letters when it |
| 4589 |
contains "-". |
| 4590 |
(time_zone::_M_get_sys_info): Add missing logic to find the Rule |
| 4591 |
in effect before the time point. |
| 4592 |
* testsuite/std/time/tzdb/1.cc: Adjust for vanguard format using |
| 4593 |
"GMT" as the Zone name, not as a Link to "Etc/GMT". |
| 4594 |
* testsuite/std/time/time_zone/sys_info_abbrev.cc: New test. |
| 4595 |
|
| 4596 |
2024-06-26 Alexandre Oliva <[email protected]> |
| 4597 |
Marc Poulhiès <[email protected]> |
| 4598 |
|
| 4599 |
* testsuite/lib/dg-options.exp (add_options_for_libatomic): |
| 4600 |
None for *-*-vxworks*. |
| 4601 |
|
| 4602 |
2024-06-25 Jonathan Wakely <[email protected]> |
| 4603 |
|
| 4604 |
* include/bits/valarray_array.h (_Array_default_ctor): Remove. |
| 4605 |
(__valarray_default_construct): Inline it into here. |
| 4606 |
(_Array_init_ctor): Remove. |
| 4607 |
(__valarray_fill_construct): Inline it into here. |
| 4608 |
(_Array_copy_ctor): Remove. |
| 4609 |
(__valarray_copy_construct(const T*, const T*, T*)): Inline it |
| 4610 |
into here. |
| 4611 |
(__valarray_copy_construct(const T*, size_t, size_t, T*)): |
| 4612 |
Use _GLIBCXX17_CONSTEXPR for constant condition. |
| 4613 |
|
| 4614 |
2024-06-25 Jonathan Wakely <[email protected]> |
| 4615 |
|
| 4616 |
* doc/xml/faq.xml: Replace viewcvs links with cgit links. |
| 4617 |
* doc/xml/manual/allocator.xml: Likewise. |
| 4618 |
* doc/xml/manual/mt_allocator.xml: Likewise. |
| 4619 |
* doc/html/*: Regenerate. |
| 4620 |
|
| 4621 |
2024-06-22 Gerald Pfeifer <[email protected]> |
| 4622 |
|
| 4623 |
* doc/xml/manual/debug.xml: Move gcc.gnu.org link to https. |
| 4624 |
Ditto for sourceware.org links. |
| 4625 |
* doc/html/manual/debug.html: Regenerate. |
| 4626 |
|
| 4627 |
2024-06-21 Jonathan Wakely <[email protected]> |
| 4628 |
|
| 4629 |
PR libstdc++/115497 |
| 4630 |
* include/bits/cpp_type_traits.h (__is_pointer, __is_scalar): |
| 4631 |
Remove. |
| 4632 |
(__is_arithmetic): Do not use __is_pointer in the primary |
| 4633 |
template. Add partial specialization for pointers. |
| 4634 |
|
| 4635 |
2024-06-21 Jonathan Wakely <[email protected]> |
| 4636 |
|
| 4637 |
PR libstdc++/115497 |
| 4638 |
* include/bits/cpp_type_traits.h (__is_void): Remove. |
| 4639 |
* include/debug/helper_functions.h (_Distance_traits): |
| 4640 |
Adjust partial specialization to match void directly, instead of |
| 4641 |
using __is_void<T>::__type and matching __true_type. |
| 4642 |
|
| 4643 |
2024-06-21 Jonathan Wakely <[email protected]> |
| 4644 |
|
| 4645 |
PR libstdc++/115497 |
| 4646 |
* include/bits/deque.tcc (__lex_cmp_dit): Replace __is_pointer |
| 4647 |
class template with __is_pointer(T) built-in. |
| 4648 |
(__lexicographical_compare_aux1): Likewise. |
| 4649 |
* include/bits/stl_algobase.h (__equal_aux1): Likewise. |
| 4650 |
(__lexicographical_compare_aux1): Likewise. |
| 4651 |
|
| 4652 |
2024-06-21 Jonathan Wakely <[email protected]> |
| 4653 |
|
| 4654 |
PR libstdc++/115497 |
| 4655 |
* include/bits/valarray_array.h (__valarray_default_construct): |
| 4656 |
Use __is_trivial(_Tp). instead of __is_scalar<_Tp>. |
| 4657 |
|
| 4658 |
2024-06-21 Jonathan Wakely <[email protected]> |
| 4659 |
|
| 4660 |
PR libstdc++/109150 |
| 4661 |
* include/bits/stl_algobase.h (__fill_a1): Combine the |
| 4662 |
!__is_scalar and __is_scalar overloads into one and rewrite the |
| 4663 |
condition used to decide whether to perform the load outside the |
| 4664 |
loop. |
| 4665 |
* testsuite/25_algorithms/fill/109150.cc: New test. |
| 4666 |
* testsuite/25_algorithms/fill_n/109150.cc: New test. |
| 4667 |
|
| 4668 |
2024-06-21 Matthias Kretz <[email protected]> |
| 4669 |
|
| 4670 |
PR libstdc++/115575 |
| 4671 |
* testsuite/experimental/simd/pr115454_find_last_set.cc: Require |
| 4672 |
avx512f_runtime. Don't memcpy fixed_size masks. |
| 4673 |
|
| 4674 |
2024-06-21 Jonathan Wakely <[email protected]> |
| 4675 |
|
| 4676 |
* include/bits/stl_uninitialized.h (uninitialized_default_construct) |
| 4677 |
(uninitialized_default_construct_n, uninitialized_value_construct) |
| 4678 |
(uninitialized_value_construct_n): Qualify calls to prevent ADL. |
| 4679 |
|
| 4680 |
2024-06-21 Jonathan Wakely <[email protected]> |
| 4681 |
|
| 4682 |
* include/std/any (any_cast(any*), any_cast(const any*)): Add |
| 4683 |
static assertion to reject void types, as per LWG 3305. |
| 4684 |
* testsuite/20_util/any/misc/lwg3305.cc: New test. |
| 4685 |
|
| 4686 |
2024-06-21 Jonathan Wakely <[email protected]> |
| 4687 |
|
| 4688 |
* include/bits/memory_resource.h (polymorphic_allocator::destroy): |
| 4689 |
Remove deprecated attribute. |
| 4690 |
|
| 4691 |
2024-06-21 Jonathan Wakely <[email protected]> |
| 4692 |
|
| 4693 |
* include/backward/backward_warning.h: Adjust comments to |
| 4694 |
suggest <spanstream> as another alternative to <strstream>. |
| 4695 |
* include/backward/strstream (strstreambuf, istrstream) |
| 4696 |
(ostrstream, strstream): Add deprecated attribute. |
| 4697 |
|
| 4698 |
2024-06-21 Jonathan Wakely <[email protected]> |
| 4699 |
|
| 4700 |
* include/bits/locale_conv.h (wstring_convert): Add deprecated |
| 4701 |
attribute for C++17 and later. |
| 4702 |
(wbuffer_convert): Likewise. |
| 4703 |
* testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: Disable |
| 4704 |
deprecated warnings. |
| 4705 |
* testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: Likewise. |
| 4706 |
* testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: |
| 4707 |
Likewise. |
| 4708 |
* testsuite/22_locale/conversions/buffer/1.cc: Add dg-warning. |
| 4709 |
* testsuite/22_locale/conversions/buffer/2.cc: Likewise. |
| 4710 |
* testsuite/22_locale/conversions/buffer/3.cc: Likewise. |
| 4711 |
* testsuite/22_locale/conversions/buffer/requirements/typedefs.cc: |
| 4712 |
Likewise. |
| 4713 |
* testsuite/22_locale/conversions/string/1.cc: Likewise. |
| 4714 |
* testsuite/22_locale/conversions/string/2.cc: Likewise. |
| 4715 |
* testsuite/22_locale/conversions/string/3.cc: Likewise. |
| 4716 |
* testsuite/22_locale/conversions/string/66441.cc: Likewise. |
| 4717 |
* testsuite/22_locale/conversions/string/requirements/typedefs-2.cc: |
| 4718 |
Likewise. |
| 4719 |
* testsuite/22_locale/conversions/string/requirements/typedefs.cc: |
| 4720 |
Likewise. |
| 4721 |
|
| 4722 |
2024-06-21 Jonathan Wakely <[email protected]> |
| 4723 |
|
| 4724 |
* include/bits/version.def (chrono): Add cxx11abi = yes. |
| 4725 |
* include/bits/version.h: Regenerate. |
| 4726 |
* testsuite/std/time/syn_c++20.cc: Adjust expected value for |
| 4727 |
the feature test macro. |
| 4728 |
|
| 4729 |
2024-06-21 Jonathan Wakely <[email protected]> |
| 4730 |
|
| 4731 |
PR libstdc++/115522 |
| 4732 |
* include/std/array (to_array): Workaround the fact that |
| 4733 |
std::is_trivial is not sufficient to check that a type is |
| 4734 |
trivially default constructible and assignable. |
| 4735 |
* testsuite/23_containers/array/creation/115522.cc: New test. |
| 4736 |
|
| 4737 |
2024-06-21 Jonathan Wakely <[email protected]> |
| 4738 |
|
| 4739 |
* testsuite/util/testsuite_allocator.h (tracker_allocator): |
| 4740 |
Initialize base class in copy constructor. |
| 4741 |
|
| 4742 |
2024-06-20 Matthias Kretz <[email protected]> |
| 4743 |
|
| 4744 |
PR libstdc++/115454 |
| 4745 |
* include/experimental/bits/simd_x86.h (_S_not_equal_to): Use |
| 4746 |
neq comparison instead of bitwise negation after eq. |
| 4747 |
(_S_find_last_set): Clear unused high bits before computing |
| 4748 |
bit_width. |
| 4749 |
* testsuite/experimental/simd/pr115454_find_last_set.cc: New |
| 4750 |
test. |
| 4751 |
|
| 4752 |
2024-06-19 Jonathan Wakely <[email protected]> |
| 4753 |
|
| 4754 |
* include/std/future: Adjust whitespace to use tabs for |
| 4755 |
indentation. |
| 4756 |
|
| 4757 |
2024-06-19 Jonathan Wakely <[email protected]> |
| 4758 |
|
| 4759 |
* include/std/future (_State_baseV2::_Setter<R, void>): Add |
| 4760 |
noexcept to call operator. |
| 4761 |
(_State_baseV2::_Setter<R, __exception_ptr_tag>): Likewise. |
| 4762 |
|
| 4763 |
2024-06-19 Jonathan Wakely <[email protected]> |
| 4764 |
|
| 4765 |
* include/bits/stl_pair.h [__cpp_lib_concepts] (pair()): Add |
| 4766 |
conditional noexcept. |
| 4767 |
|
| 4768 |
2024-06-19 Jonathan Wakely <[email protected]> |
| 4769 |
|
| 4770 |
* include/bits/stl_tempbuf.h (__get_temporary_buffer): Cast |
| 4771 |
argument to size_t to handle negative values and suppress |
| 4772 |
-Wsign-compare warning. |
| 4773 |
(_Temporary_buffer): Move diagnostic pragmas to new location of |
| 4774 |
call to std::get_temporary_buffer. |
| 4775 |
|
| 4776 |
2024-06-18 Jonathan Wakely <[email protected]> |
| 4777 |
|
| 4778 |
* include/bits/cpp_type_traits.h: Fix outdated comment about the |
| 4779 |
number of standard integer types. |
| 4780 |
|
| 4781 |
2024-06-14 Jonathan Wakely <[email protected]> |
| 4782 |
|
| 4783 |
PR libstdc++/110572 |
| 4784 |
* libsupc++/typeinfo (type_info::operator==): Add always_inline |
| 4785 |
attribute for targets where the ABI requries equality to be |
| 4786 |
non-inline. |
| 4787 |
* testsuite/18_support/type_info/110572.cc: New test. |
| 4788 |
|
| 4789 |
2024-06-14 Jonathan Wakely <[email protected]> |
| 4790 |
|
| 4791 |
* libsupc++/new_opa.cc [!_GLIBCXX_HOSTED]: Fix declaration of |
| 4792 |
posix_memalign. |
| 4793 |
|
| 4794 |
2024-06-13 Alexandre Oliva <[email protected]> |
| 4795 |
|
| 4796 |
PR libstdc++/114359 |
| 4797 |
* testsuite/26_numerics/random/binomial_distribution/114359.cc: |
| 4798 |
Require cmath. |
| 4799 |
|
| 4800 |
2024-06-13 Ken Matsui <[email protected]> |
| 4801 |
|
| 4802 |
* include/std/type_traits (__add_rval_ref_t): Use |
| 4803 |
__add_rvalue_reference built-in trait. |
| 4804 |
|
| 4805 |
2024-06-13 Ken Matsui <[email protected]> |
| 4806 |
|
| 4807 |
* include/std/type_traits (__add_lval_ref_t): Use |
| 4808 |
__add_lvalue_reference built-in trait. |
| 4809 |
|
| 4810 |
2024-06-13 Ken Matsui <[email protected]> |
| 4811 |
Jonathan Wakely <[email protected]> |
| 4812 |
|
| 4813 |
* include/bits/cpp_type_traits.h (__is_pointer): Use |
| 4814 |
__is_pointer built-in trait. |
| 4815 |
* include/std/type_traits (is_pointer): Likewise. Optimize its |
| 4816 |
implementation. |
| 4817 |
(is_pointer_v): Likewise. |
| 4818 |
|
| 4819 |
2024-06-13 Jonathan Wakely <[email protected]> |
| 4820 |
|
| 4821 |
* include/bits/ranges_base.h (range_common_reference_t): New |
| 4822 |
alias template, as per LWG 3860. |
| 4823 |
* testsuite/std/ranges/range.cc: Check it. |
| 4824 |
|
| 4825 |
2024-06-13 Jonathan Wakely <[email protected]> |
| 4826 |
|
| 4827 |
* include/bits/ranges_base.h (const_iterator_t): Change |
| 4828 |
preprocessor condition to use __glibcxx_ranges_as_const. |
| 4829 |
(const_sentinel_t, range_const_reference_t): Likewise. |
| 4830 |
(__access::__possibly_const_range, cbegin, cend, crbegin) |
| 4831 |
(crend, cdata): Likewise. |
| 4832 |
* include/bits/stl_iterator.h (iter_const_reference_t) |
| 4833 |
(basic_const_iterator, const_iterator, const_sentinel) |
| 4834 |
(make_const_iterator): Likewise. |
| 4835 |
|
| 4836 |
2024-06-13 Jonathan Wakely <[email protected]> |
| 4837 |
|
| 4838 |
PR libstdc++/115420 |
| 4839 |
* include/bits/hashtable.h (_Hashtable): Add static_assert to |
| 4840 |
check that hash function is copy constructible. |
| 4841 |
* testsuite/23_containers/unordered_map/115420.cc: New test. |
| 4842 |
|
| 4843 |
2024-06-13 Jonathan Wakely <[email protected]> |
| 4844 |
|
| 4845 |
PR libstdc++/113376 |
| 4846 |
* include/pstl/pstl_config.h: Use #if instead of #ifdef to test |
| 4847 |
the _PSTL_USAGE_WARNINGS macro. |
| 4848 |
|
| 4849 |
2024-06-13 Ken Matsui <[email protected]> |
| 4850 |
|
| 4851 |
* include/std/type_traits (is_nothrow_invocable): Use |
| 4852 |
__is_nothrow_invocable built-in trait. |
| 4853 |
* testsuite/20_util/is_nothrow_invocable/incomplete_args_neg.cc: |
| 4854 |
Handle the new error from __is_nothrow_invocable. |
| 4855 |
* testsuite/20_util/is_nothrow_invocable/incomplete_neg.cc: |
| 4856 |
Likewise. |
| 4857 |
|
| 4858 |
2024-06-13 Ken Matsui <[email protected]> |
| 4859 |
|
| 4860 |
* include/std/type_traits (is_invocable): Use __is_invocable |
| 4861 |
built-in trait. |
| 4862 |
* testsuite/20_util/is_invocable/incomplete_args_neg.cc: Handle |
| 4863 |
the new error from __is_invocable. |
| 4864 |
* testsuite/20_util/is_invocable/incomplete_neg.cc: Likewise. |
| 4865 |
|
| 4866 |
2024-06-13 Ken Matsui <[email protected]> |
| 4867 |
|
| 4868 |
* include/std/type_traits (rank): Use __array_rank built-in |
| 4869 |
trait. |
| 4870 |
(rank_v): Likewise. |
| 4871 |
|
| 4872 |
2024-06-13 Ken Matsui <[email protected]> |
| 4873 |
|
| 4874 |
* include/std/type_traits (decay): Use __decay built-in trait. |
| 4875 |
|
| 4876 |
2024-06-13 Ken Matsui <[email protected]> |
| 4877 |
|
| 4878 |
* include/std/type_traits (remove_all_extents): Use |
| 4879 |
__remove_all_extents built-in trait. |
| 4880 |
|
| 4881 |
2024-06-13 Ken Matsui <[email protected]> |
| 4882 |
|
| 4883 |
* include/std/type_traits (remove_extent): Use __remove_extent |
| 4884 |
built-in trait. |
| 4885 |
|
| 4886 |
2024-06-13 Ken Matsui <[email protected]> |
| 4887 |
|
| 4888 |
* include/std/type_traits (add_pointer): Use __add_pointer |
| 4889 |
built-in trait. |
| 4890 |
|
| 4891 |
2024-06-13 Ken Matsui <[email protected]> |
| 4892 |
|
| 4893 |
* include/std/type_traits (is_unbounded_array_v): Use |
| 4894 |
__is_unbounded_array built-in trait. |
| 4895 |
|
| 4896 |
2024-06-13 Ken Matsui <[email protected]> |
| 4897 |
|
| 4898 |
* include/std/type_traits (is_volatile): Use __is_volatile |
| 4899 |
built-in trait. |
| 4900 |
(is_volatile_v): Likewise. |
| 4901 |
|
| 4902 |
2024-06-13 Ken Matsui <[email protected]> |
| 4903 |
|
| 4904 |
* include/std/type_traits (is_const): Use __is_const built-in |
| 4905 |
trait. |
| 4906 |
(is_const_v): Likewise. |
| 4907 |
|
| 4908 |
2024-06-12 Alexandre Oliva <[email protected]> |
| 4909 |
|
| 4910 |
* testsuite/26_numerics/headers/cmath/constexpr_std_c++23.cc: |
| 4911 |
Require cmath. |
| 4912 |
* testsuite/26_numerics/headers/cmath/functions_std_c++23.cc: |
| 4913 |
Likewise. |
| 4914 |
* testsuite/26_numerics/headers/cmath/nextafter_c++23.cc: |
| 4915 |
Likewise. |
| 4916 |
|
| 4917 |
2024-06-12 Alexandre Oliva <[email protected]> |
| 4918 |
|
| 4919 |
* testsuite/20_util/from_chars/8.cc: Skip float128_t testing |
| 4920 |
on aarch64-rtems*. |
| 4921 |
* testsuite/20_util/to_chars/float128_c++23.cc: Xfail run on |
| 4922 |
aarch64-rtems*. |
| 4923 |
|
| 4924 |
2024-06-12 Jonathan Wakely <[email protected]> |
| 4925 |
|
| 4926 |
PR libstdc++/115399 |
| 4927 |
* include/tr2/dynamic_bitset (operator>>=): Remove redundant |
| 4928 |
call to _M_do_sanitize. |
| 4929 |
* include/tr2/dynamic_bitset.tcc (_M_do_left_shift): Zero out |
| 4930 |
low bits in words that should no longer be populated. |
| 4931 |
(_M_do_right_shift): Likewise for high bits. |
| 4932 |
* testsuite/tr2/dynamic_bitset/pr115399.cc: New test. |
| 4933 |
|
| 4934 |
2024-06-12 Jonathan Wakely <[email protected]> |
| 4935 |
|
| 4936 |
* include/bits/hashtable.h (_Hashtable::clear): Do not use |
| 4937 |
memset to zero out bucket pointers. |
| 4938 |
(_Hashtable::_M_assign_elements): Likewise. |
| 4939 |
|
| 4940 |
2024-06-11 Jonathan Wakely <[email protected]> |
| 4941 |
|
| 4942 |
* include/std/chrono (leap_seconds): Add comment. |
| 4943 |
* testsuite/std/time/leap_seconds/io.cc: New test. |
| 4944 |
|
| 4945 |
2024-06-10 François Dumont <[email protected]> |
| 4946 |
|
| 4947 |
* include/bits/hashtable.h (~_Hashtable()): Replace clear call with |
| 4948 |
a _M_deallocate_nodes call. |
| 4949 |
|
| 4950 |
2024-06-08 Deev Patel <[email protected]> |
| 4951 |
Jonathan Wakely <[email protected]> |
| 4952 |
|
| 4953 |
* include/bits/atomic_base.h (__atomic_impl::__clear_padding): |
| 4954 |
Add missing constexpr specifier. |
| 4955 |
* testsuite/29_atomics/atomic_float/constinit.cc: New test. |
| 4956 |
|
| 4957 |
2024-06-08 Michael Levine <[email protected]> |
| 4958 |
|
| 4959 |
PR libstdc++/108760 |
| 4960 |
* include/bits/ranges_algo.h (ranges::out_value_result): |
| 4961 |
Move to <bits/ranges_algobase.h>. |
| 4962 |
(ranges::iota_result, ranges::__iota_fn, ranges::iota): Move to |
| 4963 |
<numeric>. |
| 4964 |
* include/bits/ranges_algobase.h (ranges::out_value_result): |
| 4965 |
Move to here. |
| 4966 |
* include/std/numeric (ranges::iota_result, ranges::__iota_fn) |
| 4967 |
(ranges::iota): Move to here. |
| 4968 |
* testsuite/25_algorithms/iota/1.cc: Renamed to ... |
| 4969 |
* testsuite/26_numerics/iota/2.cc: ... here. |
| 4970 |
|
| 4971 |
2024-06-08 Jonathan Wakely <[email protected]> |
| 4972 |
|
| 4973 |
* include/std/algorithm: Define __glibcxx_want_ranges. |
| 4974 |
* testsuite/25_algorithms/headers/algorithm/synopsis.cc: Check |
| 4975 |
feature test macro in C++20 mode. |
| 4976 |
|
| 4977 |
2024-06-07 Jonathan Wakely <[email protected]> |
| 4978 |
|
| 4979 |
* include/bits/ranges_algobase.h: Include <bits/stl_algobase.h>. |
| 4980 |
|
| 4981 |
2024-06-07 Alexandre Oliva <[email protected]> |
| 4982 |
|
| 4983 |
* include/std/variant: Drop obsolete workaround. |
| 4984 |
|
| 4985 |
2024-06-07 Jonathan Wakely <[email protected]> |
| 4986 |
|
| 4987 |
* include/bits/ptr_traits.h (to_address): Optimize. |
| 4988 |
* testsuite/20_util/to_address/1_neg.cc: Adjust dg-error text. |
| 4989 |
|
| 4990 |
2024-06-06 Alexandre Oliva <[email protected]> |
| 4991 |
|
| 4992 |
* include/bits/c++config (_GLIBCXX_CLANG): Define or undefine. |
| 4993 |
* include/bits/locale_facets_nonio.tcc: Test for it. |
| 4994 |
* include/bits/stl_bvector.h: Likewise. |
| 4995 |
* include/c_compatibility/stdatomic.h: Likewise. |
| 4996 |
* include/experimental/bits/simd.h: Likewise. |
| 4997 |
* include/experimental/bits/simd_builtin.h: Likewise. |
| 4998 |
* include/experimental/bits/simd_detail.h: Likewise. |
| 4999 |
* include/experimental/bits/simd_x86.h: Likewise. |
| 5000 |
* include/experimental/simd: Likewise. |
| 5001 |
* include/std/complex: Likewise. |
| 5002 |
* include/std/ranges: Likewise. |
| 5003 |
* include/std/variant: Likewise. |
| 5004 |
* include/pstl/pstl_config.h: Likewise. |
| 5005 |
|
| 5006 |
2024-06-05 Gerald Pfeifer <[email protected]> |
| 5007 |
|
| 5008 |
* doc/xml/faq.xml: Move gcc.gnu.org to https. |
| 5009 |
* doc/html/faq.html: Regenerate. |
| 5010 |
|
| 5011 |
2024-06-04 Jonathan Wakely <[email protected]> |
| 5012 |
|
| 5013 |
PR libstdc++/115335 |
| 5014 |
* include/std/span (span::at): Guard with feature test macro. |
| 5015 |
|
| 5016 |
2024-06-04 Matthias Kretz <[email protected]> |
| 5017 |
|
| 5018 |
PR libstdc++/115308 |
| 5019 |
* include/experimental/bits/simd.h (__int_for_sizeof): Remove |
| 5020 |
special cases for __clang__. |
| 5021 |
(_SimdWrapper): Change constructor overload set to allow |
| 5022 |
conversion from vector types with integral conversions via bit |
| 5023 |
reinterpretation. |
| 5024 |
|
| 5025 |
2024-06-03 Jonathan Wakely <[email protected]> |
| 5026 |
|
| 5027 |
* include/std/stacktrace (basic_stacktrace::_Impl::_M_allocate): |
| 5028 |
Use __detail::__get_temporary_buffer. |
| 5029 |
(basic_stacktrace::_Impl::_M_deallocate): Use |
| 5030 |
__detail::__return_temporary_buffer. |
| 5031 |
|
| 5032 |
2024-06-03 Jonathan Wakely <[email protected]> |
| 5033 |
|
| 5034 |
PR libstdc++/105258 |
| 5035 |
* include/bits/stl_tempbuf.h (__detail::__get_temporary_buffer): |
| 5036 |
New function to do allocation for get_temporary_buffer, with |
| 5037 |
extended alignment support. |
| 5038 |
(__detail::__return_temporary_buffer): Support extended |
| 5039 |
alignment. |
| 5040 |
(get_temporary_buffer): Use __get_temporary_buffer. |
| 5041 |
(return_temporary_buffer): Support extended alignment. Add |
| 5042 |
deprecated attribute. |
| 5043 |
(_Temporary_buffer): Move allocation and deallocation into a |
| 5044 |
subobject and remove try-catch block in constructor. |
| 5045 |
(__uninitialized_construct_buf): Use argument deduction for |
| 5046 |
value type. |
| 5047 |
* testsuite/20_util/temporary_buffer.cc: Add dg-warning for new |
| 5048 |
deprecated warning. |
| 5049 |
* testsuite/25_algorithms/stable_sort/overaligned.cc: New test. |
| 5050 |
|
| 5051 |
2024-06-03 François Dumont <[email protected]> |
| 5052 |
|
| 5053 |
PR libstdc++/109849 |
| 5054 |
* include/bits/vector.tcc |
| 5055 |
(std::vector<>::_M_range_insert(iterator, _FwdIt, _FwdIt, |
| 5056 |
forward_iterator_tag))[__cplusplus < 201103L]: Add __builtin_unreachable |
| 5057 |
expression to tell the compiler that the allocated buffer is large enough to |
| 5058 |
receive current elements plus the elements of the range to insert. |
| 5059 |
|
| 5060 |
2024-06-03 Jonathan Wakely <[email protected]> |
| 5061 |
|
| 5062 |
* include/std/string_view (starts_with(basic_string_view)): |
| 5063 |
Compare lengths first and then call traits_type::compare |
| 5064 |
directly. |
| 5065 |
|
| 5066 |
2024-06-02 Gerald Pfeifer <[email protected]> |
| 5067 |
|
| 5068 |
* doc/xml/api.xml: Move gcc.gnu.org links to https. |
| 5069 |
* doc/html/api.html: Regenerate. |
| 5070 |
|
| 5071 |
2024-06-01 Jonathan Wakely <[email protected]> |
| 5072 |
|
| 5073 |
PR libstdc++/115269 |
| 5074 |
* doc/xml/manual/using.xml: Replace link to gcc-4.3.2 docs. |
| 5075 |
Replace list of -std=... options with a single entry for -std. |
| 5076 |
* doc/html/manual/using.html: Regenerate. |
| 5077 |
|
| 5078 |
2024-05-30 Alexandre Oliva <[email protected]> |
| 5079 |
|
| 5080 |
* configure.ac [*-*-rtems*]: Set chdir, chmod and mkdir as |
| 5081 |
available. |
| 5082 |
* configure: Rebuilt. |
| 5083 |
|
| 5084 |
2024-05-29 François Dumont <[email protected]> |
| 5085 |
|
| 5086 |
* include/bits/vector.tcc (_Guard): Move all the nested duplicated class... |
| 5087 |
* include/bits/stl_vector.h (_Guard_alloc): ...here and rename. |
| 5088 |
(_M_allocate_and_copy): Use latter. |
| 5089 |
(_M_initialize_dispatch): Small code simplification. |
| 5090 |
(_M_range_initialize): Likewise and set _M_finish first from the result |
| 5091 |
of __uninitialize_fill_n_a that can throw. |
| 5092 |
|
| 5093 |
2024-05-29 Rainer Orth <[email protected]> |
| 5094 |
|
| 5095 |
PR libstdc++/111641 |
| 5096 |
* src/libbacktrace/Makefile.am (AM_CFLAGS): Add -funwind-tables. |
| 5097 |
* src/libbacktrace/Makefile.in: Regenerate. |
| 5098 |
* testsuite/19_diagnostics/stacktrace/current.cc (dg-options): Add |
| 5099 |
-funwind-tables. |
| 5100 |
* testsuite/19_diagnostics/stacktrace/entry.cc: Likewise. |
| 5101 |
* testsuite/19_diagnostics/stacktrace/hash.cc: Likewise. |
| 5102 |
* testsuite/19_diagnostics/stacktrace/output.cc: Likewise. |
| 5103 |
* testsuite/19_diagnostics/stacktrace/stacktrace.cc: Likewise. |
| 5104 |
|
| 5105 |
2024-05-29 Matthias Kretz <[email protected]> |
| 5106 |
|
| 5107 |
PR libstdc++/115247 |
| 5108 |
* include/experimental/bits/simd.h (__as_vector): Don't use |
| 5109 |
vector_size(8) on __i386__. |
| 5110 |
(__vec_shuffle): Never return MMX vectors, widen to 16 bytes |
| 5111 |
instead. |
| 5112 |
(concat): Fix padding calculation to pick up widening logic from |
| 5113 |
__as_vector. |
| 5114 |
|
| 5115 |
2024-05-23 Patrick Palka <[email protected]> |
| 5116 |
|
| 5117 |
* include/bits/version.def (ranges_concat): Define. |
| 5118 |
* include/bits/version.h: Regenerate. |
| 5119 |
* include/std/ranges (__detail::__concat_reference_t): Define |
| 5120 |
for C++26. |
| 5121 |
(__detail::__concat_value_t): Likewise. |
| 5122 |
(__detail::__concat_rvalue_reference_t): Likewise. |
| 5123 |
(__detail::__concat_indirectly_readable_impl): Likewise. |
| 5124 |
(__detail::__concat_indirectly_readable): Likewise. |
| 5125 |
(__detail::__concatable): Likewise. |
| 5126 |
(__detail::__all_but_last_common): Likewise. |
| 5127 |
(__detail::__concat_is_random_access): Likewise. |
| 5128 |
(__detail::__concat_is_bidirectional): Likewise. |
| 5129 |
(__detail::__last_is_common): Likewise. |
| 5130 |
(concat_view): Likewise. |
| 5131 |
(__detail::__concat_view_iter_cat): Likewise. |
| 5132 |
(concat_view::iterator): Likewise. |
| 5133 |
(views::__detail::__can_concat_view): Likewise. |
| 5134 |
(views::_Concat, views::concat): Likewise. |
| 5135 |
* testsuite/std/ranges/concat/1.cc: New test. |
| 5136 |
|
| 5137 |
2024-05-22 Jonathan Wakely <[email protected]> |
| 5138 |
|
| 5139 |
* include/bits/locale_classes.h (locale::combine) |
| 5140 |
(locale::name, locale::operator==, locale::operator!=) |
| 5141 |
(locale::operator(), locale::classic): Add nodiscard |
| 5142 |
attribute. |
| 5143 |
* include/bits/locale_classes.tcc (has_facet, use_facet): |
| 5144 |
Likewise. |
| 5145 |
* testsuite/22_locale/locale/cons/12438.cc: Add dg-warning for |
| 5146 |
nodiscard diagnostic. |
| 5147 |
* testsuite/22_locale/locale/cons/2.cc: Cast use_facet |
| 5148 |
expression to void, to suppress diagnostic. |
| 5149 |
* testsuite/22_locale/locale/cons/unicode.cc: Likewise. |
| 5150 |
* testsuite/22_locale/locale/operations/2.cc: Add dg-warning. |
| 5151 |
|
| 5152 |
2024-05-22 Jonathan Wakely <[email protected]> |
| 5153 |
|
| 5154 |
PR libstdc++/108323 |
| 5155 |
* include/bits/locale_classes.tcc (locale(const locale&, Facet*)): |
| 5156 |
Return a copy of the first argument when the facet pointer is |
| 5157 |
null, as per LWG 2295. |
| 5158 |
(locale::combine): Ensure the result is unnamed. |
| 5159 |
* src/c++11/localename.cc (_M_replace_categories): Ignore |
| 5160 |
whether the second locale has a name when cat == none, as per |
| 5161 |
LWG 3676. |
| 5162 |
* src/c++98/locale.cc (_M_install_facet): Use __builtin_expect |
| 5163 |
to predict that the facet pointer is non-null. |
| 5164 |
* testsuite/22_locale/locale/cons/names.cc: New test. |
| 5165 |
|
| 5166 |
2024-05-22 Jonathan Wakely <[email protected]> |
| 5167 |
|
| 5168 |
PR libstdc++/114940 |
| 5169 |
* include/bits/version.def (generator): Depend on |
| 5170 |
__cpp_sized_deallocation. |
| 5171 |
* include/bits/version.h: Regenerate. |
| 5172 |
* include/std/stacktrace (_GLIBCXX_SIZED_DELETE): New macro. |
| 5173 |
(basic_stacktrace::_Impl::_M_deallocate): Use it. |
| 5174 |
|
| 5175 |
2024-05-22 Jonathan Wakely <[email protected]> |
| 5176 |
|
| 5177 |
PR libstdc++/115099 |
| 5178 |
* include/bits/std_thread.h: Declare formatter as friend of |
| 5179 |
thread::id. |
| 5180 |
* include/std/thread (operator<<): Convert non-void pointers to |
| 5181 |
void pointers for output. |
| 5182 |
(formatter): Add constraint that thread::native_handle_type is a |
| 5183 |
pointer or integer. |
| 5184 |
(formatter::format): Reimplement without basic_ostringstream. |
| 5185 |
* testsuite/30_threads/thread/id/output.cc: Check output |
| 5186 |
compiles before <sstream> has been included. |
| 5187 |
|
| 5188 |
2024-05-22 Jonathan Wakely <[email protected]> |
| 5189 |
|
| 5190 |
PR libstdc++/115145 |
| 5191 |
* include/std/variant (operator==, operator!=, operator<) |
| 5192 |
(operator<=, operator>, operator>=): Add trailing-return-type to |
| 5193 |
lambda expressions to trigger conversion to bool. |
| 5194 |
* testsuite/20_util/variant/relops/115145.cc: New test. |
| 5195 |
|
| 5196 |
2024-05-17 Björn Schäpers <[email protected]> |
| 5197 |
|
| 5198 |
* acinclude.m4 (GLIBCXX_ENABLE_BACKTACE): Add check for |
| 5199 |
tlhelp32.h, matching libbacktrace. |
| 5200 |
* config.h.in: Regenerate. |
| 5201 |
* configure: Regenerate. |
| 5202 |
|
| 5203 |
2024-05-17 Jonathan Wakely <[email protected]> |
| 5204 |
|
| 5205 |
PR libstdc++/115119 |
| 5206 |
* include/bits/unicode.h (_Iterator::operator++(int)): Fix typo |
| 5207 |
in increment expression. |
| 5208 |
* testsuite/ext/unicode/grapheme_view.cc: Check post-increment |
| 5209 |
on view's iterator. |
| 5210 |
|
| 5211 |
2024-05-15 Jonathan Wakely <[email protected]> |
| 5212 |
|
| 5213 |
PR libstdc++/77704 |
| 5214 |
* include/bits/basic_ios.h (basic_ios::fill()): Do not modify |
| 5215 |
_M_fill and _M_fill_init in a const member function. |
| 5216 |
(basic_ios::fill(char_type)): Use _M_fill directly instead of |
| 5217 |
calling fill(). Set _M_fill_init to true. |
| 5218 |
* include/bits/basic_ios.tcc (basic_ios::init): Set _M_fill and |
| 5219 |
_M_fill_init here instead. |
| 5220 |
* testsuite/27_io/basic_ios/fill/char/1.cc: New test. |
| 5221 |
* testsuite/27_io/basic_ios/fill/wchar_t/1.cc: New test. |
| 5222 |
|
| 5223 |
2024-05-15 Jonathan Wakely <[email protected]> |
| 5224 |
|
| 5225 |
* include/std/variant (__detail::__variant::__compare): New |
| 5226 |
function template. |
| 5227 |
(operator==, operator!=, operator<, operator>, operator<=) |
| 5228 |
(operator>=): Replace macro definition with handwritten function |
| 5229 |
calling __detail::__variant::__compare. |
| 5230 |
(operator<=>): Call __detail::__variant::__compare. |
| 5231 |
|
| 5232 |
2024-05-15 Jonathan Wakely <[email protected]> |
| 5233 |
|
| 5234 |
PR libstdc++/89624 |
| 5235 |
* include/bits/atomic_base.h (memory_order): Use int as |
| 5236 |
underlying type. |
| 5237 |
* testsuite/29_atomics/atomic/89624.cc: New test. |
| 5238 |
|
| 5239 |
2024-05-14 Jonathan Wakely <[email protected]> |
| 5240 |
|
| 5241 |
PR libstdc++/115015 |
| 5242 |
* src/c++23/print.cc (__open_terminal(streambuf*)) [!__cpp_rtti]: |
| 5243 |
Do not use dynamic_cast. |
| 5244 |
|
| 5245 |
2024-05-14 Jonathan Wakely <[email protected]> |
| 5246 |
|
| 5247 |
* doc/xml/manual/strings.xml: Clarify that GCC 4.5 added |
| 5248 |
std::string::shrink_to_fit. |
| 5249 |
* doc/html/manual/strings.html: Regenerate. |
| 5250 |
|
| 5251 |
2024-05-14 Jonathan Wakely <[email protected]> |
| 5252 |
|
| 5253 |
PR libstdc++/115063 |
| 5254 |
* include/std/stacktrace (basic_stacktrace::max_size): Fix typo |
| 5255 |
in reference to _M_alloc member. |
| 5256 |
* testsuite/19_diagnostics/stacktrace/stacktrace.cc: Check |
| 5257 |
max_size() compiles. |
| 5258 |
|
| 5259 |
2024-05-13 Matthias Kretz <[email protected]> |
| 5260 |
|
| 5261 |
PR libstdc++/114958 |
| 5262 |
* include/experimental/bits/simd.h (__as_vector): Return scalar |
| 5263 |
simd as one-element vector. Return vector from single-vector |
| 5264 |
fixed_size simd. |
| 5265 |
(__vec_shuffle): New. |
| 5266 |
(__extract_part): Adjust return type signature. |
| 5267 |
(split): Use __extract_part for any split into non-fixed_size |
| 5268 |
simds. |
| 5269 |
(concat): If the return type stores a single vector, use |
| 5270 |
__vec_shuffle (which calls __builtin_shufflevector) to produce |
| 5271 |
the return value. |
| 5272 |
* include/experimental/bits/simd_builtin.h |
| 5273 |
(__shift_elements_right): Removed. |
| 5274 |
(__extract_part): Return single elements directly. Use |
| 5275 |
__vec_shuffle (which calls __builtin_shufflevector) to for all |
| 5276 |
non-trivial cases. |
| 5277 |
* include/experimental/bits/simd_fixed_size.h (__extract_part): |
| 5278 |
Return single elements directly. |
| 5279 |
* testsuite/experimental/simd/pr114958.cc: New test. |
| 5280 |
|
| 5281 |
2024-05-07 Jonathan Wakely <[email protected]> |
| 5282 |
|
| 5283 |
* include/bits/unicode.h (_Unicode_view::_M_read_utf8): Ensure |
| 5284 |
count of characters consumed is correct when the end of the |
| 5285 |
input is reached unexpectedly. |
| 5286 |
* testsuite/ext/unicode/view.cc: Test incomplete UTF-8 |
| 5287 |
sequences. |
| 5288 |
|
| 5289 |
2024-05-07 Jonathan Wakely <[email protected]> |
| 5290 |
|
| 5291 |
PR libstdc++/114866 |
| 5292 |
* include/bits/out_ptr.h [!_GLIBCXX_HOSTED]: Don't refer to |
| 5293 |
shared_ptr, __shared_ptr or __is_shred_ptr. |
| 5294 |
* testsuite/20_util/headers/memory/114866.cc: New test. |
| 5295 |
|
| 5296 |
2024-05-07 Jonathan Wakely <[email protected]> |
| 5297 |
|
| 5298 |
* include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): |
| 5299 |
Simplify. |
| 5300 |
|
| 5301 |
2024-05-07 Jonathan Wakely <[email protected]> |
| 5302 |
|
| 5303 |
* include/bits/stl_pair.h (operator==): Add constraint. |
| 5304 |
* include/bits/version.def (constrained_equality): Define. |
| 5305 |
* include/bits/version.h: Regenerate. |
| 5306 |
* include/std/optional: Define feature test macro. |
| 5307 |
(__optional_rep_op_t): Use is_convertible_v instead of |
| 5308 |
is_convertible. |
| 5309 |
* include/std/tuple: Define feature test macro. |
| 5310 |
(operator==, __tuple_cmp, operator<=>): Reimplement C++20 |
| 5311 |
comparisons using lambdas. Add constraints. |
| 5312 |
* include/std/utility: Define feature test macro. |
| 5313 |
* include/std/variant: Define feature test macro. |
| 5314 |
(_VARIANT_RELATION_FUNCTION_TEMPLATE): Add constraints. |
| 5315 |
(variant): Remove unnecessary friend declarations for comparison |
| 5316 |
operators. |
| 5317 |
* testsuite/20_util/optional/relops/constrained.cc: New test. |
| 5318 |
* testsuite/20_util/pair/comparison_operators/constrained.cc: |
| 5319 |
New test. |
| 5320 |
* testsuite/20_util/tuple/comparison_operators/constrained.cc: |
| 5321 |
New test. |
| 5322 |
* testsuite/20_util/variant/relops/constrained.cc: New test. |
| 5323 |
* testsuite/20_util/tuple/comparison_operators/overloaded.cc: |
| 5324 |
Disable for C++20 and later. |
| 5325 |
* testsuite/20_util/tuple/comparison_operators/overloaded2.cc: |
| 5326 |
Remove dg-error line for target c++20. |
| 5327 |
|
| 5328 |
2024-05-07 Jonathan Wakely <[email protected]> |
| 5329 |
|
| 5330 |
* include/backward/auto_ptr.h: Use https for URL in comment. |
| 5331 |
* include/bits/basic_ios.h: Likewise. |
| 5332 |
* include/std/iostream: Likewise. |
| 5333 |
|
| 5334 |
2024-05-07 Jonathan Wakely <[email protected]> |
| 5335 |
|
| 5336 |
* testsuite/util/testsuite_abi.cc: Update latest versions to |
| 5337 |
new versions that should be used in future. |
| 5338 |
|
| 5339 |
2024-05-07 Rainer Orth <[email protected]> |
| 5340 |
|
| 5341 |
* src/Makefile.am [ENABLE_SYMVERS_SUN] |
| 5342 |
(libstdc++-symbols.ver-sun): Pass $(libstdc___la_OBJECTS), |
| 5343 |
$(libstdc___la_LIBADD) to make_sunver.pl unmodified. |
| 5344 |
* src/Makefile.in: Regenerate. |
| 5345 |
|
| 5346 |
2024-05-07 Rainer Orth <[email protected]> |
| 5347 |
|
| 5348 |
* testsuite/lib/dg-options.exp (add_options_for_net_ts) |
| 5349 |
<*-*-solaris2*>: Don't link with -lsocket -lnsl. |
| 5350 |
|
| 5351 |
2024-05-03 Andreas Schwab <[email protected]> |
| 5352 |
|
| 5353 |
* config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update. |
| 5354 |
* config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update. |
| 5355 |
|
| 5356 |
2024-05-01 Jonathan Wakely <[email protected]> |
| 5357 |
|
| 5358 |
PR libstdc++/114891 |
| 5359 |
* include/std/generator: Check feature test macro before using |
| 5360 |
is_pointer_interconvertible_v. |
| 5361 |
|
| 5362 |
2024-04-30 Christophe Lyon <[email protected]> |
| 5363 |
|
| 5364 |
* testsuite/lib/gdb-test.exp (gdb-test): Fix regexp. Quote |
| 5365 |
newlines in logs. |
| 5366 |
|
| 5367 |
2024-04-29 Rainer Orth <[email protected]> |
| 5368 |
|
| 5369 |
Backported from master: |
| 5370 |
2024-04-29 Rainer Orth <[email protected]> |
| 5371 |
|
| 5372 |
* config/abi/post/i386-solaris/baseline_symbols.txt: Regenerate. |
| 5373 |
* config/abi/post/i386-solaris/amd64/baseline_symbols.txt: |
| 5374 |
Likewise. |
| 5375 |
* config/abi/post/sparc-solaris/baseline_symbols.txt: Likewise. |
| 5376 |
* config/abi/post/sparc-solaris/sparcv9/baseline_symbols.txt: |
| 5377 |
Likewise. |
| 5378 |
|
| 5379 |
2024-04-29 Rainer Orth <[email protected]> |
| 5380 |
|
| 5381 |
Backported from master: |
| 5382 |
2024-04-29 Rainer Orth <[email protected]> |
| 5383 |
|
| 5384 |
* config/abi/post/i386-solaris/baseline_symbols.txt: Regenerate. |
| 5385 |
* config/abi/post/i386-solaris/amd64/baseline_symbols.txt: |
| 5386 |
Likewise. |
| 5387 |
* config/abi/post/sparc-solaris/baseline_symbols.txt: Likewise. |
| 5388 |
* config/abi/post/sparc-solaris/sparcv9/baseline_symbols.txt: |
| 5389 |
Likewise. |
| 5390 |
|
| 5391 |
2024-04-26 Jonathan Wakely <[email protected]> |
| 5392 |
|
| 5393 |
PR libstdc++/114863 |
| 5394 |
* include/std/format (__formatter_fp::format): Only use |
| 5395 |
_M_localized for finite values. |
| 5396 |
* testsuite/std/format/functions/format.cc: Check localized |
| 5397 |
formatting of NaN and initiny. |
| 5398 |
|
| 5399 |
2024-04-26 Jonathan Wakely <[email protected]> |
| 5400 |
|
| 5401 |
* doc/html/manual/status.html: Regenerate. |
| 5402 |
* doc/xml/manual/status_cxx1998.xml: Adjust whitespace. |
| 5403 |
* doc/xml/manual/status_cxx2011.xml: Likewise. |
| 5404 |
* doc/xml/manual/status_cxx2014.xml: Likewise. |
| 5405 |
* doc/xml/manual/status_cxx2017.xml: Likewise. |
| 5406 |
* doc/xml/manual/status_cxx2020.xml: Likewise. |
| 5407 |
* doc/xml/manual/status_cxx2023.xml: Likewise. |
| 5408 |
* doc/xml/manual/status_cxxtr1.xml: Likewise. |
| 5409 |
* doc/xml/manual/status_cxxtr24733.xml: Likewise. |
| 5410 |
|
| 5411 |
2024-04-25 Jonathan Wakely <[email protected]> |
| 5412 |
|
| 5413 |
* scripts/run_doxygen: Rename man pages for nested types. |
| 5414 |
|
| 5415 |
2024-04-25 Jonathan Wakely <[email protected]> |
| 5416 |
|
| 5417 |
* include/std/chrono (tzdb_list): Fix typo in Doxygen comment. |
| 5418 |
|
| 5419 |
2024-04-25 Jonathan Wakely <[email protected]> |
| 5420 |
|
| 5421 |
* scripts/run_doxygen: Adjust sed pattern to match '\fR' for |
| 5422 |
new man output that Doxygen 1.10 generates. |
| 5423 |
|
| 5424 |
2024-04-25 Jonathan Wakely <[email protected]> |
| 5425 |
|
| 5426 |
* doc/doxygen/stdheader.cc (init_map): Add missing headers. |
| 5427 |
* doc/doxygen/user.cfg.in (EXCLUDE): Exclude generated files for |
| 5428 |
std::format and std::text_encoding. |
| 5429 |
|
| 5430 |
2024-04-25 Jonathan Wakely <[email protected]> |
| 5431 |
|
| 5432 |
* include/std/variant: Add comment to #include. |
| 5433 |
|
| 5434 |
2024-04-22 Matthias Kretz <[email protected]> |
| 5435 |
|
| 5436 |
PR libstdc++/114803 |
| 5437 |
* include/experimental/bits/simd_builtin.h |
| 5438 |
(_SimdBase2::operator __vector_type_t): There is no __builtin() |
| 5439 |
function in _SimdWrapper, instead use its conversion operator. |
| 5440 |
* testsuite/experimental/simd/pr114803_vecbuiltin_cvt.cc: New |
| 5441 |
test. |
| 5442 |
|
| 5443 |
2024-04-22 Matthias Kretz <[email protected]> |
| 5444 |
|
| 5445 |
* include/experimental/bits/simd.h: Ignore -Wnarrowing for |
| 5446 |
arm_neon.h. |
| 5447 |
(__int_for_sizeof): Replace tautological compare with checking |
| 5448 |
for invalid template parameter value. |
| 5449 |
* include/experimental/bits/simd_builtin.h (__extract_part): |
| 5450 |
Remove tautological compare by combining two static_assert. |
| 5451 |
|
| 5452 |
2024-04-22 Jakub Jelinek <[email protected]> |
| 5453 |
|
| 5454 |
* testsuite/17_intro/names.cc (d, f): Undefine on s390*-linux*. |
| 5455 |
* testsuite/17_intro/headers/c++1998/all_attributes.cc (packed): Don't |
| 5456 |
define on s390. |
| 5457 |
* testsuite/17_intro/headers/c++2011/all_attributes.cc (packed): |
| 5458 |
Likewise. |
| 5459 |
* testsuite/17_intro/headers/c++2014/all_attributes.cc (packed): |
| 5460 |
Likewise. |
| 5461 |
* testsuite/17_intro/headers/c++2017/all_attributes.cc (packed): |
| 5462 |
Likewise. |
| 5463 |
* testsuite/17_intro/headers/c++2020/all_attributes.cc (packed): |
| 5464 |
Likewise. |
| 5465 |
|
| 5466 |
2024-04-19 Jonathan Wakely <[email protected]> |
| 5467 |
|
| 5468 |
* include/bits/refwrap.h (operator<=>): Simplify constraints. |
| 5469 |
|
| 5470 |
2024-04-19 Jonathan Wakely <[email protected]> |
| 5471 |
|
| 5472 |
PR libstdc++/114770 |
| 5473 |
* src/c++20/tzdb.cc (do_locate_zone): Support links that have |
| 5474 |
another link as their target. |
| 5475 |
* testsuite/std/time/tzdb/1.cc: Check that all zones and links |
| 5476 |
can be found by locate_zone. |
| 5477 |
* testsuite/std/time/tzdb/links.cc: New test. |
| 5478 |
|
| 5479 |
2024-04-18 Alexandre Oliva <[email protected]> |
| 5480 |
|
| 5481 |
* testsuite/29_atomics/atomic/compare_exchange_padding.cc: |
| 5482 |
Disable SRA. |
| 5483 |
|
| 5484 |
2024-04-18 Alexandre Oliva <[email protected]> |
| 5485 |
|
| 5486 |
* testsuite/20_util/from_chars/8.cc: Skip float128_t testing |
| 5487 |
on aarch64-vxworks. |
| 5488 |
* testsuite/20_util/to_chars/float128_c++23.cc: Xfail run on |
| 5489 |
aarch64-vxworks. |
| 5490 |
|
| 5491 |
2024-04-18 Alexandre Oliva <[email protected]> |
| 5492 |
|
| 5493 |
* src/c++20/tzdb.cc (__gnu_cxx::zoneinfo_dir_override): Define |
| 5494 |
on VxWorks non-RTP. |
| 5495 |
|
| 5496 |
2024-04-17 Jonathan Wakely <[email protected]> |
| 5497 |
|
| 5498 |
* include/std/ostream (println(ostream&)): Define new overload. |
| 5499 |
* include/std/print (println(FILE*), println()): Likewise. |
| 5500 |
* testsuite/27_io/basic_ostream/print/2.cc: New test. |
| 5501 |
* testsuite/27_io/print/1.cc: Remove unused header. |
| 5502 |
* testsuite/27_io/print/3.cc: New test. |
| 5503 |
|
| 5504 |
2024-04-17 Matthias Kretz <[email protected]> |
| 5505 |
|
| 5506 |
* include/experimental/bits/numeric_traits.h: Add include guard. |
| 5507 |
|
| 5508 |
2024-04-17 Matthias Kretz <[email protected]> |
| 5509 |
|
| 5510 |
PR libstdc++/114750 |
| 5511 |
* include/experimental/bits/simd_builtin.h |
| 5512 |
(_SimdImplBuiltin::_S_load, _S_store): Fall back to copying |
| 5513 |
scalars if the memory type cannot be vectorized for the target. |
| 5514 |
|
| 5515 |
2024-04-16 Jonathan Wakely <[email protected]> |
| 5516 |
|
| 5517 |
* config/locale/dragonfly/numeric_members.cc: Fix typos in |
| 5518 |
comments. |
| 5519 |
* config/locale/gnu/numeric_members.cc: Likewise. |
| 5520 |
|
| 5521 |
2024-04-15 Jonathan Wakely <[email protected]> |
| 5522 |
|
| 5523 |
* doc/xml/manual/abi.xml: Replace "<next>" with "14.1.0". |
| 5524 |
* doc/html/manual/abi.html: Regenerate. |
| 5525 |
|
| 5526 |
2024-04-15 Jonathan Wakely <[email protected]> |
| 5527 |
|
| 5528 |
* include/bits/refwrap.h (reference_wrapper): Add comparison |
| 5529 |
operators as proposed by P2944R3. |
| 5530 |
* include/bits/version.def (reference_wrapper): Define. |
| 5531 |
* include/bits/version.h: Regenerate. |
| 5532 |
* include/std/functional: Enable feature test macro. |
| 5533 |
* testsuite/20_util/reference_wrapper/compare.cc: New test. |
| 5534 |
|
| 5535 |
2024-04-15 Jonathan Wakely <[email protected]> |
| 5536 |
|
| 5537 |
PR libstdc++/113386 |
| 5538 |
* include/bits/stl_pair.h (operator==, operator<=>): Support |
| 5539 |
heterogeneous comparisons, as per LWG 3865. |
| 5540 |
* testsuite/20_util/pair/comparison_operators/lwg3865.cc: New |
| 5541 |
test. |
| 5542 |
|
| 5543 |
2024-04-15 Jonathan Wakely <[email protected]> |
| 5544 |
|
| 5545 |
PR libstdc++/93672 |
| 5546 |
* src/c++98/istream.cc (istream::ignore(streamsize, int_type)): |
| 5547 |
Treat all negative delimiter values as eof(). |
| 5548 |
* testsuite/27_io/basic_istream/ignore/char/93672.cc: New test. |
| 5549 |
* testsuite/27_io/basic_istream/ignore/wchar_t/93672.cc: New |
| 5550 |
test. |
| 5551 |
|
| 5552 |
2024-04-15 Andreas Schwab <[email protected]> |
| 5553 |
|
| 5554 |
* config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update. |
| 5555 |
|
| 5556 |
2024-04-13 H.J. Lu <[email protected]> |
| 5557 |
|
| 5558 |
* config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: |
| 5559 |
Updated. |
| 5560 |
|
| 5561 |
2024-04-11 Jakub Jelinek <[email protected]> |
| 5562 |
|
| 5563 |
* doc/xml/manual/abi.xml: Add latest library versions. |
| 5564 |
* doc/html/manual/abi.html: Regenerate. |
| 5565 |
|
| 5566 |
2024-04-11 Jakub Jelinek <[email protected]> |
| 5567 |
|
| 5568 |
* config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update. |
| 5569 |
* config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update. |
| 5570 |
* config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update. |
| 5571 |
* config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update. |
| 5572 |
* config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update. |
| 5573 |
* config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update. |
| 5574 |
* config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update. |
| 5575 |
* config/abi/post/powerpc64le-linux-gnu/baseline_symbols.txt: Update. |
| 5576 |
* config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update. |
| 5577 |
|
| 5578 |
2024-04-11 Jonathan Wakely <[email protected]> |
| 5579 |
|
| 5580 |
PR libstdc++/114692 |
| 5581 |
* config/abi/pre/gnu.ver (GLIBCXX_3.4.32): Move new exports for |
| 5582 |
__basic_file::native_handle to ... |
| 5583 |
(GLIBCXX_3.4.33): ... here. Adjust to not match wchar_t |
| 5584 |
specialization, which isn't used. |
| 5585 |
* testsuite/util/testsuite_abi.cc: Add GLIBCXX_3.4.33 and update |
| 5586 |
latest version check. |
| 5587 |
|
| 5588 |
2024-04-11 Jakub Jelinek <[email protected]> |
| 5589 |
|
| 5590 |
* config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update. |
| 5591 |
* config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update. |
| 5592 |
* config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update. |
| 5593 |
* config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update. |
| 5594 |
* config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update. |
| 5595 |
* config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update. |
| 5596 |
* config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update. |
| 5597 |
* config/abi/post/powerpc64le-linux-gnu/baseline_symbols.txt: Update. |
| 5598 |
* config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update. |
| 5599 |
|
| 5600 |
2024-04-10 Jonathan Wakely <[email protected]> |
| 5601 |
|
| 5602 |
* testsuite/27_io/manipulators/extended/get_time/char/2.cc: |
| 5603 |
Adjust input string so that it matches %a with or without a |
| 5604 |
trailing period. |
| 5605 |
* testsuite/std/time/year_month_day/io.cc: Adjust expected |
| 5606 |
format for %x in the fr_FR locale. |
| 5607 |
|
| 5608 |
2024-04-10 Jonathan Wakely <[email protected]> |
| 5609 |
|
| 5610 |
* src/c++17/fs_ops.cc (remove_all) [__FreeBSD__ || __DragonFly__]: |
| 5611 |
Check for EMLINK as well as ELOOP. |
| 5612 |
[__NetBSD__]: Check for EFTYPE as well as ELOOP. |
| 5613 |
|
| 5614 |
2024-04-09 Jonathan Wakely <[email protected]> |
| 5615 |
|
| 5616 |
PR libstdc++/114633 |
| 5617 |
* include/bits/chrono_io.h (_Parser::operator()) <'S'>: Use |
| 5618 |
stream extraction if std::from_chars is not available. |
| 5619 |
|
| 5620 |
2024-04-08 Jonathan Wakely <[email protected]> |
| 5621 |
|
| 5622 |
PR libstdc++/114519 |
| 5623 |
* include/bits/unicode.h (_Utf8_view) [!__cpp_char8_t]: Define |
| 5624 |
using char instead of char8_t. |
| 5625 |
* testsuite/ext/unicode/view.cc: Use u8""sv literals to create |
| 5626 |
string views, instead of std::u8string_view. |
| 5627 |
|
| 5628 |
2024-04-08 Jonathan Wakely <[email protected]> |
| 5629 |
|
| 5630 |
* testsuite/20_util/integer_comparisons/equal_neg.cc: Use |
| 5631 |
no-opts selector for errors that depend on -fchar8_t. |
| 5632 |
* testsuite/20_util/integer_comparisons/greater_equal_neg.cc: |
| 5633 |
Likewise. |
| 5634 |
* testsuite/20_util/integer_comparisons/greater_neg.cc: |
| 5635 |
Likewise. |
| 5636 |
* testsuite/20_util/integer_comparisons/in_range_neg.cc: |
| 5637 |
Likewise. |
| 5638 |
* testsuite/20_util/integer_comparisons/less_equal_neg.cc: |
| 5639 |
Likewise. |
| 5640 |
* testsuite/20_util/integer_comparisons/less_neg.cc: Likewise. |
| 5641 |
* testsuite/20_util/integer_comparisons/not_equal_neg.cc: |
| 5642 |
Likewise. |
| 5643 |
* testsuite/21_strings/basic_string/hash/hash_char8_t.cc: Skip |
| 5644 |
if -fno-char8_t is used. |
| 5645 |
* testsuite/21_strings/headers/cuchar/functions_std_cxx20.cc: |
| 5646 |
Likewise. |
| 5647 |
* testsuite/27_io/basic_ostream/inserters_character/char/deleted.cc: |
| 5648 |
Likewise. |
| 5649 |
* testsuite/27_io/basic_ostream/inserters_character/wchar_t/deleted.cc: |
| 5650 |
Likewise. |
| 5651 |
* testsuite/27_io/filesystem/path/factory/u8path-depr.cc: Use |
| 5652 |
char for u8 literal if char8_t is not available. |
| 5653 |
* testsuite/27_io/headers/iosfwd/synopsis.cc: Check |
| 5654 |
__cpp_char8_t. |
| 5655 |
* testsuite/29_atomics/atomic_integral/wait_notify.cc: Likewise. |
| 5656 |
* testsuite/29_atomics/headers/atomic/types_std_c++20_neg.cc: |
| 5657 |
Remove check for _GLIBCXX_USE_CHAR8_T. |
| 5658 |
|
| 5659 |
2024-04-08 Jonathan Wakely <[email protected]> |
| 5660 |
|
| 5661 |
* testsuite/20_util/from_chars/1_neg.cc: Add char8_t cases, |
| 5662 |
using a struct of that name if -fno-char8_t is active. |
| 5663 |
* testsuite/20_util/from_chars/1_c++20_neg.cc: Removed. |
| 5664 |
|
| 5665 |
2024-04-03 Jonathan Wakely <[email protected]> |
| 5666 |
|
| 5667 |
PR libstdc++/104606 |
| 5668 |
* include/std/optional (operator<=>(const optional<T>&, const U&)): |
| 5669 |
Reverse order of three_way_comparable_with template arguments. |
| 5670 |
* testsuite/20_util/optional/relops/104606.cc: New test. |
| 5671 |
|
| 5672 |
2024-04-02 Jonathan Wakely <[email protected]> |
| 5673 |
|
| 5674 |
PR libstdc++/114519 |
| 5675 |
* include/bits/unicode.h (_Utf8_view): Guard with check for |
| 5676 |
char8_t being enabled. |
| 5677 |
(__literal_encoding_is_unicode): Guard use of char8_t with check |
| 5678 |
for it being enabled. |
| 5679 |
* testsuite/std/format/functions/114519.cc: New test. |
| 5680 |
|
| 5681 |
2024-04-02 Patrick Palka <[email protected]> |
| 5682 |
|
| 5683 |
* include/std/ranges (ranges::__detail::_Empty): Rename to ... |
| 5684 |
(ranges::__detail::_Absent): ... this. Turn into a template |
| 5685 |
parameterized by the absent type _Tp and discriminator _Disc. |
| 5686 |
(ranges::__detail::__maybe_present_t): Add an optional |
| 5687 |
discriminator parameter. |
| 5688 |
(slide_view::_M_cached_begin): Pass a discriminator argument to |
| 5689 |
__maybe_present_t. |
| 5690 |
(slide_view::_M_cached_end): Likewise. |
| 5691 |
* testsuite/std/ranges/adaptors/sizeof.cc: Verify the size of |
| 5692 |
slide_view<V> is 3 instead 4 pointers. |
| 5693 |
|
| 5694 |
2024-04-02 Jakub Jelinek <[email protected]> |
| 5695 |
|
| 5696 |
* acinclude.m4: Fix duplicated words; file file -> file can. |
| 5697 |
* configure.host: Fix duplicated words; the the -> the. |
| 5698 |
|
| 5699 |
2024-03-29 Arsen Arsenović <[email protected]> |
| 5700 |
|
| 5701 |
* testsuite/24_iterators/range_generators/01.cc: Drop GCC |
| 5702 |
Runtime Library Exception. |
| 5703 |
* testsuite/24_iterators/range_generators/02.cc: Drop GCC |
| 5704 |
Runtime Library Exception. |
| 5705 |
* testsuite/24_iterators/range_generators/copy.cc: Drop GCC |
| 5706 |
Runtime Library Exception. |
| 5707 |
* testsuite/24_iterators/range_generators/except.cc: Drop GCC |
| 5708 |
Runtime Library Exception. |
| 5709 |
* testsuite/24_iterators/range_generators/subrange.cc: Drop GCC |
| 5710 |
Runtime Library Exception. |
| 5711 |
* testsuite/24_iterators/range_generators/synopsis.cc: Drop GCC |
| 5712 |
Runtime Library Exception. |
| 5713 |
* testsuite/24_iterators/range_generators/iter_deref_return.cc: |
| 5714 |
Drop GCC Runtime Library Exception from the "You should have |
| 5715 |
received a copy" paragraph. |
| 5716 |
|
| 5717 |
2024-03-27 Matthias Kretz <[email protected]> |
| 5718 |
|
| 5719 |
* include/experimental/bits/simd_x86.h (_S_masked_unary): |
| 5720 |
Cast inputs < 16 bytes to 16 byte vectors before calling the |
| 5721 |
right subtraction builtin. Before returning, truncate to the |
| 5722 |
return vector type. |
| 5723 |
|
| 5724 |
2024-03-27 Matthias Kretz <[email protected]> |
| 5725 |
|
| 5726 |
* include/experimental/bits/simd_x86.h (_S_masked_unary): Call |
| 5727 |
the 4- and 8-byte variants of __builtin_ia32_subp[ds] without |
| 5728 |
rounding direction argument. |
| 5729 |
|
| 5730 |
2024-03-27 Srinivas Yadav Singanaboina <[email protected]> |
| 5731 |
|
| 5732 |
* include/Makefile.am: Add simd_sve.h. |
| 5733 |
* include/Makefile.in: Add simd_sve.h. |
| 5734 |
* include/experimental/bits/simd.h: Add new SveAbi. |
| 5735 |
* include/experimental/bits/simd_builtin.h: Use |
| 5736 |
__no_sve_deduce_t to support existing Neon Abi. |
| 5737 |
* include/experimental/bits/simd_converter.h: Convert |
| 5738 |
sequentially when sve is available. |
| 5739 |
* include/experimental/bits/simd_detail.h: Define sve |
| 5740 |
specific macro. |
| 5741 |
* include/experimental/bits/simd_math.h: Fallback frexp |
| 5742 |
to execute sequntially when sve is available, to handle |
| 5743 |
fixed_size_simd return type that always uses sve. |
| 5744 |
* include/experimental/simd: Include bits/simd_sve.h. |
| 5745 |
* testsuite/experimental/simd/tests/bits/main.h: Enable |
| 5746 |
testing for sve128, sve256, sve512. |
| 5747 |
* include/experimental/bits/simd_sve.h: New file. |
| 5748 |
|
| 5749 |
2024-03-26 Arsen Arsenović <[email protected]> |
| 5750 |
|
| 5751 |
* include/std/generator (generator::_Iterator::operator*): Fix |
| 5752 |
return type. |
| 5753 |
* testsuite/24_iterators/range_generators/iter_deref_return.cc: |
| 5754 |
New test. |
| 5755 |
|
| 5756 |
2024-03-26 Arsen Arsenović <[email protected]> |
| 5757 |
|
| 5758 |
* include/std/generator: Fix _V badname. |
| 5759 |
|
| 5760 |
2024-03-26 Jonathan Wakely <[email protected]> |
| 5761 |
|
| 5762 |
* testsuite/19_diagnostics/stacktrace/current.cc: Check for |
| 5763 |
__cpp_lib_stacktrace instead of check for stacktrace ET. |
| 5764 |
* testsuite/19_diagnostics/stacktrace/entry.cc: Likewise. |
| 5765 |
* testsuite/19_diagnostics/stacktrace/hash.cc: Likewise. |
| 5766 |
* testsuite/19_diagnostics/stacktrace/output.cc: Likewise. |
| 5767 |
* testsuite/19_diagnostics/stacktrace/stacktrace.cc: Likewise. |
| 5768 |
* testsuite/19_diagnostics/stacktrace/synopsis.cc: Likewise. |
| 5769 |
* testsuite/19_diagnostics/stacktrace/version.cc: Likewise. |
| 5770 |
* testsuite/23_containers/vector/debug/assign4_backtrace_neg.cc: |
| 5771 |
Likewise. |
| 5772 |
* testsuite/lib/libstdc++.exp (check_effective_target_stacktrace): |
| 5773 |
Remove. |
| 5774 |
|
| 5775 |
2024-03-26 Jonathan Wakely <[email protected]> |
| 5776 |
|
| 5777 |
* testsuite/lib/dg-options.exp (dg-require-cpp-feature-test): |
| 5778 |
New proc. |
| 5779 |
* testsuite/lib/libstdc++.exp (check_v3_target_cpp_feature_test): |
| 5780 |
New proc. |
| 5781 |
* testsuite/std/text_encoding/cons.cc: Use new directive to skip |
| 5782 |
the test if the __cpp_lib_text_encoding feature test macro is |
| 5783 |
not defined. |
| 5784 |
* testsuite/std/text_encoding/requirements.cc: Likewise. |
| 5785 |
|
| 5786 |
2024-03-25 Jonathan Wakely <[email protected]> |
| 5787 |
|
| 5788 |
* testsuite/std/text_encoding/requirements.cc: #undef the |
| 5789 |
correct macro. |
| 5790 |
|
| 5791 |
2024-03-23 Jonathan Wakely <[email protected]> |
| 5792 |
|
| 5793 |
* include/std/format (formatter): Disable specializations that |
| 5794 |
would allow sequences of narrow characters to be formatted as |
| 5795 |
wchar_t without conversion, as per LWG 3944. |
| 5796 |
* testsuite/std/format/formatter/lwg3944.cc: New test. |
| 5797 |
|
| 5798 |
2024-03-23 Jonathan Wakely <[email protected]> |
| 5799 |
|
| 5800 |
* include/bits/utility.h (__is_in_place_index_v): New variable |
| 5801 |
template. |
| 5802 |
* include/std/variant (__not_in_place_tag): Define in terms of |
| 5803 |
variable templates not a class template. |
| 5804 |
|
| 5805 |
2024-03-23 Jonathan Wakely <[email protected]> |
| 5806 |
|
| 5807 |
PR libstdc++/114400 |
| 5808 |
* include/std/string_view (operator==): Use std::type_identity_t |
| 5809 |
in C++20 instead of our own __type_identity_t. |
| 5810 |
|
| 5811 |
2024-03-22 Jonathan Wakely <[email protected]> |
| 5812 |
|
| 5813 |
PR libstdc++/114401 |
| 5814 |
* include/bits/hashtable.h (_Hashtable::_M_reinsert_node): Call |
| 5815 |
release() on node handle instead of just zeroing its pointer. |
| 5816 |
(_Hashtable::_M_reinsert_node_multi): Likewise. |
| 5817 |
(_Hashtable::_M_merge_unique): Likewise. |
| 5818 |
(_Hashtable::_M_merge_multi): Likewise. |
| 5819 |
* include/bits/node_handle.h (_Node_handle_common::release()): |
| 5820 |
New member function. |
| 5821 |
(_Node_handle_common::_Optional_alloc::_M_empty): Remove |
| 5822 |
unnecessary union member. |
| 5823 |
(_Node_handle_common): Declare _Hashtable as a friend. |
| 5824 |
* include/bits/stl_tree.h (_Rb_tree::_M_reinsert_node_unique): |
| 5825 |
Call release() on node handle instead of just zeroing its |
| 5826 |
pointer. |
| 5827 |
(_Rb_tree::_M_reinsert_node_equal): Likewise. |
| 5828 |
(_Rb_tree::_M_reinsert_node_hint_unique): Likewise. |
| 5829 |
(_Rb_tree::_M_reinsert_node_hint_equal): Likewise. |
| 5830 |
* testsuite/23_containers/multiset/modifiers/114401.cc: New test. |
| 5831 |
* testsuite/23_containers/set/modifiers/114401.cc: New test. |
| 5832 |
* testsuite/23_containers/unordered_multiset/modifiers/114401.cc: New test. |
| 5833 |
* testsuite/23_containers/unordered_set/modifiers/114401.cc: New test. |
| 5834 |
|
| 5835 |
2024-03-22 Jonathan Wakely <[email protected]> |
| 5836 |
|
| 5837 |
PR libstdc++/113841 |
| 5838 |
* include/bits/allocator.h (allocator<cv T>): Add default |
| 5839 |
constructor to partial specializations for cv-qualified types. |
| 5840 |
* include/bits/stl_vector.h (_Vector_impl::_Vector_impl()): |
| 5841 |
Constrain so that it's only present if the allocator is default |
| 5842 |
constructible. |
| 5843 |
* include/bits/stl_bvector.h (_Bvector_impl::_Bvector_impl()): |
| 5844 |
Likewise. |
| 5845 |
* testsuite/23_containers/vector/cons/113841.cc: New test. |
| 5846 |
|
| 5847 |
2024-03-22 Jonathan Wakely <[email protected]> |
| 5848 |
|
| 5849 |
* include/bits/stl_construct.h (destroy_at, construct_at): Guard |
| 5850 |
with feature test macros instead of just __cplusplus. |
| 5851 |
|
| 5852 |
2024-03-22 Jonathan Wakely <[email protected]> |
| 5853 |
|
| 5854 |
* include/bits/version.def (generator, tuple_like): Move earlier |
| 5855 |
in the file. |
| 5856 |
* include/bits/version.h: Regenerate. |
| 5857 |
|
| 5858 |
2024-03-22 Jonathan Wakely <[email protected]> |
| 5859 |
|
| 5860 |
PR libstdc++/114394 |
| 5861 |
* include/std/functional (bind): Use __invoke_result_t instead |
| 5862 |
of result_of::type. |
| 5863 |
* include/std/type_traits (__invoke_result_t): New alias |
| 5864 |
template. |
| 5865 |
* testsuite/20_util/bind/ref_neg.cc: Adjust prune pattern. |
| 5866 |
|
| 5867 |
2024-03-20 François Dumont <[email protected]> |
| 5868 |
|
| 5869 |
* include/bits/version.def (null_iterators): Remove extra_cond. |
| 5870 |
* include/bits/version.h: Regenerate. |
| 5871 |
|
| 5872 |
2024-03-19 Jonathan Wakely <[email protected]> |
| 5873 |
|
| 5874 |
PR libstdc++/114359 |
| 5875 |
* include/bits/random.tcc (binomial_distribution::param_type): |
| 5876 |
Ensure arithmetic is done as type double. |
| 5877 |
* testsuite/26_numerics/random/binomial_distribution/114359.cc: New test. |
| 5878 |
|
| 5879 |
2024-03-19 Jonathan Wakely <[email protected]> |
| 5880 |
|
| 5881 |
PR libstdc++/101228 |
| 5882 |
* include/pstl/parallel_backend_tbb.h (TBB_SUPPRESS_DEPRECATED_MESSAGES): |
| 5883 |
Define before including <tbb/task.h> then undef afterwards. |
| 5884 |
|
| 5885 |
2024-03-19 Jonathan Wakely <[email protected]> |
| 5886 |
|
| 5887 |
* include/Makefile.am [MAINTAINER_MODE]: Add target to |
| 5888 |
automatically update <bits/version.h>. |
| 5889 |
* include/Makefile.in: Regenerate. |
| 5890 |
|
| 5891 |
2024-03-19 Jonathan Wakely <[email protected]> |
| 5892 |
|
| 5893 |
* doc/xml/manual/build_hacking.xml: Document generated files. |
| 5894 |
Update list of convenience libraries and sub-directories under |
| 5895 |
the src directory. |
| 5896 |
* doc/html/*: Regenerate. |
| 5897 |
|
| 5898 |
2024-03-19 Jonathan Wakely <[email protected]> |
| 5899 |
|
| 5900 |
* include/bits/text_encoding-data.h: Regenerate. |
| 5901 |
* include/bits/unicode-data.h: Regenerate. |
| 5902 |
* scripts/gen_text_encoding_data.py: Fix header of generated |
| 5903 |
file to name the correct script. |
| 5904 |
|
| 5905 |
2024-03-19 Jonathan Wakely <[email protected]> |
| 5906 |
|
| 5907 |
* testsuite/util/pstl/test_utils.h: Fix typos in comments. |
| 5908 |
|
| 5909 |
2024-03-19 Jonathan Wakely <[email protected]> |
| 5910 |
|
| 5911 |
PR libstdc++/114367 |
| 5912 |
* include/bits/stl_bvector.h (_M_allocate): Use allocator's |
| 5913 |
construct function to begin lifetime of words. |
| 5914 |
|
| 5915 |
2024-03-19 Iain Sandoe <[email protected]> |
| 5916 |
|
| 5917 |
* testsuite/lib/dg-options.exp (atomic_link_flags): Emit a -B |
| 5918 |
option for the path to the uninstalled libatomic. |
| 5919 |
|
| 5920 |
2024-03-19 Iain Sandoe <[email protected]> |
| 5921 |
|
| 5922 |
* testsuite/lib/libstdc++.exp (v3_target_compile): Instead of |
| 5923 |
/dev/null, use a temporary file for test executables on Darwin. |
| 5924 |
|
| 5925 |
2024-03-18 François Dumont <[email protected]> |
| 5926 |
|
| 5927 |
* include/debug/safe_iterator.tcc (_Safe_iterator<>::_M_can_advance): |
| 5928 |
Accept 0 offset advance on value-initialized iterator. |
| 5929 |
* testsuite/23_containers/vector/debug/n3644.cc: New test case. |
| 5930 |
|
| 5931 |
2024-03-18 François Dumont <[email protected]> |
| 5932 |
|
| 5933 |
* include/debug/safe_local_iterator.tcc |
| 5934 |
(_Safe_local_iterator::_M_valid_range): Add _M_value_initialized and |
| 5935 |
_M_singular checks. |
| 5936 |
* testsuite/23_containers/unordered_set/debug/114316.cc: New test case. |
| 5937 |
|
| 5938 |
2024-03-17 François Dumont <[email protected]> |
| 5939 |
|
| 5940 |
PR libstdc++/114316 |
| 5941 |
* include/debug/safe_iterator.tcc (_Safe_iterator<>::_M_valid_range): |
| 5942 |
First check if both iterators are value-initialized before checking if |
| 5943 |
singular. |
| 5944 |
* testsuite/23_containers/set/debug/114316.cc: New test case. |
| 5945 |
* testsuite/23_containers/vector/debug/114316.cc: New test case. |
| 5946 |
|
| 5947 |
2024-03-14 Jonathan Wakely <[email protected]> |
| 5948 |
|
| 5949 |
PR libstdc++/114325 |
| 5950 |
* include/std/format (_Scanner::_M_scan): Pass correct length to |
| 5951 |
__to_chars_10_impl. |
| 5952 |
* testsuite/std/format/functions/format.cc: Check negative |
| 5953 |
integers with empty format-spec. |
| 5954 |
|
| 5955 |
2024-03-14 Jonathan Wakely <[email protected]> |
| 5956 |
|
| 5957 |
* include/bits/stl_algo.h (find_end, all_of, none_of, any_of) |
| 5958 |
(find_if_not, is_partitioned, partition_point, remove) |
| 5959 |
(remove_if, unique, lower_bound, upper_bound, equal_range) |
| 5960 |
(binary_search, includes, is_sorted, is_sorted_until, minmax) |
| 5961 |
(minmax_element, is_permutation, clamp, find_if, find_first_of) |
| 5962 |
(adjacent_find, count, count_if, search, search_n, min_element) |
| 5963 |
(max_element): Add nodiscard attribute. |
| 5964 |
* include/bits/stl_algobase.h (min, max, lower_bound, equal) |
| 5965 |
(lexicographical_compare, lexicographical_compare_three_way) |
| 5966 |
(mismatch): Likewise. |
| 5967 |
* include/bits/stl_heap.h (is_heap, is_heap_until): Likewise. |
| 5968 |
* testsuite/25_algorithms/equal/debug/1_neg.cc: Add dg-warning. |
| 5969 |
* testsuite/25_algorithms/equal/debug/2_neg.cc: Likewise. |
| 5970 |
* testsuite/25_algorithms/equal/debug/3_neg.cc: Likewise. |
| 5971 |
* testsuite/25_algorithms/find_first_of/concept_check_1.cc: |
| 5972 |
Likewise. |
| 5973 |
* testsuite/25_algorithms/is_permutation/2.cc: Likewise. |
| 5974 |
* testsuite/25_algorithms/lexicographical_compare/71545.cc: |
| 5975 |
Likewise. |
| 5976 |
* testsuite/25_algorithms/lower_bound/33613.cc: Likewise. |
| 5977 |
* testsuite/25_algorithms/lower_bound/debug/irreflexive.cc: |
| 5978 |
Likewise. |
| 5979 |
* testsuite/25_algorithms/lower_bound/debug/partitioned_neg.cc: |
| 5980 |
Likewise. |
| 5981 |
* testsuite/25_algorithms/lower_bound/debug/partitioned_pred_neg.cc: |
| 5982 |
Likewise. |
| 5983 |
* testsuite/25_algorithms/minmax/3.cc: Likewise. |
| 5984 |
* testsuite/25_algorithms/search/78346.cc: Likewise. |
| 5985 |
* testsuite/25_algorithms/search_n/58358.cc: Likewise. |
| 5986 |
* testsuite/25_algorithms/unique/1.cc: Likewise. |
| 5987 |
* testsuite/25_algorithms/unique/11480.cc: Likewise. |
| 5988 |
* testsuite/25_algorithms/upper_bound/33613.cc: Likewise. |
| 5989 |
* testsuite/25_algorithms/upper_bound/debug/partitioned_neg.cc: |
| 5990 |
Likewise. |
| 5991 |
* testsuite/25_algorithms/upper_bound/debug/partitioned_pred_neg.cc: |
| 5992 |
Likewise. |
| 5993 |
* testsuite/ext/concept_checks.cc: Likewise. |
| 5994 |
* testsuite/ext/is_heap/47709.cc: Likewise. |
| 5995 |
* testsuite/ext/is_sorted/cxx0x.cc: Likewise. |
| 5996 |
|
| 5997 |
2024-03-14 xndcn <[email protected]> |
| 5998 |
|
| 5999 |
* include/bits/atomic_base.h (__atomic_float::__atomic_float(Fp)): |
| 6000 |
Clear padding. |
| 6001 |
* testsuite/29_atomics/atomic_float/compare_exchange_padding.cc: |
| 6002 |
New test. |
| 6003 |
|
| 6004 |
2024-03-14 Jonathan Wakely <[email protected]> |
| 6005 |
|
| 6006 |
PR libstdc++/66146 |
| 6007 |
* doc/xml/manual/status_cxx2011.xml: Remove mention of Linux in |
| 6008 |
note about std::call_once. |
| 6009 |
* doc/xml/manual/status_cxx2014.xml: Likewise. |
| 6010 |
* doc/xml/manual/status_cxx2017.xml: Likewise. |
| 6011 |
* doc/html/manual/status.html: Regenerate. |
| 6012 |
|
| 6013 |
2024-03-14 Jonathan Wakely <[email protected]> |
| 6014 |
|
| 6015 |
* doc/xml/manual/status_cxx2023.xml: Update C++23 status table. |
| 6016 |
* doc/html/manual/status.html: Regenerate. |
| 6017 |
* include/bits/version.def: Fix typo in comment. |
| 6018 |
|
| 6019 |
2024-03-13 Jonathan Wakely <[email protected]> |
| 6020 |
|
| 6021 |
* testsuite/libstdc++-prettyprinters/cxx11.cc: Move custom_cat |
| 6022 |
to namespace scope. |
| 6023 |
|
| 6024 |
2024-03-13 Jonathan Wakely <[email protected]> |
| 6025 |
|
| 6026 |
* doc/xml/manual/debug.xml: Improve docs on debug builds and |
| 6027 |
using ASan. Mention _GLIBCXX_ASSERTIONS. Reorder sections to put |
| 6028 |
the most relevant ones first. |
| 6029 |
* doc/xml/manual/using.xml: Add comma. |
| 6030 |
* doc/html/*: Regenerate. |
| 6031 |
|
| 6032 |
2024-03-13 Jonathan Wakely <[email protected]> |
| 6033 |
|
| 6034 |
* doc/xml/manual/debug.xml: Document that concept checking might |
| 6035 |
be removed in future. |
| 6036 |
* doc/xml/manual/extensions.xml: Likewise. |
| 6037 |
|
| 6038 |
2024-03-09 Jonathan Wakely <[email protected]> |
| 6039 |
|
| 6040 |
PR libstdc++/114240 |
| 6041 |
* include/bits/chrono_io.h (_Parser::operator()): Assume |
| 6042 |
hours(0) for a time_point, so that a time is not required |
| 6043 |
to be present. |
| 6044 |
* testsuite/std/time/parse/114240.cc: New test. |
| 6045 |
|
| 6046 |
2024-03-09 Jonathan Wakely <[email protected]> |
| 6047 |
|
| 6048 |
PR libstdc++/114279 |
| 6049 |
* include/bits/chrono_io.h (_Parser::_M_is_leap_second): New |
| 6050 |
data member. |
| 6051 |
(_Parser::_M_reserved): Reserve padding bits for future use. |
| 6052 |
(_Parser::operator()): Set _M_is_leap_second if %S reads 60s. |
| 6053 |
(from_stream): Only allow _M_is_leap_second for utc_time and |
| 6054 |
local_time. Adjust arithmetic for utc_time so that leap seconds |
| 6055 |
are preserved. Use time_point_cast to convert to a possibly |
| 6056 |
lower-precision result type. |
| 6057 |
* testsuite/std/time/parse.cc: Move to ... |
| 6058 |
* testsuite/std/time/parse/parse.cc: ... here. |
| 6059 |
* testsuite/std/time/parse/114279.cc: New test. |
| 6060 |
|
| 6061 |
2024-03-07 Jonathan Wakely <[email protected]> |
| 6062 |
|
| 6063 |
* include/bits/chrono_io.h (_Parser::operator()): Use |
| 6064 |
std::from_chars to parse fractional seconds. |
| 6065 |
|
| 6066 |
2024-03-07 Jonathan Wakely <[email protected]> |
| 6067 |
|
| 6068 |
PR libstdc++/114244 |
| 6069 |
* include/bits/chrono_io.h (_Parser::operator()): Remove |
| 6070 |
redundant uses of duration_cast. Use chrono::round to convert |
| 6071 |
long double value to durations with integer representations. |
| 6072 |
Check represenation type when deciding whether to skip parsing |
| 6073 |
fractional seconds. |
| 6074 |
* testsuite/20_util/duration/114244.cc: New test. |
| 6075 |
* testsuite/20_util/duration/io.cc: Check that a floating-point |
| 6076 |
duration with ratio<1> precision can be parsed. |
| 6077 |
|
| 6078 |
2024-03-07 Jonathan Wakely <[email protected]> |
| 6079 |
|
| 6080 |
PR libstdc++/114103 |
| 6081 |
* include/bits/version.def (atomic_lock_free_type_aliases): Add |
| 6082 |
extra_cond to check for at least one always-lock-free type. |
| 6083 |
* include/bits/version.h: Regenerate. |
| 6084 |
* include/std/atomic (atomic_signed_lock_free) |
| 6085 |
(atomic_unsigned_lock_free): Only use always-lock-free types. |
| 6086 |
* src/c++20/tzdb.cc (time_zone::_Impl::RulesCounter): Don't use |
| 6087 |
atomic counter if lock-free aliases aren't available. |
| 6088 |
* testsuite/29_atomics/atomic/lock_free_aliases.cc: XFAIL for |
| 6089 |
targets without lock-free word-size compare_exchange. |
| 6090 |
|
| 6091 |
2024-03-07 Jonathan Wakely <[email protected]> |
| 6092 |
|
| 6093 |
* include/std/chrono (__get_leap_second_info): Update expiry |
| 6094 |
time for hardcoded list of leap seconds. |
| 6095 |
* testsuite/std/time/tzdb/leap_seconds.cc: Update comment. |
| 6096 |
|
| 6097 |
2024-03-07 Jonathan Wakely <[email protected]> |
| 6098 |
|
| 6099 |
* testsuite/23_containers/deque/allocator/default_init.cc: Use |
| 6100 |
std::memset instead of __builtin_memset. |
| 6101 |
* testsuite/23_containers/forward_list/allocator/default_init.cc: |
| 6102 |
Likewise. |
| 6103 |
* testsuite/23_containers/list/allocator/default_init.cc: |
| 6104 |
Likewise. |
| 6105 |
* testsuite/23_containers/map/allocator/default_init.cc: |
| 6106 |
Likewise. |
| 6107 |
* testsuite/23_containers/set/allocator/default_init.cc: |
| 6108 |
Likewise. |
| 6109 |
* testsuite/23_containers/unordered_map/allocator/default_init.cc: |
| 6110 |
Likewise. |
| 6111 |
* testsuite/23_containers/unordered_set/allocator/default_init.cc: |
| 6112 |
Likewise. |
| 6113 |
* testsuite/23_containers/vector/allocator/default_init.cc: |
| 6114 |
Likewise. |
| 6115 |
* testsuite/23_containers/vector/bool/allocator/default_init.cc: |
| 6116 |
Likewise. |
| 6117 |
* testsuite/29_atomics/atomic/compare_exchange_padding.cc: |
| 6118 |
Likewise. |
| 6119 |
* testsuite/util/atomic/wait_notify_util.h: Likewise. |
| 6120 |
|
| 6121 |
2024-03-07 Jonathan Wakely <[email protected]> |
| 6122 |
|
| 6123 |
* include/std/format (_Arg_store::_S_make_elt): Add two |
| 6124 |
static_assert checks to give more user-friendly error messages. |
| 6125 |
* testsuite/lib/prune.exp (libstdc++-dg-prune): Prune another |
| 6126 |
form of "in requirements with" note. |
| 6127 |
* testsuite/std/format/arguments/args_neg.cc: Check for |
| 6128 |
user-friendly diagnostics for non-formattable types. |
| 6129 |
* testsuite/std/format/string_neg.cc: Likewise. |
| 6130 |
|
| 6131 |
2024-03-04 Jonathan Wakely <[email protected]> |
| 6132 |
|
| 6133 |
PR libstdc++/114147 |
| 6134 |
* include/std/tuple (tuple::tuple(allocator_arg_t, const Alloc&)): |
| 6135 |
Add missing overload of allocator-extended default constructor. |
| 6136 |
(tuple<T1,T2>::tuple(allocator_arg_t, const Alloc&)): Likewise. |
| 6137 |
* testsuite/20_util/tuple/cons/114147.cc: New test. |
| 6138 |
|
| 6139 |
2024-02-29 Jonathan Wakely <[email protected]> |
| 6140 |
|
| 6141 |
* include/std/format (basic_format_arg::handle::__maybe_const_t): |
| 6142 |
Fix condition to check if const type is formattable. |
| 6143 |
(basic_format_arg::handle::handle(T&)): Remove redundant |
| 6144 |
static_assert. |
| 6145 |
* testsuite/std/format/formatter/basic.cc: New test. |
| 6146 |
|
| 6147 |
2024-02-29 Jonathan Wakely <[email protected]> |
| 6148 |
|
| 6149 |
PR libstdc++/113960 |
| 6150 |
* include/bits/stl_algobase.h (__is_byte_iter): Replace with ... |
| 6151 |
(__memcmp_ordered_with): New concept. |
| 6152 |
(lexicographical_compare_three_way): Use __memcmp_ordered_with |
| 6153 |
instead of __is_byte_iter. Use correct length for memcmp. |
| 6154 |
* testsuite/25_algorithms/lexicographical_compare_three_way/113960.cc: |
| 6155 |
New test. |
| 6156 |
|
| 6157 |
2024-02-28 Jonathan Wakely <[email protected]> |
| 6158 |
|
| 6159 |
PR libstdc++/114152 |
| 6160 |
* include/experimental/scope (scope_exit scope_fail): Make |
| 6161 |
destructor unconditionally noexcept. |
| 6162 |
(scope_sucess): Fix noexcept-specifier. |
| 6163 |
* testsuite/experimental/scopeguard/114152.cc: New test. |
| 6164 |
|
| 6165 |
2024-02-28 Jonathan Wakely <[email protected]> |
| 6166 |
|
| 6167 |
* doc/xml/manual/appendix_contributing.xml: Change URLs to use |
| 6168 |
https. |
| 6169 |
* doc/html/manual/*: Regenerate. |
| 6170 |
|
| 6171 |
2024-02-28 Jonathan Wakely <[email protected]> |
| 6172 |
|
| 6173 |
* doc/xml/manual/appendix_contributing.xml: Replace outdated |
| 6174 |
info on ChangeLog entries. |
| 6175 |
* doc/html/manual/appendix_contributing.html: Regenerate. |
| 6176 |
|
| 6177 |
2024-02-28 Jonathan Wakely <[email protected]> |
| 6178 |
|
| 6179 |
* include/bits/stl_bvector.h (vector<bool, A>::at): Add |
| 6180 |
nodiscard. |
| 6181 |
* include/bits/stl_vector.h (vector<T, A>::at): Likewise. |
| 6182 |
(operator==, operator<=>, operator<, operator!=, operator>) |
| 6183 |
(operator<=, operator>=): Likewise. |
| 6184 |
* include/debug/vector (operator==, operator<=>, operator<) |
| 6185 |
(operator!=, operator>, operator<=, operator>=): Likewise. |
| 6186 |
* testsuite/23_containers/vector/nodiscard.cc: New test. |
| 6187 |
|
| 6188 |
2024-02-28 Jonathan Wakely <[email protected]> |
| 6189 |
|
| 6190 |
* include/bits/atomic_base.h (operator|, operator&): Add |
| 6191 |
noexcept. |
| 6192 |
* include/bits/fs_fwd.h (operator&, operator|, operator^) |
| 6193 |
(operator~): Add nodiscard to overloads for copy_options, perms, |
| 6194 |
perm_options, and directory_options. |
| 6195 |
* include/bits/ios_base.h (operator&, operator|, operator^) |
| 6196 |
(operator~): Add nodiscard and noexcept to overloads for |
| 6197 |
_Ios_Fmtflags, _Ios_Openmode, and _Ios_Iostate. |
| 6198 |
(operator|=, operator&=, operator^=): Add constexpr for C++14. |
| 6199 |
* include/bits/regex_constants.h (operator&, operator|, operator^) |
| 6200 |
(operator~): Add nodiscard and noexcept to overloads for |
| 6201 |
syntax_option_type and match_flag_type. |
| 6202 |
(operator|=, operator&=, operator^=): Add noexcept. |
| 6203 |
* include/std/charconv (operator&, operator|, operator^) |
| 6204 |
(operator~): Add nodiscard to overloads for chars_format. |
| 6205 |
* include/std/future (operator&, operator|, operator^) |
| 6206 |
(operator~): Add nodiscard for overloads for launch. |
| 6207 |
(operator&=, operator|=, operator^=): Add constexpr for C++14. |
| 6208 |
* include/experimental/bits/fs_fwd.h (operator&, operator|) |
| 6209 |
(operator^, operator~): Add nodiscard to overloads for |
| 6210 |
copy_options, perms, and directory_options. |
| 6211 |
* testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: |
| 6212 |
Add dg-warning for nodiscard warnings. |
| 6213 |
* testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: |
| 6214 |
Likewise. |
| 6215 |
* testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: |
| 6216 |
Likewise. |
| 6217 |
* testsuite/27_io/filesystem/operations/bitmask_types.cc: |
| 6218 |
New test. |
| 6219 |
|
| 6220 |
2024-02-28 Jonathan Wakely <[email protected]> |
| 6221 |
|
| 6222 |
* testsuite/27_io/basic_ostream/print/1.cc: Check error |
| 6223 |
handling. |
| 6224 |
* testsuite/27_io/print/1.cc: Likewise. |
| 6225 |
|
| 6226 |
2024-02-28 Jonathan Wakely <[email protected]> |
| 6227 |
|
| 6228 |
* include/std/ostream (vprint_unicode) [__CYGWIN__]: Use POSIX |
| 6229 |
code path for Cygwin instead of Windows. |
| 6230 |
* include/std/print (vprint_unicode) [__CYGWIN__]: Likewise. |
| 6231 |
* testsuite/27_io/basic_ostream/print/1.cc: Only add -lstdc++exp |
| 6232 |
for *-*-mingw* targets. |
| 6233 |
* testsuite/27_io/print/1.cc: Likewise. |
| 6234 |
|
| 6235 |
2024-02-28 Jonathan Wakely <[email protected]> |
| 6236 |
|
| 6237 |
* include/bits/alloc_traits.h: Include <bits/stl_iterator.h> for |
| 6238 |
__make_move_if_noexcept_iterator. |
| 6239 |
|
| 6240 |
2024-02-28 Jonathan Wakely <[email protected]> |
| 6241 |
|
| 6242 |
* include/std/stacktrace: Add nodiscard attribute to all |
| 6243 |
functions without side effects. |
| 6244 |
|
| 6245 |
2024-02-20 François Dumont <[email protected]> |
| 6246 |
|
| 6247 |
* include/bits/stl_algobase.h (std::__niter_wrap): Add a call to |
| 6248 |
std::__niter_base on res iterator. |
| 6249 |
|
| 6250 |
2024-02-19 Iain Sandoe <[email protected]> |
| 6251 |
Jonathan Wakely <[email protected]> |
| 6252 |
|
| 6253 |
PR target/112397 |
| 6254 |
* configure: Regenerate. |
| 6255 |
* configure.ac: Detect if we are building for Darwin. |
| 6256 |
* libsupc++/Makefile.am: If we are building for Darwin, then |
| 6257 |
suppress hot/cold partitioning for the array allocators. |
| 6258 |
* libsupc++/Makefile.in: Regenerated. |
| 6259 |
|
| 6260 |
2024-02-17 François Dumont <[email protected]> |
| 6261 |
|
| 6262 |
* include/bits/stl_algobase.h (std::__niter_base): Redefine the overload |
| 6263 |
definitions for __gnu_debug::_Safe_iterator. |
| 6264 |
* include/debug/safe_iterator.tcc (std::__niter_base): Adapt declarations. |
| 6265 |
|
| 6266 |
2024-02-16 Jonathan Wakely <[email protected]> |
| 6267 |
|
| 6268 |
PR libstdc++/87744 |
| 6269 |
PR libstdc++/113961 |
| 6270 |
* testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error |
| 6271 |
line number. |
| 6272 |
|
| 6273 |
2024-02-16 Jonathan Wakely <[email protected]> |
| 6274 |
|
| 6275 |
PR libstdc++/87744 |
| 6276 |
PR libstdc++/113931 |
| 6277 |
* testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error |
| 6278 |
line number. |
| 6279 |
|
| 6280 |
2024-02-16 Jonathan Wakely <[email protected]> |
| 6281 |
|
| 6282 |
* doc/xml/manual/debug_mode.xml: Update docs for backtraces. |
| 6283 |
* doc/html/manual/debug_mode_using.html: Regenerate. |
| 6284 |
|
| 6285 |
2024-02-16 Jonathan Wakely <[email protected]> |
| 6286 |
|
| 6287 |
* doc/xml/manual/test.xml: Fix spelling of <envar> elements. |
| 6288 |
* doc/html/manual/test.html: Regenerate. |
| 6289 |
|
| 6290 |
2024-02-15 Jonathan Wakely <[email protected]> |
| 6291 |
|
| 6292 |
PR libstdc++/113806 |
| 6293 |
* include/std/bitset (bitset::operator>>=): Remove redundant |
| 6294 |
call to _M_do_sanitize. |
| 6295 |
|
| 6296 |
2024-02-15 Jonathan Wakely <[email protected]> |
| 6297 |
|
| 6298 |
PR libstdc++/113807 |
| 6299 |
* include/std/bitset (bitset::set()): Use memset instead of a |
| 6300 |
loop over the individual words. |
| 6301 |
|
| 6302 |
2024-02-15 Jonathan Wakely <[email protected]> |
| 6303 |
|
| 6304 |
PR libstdc++/113811 |
| 6305 |
* include/bits/stl_algo.h (__rotate): Use unsigned values for |
| 6306 |
division. |
| 6307 |
|
| 6308 |
2024-02-15 Jonathan Wakely <[email protected]> |
| 6309 |
|
| 6310 |
PR libstdc++/99117 |
| 6311 |
* include/std/valarray (valarray::operator=(const _Expr&)): |
| 6312 |
Use loop to copy instead of __valarray_copy with _Array. |
| 6313 |
* testsuite/26_numerics/valarray/99117.cc: New test. |
| 6314 |
|
| 6315 |
2024-02-15 Jonathan Wakely <[email protected]> |
| 6316 |
|
| 6317 |
* src/c++20/tzdata.zi: Import new file from 2024a release. |
| 6318 |
* src/c++20/tzdb.cc (tzdb_list::_Node::_S_read_leap_seconds) |
| 6319 |
Update expiry date for leap seconds list. |
| 6320 |
|
| 6321 |
2024-02-15 Jonathan Wakely <[email protected]> |
| 6322 |
|
| 6323 |
PR libstdc++/87744 |
| 6324 |
* include/bits/random.h [!__SIZEOF_INT128__] (_Select_uint_least_t): |
| 6325 |
Define specialization for 64-bit generators with |
| 6326 |
non-power-of-two modulus and large constants. |
| 6327 |
(__mod): Use if constexpr unconditionally. |
| 6328 |
* testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error |
| 6329 |
line number. |
| 6330 |
* testsuite/26_numerics/random/linear_congruential_engine/87744.cc: |
| 6331 |
New test. |
| 6332 |
|
| 6333 |
2024-02-14 Gerald Pfeifer <[email protected]> |
| 6334 |
|
| 6335 |
* doc/xml/manual/status_cxx2023.xml: Fix C++ item p2442 to be |
| 6336 |
version 1. |
| 6337 |
* doc/html/manual/status.html: Regenerate. |
| 6338 |
|
| 6339 |
2024-02-12 Paul Keir <[email protected]> |
| 6340 |
|
| 6341 |
PR libstdc++/113294 |
| 6342 |
* include/bits/basic_string.h (basic_string::operator=): Use |
| 6343 |
_M_use_local_data() instead of _M_local_buf on the moved-from |
| 6344 |
string. |
| 6345 |
* testsuite/21_strings/basic_string/modifiers/constexpr.cc |
| 6346 |
(test_move): New test. |
| 6347 |
|
| 6348 |
2024-02-09 Ken Matsui <[email protected]> |
| 6349 |
|
| 6350 |
* include/bits/c++config (_GLIBCXX_HAVE_BUILTIN_IS_SAME): |
| 6351 |
Removed. |
| 6352 |
* include/std/type_traits (is_same): Use |
| 6353 |
_GLIBCXX_USE_BUILTIN_TRAIT instead of |
| 6354 |
_GLIBCXX_HAVE_BUILTIN_IS_SAME. |
| 6355 |
(is_same_v): Likewise. |
| 6356 |
|
| 6357 |
2024-02-08 Jonathan Wakely <[email protected]> |
| 6358 |
|
| 6359 |
* include/bits/shared_ptr_atomic.h: Fix typo in comment. |
| 6360 |
|
| 6361 |
2024-02-08 Jonathan Wakely <[email protected]> |
| 6362 |
|
| 6363 |
PR libstdc++/100147 |
| 6364 |
* include/bits/gslice.h (operator=): Add comment about lack of |
| 6365 |
self-assignment check. |
| 6366 |
|
| 6367 |
2024-02-08 Jonathan Wakely <[email protected]> |
| 6368 |
|
| 6369 |
* include/tr2/type_traits (bases, direct_bases): Use |
| 6370 |
__has_builtin to check if required built-ins are supported. |
| 6371 |
|
| 6372 |
2024-02-07 Patrick Palka <[email protected]> |
| 6373 |
|
| 6374 |
PR testsuite/113710 |
| 6375 |
PR c++/113814 |
| 6376 |
* include/bits/stl_pair.h (tuple_element): Add forward |
| 6377 |
declaration of the partial specialization for tuple. |
| 6378 |
|
| 6379 |
2024-02-06 Torbjörn SVENSSON <[email protected]> |
| 6380 |
|
| 6381 |
* testsuite/lib/libstdc++.exp: Use "nul" for Windows, "/dev/null" |
| 6382 |
for other environments. |
| 6383 |
|
| 6384 |
2024-02-04 Jonathan Wakely <[email protected]> |
| 6385 |
|
| 6386 |
* include/std/format (__format::_Spec::_M_reserved): Define new |
| 6387 |
bit-field members to reserve padding bits for future extensions. |
| 6388 |
|
| 6389 |
2024-02-04 Jonathan Wakely <[email protected]> |
| 6390 |
|
| 6391 |
* src/experimental/Makefile.am: Use libstdc++fsconvenience.a |
| 6392 |
instead of libstdc++fs.a. |
| 6393 |
* src/experimental/Makefile.in: Regenerate. |
| 6394 |
* src/filesystem/Makefile.am: Build libstdc++fsconvenience.a as |
| 6395 |
well. |
| 6396 |
* src/filesystem/Makefile.in: Regenerate. |
| 6397 |
|
| 6398 |
2024-02-04 Jonathan Wakely <[email protected]> |
| 6399 |
|
| 6400 |
* include/bits/text_encoding-data.h: Regenerate. |
| 6401 |
* include/bits/unicode-data.h: Regenerate. |
| 6402 |
* scripts/gen_text_encoding_data.py: Add copyright and license |
| 6403 |
text to the output. |
| 6404 |
|
| 6405 |
2024-02-02 Jonathan Wakely <[email protected]> |
| 6406 |
|
| 6407 |
PR libstdc++/113335 |
| 6408 |
* include/bits/std_function.h (__function_guide_helper): Add |
| 6409 |
partial specialization for explicit object member functions, as |
| 6410 |
per LWG 3617. |
| 6411 |
* testsuite/20_util/function/cons/deduction_c++23.cc: Check |
| 6412 |
explicit object member functions. |
| 6413 |
* testsuite/30_threads/packaged_task/cons/deduction_c++23.cc: |
| 6414 |
Likewise. |
| 6415 |
|
| 6416 |
2024-02-02 Jonathan Wakely <[email protected]> |
| 6417 |
|
| 6418 |
* testsuite/17_intro/names.cc [_AIX]: Undefine "u". |
| 6419 |
|
| 6420 |
2024-02-02 Jonathan Wakely <[email protected]> |
| 6421 |
|
| 6422 |
* include/experimental/internet (network_v6::network): Define. |
| 6423 |
(network_v6::hosts): Finish implementing. |
| 6424 |
(network_v6::to_string): Do not concatenate std::string to |
| 6425 |
arbitrary std::basic_string specialization. |
| 6426 |
* testsuite/experimental/net/internet/network/v6/cons.cc: New |
| 6427 |
test. |
| 6428 |
|
| 6429 |
2024-02-02 Jonathan Wakely <[email protected]> |
| 6430 |
|
| 6431 |
PR libstdc++/90276 |
| 6432 |
* testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: Fix |
| 6433 |
comparison function to use less-than instead of equality. |
| 6434 |
|
| 6435 |
2024-02-02 Jonathan Wakely <[email protected]> |
| 6436 |
|
| 6437 |
PR libstdc++/90276 |
| 6438 |
* testsuite/util/pstl/test_utils.h (reverse_invoker): Do not use |
| 6439 |
perfect forwarding for iterator arguments. |
| 6440 |
|
| 6441 |
2024-02-02 Jonathan Wakely <[email protected]> |
| 6442 |
|
| 6443 |
* include/std/string_view (basic_string_view(R&&)): Remove |
| 6444 |
constraint that traits_type must be the same, as per LWG 3857. |
| 6445 |
* testsuite/21_strings/basic_string_view/cons/char/range_c++20.cc: |
| 6446 |
Explicit conversion between different specializations should be |
| 6447 |
allowed. |
| 6448 |
* testsuite/21_strings/basic_string_view/cons/wchar_t/range_c++20.cc: |
| 6449 |
Likewise. |
| 6450 |
|
| 6451 |
2024-02-02 Jonathan Wakely <[email protected]> |
| 6452 |
|
| 6453 |
* include/std/syncstream (basic_osyncstream::operator=): Remove |
| 6454 |
noexcept, as per LWG 3867. |
| 6455 |
|
| 6456 |
2024-02-02 Jonathan Wakely <[email protected]> |
| 6457 |
|
| 6458 |
* include/std/generator (promise_type::yield_value): Remove |
| 6459 |
noexcept from fourth overload, as per LWG 3894. |
| 6460 |
|
| 6461 |
2024-02-01 Patrick Palka <[email protected]> |
| 6462 |
|
| 6463 |
PR libstdc++/113309 |
| 6464 |
PR libstdc++/109203 |
| 6465 |
* include/bits/ranges_util.h (__detail::__pair_like): Don't |
| 6466 |
define in C++23 mode. |
| 6467 |
(__detail::__pair_like_convertible_from): Adjust as per P2165R4. |
| 6468 |
(__detail::__is_subrange<subrange>): Moved from <ranges>. |
| 6469 |
(__detail::__is_tuple_like_v<subrange>): Likewise. |
| 6470 |
* include/bits/stl_iterator.h: Include <bits/utility.h> for |
| 6471 |
C++23. |
| 6472 |
(__different_from): Move to <concepts>. |
| 6473 |
(__iter_key_t): Adjust for C++23 as per P2165R4. |
| 6474 |
(__iter_val_t): Likewise. |
| 6475 |
* include/bits/stl_pair.h (pair, array): Forward declare. |
| 6476 |
(get): Forward declare all overloads relevant to P2165R4 |
| 6477 |
tuple-like constructors. |
| 6478 |
(__is_tuple_v): Define for C++23. |
| 6479 |
(__is_tuple_like_v): Define for C++23. |
| 6480 |
(__tuple_like): Define for C++23 as per P2165R4. |
| 6481 |
(__pair_like): Define for C++23 as per P2165R4. |
| 6482 |
(__eligibile_tuple_like): Define for C++23. |
| 6483 |
(__eligibile_pair_like): Define for C++23. |
| 6484 |
(pair::_S_constructible_from_pair_like): Define for C++23. |
| 6485 |
(pair::_S_convertible_from_pair_like): Define for C++23. |
| 6486 |
(pair::_S_dangles_from_pair_like): Define for C++23. |
| 6487 |
(pair::pair): Define overloads taking a tuple-like type for |
| 6488 |
C++23 as per P2165R4. |
| 6489 |
(pair::_S_assignable_from_tuple_like): Define for C++23. |
| 6490 |
(pair::_S_const_assignable_from_tuple_like): Define for C++23. |
| 6491 |
(pair::operator=): Define overloads taking a tuple-like type for |
| 6492 |
C++23 as per P2165R4. |
| 6493 |
* include/bits/utility.h (ranges::__detail::__is_subrange): |
| 6494 |
Moved from <ranges>. |
| 6495 |
* include/bits/version.def (tuple_like): Define for C++23. |
| 6496 |
* include/bits/version.h: Regenerate. |
| 6497 |
* include/std/concepts (__different_from): Moved from |
| 6498 |
<bits/stl_iterator.h>. |
| 6499 |
(ranges::__swap::__adl_swap): Clarify which __detail namespace. |
| 6500 |
* include/std/map (__cpp_lib_tuple_like): Define C++23. |
| 6501 |
* include/std/ranges (__detail::__is_subrange): Moved to |
| 6502 |
<bits/utility.h>. |
| 6503 |
(__detail::__is_subrange<subrange>): Moved to <bits/ranges_util.h> |
| 6504 |
(__detail::__has_tuple_element): Adjust for C++23 as per P2165R4. |
| 6505 |
(__detail::__tuple_or_pair): Remove as per P2165R4. Replace all |
| 6506 |
uses with plain tuple as per P2165R4. |
| 6507 |
* include/std/tuple (__cpp_lib_tuple_like): Define for C++23. |
| 6508 |
(__tuple_like_tag_t): Define for C++23. |
| 6509 |
(__tuple_cmp): Forward declare for C++23. |
| 6510 |
(_Tuple_impl::_Tuple_impl): Define overloads taking |
| 6511 |
__tuple_like_tag_t and a tuple-like type for C++23. |
| 6512 |
(_Tuple_impl::_M_assign): Likewise. |
| 6513 |
(tuple::__constructible_from_tuple_like): Define for C++23. |
| 6514 |
(tuple::__convertible_from_tuple_like): Define for C++23. |
| 6515 |
(tuple::__dangles_from_tuple_like): Define for C++23. |
| 6516 |
(tuple::tuple): Define overloads taking a tuple-like type for |
| 6517 |
C++23 as per P2165R4. |
| 6518 |
(tuple::__assignable_from_tuple_like): Define for C++23. |
| 6519 |
(tuple::__const_assignable_from_tuple_like): Define for C++23. |
| 6520 |
(tuple::operator=): Define overloads taking a tuple-like type |
| 6521 |
for C++23 as per P2165R4. |
| 6522 |
(tuple::__tuple_like_common_comparison_category): Define for C++23. |
| 6523 |
(tuple::operator<=>): Define overload taking a tuple-like type |
| 6524 |
for C++23 as per P2165R4. |
| 6525 |
(array, get): Forward declarations moved to <bits/stl_pair.h>. |
| 6526 |
(tuple_cat): Constrain with __tuple_like for C++23 as per P2165R4. |
| 6527 |
(apply): Likewise. |
| 6528 |
(make_from_tuple): Likewise. |
| 6529 |
(__tuple_like_common_reference): Define for C++23. |
| 6530 |
(basic_common_reference): Adjust as per P2165R4. |
| 6531 |
(__tuple_like_common_type): Define for C++23. |
| 6532 |
(common_type): Adjust as per P2165R4. |
| 6533 |
* include/std/unordered_map (__cpp_lib_tuple_like): Define for |
| 6534 |
C++23. |
| 6535 |
* include/std/utility (__cpp_lib_tuple_like): Define for C++23. |
| 6536 |
* testsuite/std/ranges/zip/1.cc (test01): Adjust to handle pair |
| 6537 |
and 2-tuple interchangeably. |
| 6538 |
(test05): New test. |
| 6539 |
* testsuite/20_util/pair/p2165r4.cc: New test. |
| 6540 |
* testsuite/20_util/tuple/p2165r4.cc: New test. |
| 6541 |
|
| 6542 |
2024-02-01 Patrick Palka <[email protected]> |
| 6543 |
|
| 6544 |
* include/bits/stl_pair.h (pair::_S_const_assignable): Define, |
| 6545 |
factored out from ... |
| 6546 |
(pair::operator=): ... the constraints of the const overloads. |
| 6547 |
|
| 6548 |
2024-02-01 Jonathan Wakely <[email protected]> |
| 6549 |
|
| 6550 |
* include/bits/version.tpl: Do not use def-file-line for each |
| 6551 |
macro being defined. |
| 6552 |
* include/bits/version.h: Regenerate. |
| 6553 |
|
| 6554 |
2024-02-01 Jonathan Wakely <[email protected]> |
| 6555 |
|
| 6556 |
* testsuite/25_algorithms/copy/debug/constexpr_neg.cc: Adjust |
| 6557 |
dg-error pattern. |
| 6558 |
* testsuite/25_algorithms/copy_backward/debug/constexpr_neg.cc: |
| 6559 |
Likewise. |
| 6560 |
* testsuite/25_algorithms/equal/debug/constexpr_neg.cc: |
| 6561 |
Likewise. |
| 6562 |
* testsuite/25_algorithms/lower_bound/debug/constexpr_partitioned_neg.cc: |
| 6563 |
Likewise. |
| 6564 |
* testsuite/25_algorithms/lower_bound/debug/constexpr_partitioned_pred_neg.cc: |
| 6565 |
Likewise. |
| 6566 |
* testsuite/25_algorithms/lower_bound/debug/constexpr_valid_range_neg.cc: |
| 6567 |
Likewise. |
| 6568 |
* testsuite/25_algorithms/upper_bound/debug/constexpr_partitioned_neg.cc: |
| 6569 |
Likewise. |
| 6570 |
* testsuite/25_algorithms/upper_bound/debug/constexpr_partitioned_pred_neg.cc: |
| 6571 |
Likewise. |
| 6572 |
* testsuite/25_algorithms/upper_bound/debug/constexpr_valid_range_neg.cc: |
| 6573 |
Likewise. |
| 6574 |
|
| 6575 |
2024-02-01 Jonathan Wakely <[email protected]> |
| 6576 |
|
| 6577 |
* include/experimental/internet (network_v4::to_string()): |
| 6578 |
Remove lambda and use of resize_and_overwrite. |
| 6579 |
|
| 6580 |
2024-01-31 Jonathan Wakely <[email protected]> |
| 6581 |
|
| 6582 |
* acinclude.m4 (GLIBCXX_CHECK_TEXT_ENCODING): Use <xlocale.h> if |
| 6583 |
needed for newlocale. |
| 6584 |
* configure: Regenerate. |
| 6585 |
* src/c++26/text_encoding.cc: Use <xlocale.h>. |
| 6586 |
|
| 6587 |
2024-01-31 Jonathan Wakely <[email protected]> |
| 6588 |
Ewan Higgs <[email protected]> |
| 6589 |
|
| 6590 |
* include/bits/text_encoding-data.h: Regenerate. |
| 6591 |
* scripts/gen_text_encoding_data.py: Add extra_aliases dict |
| 6592 |
containing "ASCII". |
| 6593 |
* testsuite/std/text_encoding/cons.cc: Check "ascii" is known. |
| 6594 |
|
| 6595 |
2024-01-31 Jonathan Wakely <[email protected]> |
| 6596 |
|
| 6597 |
* doc/xml/manual/using.xml: Update tables of supported headers. |
| 6598 |
* doc/html/*: Regenerate. |
| 6599 |
|
| 6600 |
2024-01-31 Jonathan Wakely <[email protected]> |
| 6601 |
|
| 6602 |
* include/std/bitset (_Base_bitset::_M_do_to_ullong): Avoid |
| 6603 |
-Wshift-count-overflow warning. |
| 6604 |
|
| 6605 |
2024-01-30 Jonathan Wakely <[email protected]> |
| 6606 |
|
| 6607 |
* testsuite/std/time/clock/gps/io.cc: Fix expected result in |
| 6608 |
assertion and call test_format() from main. |
| 6609 |
|
| 6610 |
2024-01-29 François Dumont <[email protected]> |
| 6611 |
|
| 6612 |
* doc/xml/manual/debug_mode.xml: Link against libstdc++exp.a to use |
| 6613 |
_GLIBCXX_DEBUG_BACKTRACE macro. |
| 6614 |
|
| 6615 |
2024-01-24 Huanghui Nie <[email protected]> |
| 6616 |
Théo Papadopoulo <[email protected]> |
| 6617 |
|
| 6618 |
* include/bits/hashtable.h (_Hahstable<>::_M_remove_bucket_begin): Remove |
| 6619 |
_M_before_begin check and cleanup implementation. |
| 6620 |
|
| 6621 |
2024-01-22 Jonathan Wakely <[email protected]> |
| 6622 |
|
| 6623 |
* testsuite/std/time/clock/file/io.cc: Fix expected result in |
| 6624 |
assertion and call test_format() from main. |
| 6625 |
|
| 6626 |
2024-01-21 Jonathan Wakely <[email protected]> |
| 6627 |
|
| 6628 |
PR libstdc++/113500 |
| 6629 |
* include/bits/chrono_io.h (__formatter_chrono::_M_S): Fix |
| 6630 |
printing of subseconds with floating-point rep. |
| 6631 |
(__formatter_chrono::_M_format_to_ostream): Do not write |
| 6632 |
time_point specializations directly to the ostream. |
| 6633 |
(formatter<chrono::sys_time<D>, C>::parse): Do not allow an |
| 6634 |
empty chrono-spec if the type fails to meet the constraints for |
| 6635 |
writing to an ostream with operator<<. |
| 6636 |
* testsuite/std/time/clock/file/io.cc: Check formatting |
| 6637 |
non-integral times with empty chrono-specs. |
| 6638 |
* testsuite/std/time/clock/gps/io.cc: Likewise. |
| 6639 |
* testsuite/std/time/clock/utc/io.cc: Likewise. |
| 6640 |
* testsuite/std/time/hh_mm_ss/io.cc: Likewise. |
| 6641 |
|
| 6642 |
2024-01-21 Jonathan Wakely <[email protected]> |
| 6643 |
|
| 6644 |
* include/bits/chrono.h (__file_clock::from_sys) |
| 6645 |
(__file_clock::to_sys, __file_clock::_S_from_sys) |
| 6646 |
(__file_clock::_S_to_sys): Use common_type for return type. |
| 6647 |
* testsuite/std/time/clock/file/members.cc: Check round trip |
| 6648 |
conversion for time with lower precision that seconds. |
| 6649 |
|
| 6650 |
2024-01-21 Jonathan Wakely <[email protected]> |
| 6651 |
|
| 6652 |
PR libstdc++/113512 |
| 6653 |
* include/std/format (__formatter_fp::format): Fix logic for |
| 6654 |
alternate forms. |
| 6655 |
* testsuite/std/format/functions/format.cc: Check buggy cases of |
| 6656 |
alternate forms with g presentation type. |
| 6657 |
|
| 6658 |
2024-01-20 Marek Polacek <[email protected]> |
| 6659 |
|
| 6660 |
PR c++/111410 |
| 6661 |
* include/std/ranges: Add #pragma to disable -Wdangling-reference with |
| 6662 |
std::ranges::views::__adaptor::operator|. |
| 6663 |
|
| 6664 |
2024-01-19 Jonathan Wakely <[email protected]> |
| 6665 |
|
| 6666 |
* include/std/format (_Spec::_M_parse_fill_and_align): Do not |
| 6667 |
use CTAD for _Utf32_view. |
| 6668 |
|
| 6669 |
2024-01-19 Jonathan Wakely <[email protected]> |
| 6670 |
|
| 6671 |
PR libstdc++/108822 |
| 6672 |
* include/std/tuple (__glibcxx_no_dangling_refs) [C++17]: Fix |
| 6673 |
wrong fold-operator. |
| 6674 |
* testsuite/20_util/tuple/dangling_ref.cc: Check tuples with one |
| 6675 |
element and three elements. Check allocator-extended |
| 6676 |
constructors. |
| 6677 |
|
| 6678 |
2024-01-19 Patrick Palka <[email protected]> |
| 6679 |
|
| 6680 |
* include/precompiled/stdc++.h [_GLIBCXX_HOSTED]: Include |
| 6681 |
<print> and <text_encoding> for C++23 and C++26 respectively. |
| 6682 |
|
| 6683 |
2024-01-18 Patrick Palka <[email protected]> |
| 6684 |
|
| 6685 |
* include/bits/stl_pair.h [__cplusplus > 202002L]: |
| 6686 |
Guard P2321R2 changes with __glibcxx_ranges_zip instead. |
| 6687 |
|
| 6688 |
2024-01-18 Patrick Palka <[email protected]> |
| 6689 |
|
| 6690 |
* include/std/tuple [__cplusplus > 202002L]: Guard P2321R2 |
| 6691 |
changes with __cpp_lib_ranges_zip instead. |
| 6692 |
|
| 6693 |
2024-01-18 Patrick Palka <[email protected]> |
| 6694 |
|
| 6695 |
PR libstdc++/109536 |
| 6696 |
* include/debug/safe_base.h (_Safe_sequence_base::_M_swap): |
| 6697 |
Remove _GLIBCXX20_CONSTEXPR from non-inline member function. |
| 6698 |
* include/debug/safe_iterator.h |
| 6699 |
(_GLIBCXX20_CONSTEXPR_NON_LITERAL_SCOPE_BEGIN): Define. |
| 6700 |
(_GLIBCXX20_CONSTEXPR_NON_LITERAL_SCOPE_END): Define. |
| 6701 |
(_Safe_iterator::operator=): Use them around the code path that |
| 6702 |
defines a variable of type __gnu_cxx::__scoped_lock. |
| 6703 |
(_Safe_iterator::operator++): Likewise. |
| 6704 |
(_Safe_iterator::operator--): Likewise. |
| 6705 |
(_Safe_iterator::operator+=): Likewise. |
| 6706 |
(_Safe_iterator::operator-=): Likewise. |
| 6707 |
* testsuite/23_containers/vector/element_access/constexpr.cc |
| 6708 |
(test_iterators): Test more iterator operations. |
| 6709 |
* testsuite/23_containers/vector/bool/element_access/constexpr.cc |
| 6710 |
(test_iterators): Likewise. |
| 6711 |
* testsuite/std/ranges/adaptors/all.cc (test08) [_GLIBCXX_DEBUG]: |
| 6712 |
Remove. |
| 6713 |
|
| 6714 |
2024-01-18 Jonathan Wakely <[email protected]> |
| 6715 |
|
| 6716 |
* include/bits/unicode.h (__charset_alias_match): Initialize |
| 6717 |
__var_a and __var_b. |
| 6718 |
|
| 6719 |
2024-01-18 Jonathan Wakely <[email protected]> |
| 6720 |
|
| 6721 |
PR libstdc++/113450 |
| 6722 |
* testsuite/std/format/functions/format.cc: Use signed char |
| 6723 |
instead of int8_t. |
| 6724 |
|
| 6725 |
2024-01-17 Jonathan Wakely <[email protected]> |
| 6726 |
|
| 6727 |
PR libstdc++/113318 |
| 6728 |
* acinclude.m4 (GLIBCXX_CONFIGURE): Add c++26 directory. |
| 6729 |
(GLIBCXX_CHECK_TEXT_ENCODING): Define. |
| 6730 |
* config.h.in: Regenerate. |
| 6731 |
* configure: Regenerate. |
| 6732 |
* configure.ac: Use GLIBCXX_CHECK_TEXT_ENCODING. |
| 6733 |
* include/Makefile.am: Add new headers. |
| 6734 |
* include/Makefile.in: Regenerate. |
| 6735 |
* include/bits/locale_classes.h (locale::encoding): Declare new |
| 6736 |
member function. |
| 6737 |
* include/bits/unicode.h (__charset_alias_match): New function. |
| 6738 |
* include/bits/text_encoding-data.h: New file. |
| 6739 |
* include/bits/version.def (text_encoding): Define. |
| 6740 |
* include/bits/version.h: Regenerate. |
| 6741 |
* include/std/text_encoding: New file. |
| 6742 |
* src/Makefile.am: Add new subdirectory. |
| 6743 |
* src/Makefile.in: Regenerate. |
| 6744 |
* src/c++26/Makefile.am: New file. |
| 6745 |
* src/c++26/Makefile.in: New file. |
| 6746 |
* src/c++26/text_encoding.cc: New file. |
| 6747 |
* src/experimental/Makefile.am: Include c++26 convenience |
| 6748 |
library. |
| 6749 |
* src/experimental/Makefile.in: Regenerate. |
| 6750 |
* python/libstdcxx/v6/printers.py (StdTextEncodingPrinter): New |
| 6751 |
printer. |
| 6752 |
* scripts/gen_text_encoding_data.py: New file. |
| 6753 |
* testsuite/22_locale/locale/encoding.cc: New test. |
| 6754 |
* testsuite/ext/unicode/charset_alias_match.cc: New test. |
| 6755 |
* testsuite/std/text_encoding/cons.cc: New test. |
| 6756 |
* testsuite/std/text_encoding/members.cc: New test. |
| 6757 |
* testsuite/std/text_encoding/requirements.cc: New test. |
| 6758 |
|
| 6759 |
2024-01-17 Jonathan Wakely <[email protected]> |
| 6760 |
|
| 6761 |
* include/bits/unicode.h (_Grapheme_cluster_view): Require view. |
| 6762 |
Do not use CTAD for _Utf32_view. |
| 6763 |
(__format_width, __truncate): Do not use CTAD. |
| 6764 |
(enable_borrowed_range<_Utf_view<T, R>>): Define specialization. |
| 6765 |
(enable_borrowed_range<_Grapheme_cluster_view<R>>): Likewise. |
| 6766 |
|
| 6767 |
2024-01-17 Patrick Palka <[email protected]> |
| 6768 |
|
| 6769 |
* include/std/ranges (views::_CartesianProduct::operator()): |
| 6770 |
Adjust identity case as per P2540R1. |
| 6771 |
* testsuite/std/ranges/cartesian_product/1.cc (test01): |
| 6772 |
Adjust expected result of the identity case. |
| 6773 |
|
| 6774 |
2024-01-15 Patrick Palka <[email protected]> |
| 6775 |
|
| 6776 |
* include/std/variant (__detail::__variant::_Variadic_union): |
| 6777 |
Add bool __trivially_destructible template parameter. |
| 6778 |
(__detail::__variant::_Variadic_union::~_Variadic_union): |
| 6779 |
Use __trivially_destructible in constraints instead. |
| 6780 |
(__detail::__variant::_Variant_storage): Pass |
| 6781 |
__trivially_destructible value to _Variadic_union. |
| 6782 |
|
| 6783 |
2024-01-15 Patrick Palka <[email protected]> |
| 6784 |
|
| 6785 |
* include/bits/stl_iterator.h (const_iterator): Define conversion |
| 6786 |
operators as per P2836R1. |
| 6787 |
* include/bits/version.def (ranges_as_const): Update value. |
| 6788 |
* include/bits/version.h: Regenerate. |
| 6789 |
* testsuite/24_iterators/const_iterator/1.cc (test04): New test. |
| 6790 |
* testsuite/std/ranges/adaptors/as_const/1.cc: Adjust expected |
| 6791 |
value of __cpp_lib_ranges_as_const. |
| 6792 |
* testsuite/std/ranges/version_c++23.cc: Likewise. |
| 6793 |
|
| 6794 |
2024-01-15 Jonathan Wakely <[email protected]> |
| 6795 |
|
| 6796 |
PR libstdc++/108822 |
| 6797 |
* include/std/tuple (__assignable, __is_nothrow_assignable): |
| 6798 |
Move pre-C++20 definitions adjacent to their use. |
| 6799 |
|
| 6800 |
2024-01-15 Jonathan Wakely <[email protected]> |
| 6801 |
|
| 6802 |
PR testsuite/113366 |
| 6803 |
* include/std/format (basic_format_arg): Use __formattable |
| 6804 |
variable template instead of __format::__formattable_with |
| 6805 |
concept. |
| 6806 |
|
| 6807 |
2024-01-15 Jonathan Wakely <[email protected]> |
| 6808 |
|
| 6809 |
* src/c++20/tzdata.zi: Import new file from 2023d release. |
| 6810 |
* src/c++20/tzdb.cc (tzdb_list::_Node::_S_read_leap_seconds) |
| 6811 |
Update expiry date for leap seconds list. |
| 6812 |
|
| 6813 |
2024-01-13 Jonathan Wakely <[email protected]> |
| 6814 |
|
| 6815 |
PR libstdc++/108822 |
| 6816 |
* include/std/tuple (tuple): Add checks for dangling references. |
| 6817 |
Reimplement constraints and constant expressions using C++20 |
| 6818 |
features. |
| 6819 |
* include/std/type_traits [C++20] |
| 6820 |
(__is_implicitly_default_constructible_v): Define. |
| 6821 |
(__is_implicitly_default_constructible): Use variable template. |
| 6822 |
* testsuite/20_util/tuple/dangling_ref.cc: New test. |
| 6823 |
|
| 6824 |
2024-01-13 Patrick Palka <[email protected]> |
| 6825 |
|
| 6826 |
PR libstdc++/108827 |
| 6827 |
PR libstdc++/111327 |
| 6828 |
* include/bits/version.def (bind_back): Define. |
| 6829 |
* include/bits/version.h: Regenerate. |
| 6830 |
* include/std/functional (_Bind_back): Define for C++23. |
| 6831 |
(bind_back): Likewise. |
| 6832 |
* testsuite/20_util/function_objects/bind_back/1.cc: New test |
| 6833 |
(adapted from corresponding bind_front test). |
| 6834 |
* testsuite/20_util/function_objects/bind_back/111327.cc: Likewise. |
| 6835 |
|
| 6836 |
2024-01-13 Patrick Palka <[email protected]> |
| 6837 |
|
| 6838 |
* include/std/functional (_Bind_front): Remove =default special |
| 6839 |
member function declarations. |
| 6840 |
(_Bind_front::operator()): Implement using C++23 deducing this |
| 6841 |
when available. |
| 6842 |
* testsuite/20_util/function_objects/bind_front/111327.cc: |
| 6843 |
Adjust testcase to expect better errors in C++23 mode. |
| 6844 |
|
| 6845 |
2024-01-13 Patrick Palka <[email protected]> |
| 6846 |
|
| 6847 |
* include/std/ranges (views::__adaptor::operator|): Perform |
| 6848 |
perfect forwarding of arguments. |
| 6849 |
(views::__adaptor::_RangeAdaptor::operator()): Pass dummy |
| 6850 |
first argument to _Partial. |
| 6851 |
(views::__adaptor::_Partial::_Partial): Likewise. Add dummy |
| 6852 |
first parameter. |
| 6853 |
(views::__adaptor::_Pipe::_Pipe): Perform perfect forwarding |
| 6854 |
of arguments. |
| 6855 |
(to): Pass dummy first argument to _Partial. |
| 6856 |
|
| 6857 |
2024-01-13 Jonathan Wakely <[email protected]> |
| 6858 |
|
| 6859 |
PR libstdc++/107466 |
| 6860 |
* include/bits/random.tcc (subtract_with_carry_engine::seed): |
| 6861 |
Implement proposed resolution of LWG 4014. |
| 6862 |
* testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error |
| 6863 |
line number. |
| 6864 |
* testsuite/26_numerics/random/subtract_with_carry_engine/cons/lwg3809.cc: |
| 6865 |
Check for expected result of 64-bit engine with seed that |
| 6866 |
doesn't fit in 32-bits. |
| 6867 |
|
| 6868 |
2024-01-12 Jonathan Wakely <[email protected]> |
| 6869 |
|
| 6870 |
PR libstdc++/113320 |
| 6871 |
* include/std/format (__format::_Runtime_format_string): Add |
| 6872 |
constructor and disable copy operations. |
| 6873 |
(basic_format_string(_Runtime_format_string)): Add noexcept and |
| 6874 |
take parameter by value not rvalue reference. |
| 6875 |
(runtime_format): Add noexcept. |
| 6876 |
* testsuite/std/format/runtime_format.cc: Check noexcept. Check |
| 6877 |
that construction is only possible from prvalues, not xvalues. |
| 6878 |
|
| 6879 |
2024-01-12 Jonathan Wakely <[email protected]> |
| 6880 |
|
| 6881 |
PR libstdc++/105505 |
| 6882 |
* include/bits/stl_pair.h (pair::pair(U1&&, U2&&)) [C++23]: Add |
| 6883 |
default template arguments, as per P1951R1. |
| 6884 |
* testsuite/20_util/pair/cons/default_tmpl_args.cc: New test. |
| 6885 |
|
| 6886 |
2024-01-12 Jonathan Wakely <[email protected]> |
| 6887 |
|
| 6888 |
* include/std/format (__format::_Arg_store): Fix PR number in |
| 6889 |
comment. Simplify preprocessor code. |
| 6890 |
|
| 6891 |
2024-01-11 Jonathan Wakely <[email protected]> |
| 6892 |
|
| 6893 |
* doc/xml/manual/evolution.xml: Fix spelling. |
| 6894 |
* doc/html/manual/api.html: Regenerate. |
| 6895 |
|
| 6896 |
2024-01-11 Jonathan Wakely <[email protected]> |
| 6897 |
|
| 6898 |
* doc/xml/manual/evolution.xml: Document addition of |
| 6899 |
libstdc++exp.a. |
| 6900 |
* doc/html/*: Regenerate. |
| 6901 |
|
| 6902 |
2024-01-11 Marcus Haehnel <[email protected]> |
| 6903 |
|
| 6904 |
* libsupc++/eh_unex_handler.cc: Adjust definition type to |
| 6905 |
declaration. |
| 6906 |
|
| 6907 |
2024-01-11 Michael Levine <[email protected]> |
| 6908 |
|
| 6909 |
* include/std/ranges (__glibcxx_want_ranges_iota): Remove |
| 6910 |
duplicate definition. |
| 6911 |
|
| 6912 |
2024-01-11 François Dumont <[email protected]> |
| 6913 |
|
| 6914 |
PR libstdc++/112477 |
| 6915 |
* src/c++11/debug.cc |
| 6916 |
(_Safe_iterator_base::_M_attach): Reset _M_version to 0 if attaching to null |
| 6917 |
sequence. |
| 6918 |
(_Safe_iterator_base::_M_attach_single): Likewise. |
| 6919 |
(_Safe_local_iterator_base::_M_attach): Likewise. |
| 6920 |
(_Safe_local_iterator_base::_M_attach_single): Likewise. |
| 6921 |
* testsuite/23_containers/map/debug/112477.cc: New test case. |
| 6922 |
|
| 6923 |
2024-01-11 Patrick Palka <[email protected]> |
| 6924 |
|
| 6925 |
* include/bits/move.h (__like_t): Define in C++23 mode. |
| 6926 |
* include/std/ranges (views::__adaptor::Partial::operator()): |
| 6927 |
Implement using C++23 deducing this when available. |
| 6928 |
(views::__adaptor::_Pipe::operator()): Likewise. |
| 6929 |
* testsuite/std/ranges/adaptors/100577.cc: Adjust testcase to |
| 6930 |
accept new "no match for call" errors issued in C++23 mode. |
| 6931 |
* testsuite/std/ranges/adaptors/lazy_split_neg.cc: Likewise. |
| 6932 |
|
| 6933 |
2024-01-11 Jonathan Wakely <[email protected]> |
| 6934 |
|
| 6935 |
* python/libstdcxx/v6/printers.py (StdIntegralConstantPrinter): |
| 6936 |
Add printer for std::integral_constant. |
| 6937 |
* testsuite/libstdc++-prettyprinters/cxx11.cc: Test it. |
| 6938 |
|
| 6939 |
2024-01-11 Jonathan Wakely <[email protected]> |
| 6940 |
|
| 6941 |
PR libstdc++/113258 |
| 6942 |
* libsupc++/new_opa.cc: Prefer to use posix_memalign if |
| 6943 |
available. |
| 6944 |
|
| 6945 |
2024-01-11 Ken Matsui <[email protected]> |
| 6946 |
|
| 6947 |
* src/filesystem/ops-common.h (stat_type): Use using. |
| 6948 |
|
| 6949 |
2024-01-11 Ken Matsui <[email protected]> |
| 6950 |
|
| 6951 |
PR libstdc++/113250 |
| 6952 |
* src/c++17/fs_ops.cc (fs::equivalent): Use || instead of &&. |
| 6953 |
* src/filesystem/ops.cc (fs::equivalent): Likewise. |
| 6954 |
* testsuite/27_io/filesystem/operations/equivalent.cc: Handle |
| 6955 |
error codes. |
| 6956 |
* testsuite/experimental/filesystem/operations/equivalent.cc: |
| 6957 |
Likewise. |
| 6958 |
|
| 6959 |
2024-01-11 Ken Matsui <[email protected]> |
| 6960 |
|
| 6961 |
* include/std/type_traits (is_compound): Do not use __not_. |
| 6962 |
(is_compound_v): Use is_fundamental_v instead. |
| 6963 |
|
| 6964 |
2024-01-11 Patrick Palka <[email protected]> |
| 6965 |
|
| 6966 |
* include/bits/utility.h (_Nth_type): Use |
| 6967 |
_GLIBCXX_USE_BUILTIN_TRAIT instead of __has_builtin. |
| 6968 |
|
| 6969 |
2024-01-09 Jonathan Wakely <[email protected]> |
| 6970 |
|
| 6971 |
* include/bits/unicode-data.h: Regenerate. |
| 6972 |
* include/bits/unicode.h (_Utf_iterator::operator++()): Fix off |
| 6973 |
by one error. |
| 6974 |
(__incb_property): Add missing check for values before the |
| 6975 |
first edge. |
| 6976 |
(__is_extended_pictographic): Invert return values to fix |
| 6977 |
copy&pasted logic. |
| 6978 |
(_Grapheme_cluster_view::_Iterator): Remove second iterator |
| 6979 |
member and find end of cluster lazily. |
| 6980 |
* testsuite/ext/unicode/grapheme_view.cc: New test. |
| 6981 |
* testsuite/ext/unicode/properties.cc: New test. |
| 6982 |
* testsuite/ext/unicode/view.cc: New test. |
| 6983 |
|
| 6984 |
2024-01-09 Andreas Schwab <[email protected]> |
| 6985 |
|
| 6986 |
* scripts/extract_symvers.in: Require final colon to only match |
| 6987 |
.dsynsym in the header of the dynamic symtab. |
| 6988 |
|
| 6989 |
2024-01-09 Jonathan Wakely <[email protected]> |
| 6990 |
|
| 6991 |
* include/bits/chrono_io.h (__formatter_chrono::_M_F): Simplify |
| 6992 |
handling of string returned from std::format. |
| 6993 |
(__formatter_chrono::_M_R_T): Likewise. |
| 6994 |
|
| 6995 |
2024-01-08 Jonathan Wakely <[email protected]> |
| 6996 |
|
| 6997 |
* include/bits/unicode.h (__null_sentinel): Remove. |
| 6998 |
* testsuite/17_intro/names.cc: Add __null_sentinel. |
| 6999 |
|
| 7000 |
2024-01-08 Jonathan Wakely <[email protected]> |
| 7001 |
|
| 7002 |
* include/std/format (__format::_Runtime_format_string): Define |
| 7003 |
new class template. |
| 7004 |
(basic_format_string): Add non-consteval constructor for runtime |
| 7005 |
format strings. |
| 7006 |
(runtime_format): Define new function for C++26. |
| 7007 |
* testsuite/std/format/runtime_format.cc: New test. |
| 7008 |
|
| 7009 |
2024-01-08 Jonathan Wakely <[email protected]> |
| 7010 |
|
| 7011 |
* include/bits/chrono_io.h (__formatter_chrono): Always use |
| 7012 |
lvalue arguments to make_format_args. |
| 7013 |
* include/std/format (make_format_args): Change parameter pack |
| 7014 |
from forwarding references to lvalue references. Remove use of |
| 7015 |
remove_reference_t which is now unnecessary. |
| 7016 |
(format_to, formatted_size): Remove incorrect forwarding of |
| 7017 |
arguments. |
| 7018 |
* include/std/ostream (print): Remove forwarding of arguments. |
| 7019 |
* include/std/print (print): Likewise. |
| 7020 |
* testsuite/20_util/duration/io.cc: Use lvalues as arguments to |
| 7021 |
make_format_args. |
| 7022 |
* testsuite/std/format/arguments/args.cc: Likewise. |
| 7023 |
* testsuite/std/format/arguments/lwg3810.cc: Likewise. |
| 7024 |
* testsuite/std/format/functions/format.cc: Likewise. |
| 7025 |
* testsuite/std/format/functions/vformat_to.cc: Likewise. |
| 7026 |
* testsuite/std/format/string.cc: Likewise. |
| 7027 |
* testsuite/std/time/day/io.cc: Likewise. |
| 7028 |
* testsuite/std/time/month/io.cc: Likewise. |
| 7029 |
* testsuite/std/time/weekday/io.cc: Likewise. |
| 7030 |
* testsuite/std/time/year/io.cc: Likewise. |
| 7031 |
* testsuite/std/time/year_month_day/io.cc: Likewise. |
| 7032 |
* testsuite/std/format/arguments/args_neg.cc: New test. |
| 7033 |
|
| 7034 |
2024-01-08 Jonathan Wakely <[email protected]> |
| 7035 |
|
| 7036 |
* include/Makefile.am: Add new headers. |
| 7037 |
* include/Makefile.in: Regenerate. |
| 7038 |
* include/bits/unicode.h: New file. |
| 7039 |
* include/bits/unicode-data.h: New file. |
| 7040 |
* include/std/format: Include <bits/unicode.h>. |
| 7041 |
(__literal_encoding_is_utf8): Move to <bits/unicode.h>. |
| 7042 |
(_Spec::_M_fill): Change type to char32_t. |
| 7043 |
(_Spec::_M_parse_fill_and_align): Read a Unicode scalar value |
| 7044 |
instead of a single character. |
| 7045 |
(__write_padded): Change __fill_char parameter to char32_t and |
| 7046 |
encode it into the output. |
| 7047 |
(__formatter_str::format): Use new __unicode::__field_width and |
| 7048 |
__unicode::__truncate functions. |
| 7049 |
* include/std/ostream: Adjust namespace qualification for |
| 7050 |
__literal_encoding_is_utf8. |
| 7051 |
* include/std/print: Likewise. |
| 7052 |
* src/c++23/print.cc: Add [[unlikely]] attribute to error path. |
| 7053 |
* testsuite/ext/unicode/view.cc: New test. |
| 7054 |
* testsuite/std/format/functions/format.cc: Add missing examples |
| 7055 |
from the standard demonstrating alignment with non-ASCII |
| 7056 |
characters. Add examples checking correct handling of extended |
| 7057 |
grapheme clusters. |
| 7058 |
|
| 7059 |
2024-01-08 Jonathan Wakely <[email protected]> |
| 7060 |
|
| 7061 |
* include/bits/version.def (format_uchar): Define. |
| 7062 |
* include/bits/version.h: Regenerate. |
| 7063 |
* include/std/format (formatter<C, C>::format): Check for |
| 7064 |
_Pres_c and call _M_format_character directly. Cast C to its |
| 7065 |
unsigned equivalent for formatting as an integer. |
| 7066 |
(formatter<char, wchar_t>::format): Likewise. |
| 7067 |
(basic_format_arg(T&)): Store char arguments as unsigned char |
| 7068 |
for formatting to a wide string. |
| 7069 |
* testsuite/std/format/functions/format.cc: Adjust test. Check |
| 7070 |
formatting of |
| 7071 |
|
| 7072 |
2024-01-07 Jonathan Wakely <[email protected]> |
| 7073 |
|
| 7074 |
PR libstdc++/112997 |
| 7075 |
* libsupc++/unwind-cxx.h (__cxa_call_terminate): Change first |
| 7076 |
parameter to void*. |
| 7077 |
|
| 7078 |
2024-01-07 Jonathan Wakely <[email protected]> |
| 7079 |
|
| 7080 |
* testsuite/20_util/variant/87619.cc: Remove dg-timeout-factor. |
| 7081 |
|
| 7082 |
2024-01-07 Jonathan Wakely <[email protected]> |
| 7083 |
|
| 7084 |
* include/std/type_traits (is_trivially_destructible_v): Use |
| 7085 |
built-in directly when concepts are supported. |
| 7086 |
* testsuite/20_util/is_trivially_destructible/value_v.cc: New |
| 7087 |
test. |
| 7088 |
|
| 7089 |
2024-01-06 Gwenole Beauchesne <[email protected]> |
| 7090 |
|
| 7091 |
* testsuite/tr1/8_c_compatibility/cinttypes/functions.cc: Use |
| 7092 |
nonnull arguments to strtoimax() and wcstoimax() functions. |
| 7093 |
|
| 7094 |
2024-01-05 Jonathan Wakely <[email protected]> |
| 7095 |
|
| 7096 |
* src/c++17/fs_path.cc (path::_List::reserve): Limit maximum |
| 7097 |
size and check for overflows in arithmetic. |
| 7098 |
(path::operator/=(const path&)): Remove redundant exponential |
| 7099 |
growth calculation. |
| 7100 |
|
| 7101 |
2024-01-05 Martin Küttler <[email protected]> |
| 7102 |
|
| 7103 |
* src/c++17/fs_path.cc (path::_List::reserve): Avoid |
| 7104 |
floating-point arithmetic. |
| 7105 |
|
| 7106 |
2024-01-05 Jonathan Wakely <[email protected]> |
| 7107 |
|
| 7108 |
PR libstdc++/113241 |
| 7109 |
* include/std/type_traits (is_convertible_v): Guard use of |
| 7110 |
built-in with preprocessor check. |
| 7111 |
|
| 7112 |
2024-01-05 Jonathan Wakely <[email protected]> |
| 7113 |
|
| 7114 |
PR libstdc++/113200 |
| 7115 |
* include/bits/char_traits.h (__gnu_cxx::char_traits::move): Use |
| 7116 |
__builtin_constant_p to check for unrelated pointers that cannot |
| 7117 |
be compared during constant evaluation. |
| 7118 |
* testsuite/21_strings/char_traits/requirements/113200.cc: New |
| 7119 |
test. |
| 7120 |
|
| 7121 |
2024-01-05 Cassio Neri <[email protected]> |
| 7122 |
|
| 7123 |
* include/std/chrono: Fix + and - for months and weekdays. |
| 7124 |
* testsuite/std/time/month/1.cc: Add constexpr tests against overflow. |
| 7125 |
* testsuite/std/time/month/2.cc: New test for extreme values. |
| 7126 |
* testsuite/std/time/weekday/1.cc: Add constexpr tests against overflow. |
| 7127 |
* testsuite/std/time/weekday/2.cc: New test for extreme values. |
| 7128 |
|
| 7129 |
2024-01-05 Jonathan Wakely <[email protected]> |
| 7130 |
|
| 7131 |
PR libstdc++/113099 |
| 7132 |
* include/bits/locale_classes.tcc (__try_use_facet): Use |
| 7133 |
if-constexpr for C++11 and up. |
| 7134 |
|
| 7135 |
2024-01-05 Ken Matsui <[email protected]> |
| 7136 |
|
| 7137 |
* include/std/type_traits: Use _GLIBCXX_USE_BUILTIN_TRAIT. |
| 7138 |
|
| 7139 |
2024-01-04 Arsen Arsenović <[email protected]> |
| 7140 |
|
| 7141 |
* include/std/generator (_Subyield_state::_M_jump_in): Fix typo |
| 7142 |
reported by Will Hawkins <[email protected]>. |
| 7143 |
|
| 7144 |
2024-01-04 Arsen Arsenović <[email protected]> |
| 7145 |
|
| 7146 |
* include/std/generator (_Stateless_alloc): Rename typename _A |
| 7147 |
to _All. |
| 7148 |
|
| 7149 |
2024-01-03 Patrick Palka <[email protected]> |
| 7150 |
|
| 7151 |
PR testsuite/113175 |
| 7152 |
* testsuite/std/ranges/iota/max_size_type.cc (test02): Reduce |
| 7153 |
'limit' to 100 from 1000 and adjust 'log2_limit' accordingly. |
| 7154 |
(test03): Likewise. |
| 7155 |
|
| 7156 |
Copyright (C) 2024 Free Software Foundation, Inc. |
| 7157 |
|
| 7158 |
Copying and distribution of this file, with or without modification, |
| 7159 |
are permitted in any medium without royalty provided the copyright |
| 7160 |
notice and this notice are preserved. |