]>
Commit | Line | Data |
---|---|---|
ca32b3df | 1 | 2019-05-20 Jonathan Wakely <jwakely@redhat.com> |
2 | ||
3 | * testsuite/experimental/memory_resource/new_delete_resource.cc: Fix | |
4 | test by passing correct alignment to deallocate function. | |
5 | ||
83454be6 | 6 | 2019-05-18 Jonathan Wakely <jwakely@redhat.com> |
7 | ||
8 | PR libstdc++/90520 | |
9 | * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__): | |
10 | Raise exception if unique_ptr tuple member has unknown structure. | |
11 | * python/libstdcxx/v6/xmethods.py (UniquePtrGetWorker.__call__): | |
12 | Adjust worker to support new __uniq_ptr_data base class. Do not | |
13 | assume field called _M_head_impl is the first tuple element. | |
14 | ||
18788b25 | 15 | 2019-05-17 François Dumont <fdumont@gcc.gnu.org> |
16 | ||
17 | * include/bits/stl_deque.h | |
18 | (_Deque_iterator<>::__ptr_to): Remove, use std::__ptr_rebind. | |
19 | (_Deque_base(_Deque_base&&, const allocator_type&)): New. | |
20 | (_Deque_base::_Deque_impl_data): New. | |
21 | (_Deque_base::_Deque_impl): Inherit latter. | |
22 | (_Deque_base::_Deque_impl::_M_swap_data): Move... | |
23 | (_Deque_base::_Deque_impl_data::_M_swap_data): ... here. | |
24 | (_Deque_base::_Deque_impl()): Add noexcept qualification. | |
25 | (_Deque_base::_Deque_impl(_Deque_impl&&, _Tp_alloc_type&&)): New. | |
26 | (_Deque_base::_Deque_impl::_M_get_Tp_allocator()): Remove static_cast. | |
27 | (deque<>::deque()): Default. | |
28 | (deque<>::deque(deque&&)): Default. | |
29 | (deque<>::deque(deque&&, const allocator_type&, false_type)): New. | |
30 | (deque<>::deque(deque&&, const allocator_type&, true_type)): New. | |
31 | (deque<>::deque(deque&&, const allocator_type&)): Delegate to latters. | |
32 | (deque<>::deque<_It>(_It, _It, const allocator_type&)): Use | |
33 | _M_range_initialize. | |
34 | (deque<>::assign<_It>(_It, _It)): Use _M_assign_aux. | |
35 | (deque<>::resize(size_type, const value_type&)): Share a single | |
36 | implementation. | |
37 | (deque<>::insert<_It>(const_iterator, _It, _It)): Use | |
38 | _M_range_insert_aux. | |
39 | [__cplusplus >= 201103L](_M_initialize_dispatch): Remove. | |
40 | [__cplusplus >= 201103L](_M_assign_dispatch): Remove. | |
41 | [__cplusplus >= 201103L](_M_insert_dispatch): Remove. | |
42 | * testsuite/23_containers/deque/allocator/default_init.cc: New. | |
43 | ||
f02e0f08 | 44 | 2019-05-17 Jonathan Wakely <jwakely@redhat.com> |
45 | ||
9bf46b60 | 46 | PR libstdc++/90246 |
47 | * include/std/variant (holds_alternative, get, get_if): Improve | |
48 | static assertion messages. | |
49 | (bad_variant_access::bad_variant_access()): Change default message. | |
50 | (__throw_bad_variant_access(bool)): New overload. | |
51 | (get): Use new overload. | |
52 | (visit, visit<R>): Improve exception message. | |
53 | ||
ac93735b | 54 | * testsuite/20_util/variant/compile.cc: Fix narrowing test for ILP32 |
55 | targets. Add more cases from P0608R3. | |
56 | * testsuite/20_util/variant/run.cc: Add more cases from P0608R3. | |
57 | ||
8d58624a | 58 | * include/bits/random.h (seed_seq::param): Fix non-reserved name. |
59 | * include/experimental/type_traits (is_detected_exact) | |
60 | (is_detected_exact_v): Likewise. | |
61 | * include/pstl/execution_defs.h (is_execution_policy) | |
62 | (is_execution_policy_v, __enable_if_execution_policy): Likewise. | |
63 | * include/pstl/execution_impl.h (__policy_traits): Likewise. | |
64 | * testsuite/17_intro/names.cc: Check for more non-reserved names. | |
65 | * testsuite/experimental/names.cc: New test. | |
66 | ||
5d3695d0 | 67 | PR libstdc++/85965 |
68 | * include/bits/hashtable.h (_Hashtable::~_Hashtable()): Remove static | |
69 | assertions from the destructor. | |
70 | * include/bits/hashtable_policy.h (_Hash_code_base::_M_hash_code): | |
71 | Move static_assert for hash function to here. | |
72 | (_Hash_table_base::_M_equals): Move static_assert for equality | |
73 | predicate to here. | |
74 | * include/bits/stl_tree.h (_Rb_tree::_S_value(_Const_Link_type)): | |
75 | Remove. | |
76 | (_Rb_tree::_S_key(_Const_Link_type)): Move assertions here. Access | |
77 | the value directly instead of calling _S_value. | |
78 | (_Rb_tree::_S_value(_Const_Base_ptr)): Remove. | |
79 | (_Rb_tree::_S_key(_Const_Base_ptr)): Do downcast and forward to | |
80 | _S_key(_Const_Link_type). | |
81 | * testsuite/23_containers/set/85965.cc: Check construction, | |
82 | destruction, assignment and size() do not trigger the assertions. | |
83 | * testsuite/23_containers/unordered_set/85965.cc: Likewise. | |
84 | * testsuite/23_containers/map/48101_neg.cc: Call find and adjust | |
85 | expected errors. | |
86 | * testsuite/23_containers/multimap/48101_neg.cc: Likewise. | |
87 | * testsuite/23_containers/multiset/48101_neg.cc: Likewise. | |
88 | * testsuite/23_containers/set/48101_neg.cc: Likewise. | |
89 | * testsuite/23_containers/unordered_map/48101_neg.cc: Likewise. | |
90 | * testsuite/23_containers/unordered_multimap/48101_neg.cc: Likewise. | |
91 | * testsuite/23_containers/unordered_multiset/48101_neg.cc: Likewise. | |
92 | * testsuite/23_containers/unordered_set/48101_neg.cc: Likewise. | |
93 | ||
2e431291 | 94 | * include/bits/invoke.h [__cplusplus < 201703L] (__invoke_r<void>): |
95 | Use _GLIBCXX14_CONSTEXPR because void functions cannot be constexpr | |
96 | in C++11. | |
97 | ||
f02e0f08 | 98 | * doc/xml/manual/status_cxx2020.xml: Update P0608R3, P0777R1, and |
99 | P1165R1 entries. | |
100 | * doc/html/*: Regenerate. | |
101 | * include/std/tuple (make_from_tuple): Use remove_reference_t instead | |
102 | of decay_t (P0777R1). | |
103 | ||
0cde8d2e | 104 | 2019-05-17 François Dumont <fdumont@gcc.gnu.org> |
105 | ||
106 | Move from state of allocators (LWG2593) | |
107 | * include/bits/stl_deque.h | |
108 | (_Deque_base(_Deque_base&&, false_type)): Remove. | |
109 | (_Deque_base(_Deque_base&&, true_type)): Remove. | |
110 | (_Deque_base(_Deque_base&&)): Adapt. | |
111 | (_Deque_base::_M_move_impl()): Remove. | |
112 | * testsuite/util/testsuite_allocator.h | |
113 | (propagating_allocator(propagating_allocator&&)): Preserve move from | |
114 | state. | |
115 | * testsuite/23_containers/deque/allocator/move_assign.cc (test02): | |
116 | Adapt. | |
117 | * testsuite/23_containers/forward_list/allocator/move_assign.cc (test02): | |
118 | Adapt. | |
119 | * testsuite/23_containers/list/allocator/move_assign.cc (test02): Adapt. | |
120 | * testsuite/23_containers/map/allocator/move_assign.cc (test02): Adapt. | |
121 | * testsuite/23_containers/multimap/allocator/move_assign.cc (test02): | |
122 | Adapt. | |
123 | * testsuite/23_containers/multiset/allocator/move_assign.cc (test02): | |
124 | Adapt. | |
125 | * testsuite/23_containers/set/allocator/move_assign.cc (test02): Adapt. | |
126 | * testsuite/23_containers/unordered_map/allocator/move_assign.cc | |
127 | (test02): Adapt. | |
128 | * testsuite/23_containers/unordered_multimap/allocator/move_assign.cc | |
129 | (test02): Adapt. | |
130 | * testsuite/23_containers/unordered_multiset/allocator/move_assign.cc | |
131 | (test02): Adapt. | |
132 | * testsuite/23_containers/unordered_set/allocator/move_assign.cc | |
133 | (test02): Adapt. | |
134 | * testsuite/23_containers/vector/allocator/move_assign.cc (test02): | |
135 | Adapt. | |
136 | * testsuite/23_containers/vector/bool/allocator/move_assign.cc (test02): | |
137 | Adapt. | |
138 | * testsuite/21_strings/basic_string/allocator/char/move_assign.cc | |
139 | (test02): Adapt. | |
140 | * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc | |
141 | (test02): Adapt. | |
142 | ||
68605c77 | 143 | 2019-05-16 Jonathan Wakely <jwakely@redhat.com> |
144 | ||
4a0707ea | 145 | * src/c++17/fs_ops.cc (absolute(const path&, error_code&)) |
146 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove bogus assertion. | |
147 | ||
a8a0d164 | 148 | * include/std/variant (__overload_set): Remove. |
149 | (_Arr): New helper. | |
150 | (_Build_FUN): New class template to define a single FUN overload, | |
151 | with specializations to prevent unwanted conversions, as per P0608R3. | |
152 | (_Build_FUNs): New class template to build an overload set of FUN. | |
153 | (_FUN_type): New alias template to perform overload resolution. | |
154 | (__accepted_type): Use integer_constant base for failure case. Use | |
155 | _FUN_type for successful case. | |
156 | (variant::__accepted_index): Use _Tp instead of _Tp&&. | |
157 | (variant::variant(_Tp&&)): Likewise. | |
158 | (variant::operator=(_Tp&&)): Likewise. | |
159 | ||
facad3f4 | 160 | * include/std/variant (_Variant_storage<false, _Types...>::_M_reset): |
161 | Replace raw visitation with a runtime check for the valueless state | |
162 | and a non-raw visitor. | |
163 | (_Variant_storage<false, _Types...>::_M_reset_impl): Remove. | |
164 | (variant::index()): Remove branch. | |
165 | (variant::swap(variant&)): Use valueless_by_exception() instead of | |
166 | comparing the index to variant_npos, and add likelihood attribute. | |
167 | ||
47376ba0 | 168 | * include/bits/hashtable_policy.h (_Equal_helper): Remove. |
169 | (_Hashtable_base::_Equal_hash_code): Define new class template. | |
170 | (_Hashtable_base::_M_equals): Use _Equal_hash_code instead of | |
171 | _Equal_helper. | |
172 | ||
81262974 | 173 | * include/bits/hashtable_policy.h (_Hashtable_ebo_helper::_S_get): |
174 | Replace with _M_get non-static member function. | |
175 | (_Hashtable_ebo_helper::_S_cget): Replace with _M_cget non-static | |
176 | member function. | |
177 | (_Hash_code_base, _Local_iterator_base, _Hashtable_base): | |
178 | (_Hashtable_alloc): Adjust to use non-static members of EBO helper. | |
179 | ||
68605c77 | 180 | * include/bits/hashtable_policy.h (_Hash_code_base::_M_swap): Use |
181 | _S_get accessors for members in EBO helpers. | |
182 | (_Hash_code_base::_M_extract(), _Hash_code_base::_M_ranged_hash()) | |
183 | (_Hash_code_base::_M_h1(), _Hash_code_base::_M_h2()): Remove non-const | |
184 | overloads. | |
185 | (_Hashtable_base::_M_swap): Use _S_get accessors for members in EBO | |
186 | helpers. | |
187 | (_Hashtable_base::_M_eq()): Remove non-const overload. | |
188 | ||
970ec9ab | 189 | 2019-05-15 Jonathan Wakely <jwakely@redhat.com> |
190 | ||
191 | * include/std/variant (visit, visit<R>): Qualify calls to __do_visit. | |
192 | ||
54f34abb | 193 | 2019-05-14 Jonathan Wakely <jwakely@redhat.com> |
194 | ||
195 | * testsuite/util/testsuite_allocator.h (NullablePointer::operator bool): | |
196 | Fix return value. | |
197 | ||
0fd03648 | 198 | 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
199 | ||
200 | * config/os/solaris/solaris2.10: Move to ... | |
201 | * config/os/solaris: ... this. | |
202 | * configure.host (os_include_dir): Adapt. | |
203 | (abi_baseline_pair): Remove Solaris 10 handling. | |
204 | * config/abi/post/i386-solaris2.10: Remove. | |
205 | * config/abi/post/sparc-solaris2.10: Remove. | |
206 | * config/abi/post/i386-solaris2.11: Rename to ... | |
207 | * config/abi/post/i386-solaris: ... this. | |
208 | * config/abi/post/sparc-solaris2.11: Rename to ... | |
209 | * config/abi/post/sparc-solaris: ... this. | |
210 | ||
211 | * libsupc++/new_opa.cc [_GLIBCXX_HAVE_MEMALIGN] [__sun]: Remove | |
212 | workaround. | |
213 | ||
214 | * testsuite/ext/enc_filebuf/char/13598.cc: Remove *-*-solaris2.10 | |
215 | xfail. | |
216 | ||
f03f26fa | 217 | 2019-05-14 Jonathan Wakely <jwakely@redhat.com> |
218 | ||
219 | * include/std/variant (__visit_with_index): Remove typedef. | |
220 | (__deduce_visit_result): New tag type. | |
221 | (__raw_visit, __raw_idx_visit): New helper functions for "raw" | |
222 | visitation of possibly-valueless variants, forwarding to __do_visit | |
223 | with the relevant tag type. | |
224 | (_Variant_storage<false, _Types...>::_M_reset_impl): Use __raw_visit | |
225 | and make lambda return void. | |
226 | (__variant_construct): Likewise. | |
227 | (_Copy_assign_base::operator=, _Move_assign_base::operator=): Use | |
228 | __raw_idx_visit and make lambda return void. | |
229 | (_Multi_array::__untag_result): Add metafunction to check the function | |
230 | pointer type for a tag type that dictates the kind of visitation. | |
231 | (_Multi_array<_Ret(*)(_Visitor, _Variants...), __first, __rest...>): | |
232 | Use decltype(auto) instead of tagged function pointer type. | |
233 | (__gen_vtable_impl): Remove bool non-type parameter and unused | |
234 | _Variant_tuple parameter. | |
235 | (__gen_vtable_impl::__visit_invoke_impl): Remove. | |
236 | (__gen_vtable_impl::__do_visit_invoke): Remove. | |
237 | (__gen_vtable_impl::__do_visit_invoke_r): Remove. | |
238 | (__gen_vtable_impl::__visit_invoke): Use if-constexpr and __invoke_r | |
239 | for the visit<R> case, rather than dispatching to separate functions. | |
240 | (_VARIANT_RELATION_FUNCTION_TEMPLATE): Use __raw_idx_visit and make | |
241 | lambda return void. | |
242 | (variant::swap): Likewise. | |
243 | (__do_visit): Replace two non-type template parameters with a single | |
244 | type parameter, so that the caller must specify the visitor's return | |
245 | type (or one of the tag types). | |
246 | (visit): Deduce a return type from the visitor and use the | |
247 | __deduce_visit_result tag to enforce that all overloads return the | |
248 | same type. | |
249 | (visit<R>): Call __do_visit<R> with explicit result type. | |
250 | (__variant_hash_call_base_impl::operator()): Use __raw_visit and make | |
251 | lambda return void. | |
252 | ||
b8dcd41e | 253 | 2019-05-14 Nina Dinka Ranns <dinka.ranns@gmail.com> |
254 | ||
255 | nonesuch is insufficiently useless (lwg2996) | |
256 | * include/std/type_traits (struct __nonesuch): Added private base | |
257 | class to make __nonesuch not an aggregate and removed deleted default | |
258 | constructor. | |
259 | * include/bits/stl_pair.h (struct __nonesuch_no_braces): Removed. | |
260 | (operator=(const pair&)): Use __nonesuch instead of | |
261 | __nonesuch_no_braces. | |
262 | (operator=(pair&&)): Likewise | |
263 | * include/std/tuple (operator=(const tuple&)): Use __nonesuch instead | |
264 | of __nonesuch_no_braces. | |
265 | (operator=(tuple&&)): Likewise | |
266 | * include/experimental/type_traits (struct nonesuch): Added private | |
267 | base class to make nonesuch not an aggregate and removed deleted | |
268 | default constructor. | |
269 | * testsuite/20_util/nonesuch/nonesuch.cc: New. | |
270 | * testsuite/experimental/type_traits/nonesuch.cc: New. | |
271 | ||
e0bcd31d | 272 | 2019-05-14 Jonathan Wakely <jwakely@redhat.com> |
273 | ||
3ff2b640 | 274 | * include/bits/std_function.h (_Simple_type_wrapper): Remove. |
275 | (_Function_handler): Remove partial specializations for void return | |
276 | types and pointers to member. | |
277 | (_Function_handler::_M_manager): Adapt to removal of | |
278 | _Simple_type_wrapper. | |
279 | (_Function_handler::_M_invoke): Use __invoke_r instead of __invoke. | |
280 | * include/std/functional (_Bind_result::__enable_if_void) | |
281 | (_Bind_result::__disable_if_void): Remove sfinae helpers. | |
282 | (_Bind_result::__call): Use __invoke_r and remove overloads for void | |
283 | return types. | |
284 | * include/std/future (__future_base::_Task_state::_M_run) | |
285 | (__future_base::_Task_state::_M_run_delayed): Use __invoke_r and | |
286 | change return type of lambda expressions. | |
287 | ||
a858e2a4 | 288 | * include/bits/invoke.h (__invoke_r): Define new function implementing |
289 | the INVOKE<R> pseudo-function. | |
290 | * testsuite/20_util/function_objects/invoke/1.cc: Add more tests. | |
291 | * testsuite/20_util/function_objects/invoke/2.cc: New test. | |
292 | ||
2cfc6a76 | 293 | * include/std/type_traits (__is_nt_convertible_helper): Define it |
294 | unconditionally, not only for C++20. | |
295 | (__is_nothrow_convertible): Define internal trait for use in C++11. | |
296 | (__is_nt_invocable_impl: Fix by using __is_nothrow_convertible. | |
297 | (is_invocable_r_v, is_nothrow_invocable_r_v): Add missing parameter. | |
298 | * testsuite/20_util/is_nothrow_convertible/value_ext.cc: New test. | |
299 | * testsuite/20_util/is_nothrow_convertible/value.cc: Check with type | |
300 | that has nothrow explicit conversion but potentially-throwing implicit | |
301 | conversion. | |
302 | * testsuite/20_util/is_nothrow_invocable/value.cc: Likewise. | |
303 | * testsuite/20_util/is_nothrow_invocable/value_ext.cc: Fix helper | |
304 | function to only consider implicit conversions. | |
305 | * testsuite/20_util/tuple/cons/noexcept_specs.cc: Add comment. | |
306 | ||
e0d65374 | 307 | * include/std/iterator: Include <iosfwd> instead of <istream> and |
308 | <ostream>. | |
309 | ||
4a182e12 | 310 | * include/bits/stl_tree.h (_Rb_tree::erase(const Key*, const Key*)): |
311 | Remove unused, non-standard function. | |
312 | ||
d4a9b293 | 313 | * include/bits/regex.h (match_results::max_size()): Adjust return |
314 | value to account for prefix/suffix/unmatched subs. | |
315 | (match_results::_M_resize(unsigned int)): Use _Base_type::assign to | |
316 | reset the contained sub matches. | |
317 | (match_results::_M_establish_failed_match(_Bi_iter)): Add new member | |
318 | function to set result state following a failed match. | |
319 | * include/bits/regex.tcc (__regex_algo_impl): Remove loop to set | |
320 | sub_match states after _M_resize. Use _M_establish_failed_match. | |
321 | ||
e0bcd31d | 322 | PR libstdc++/69724 |
323 | * include/std/thread (thread::_State_impl, thread::_S_make_state): | |
324 | Replace single _Callable parameter with variadic _Args pack, to | |
325 | forward them directly to the tuple of decayed copies. | |
326 | * testsuite/30_threads/thread/cons/69724.cc: New test. | |
327 | ||
872d7a1f | 328 | 2019-05-14 Nina Dinka Ranns <dinka.ranns@gmail.com> |
329 | ||
330 | Inconsistency wrt Allocators in basic_string assignment (LWG2579) | |
331 | * include/bits/basic_string.h: (operator=(const basic_string&): | |
332 | Move allocator decision to assign. | |
333 | (assign(const basic_string&)): Move allocator decision here. | |
334 | * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc: | |
335 | Add tests. | |
336 | * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc: | |
337 | Add tests. | |
338 | ||
67dff8a4 | 339 | 2019-05-14 Jonathan Wakely <jwakely@redhat.com> |
340 | ||
155856f9 | 341 | * testsuite/util/testsuite_allocator.h (memory_resource) |
342 | (default_resource_mgr): Fix indentation. | |
343 | ||
94e98eda | 344 | * testsuite/20_util/allocator_traits/members/allocate_hint_nonpod.cc: |
345 | Use operator-> to access raw pointer member. | |
346 | * testsuite/23_containers/vector/59829.cc: Likewise. | |
347 | * testsuite/23_containers/vector/bool/80893.cc: Likewise. | |
348 | * testsuite/libstdc++-prettyprinters/cxx11.cc: Use NullablePointer. | |
349 | * testsuite/util/testsuite_allocator.h (NullablePointer): New utility | |
350 | for tests. | |
351 | (PointerBase, PointerBase_void): Derive from NullablePointer and use | |
352 | its constructors and equality operators. Change converting | |
353 | constructors to use operator-> to access private member of the other | |
354 | pointer type. | |
355 | (PointerBase_void::operator->()): Add, for access to private member. | |
356 | (operator-(PointerBase, PointerBase)): Change to hidden friend. | |
357 | (operator==(PointerBase, PointerBase)): Remove. | |
358 | (operator!=(PointerBase, PointerBase)): Remove. | |
359 | ||
8ac285f1 | 360 | * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__): Do |
361 | not assume field called _M_head_impl is the first tuple element. | |
362 | * testsuite/libstdc++-prettyprinters/compat.cc: Make tuple | |
363 | implementation more accurate. | |
364 | * testsuite/libstdc++-prettyprinters/cxx11.cc: Check unique_ptr with | |
365 | empty pointer type and non-empty deleter. | |
366 | ||
67dff8a4 | 367 | LWG 2899 - Make is_move_constructible correct for unique_ptr |
368 | * include/bits/unique_ptr.h (__uniq_ptr_impl): Add move constructor, | |
369 | move assignment operator. | |
370 | (__uniq_ptr_impl::release(), __uniq_ptr_impl::reset(pointer)): Add. | |
371 | (__uniq_ptr_data): New class template with conditionally deleted | |
372 | special members. | |
373 | (unique_ptr, unique_ptr<T[], D>): Change type of data member from | |
374 | __uniq_ptr_impl<T, D> to __uniq_ptr_data<T, D>. Define move | |
375 | constructor and move assignment operator as defaulted. | |
376 | (unique_ptr::release(), unique_ptr<T[], D>::release()): Forward to | |
377 | __uniq_ptr_impl::release(). | |
378 | (unique_ptr::reset(pointer), unique_ptr<T[], D>::reset<U>(U)): Forward | |
379 | to __uniq_ptr_impl::reset(pointer). | |
380 | * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__): | |
381 | Check for new __uniq_ptr_data type. | |
382 | * testsuite/20_util/unique_ptr/dr2899.cc: New test. | |
383 | ||
6818ab51 | 384 | 2019-05-13 Jonathan Wakely <jwakely@redhat.com> |
385 | ||
fecfaafd | 386 | PR libstdc++/90454.cc path construction from void* |
387 | * include/bits/fs_path.h (path::_Path): Use remove_pointer so that | |
388 | pointers to void are rejected as well as void. | |
389 | * include/experimental/bits/fs_path.h (path::_Path): Likewise. | |
390 | * testsuite/27_io/filesystem/path/construct/80762.cc: Also check | |
391 | pointers to void. | |
392 | * testsuite/experimental/filesystem/path/construct/80762.cc: Likewise. | |
393 | ||
6818ab51 | 394 | * doc/xml/manual/policy_data_structures.xml: Comment out stray |
395 | <remark> elements. Fix formatting of bibliography references. | |
396 | ||
8967657e | 397 | 2019-05-13 Edward Smith-Rowland <3dw4rd@verizon.net> |
398 | ||
399 | * doc/xml/manual/status_cxx2020.xml: Document P0811R3 status. | |
400 | ||
8dd55415 | 401 | 2019-05-13 Jonathan Wakely <jwakely@redhat.com> |
ca8ead92 | 402 | |
b6cabd65 | 403 | Remove Profile Mode, deprecated since 7.1.0 |
404 | * doc/Makefile.am: Remove XML file for profile mode docs. | |
405 | * doc/Makefile.in: Regenerate. | |
406 | * doc/xml/authors.xml: Remove authors of profile mode docs. | |
407 | * doc/xml/manual/appendix_contributing.xml: Remove mention of profile | |
408 | mode. | |
409 | * doc/xml/manual/debug.xml: Likewise. | |
410 | * doc/xml/manual/evolution.xml: Document removal of profile mode. | |
411 | * doc/xml/manual/profile_mode.xml: Remove profile mode docs. | |
412 | * doc/xml/manual/spine.xml: Remove profile mode author credit. | |
413 | * doc/xml/manual/test.xml: Remove docs for dg-require-profile-mode | |
414 | directive. | |
415 | * doc/xml/manual/using.xml: Remove docs for profile mode headers and | |
416 | macro. | |
417 | * doc/html/*: Regenerate. | |
418 | * include/Makefile.am: Remove profile mode headers. | |
419 | * include/Makefile.in: Regenerate. | |
420 | * include/bits/c++config (std::__profile): Remove namespace. | |
421 | [_GLIBCXX_PROFILE]: Remove checks for macro. | |
422 | * include/profile/array: Remove. | |
423 | * include/profile/base.h: Remove. | |
424 | * include/profile/bitset: Remove. | |
425 | * include/profile/deque: Remove. | |
426 | * include/profile/forward_list: Remove. | |
427 | * include/profile/impl/profiler.h: Remove. | |
428 | * include/profile/impl/profiler_algos.h: Remove. | |
429 | * include/profile/impl/profiler_container_size.h: Remove. | |
430 | * include/profile/impl/profiler_hash_func.h: Remove. | |
431 | * include/profile/impl/profiler_hashtable_size.h: Remove. | |
432 | * include/profile/impl/profiler_list_to_slist.h: Remove. | |
433 | * include/profile/impl/profiler_list_to_vector.h: Remove. | |
434 | * include/profile/impl/profiler_map_to_unordered_map.h: Remove. | |
435 | * include/profile/impl/profiler_node.h: Remove. | |
436 | * include/profile/impl/profiler_state.h: Remove. | |
437 | * include/profile/impl/profiler_trace.h: Remove. | |
438 | * include/profile/impl/profiler_vector_size.h: Remove. | |
439 | * include/profile/impl/profiler_vector_to_list.h: Remove. | |
440 | * include/profile/iterator_tracker.h: Remove. | |
441 | * include/profile/list: Remove. | |
442 | * include/profile/map: Remove. | |
443 | * include/profile/map.h: Remove. | |
444 | * include/profile/multimap.h: Remove. | |
445 | * include/profile/multiset.h: Remove. | |
446 | * include/profile/ordered_base.h: Remove. | |
447 | * include/profile/set: Remove. | |
448 | * include/profile/set.h: Remove. | |
449 | * include/profile/unordered_base.h: Remove. | |
450 | * include/profile/unordered_map: Remove. | |
451 | * include/profile/unordered_set: Remove. | |
452 | * include/profile/vector: Remove. | |
453 | * scripts/run_doxygen: Do not process profile mode headers. | |
454 | * testsuite/23_containers/array/element_access/60497.cc: Don't use | |
455 | profile mode type. | |
456 | * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc: | |
457 | Remove dg-skip-if for profile mode. | |
458 | * testsuite/23_containers/forward_list/capacity/1.cc: Remove | |
459 | preprocessor check for profile mode. | |
460 | * testsuite/23_containers/list/capacity/29134.cc: Likewise. | |
461 | * testsuite/23_containers/map/modifiers/extract.cc: Remove dg-skip-if | |
462 | for profile mode. | |
463 | * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc: | |
464 | Likewise. | |
465 | * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise. | |
466 | * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise. | |
467 | * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise. | |
468 | * testsuite/23_containers/set/modifiers/extract.cc: Likewise. | |
469 | * testsuite/23_containers/unordered_map/modifiers/extract.cc: | |
470 | Likewise. | |
471 | * testsuite/23_containers/unordered_multimap/modifiers/extract.cc: | |
472 | Likewise. | |
473 | * testsuite/23_containers/unordered_multiset/modifiers/extract.cc: | |
474 | Likewise. | |
475 | * testsuite/23_containers/unordered_set/modifiers/extract.cc: | |
476 | Likewise. | |
477 | * testsuite/23_containers/vector/bool/capacity/29134.cc: Remove | |
478 | preprocessor check for profile mode. | |
479 | * testsuite/23_containers/vector/bool/modifiers/insert/31370.cc: | |
480 | Likewise. | |
481 | * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc: | |
482 | Remove dg-skip-if for profile mode. | |
483 | * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise. | |
484 | * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise. | |
485 | * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise. | |
486 | * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise. | |
487 | * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise. | |
488 | * testsuite/Makefile.am: Remove profile_flags variable and | |
489 | * testsuite/Makefile.am: Remove profile_flags variable and | |
490 | check-profile target. | |
491 | * testsuite/Makefile.in: Regenerate. | |
492 | * testsuite/ext/profile/all.cc: Remove. | |
493 | * testsuite/ext/profile/mutex_extensions_neg.cc: Remove. | |
494 | * testsuite/ext/profile/profiler_algos.cc: Remove. | |
495 | * testsuite/ext/profile/replace_new.cc: Remove. | |
496 | * testsuite/ext/throw_allocator/deallocate_global.cc: Remove | |
497 | preprocessor check for profile mode. | |
498 | * testsuite/ext/throw_allocator/deallocate_local.cc: Likewise. | |
499 | * testsuite/lib/libstdc++.exp (check_v3_target_profile_mode): Remove. | |
500 | (check_v3_target_normal_mode): Do not check for profile mode macro. | |
501 | * testsuite/libstdc++-prettyprinters/80276.cc: Remove dg-skip-if for | |
502 | profile mode. | |
503 | * testsuite/libstdc++-prettyprinters/compat.cc: Likewise. | |
504 | * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise. | |
505 | * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise. | |
506 | * testsuite/libstdc++-prettyprinters/debug.cc: Likewise. | |
507 | * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise. | |
508 | * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise. | |
509 | * testsuite/libstdc++-prettyprinters/simple.cc: Likewise. | |
510 | * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise. | |
511 | * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise. | |
512 | * testsuite/libstdc++-prettyprinters/whatis2.cc: Likewise. | |
513 | ||
ca8ead92 | 514 | Remove array_allocator extension, deprecated since 4.9.0 |
515 | * doc/xml/manual/allocator.xml: Remove documentation for | |
516 | array_allocator. | |
517 | * doc/xml/manual/evolution.xml: Document array_allocator removal. | |
518 | * doc/xml/manual/using.xml: Remove header from documentation. | |
519 | * include/Makefile.am: Remove <ext/array_allocator.h> header. | |
520 | * include/Makefile.in: Regenerate. | |
521 | * include/ext/array_allocator.h: Remove. | |
522 | * include/precompiled/extc++.h: Do not include removed header. | |
523 | * testsuite/ext/array_allocator/1.cc: Remove. | |
524 | * testsuite/ext/array_allocator/2.cc: Remove. | |
525 | * testsuite/ext/array_allocator/26875.cc: Remove. | |
526 | * testsuite/ext/array_allocator/3.cc: Remove. | |
527 | * testsuite/ext/array_allocator/check_deallocate_null.cc: Remove. | |
528 | * testsuite/ext/array_allocator/check_delete.cc: Remove. | |
529 | * testsuite/ext/array_allocator/check_new.cc: Remove. | |
530 | * testsuite/ext/array_allocator/variadic_construct.cc: Remove. | |
531 | * testsuite/ext/headers.cc: Do not include removed header. | |
532 | ||
64b2700c | 533 | 2019-05-11 François Dumont <fdumont@gcc.gnu.org> |
534 | ||
535 | * include/bits/stl_bvector.h | |
536 | (operator==(const _Bit_iterator_base&, const _Bit_iterator_base&)): | |
537 | Make hidden friend. | |
538 | (operator<(const _Bit_iterator_base&, const _Bit_iterator_base&)): | |
539 | Likewise. | |
540 | (operator!=(const _Bit_iterator_base&, const _Bit_iterator_base&)): | |
541 | Likewise. | |
542 | (operator>(const _Bit_iterator_base&, const _Bit_iterator_base&)): | |
543 | Likewise. | |
544 | (operator<=(const _Bit_iterator_base&, const _Bit_iterator_base&)): | |
545 | Likewise. | |
546 | (operator>=(const _Bit_iterator_base&, const _Bit_iterator_base&)): | |
547 | Likewise. | |
548 | (operator-(const _Bit_iterator_base&, const _Bit_iterator_base&)): | |
549 | Likewise. | |
550 | (_Bit_iterator::operator+(difference_type)): Likewise and allow NRVO | |
551 | copy elision. | |
552 | (_Bit_iterator::operator-(difference_type)): Likewise. | |
553 | (operator+(ptrdiff_t, const _Bit_iterator&)): Make hidden friend. | |
554 | (_Bit_const_iterator::operator+(difference_type)): Likewise and allow | |
555 | NRVO copy elision. | |
556 | (_Bit_const_iterator::operator-(difference_type)): Likewise. | |
557 | (operator+(ptrdiff_t, const _Bit_const_iterator&)): Make hidden friend. | |
558 | ||
de3f1d9a | 559 | 2019-05-10 Jonathan Wakely <jwakely@redhat.com> |
560 | ||
eb1be9e7 | 561 | PR libstdc++/81266 |
562 | * testsuite/util/thread/all.h: Do not use remove_pointer for | |
563 | std::thread::native_handle_type. | |
564 | ||
5c6334a5 | 565 | PR libstdc++/90397 |
566 | * include/std/variant (_Variant_storage<false, Types...>::_M_storage()) | |
567 | (_Variant_storage<true, Types...>::_M_reset())) | |
568 | (_Variant_storage<true, Types...>::_M_storage())): Add noexcept. | |
569 | (__get_storage): Likewise. | |
570 | (variant): Add noexcept to friend declarations for __get and | |
571 | __get_storage. | |
572 | ||
3e5c91bd | 573 | PR libstdc++/90388 |
574 | * include/bits/unique_ptr.h (default_delete, default_delete<T[]>): | |
575 | Use _Require for constraints. | |
576 | (operator>(nullptr_t, const unique_ptr<T,D>&)): Implement exactly as | |
577 | per the standard. | |
578 | (__uniq_ptr_hash): New base class with conditionally-disabled call | |
579 | operator. | |
580 | (hash<unique_ptr<T,D>>): Derive from __uniq_ptr_hash. | |
581 | * testsuite/20_util/default_delete/48631_neg.cc: Adjust dg-error line. | |
582 | * testsuite/20_util/unique_ptr/hash/90388.cc: New test. | |
583 | ||
de3f1d9a | 584 | * include/bits/shared_ptr.h: Improve docs. |
585 | * include/bits/shared_ptr_base.h: Likewise. | |
586 | * include/bits/stl_uninitialized.h: Likewise. | |
587 | * include/bits/unique_ptr.h: Likewise. | |
588 | * libsupc++/new: Likewise. | |
589 | ||
d084c5ba | 590 | 2019-05-09 François Dumont <fdumont@gcc.gnu.org> |
591 | ||
592 | * include/bits/stl_deque.h | |
593 | (operator==(const _Deque_iterator<>&, const _Deque_iterator<>&)): | |
594 | Make hidden friend. | |
595 | (operator!=(const _Deque_iterator<>&, const _Deque_iterator<>&)): | |
596 | Likewise. | |
597 | (operator<(const _Deque_iterator<>&, const _Deque_iterator<>&)): | |
598 | Likewise. | |
599 | (operator<=(const _Deque_iterator<>&, const _Deque_iterator<>&)): | |
600 | Likewise. | |
601 | (operator>(const _Deque_iterator<>&, const _Deque_iterator<>&)): | |
602 | Likewise. | |
603 | (operator>=(const _Deque_iterator<>&, const _Deque_iterator<>&)): | |
604 | Likewise. | |
605 | (_Deque_iterator<>::operator+(difference_type)): Likewise and allow NRVO | |
606 | copy elision. | |
607 | (_Deque_iterator<>::operator-(difference_type)): Likewise. | |
608 | ||
0f61cb49 | 609 | 2019-05-08 François Dumont <fdumont@gcc.gnu.org> |
610 | ||
611 | PR libstdc++/90277 | |
612 | * testsuite/23_containers/unordered_multiset/insert/24061-multiset.cc | |
613 | (test01): Reserve for number of insertions to avoid rehash during test. | |
614 | * testsuite/23_containers/unordered_multimap/insert/24061-multimap.cc | |
615 | (test01): Likewise. | |
616 | * testsuite/23_containers/unordered_multimap/insert/24061-multimap.cc | |
617 | (test01): Likewise. | |
618 | (test02): Likewise. | |
619 | (test03): Likewise. | |
620 | ||
c800ee48 | 621 | 2019-05-08 Jonathan Wakely <jwakely@redhat.com> |
622 | ||
623 | * include/experimental/bits/fs_path.h: Improve docs. | |
624 | * include/experimental/bits/net.h: Fix wrong header name in comment. | |
625 | Do not document implementation details. | |
626 | * include/experimental/netfwd: Fix doxygen grouping. | |
627 | ||
b103d23d | 628 | 2019-05-07 Jonathan Wakely <jwakely@redhat.com> |
629 | ||
aa371af3 | 630 | * include/bits/stl_pair.h: Improve docs. |
631 | * include/std/tuple: Likewise. | |
632 | ||
dceea60f | 633 | * doc/doxygen/doxygroups.cc (std::literals): Add documentation for |
634 | inline namespace. | |
635 | * include/std/chrono: Improve docs. | |
636 | * include/std/ratio: Do not document implementation details. | |
637 | * testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Adjust dg-error | |
638 | line numbers. | |
639 | * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Likewise. | |
640 | ||
a9ae69b5 | 641 | PR libstdc++/89102 |
642 | * doc/xml/manual/intro.xml: Document DR 2408 and 2465 changes. | |
643 | * include/std/chrono (__duration_common_type_wrapper): Replace with ... | |
644 | (__duration_common_type): New helper. | |
645 | (common_type<chrono::duration<R1, P2>, chrono::duration<R2, P2>>): Use | |
646 | __duration_common_type. | |
647 | (__timepoint_common_type_wrapper): Replace with ... | |
648 | (__timepoint_common_type): New helper. | |
649 | (common_type<chrono::time_point<C, D2>, chrono::time_point<C, D2>>): | |
650 | Use __time_point_common_type. | |
651 | * include/std/type_traits (common_type<>): Define, as per LWG 2408. | |
652 | (__common_type_impl): If either argument is transformed by decay, | |
653 | use the common_type of the decayed types. | |
654 | (__common_type_impl<_Tp, _Up, _Tp, _Up>): If the types are already | |
655 | decayed, use __do_common_type_impl to get the common_type. | |
656 | (common_type<_Tp>): Use common_type<_Tp, _Tp>. | |
657 | (__do_member_type_wrapper, __member_type_wrapper) | |
658 | (__expanded_common_type_wrapper): Remove. | |
659 | (__common_type_pack, __common_type_fold): New helpers. | |
660 | (common_type<_Tp, _Up, _Vp...>): Use new helpers instead of | |
661 | __member_type_wrapper and __expanded_common_type_wrapper. | |
662 | * testsuite/20_util/common_type/requirements/explicit_instantiation.cc: | |
663 | Test zero-length template argument list. | |
664 | * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: | |
665 | Test single argument cases and argument types that should decay. | |
666 | * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc: | |
667 | Adjust expected error. | |
668 | * testsuite/20_util/duration/literals/range_neg.cc: Use zero for | |
669 | dg-error lineno. | |
670 | * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise. | |
671 | * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise. | |
672 | * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise. | |
673 | ||
b103d23d | 674 | * doc/xml/manual/intro.xml: Fix DR 2537 and DR 2566 confusion. |
675 | ||
69be6ea5 | 676 | 2019-05-01 Nina Dinka Ranns <dinka.ranns@gmail.com> |
677 | ||
678 | Make allocator propagation more consistent for | |
679 | operator+(basic_string) (P1165R1) | |
680 | * include/bits/basic_string.h | |
681 | (operator+(basic_string&&, basic_string&&): Changed resulting | |
682 | allocator to always be the one from the first parameter. | |
683 | * include/bits/basic_string.tcc | |
684 | (operator+(const _CharT*, const basic_string&)): Changed | |
685 | resulting allocator to be SOCCC on the second parameter's allocator. | |
686 | (operator+(_CharT, const basic_string&)): Likewise. | |
687 | * testsuite/21_strings/basic_string/allocator/char/operator_plus.cc: | |
688 | New. | |
689 | * testsuite/21_strings/basic_string/allocator/wchar_t/operator_plus.cc: | |
690 | New. | |
691 | ||
845d0fd6 | 692 | 2019-05-07 Jonathan Wakely <jwakely@redhat.com> |
693 | ||
29499715 | 694 | * include/bits/regex.h: Improve docs. |
695 | * include/bits/regex.tcc: Do not document implementation details. | |
696 | ||
845d0fd6 | 697 | * testsuite/19_diagnostics/error_code/hash.cc: New test. |
698 | ||
3eec8b67 | 699 | 2019-05-06 François Dumont <fdumont@gcc.gnu.org> |
700 | ||
701 | * python/libstdcxx/v6/printers.py (add_one_template_type_printer): | |
702 | Add type printer for container types in std::__debug namespace. | |
703 | * testsuite/lib/gdb-test.exp (whatis-regexp-test): New. | |
704 | (gdb-tests): Use distinct parameters for the type of test and use of | |
705 | regex. | |
706 | (gdb-test): Check for regex test even if 'whatis' test. | |
707 | * testsuite/libstdc++-prettyprinters/80276.cc: Adapt for _GLIBCXX_DEBUG | |
708 | mode. | |
709 | * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise. | |
710 | * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise. | |
711 | * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise. | |
712 | * testsuite/libstdc++-prettyprinters/simple.cc: Likewise. | |
713 | * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise. | |
714 | * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise. | |
715 | * testsuite/libstdc++-prettyprinters/whatis2.cc: Likewise. | |
716 | ||
80175534 | 717 | 2019-05-04 Jonathan Wakely <jwakely@redhat.com> |
718 | ||
2d527eb0 | 719 | * include/std/system_error (error_category): Fix comment. |
720 | ||
84eda927 | 721 | PR libstdc++/90299 |
722 | * src/c++17/fs_ops.cc (absolute(const path&)): Report an error if the | |
723 | argument is an empty path. | |
724 | (absolute(const path&, error_code&)): Use invalid_argument as error | |
725 | code instead of no_such_file_or_directory. | |
726 | * testsuite/27_io/filesystem/operations/absolute.cc: Check handling | |
727 | of non-existent paths and empty paths with both overloads of absolute. | |
728 | ||
98a3d630 | 729 | * include/std/system_error (error_category, error_code) |
730 | (error_condition): Improve docs. | |
731 | * libsupc++/exception: Add missing @addtogroup Doxygen command. | |
732 | * libsupc++/exception_ptr.h (exception_ptr): Link equality operators | |
733 | to class documentation. Suppress documentation for implementation | |
734 | details. | |
735 | * libsupc++/nested_exception.h (throw_with_nested, rethrow_if_nested): | |
736 | Suppress documentation for implementation details. | |
737 | ||
80175534 | 738 | * include/std/system_error (error_code): Remove friend declaration |
739 | for hash<error_code>. | |
740 | (hash<error_code>::operator()): Use public member functions to access | |
741 | value and category. | |
742 | (hash<error_condition>::operator()): Use address of category, not | |
743 | its object representation. | |
744 | * src/c++11/compatibility-c++0x.cc (hash<error_code>::operator()): | |
745 | Use public member functions to access value and category. | |
746 | * testsuite/19_diagnostics/error_condition/hash.cc: New test. | |
747 | ||
476bdccf | 748 | 2019-05-04 François Dumont <fdumont@gcc.gnu.org> |
749 | ||
750 | * include/bits/hashtable.h (_Hashtable<>::rehash): Review comment. | |
751 | * include/bits/hashtable_policy.h | |
752 | (_Prime_rehash_policy::_M_bkt_for_elements): Use __builtin_ceill. | |
753 | (_Power2_rehash_policy::_M_bkt_for_elements): Likewise. | |
754 | (_Power2_rehash_policy::_M_next_bkt): Enforce returning a result not | |
755 | smaller than input value rather than always greater. Preserve | |
756 | _M_next_resize if called with 0 input. Use __builtin_floorl. | |
757 | (_Power2_rehash_policy::_M_need_rehash): Rehash only if number of | |
758 | elements + number of insertions is greater than _M_next_resize. Start | |
759 | with 11 buckets if not told otherwise. Use __builtin_floorl. | |
760 | (_Rehash_base<>::reserve): Use rehash policy _M_bkt_for_elements. | |
761 | * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt): | |
762 | Preserve _M_next_resize if called with 0 input. Use __builtin_floorl. | |
763 | (_Prime_rehash_policy::_M_need_rehash): Start with 11 buckets if not | |
764 | told otherwise. Use __builtin_floorl. | |
765 | * testsuite/23_containers/unordered_set/hash_policy/71181.cc: Adapt test | |
766 | to also validate _Power2_rehash_policy. | |
767 | * testsuite/23_containers/unordered_set/hash_policy/power2_rehash.cc: | |
768 | Adapt. | |
769 | ||
2051f7c0 | 770 | 2019-05-03 Jonathan Wakely <jwakely@redhat.com> |
771 | ||
85015e21 | 772 | PR libstdc++/61761 |
773 | * testsuite/26_numerics/complex/proj.cc: Don't assume <cmath> defines | |
774 | std::copysign. | |
775 | ||
2051f7c0 | 776 | PR libstdc++/52119 |
777 | * include/ext/numeric_traits.h (__glibcxx_min): Avoid integer | |
778 | overflow warning with -Wpedantic -Wsystem-headers. | |
779 | ||
c47265a8 | 780 | 2019-05-02 Jonathan Wakely <jwakely@redhat.com> |
781 | ||
9766cefe | 782 | PR libstdc++/90314 |
783 | * include/bits/c++config (_GLIBCXX_NOEXCEPT_IF): Use variadic macro. | |
784 | * include/bits/move.h (swap): Remove extra parentheses. | |
785 | ||
6bd15da3 | 786 | * include/experimental/bits/lfts_config.h: Improve doc markup. |
787 | * include/experimental/optional: Improve docs. | |
788 | (_Has_addressof_mem, _Has_addressof_free, _Has_addressof) | |
789 | (__constexpr_addressof): Remove. | |
790 | (optional::operator->()): Use std::__addressof(). | |
791 | * include/std/optional (optional::operator->()): Adjust whitespace. | |
792 | * testsuite/experimental/optional/constexpr/observers/2.cc: Check | |
793 | that operator-> is still constexpr with overloaded operator&. Change | |
794 | to compile-only test. | |
795 | * testsuite/experimental/optional/constexpr/observers/3.cc: Change to | |
796 | compile-only test. | |
797 | ||
f4673ac1 | 798 | * include/bits/shared_ptr.h: Improve docs. |
799 | * include/bits/shared_ptr_atomic.h: Likewise. | |
800 | * include/bits/unique_ptr.h: Likewise. Adjust whitespace. | |
801 | ||
c88f1c9d | 802 | * include/bits/basic_string.h: Fix iterator/index confusion in |
803 | Doxygen comments. | |
804 | * include/bits/range_access.h: Fix Doxygen warnings. | |
805 | * include/bits/refwrap.h: Do not document implementation details. | |
806 | (ref, cref): Group docs with reference_wrapper. | |
807 | * include/std/fstream: Fix Doxygen markup. | |
808 | * libsupc++/initializer_list (begin, end): Group docs with | |
809 | initializer_list. | |
810 | ||
0276ef36 | 811 | * doc/doxygen/user.cfg.in: Set MARKDOWN_SUPPORT=YES. |
812 | ||
5ba27b7d | 813 | * include/bits/unique_lock.h: Fix/improve doxygen markup. |
814 | * include/std/mutex: Likewise. | |
815 | * include/std/shared_mutex: Likewise. | |
816 | ||
c2046340 | 817 | * include/bits/fs_dir.h: Fix/improve doxygen markup. |
818 | * include/bits/fs_fwd.h: Likewise. | |
819 | * include/bits/fs_ops.h: Likewise. | |
820 | * include/bits/fs_path.h: Likewise. | |
821 | * include/std/filesystem: Likewise. | |
822 | ||
f73340aa | 823 | * include/experimental/bits/net.h: Fix/improve doxygen markup. |
824 | * include/experimental/buffer: Likewise. | |
825 | * include/experimental/executor: Likewise. | |
826 | * include/experimental/internet: Likewise. | |
827 | * include/experimental/io_context: Likewise. | |
828 | * include/experimental/net: Likewise. | |
829 | * include/experimental/netfwd: Likewise. | |
830 | * include/experimental/socket: Likewise. | |
831 | * include/experimental/timer: Likewise. | |
832 | ||
b87d52bd | 833 | * doc/doxygen/doxygroups.cc: Move description of experimental group |
834 | here. | |
835 | * include/experimental/algorithm: Add to libfund-ts doc group. | |
836 | * include/experimental/any: Likewise. Do not document implementation | |
837 | details. | |
838 | * include/experimental/array: Add to libfund-ts doc group. | |
839 | * include/experimental/bits/lfts_config.h: Define libfund-ts doc group | |
840 | for Library Fundamentals. | |
841 | * include/experimental/chrono: Add to libfund-ts doc group. | |
842 | * include/experimental/deque: Likewise. | |
843 | * include/experimental/forward_list: Likewise. | |
844 | * include/experimental/functional: Likewise. | |
845 | * include/experimental/iterator: Likewise. | |
846 | * include/experimental/list: Likewise. | |
847 | * include/experimental/map: Likewise. | |
848 | * include/experimental/memory: Likewise. | |
849 | * include/experimental/memory_resource: Likewise. Improve docs. | |
850 | details. | |
851 | * include/experimental/numeric: Add to libfund-ts doc group. | |
852 | * include/experimental/optional: Likewise. | |
853 | * include/experimental/propagate_const: Likewise. | |
854 | * include/experimental/random: Likewise. | |
855 | * include/experimental/ratio: Likewise. | |
856 | * include/experimental/regex: Likewise. | |
857 | * include/experimental/set: Likewise. | |
858 | * include/experimental/source_location: Likewise. | |
859 | * include/experimental/string: Likewise. | |
860 | * include/experimental/string_view: Likewise. | |
861 | * include/experimental/system_error: Likewise. | |
862 | * include/experimental/tuple: Likewise. | |
863 | * include/experimental/type_traits: Likewise. | |
864 | * include/experimental/unordered_map: Likewise. | |
865 | * include/experimental/unordered_set: Likewise. | |
866 | * include/experimental/utility: Likewise. | |
867 | * include/experimental/vector: Likewise. | |
868 | * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error. | |
869 | * testsuite/experimental/array/neg.cc: Adjust dg-error. | |
870 | * testsuite/experimental/propagate_const/assignment/move_neg.cc: | |
871 | Likewise. | |
872 | * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise. | |
873 | * testsuite/experimental/propagate_const/requirements2.cc: Likewise. | |
874 | * testsuite/experimental/propagate_const/requirements3.cc: Likewise. | |
875 | * testsuite/experimental/propagate_const/requirements4.cc: Likewise. | |
876 | * testsuite/experimental/propagate_const/requirements5.cc: Likewise. | |
877 | ||
07894d48 | 878 | * include/experimental/bits/fs_dir.h: Fix Doxygen markup. |
879 | * include/experimental/bits/fs_fwd.h: Improve docs. | |
880 | * include/experimental/bits/fs_ops.h: fix Doxygen markup. | |
881 | * include/experimental/bits/fs_path.h: Likewise. | |
882 | (path, filesystem_error, u8path): Improve docs. | |
883 | * include/experimental/filesystem: Link to docs for TS. | |
884 | ||
cd877474 | 885 | * config/allocator/new_allocator_base.h (__allocator_base): Add |
886 | workaround for Doxygen bug #6945. | |
887 | * include/std/memory: Improve docs. Define group for pointer safety. | |
888 | * include/std/scoped_allocator: Improve docs. Use "undocumented" | |
889 | conditional to suppress documentation for implementation details. | |
890 | ||
72e8cf41 | 891 | * include/bits/specfun.h: Improve docs. |
892 | * include/tr1/cmath: Likewise. Fix nesting of preprocessor conditions | |
893 | and namespaces. | |
894 | ||
633c66f0 | 895 | * doc/doxygen/doxygroups.cc (std::tr2, std::__gnu_cxx): Improve docs. |
896 | (std::experimental): Add docs. | |
897 | * doc/doxygen/user.cfg.in (PREDEFINED): Expand macros for __cxx11 | |
898 | namespace to nothing when generating docs. | |
899 | * include/bits/regex_constants.h (std::regex_constants): Improve docs. | |
900 | * include/std/chrono (std::chrono): Likewise. | |
901 | * include/std/functional (std::placeholders): Likewise. | |
902 | * include/std/thread (std::this_thread): Likewise. | |
903 | ||
17035a16 | 904 | * include/parallel/settings.h: Fix Doxygen markup. |
905 | ||
6de90d17 | 906 | * include/ext/pb_ds/detail/bin_search_tree_/*_imps.hpp: Do not define |
907 | anything unless PB_DS_CLASS_C_DEC is defined. | |
908 | * include/ext/pb_ds/detail/binary_heap_/*_imps.hpp: Likewise. | |
909 | * include/ext/pb_ds/detail/binomial_heap_/*_imps.hpp: Likewise. | |
910 | * include/ext/pb_ds/detail/binomial_heap_base_/*_imps.hpp: Likewise. | |
911 | * include/ext/pb_ds/detail/cc_hash_table_map_/*_imps.hpp: Likewise. | |
912 | * include/ext/pb_ds/detail/gp_hash_table_map_/*_imps.hpp: Likewise. | |
913 | * include/ext/pb_ds/detail/hash_fn/*_imp.hpp: Likewise. | |
914 | * include/ext/pb_ds/detail/left_child_next_sibling_heap_/*_imps.hpp: | |
915 | Likewise. | |
916 | * include/ext/pb_ds/detail/list_update_map_/*_imps.hpp: Likewise. | |
917 | * include/ext/pb_ds/detail/ov_tree_map_/*_imps.hpp: Likewise. | |
918 | * include/ext/pb_ds/detail/pairing_heap_/*_imps.hpp: Likewise. | |
919 | * include/ext/pb_ds/detail/pat_trie_/*_imps.hpp: Likewise. | |
920 | * include/ext/pb_ds/detail/rb_tree_map_/*_imps.hpp: Likewise. | |
921 | * include/ext/pb_ds/detail/rc_binomial_heap_/*_imps.hpp: Likewise. | |
922 | * include/ext/pb_ds/detail/resize_policy*_imp.hpp: Likewise. | |
923 | * include/ext/pb_ds/detail/splay_tree_/*_imps.hpp: Likewise. | |
924 | * include/ext/pb_ds/detail/thin_heap_/*_imps.hpp: Likewise. | |
925 | * include/ext/pb_ds/detail/trie_policy*_imp.hpp: Likewise. | |
926 | * include/ext/pb_ds/detail/unordered_iterator/const_iterator.hpp: | |
927 | Likewise. | |
928 | * include/ext/pb_ds/detail/unordered_iterator/iterator.hpp: Likewise. | |
929 | * include/ext/pb_ds/detail/unordered_iterator/point_const_iterator.hpp: | |
930 | Likewise. | |
931 | * include/ext/pb_ds/detail/unordered_iterator/point_iterator.hpp: | |
932 | Likewise. | |
933 | ||
c47265a8 | 934 | * doc/doxygen/user.cfg.in: Regenerate with Doxygen 1.8.14 and set |
935 | GROUP_NESTED_COMPOUNDS=YES and SORT_BY_SCOPE_NAME=NO. Add various | |
936 | _GLIBCXX_xxx macros and __attribute__(X) to PREDEFINED macros that | |
937 | Doxygen expands. | |
938 | ||
269f393a | 939 | 2019-05-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
940 | ||
941 | * config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate. | |
942 | * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: Likewise. | |
943 | * config/abi/post/i386-solaris2.11/baseline_symbols.txt: Likewise. | |
944 | * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: Likewise. | |
945 | * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: Likewise. | |
946 | * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt: | |
947 | Likewise. | |
948 | * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: Likewise. | |
949 | * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt: | |
950 | Likewise. | |
951 | ||
c64aa5a2 | 952 | 2019-05-01 Jonathan Wakely <jwakely@redhat.com> |
953 | ||
954 | PR libstdc++/61761 | |
955 | * include/std/complex (__complex_proj): Return parameter unchanged. | |
956 | [_GLIBCXX_USE_C99_COMPLEX] (__complex_proj): Change overloads for | |
957 | floating-point types to take std::complex arguments. | |
958 | [_GLIBCXX_USE_C99_MATH_TR1] (__complex_proj): Add overloads for | |
959 | floating-point types. | |
960 | * testsuite/26_numerics/complex/proj.cc: New test. | |
961 | ||
9d5de90f | 962 | 2019-04-30 Jakub Jelinek <jakub@redhat.com> |
963 | ||
964 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Change _Lock_policyE2 exports | |
965 | to _Lock_policyE[012]. | |
966 | * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update. | |
967 | ||
612b2ae7 | 968 | 2019-04-30 Jonathan Wakely <jwakely@redhat.com> |
969 | ||
970 | * testsuite/27_io/filesystem/path/decompose/root_path.cc: Remove | |
971 | macros accidentally left in. | |
972 | * testsuite/27_io/filesystem/path/native/string-char8_t.cc: Remove | |
973 | unnecessary -lstdc++fs option. Fix test for mingw. | |
974 | * testsuite/experimental/filesystem/path/native/string-char8_t.cc: | |
975 | Fix test for mingw. | |
976 | ||
55843567 | 977 | 2019-04-30 Jakub Jelinek <jakub@redhat.com> |
978 | ||
979 | * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update. | |
980 | ||
c5aaf0af | 981 | 2019-04-29 Jonathan Wakely <jwakely@redhat.com> |
982 | ||
d9375e49 | 983 | * include/bits/stl_algo.h (generate_n): Adjust doxygen comment. |
984 | ||
744a3010 | 985 | * include/bits/move.h (swap(T&, T&), swap(T (&)[N], T (&)[N])): Use |
986 | _GLIBCXX_NOEXCEPT_IF to simplify declarations. | |
987 | ||
e3600f25 | 988 | PR libstdc++/71312 |
989 | * src/c++11/shared_ptr.cc (get_mutex): Align pool mutexes to 64 bytes. | |
990 | ||
4b7f4f12 | 991 | * include/bits/stl_bvector.h (vector<bool>::empty()): Add nodiscard |
992 | attribute. | |
993 | ||
94ed6c0a | 994 | * include/bits/stl_iterator_base_types.h (_Iter_base): Remove unused |
995 | class template and partial specialization. | |
996 | ||
c5aaf0af | 997 | PR libstdc++/87982 |
998 | * include/bits/stl_algo.h (generate_n): Convert _Size parameter to | |
999 | an integral type. | |
1000 | * include/bits/stl_algobase.h (__size_to_integer): New overloaded | |
1001 | functions to convert a value to an integral type. | |
1002 | (__fill_n_a, __fill_n_a): Assert that __n is already an integral type. | |
1003 | (fill_n): Convert _Size parameter to an integral type. | |
1004 | * testsuite/25_algorithms/fill_n/87982.cc: New test. | |
1005 | * testsuite/25_algorithms/fill_n/87982_neg.cc: New test. | |
1006 | * testsuite/25_algorithms/fill_n/dr426.cc: New test. | |
1007 | * testsuite/25_algorithms/generate_n/87982.cc: New test. | |
1008 | * testsuite/25_algorithms/generate_n/87982_neg.cc: New test. | |
1009 | * testsuite/25_algorithms/generate_n/dr426.cc: New test. | |
1010 | ||
ac8f540e | 1011 | 2019-04-28 Nina Dinka Ranns <dinka.ranns@gmail.com> |
a4360611 | 1012 | |
1013 | Adding noexcept-specification on tuple constructors (LWG 2899) | |
1014 | * libstdc++-v3/include/std/tuple: | |
1015 | (tuple()): Add noexcept-specification. | |
1016 | (tuple(const _Elements&...)): Likewise | |
1017 | (tuple(_UElements&&...)): Likewise | |
1018 | (tuple(const tuple<_UElements...>&)): Likewise | |
1019 | (tuple(tuple<_UElements...>&&)): Likewise | |
1020 | (tuple(const _T1&, const _T2&)): Likewise | |
1021 | (tuple(_U1&&, _U2&&)): Likewise | |
1022 | (tuple(const tuple<_U1, _U2>&): Likewise | |
1023 | (tuple(tuple<_U1, _U2>&&): Likewise | |
1024 | (tuple(const pair<_U1, _U2>&): Likewise | |
1025 | (tuple(pair<_U1, _U2>&&): Likewise | |
1026 | * libstdc++-v3/testsuite/20_util/tuple/cons/noexcept_specs.cc: New | |
1027 | ||
b9fe1c54 | 1028 | 2019-04-27 Marc Glisse <marc.glisse@inria.fr> |
1029 | ||
1030 | PR libstdc++/87106 | |
1031 | * include/bits/stl_uninitialized.h (__relocate_object_a): Mark the | |
1032 | arguments with __restrict. | |
1033 | ||
a596cded | 1034 | 2019-04-26 H.J. Lu <hongjiu.lu@intel.com> |
1035 | ||
1036 | * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated. | |
1037 | ||
051e444d | 1038 | 2019-04-26 Jonathan Wakely <jwakely@redhat.com> |
1039 | ||
3c259ff8 | 1040 | * include/experimental/bits/fs_path.h |
1041 | (path::_S_convert_loc<_InputIterator>): Create const std::string to | |
1042 | avoid redundant call to _S_convert_loc with non-const pointers. | |
1043 | ||
2f95fa8e | 1044 | * testsuite/20_util/variant/run.cc: Use a new Hashable type to test |
1045 | hashing, because pmr::string depends on _GLIBCXX_USE_CXX11_ABI==1. | |
1046 | * testsuite/21_strings/basic_string/hash/hash.cc | |
1047 | [!_GLIBCXX_USE_CXX11_ABI]: Don't test pmr strings. | |
1048 | * testsuite/21_strings/basic_string/hash/hash_char8_t.cc | |
1049 | [!_GLIBCXX_USE_CXX11_ABI]: Likewise. | |
1050 | ||
46933618 | 1051 | * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace wildcard that matches |
1052 | wstring::_M_replace_dispatch with more specific patterns. | |
1053 | * include/bits/fs_path.h (path::_S_convert_loc<_InputIterator>): | |
1054 | Create const std::string to avoid redundant call to _S_convert_loc | |
1055 | with non-const pointers. | |
1056 | * include/bits/locale_conv.h (__do_str_codecvt): Use if-constexpr to | |
1057 | avoid unnecessary basic_string::assign instantiations. | |
1058 | ||
051e444d | 1059 | * include/std/memory (__uses_alloc_args): Add string-literal to |
1060 | static_assert, to match the one in __uses_alloc. | |
1061 | [__cpp_concepts] (_Std_pair): Use C++2a syntax for concept. | |
1062 | * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: Check | |
1063 | for recursive uses-allocator construction of nested pairs. | |
1064 | * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc:: Add | |
1065 | comment. | |
1066 | ||
db1349a6 | 1067 | 2019-04-26 Jakub Jelinek <jakub@redhat.com> |
1068 | ||
dd693c4a | 1069 | * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Update. |
1070 | * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update. | |
1071 | * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update. | |
1072 | * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update. | |
1073 | ||
db1349a6 | 1074 | * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update. |
1075 | * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update. | |
1076 | * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update. | |
1077 | * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update. | |
1078 | * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update. | |
1079 | * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update. | |
1080 | * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update. | |
1081 | ||
f0a82465 | 1082 | 2019-04-25 Jonathan Wakely <jwakely@redhat.com> |
1083 | ||
1084 | PR libstdc++/90239 | |
1085 | * doc/xml/manual/status_cxx2020.xml: Amend P0591R4 status. | |
1086 | * include/std/scoped_allocator [__cplusplus > 201703L] | |
1087 | (scoped_allocator_adaptor::construct): Define in terms of | |
1088 | uses_allocator_construction_args, as per P0591R4. | |
1089 | * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc: New test. | |
1090 | * testsuite/util/testsuite_allocator.h: Remove name of unused | |
1091 | parameter. | |
1092 | ||
fd1863e1 | 1093 | 2019-04-24 Jonathan Wakely <jwakely@redhat.com> |
1094 | ||
9ed11778 | 1095 | * doc/xml/manual/status_cxx2017.xml: Document P0024R2 status. |
1096 | * doc/html/*: Regenerate. | |
1097 | ||
39b59bb9 | 1098 | * include/bits/fs_path.h (operator<, operator<=, operator>) |
1099 | (operator>=, operator==, operator!=): Make hidden friends, as per | |
1100 | LWG 3065. | |
1101 | * testsuite/27_io/filesystem/path/native/string-char8_t.cc: Fix | |
1102 | string type in test. | |
1103 | * testsuite/27_io/filesystem/path/native/string.cc: Likewise. | |
1104 | ||
dd3b7006 | 1105 | * include/std/any (any::any(ValueType&&)): Use __and_v. |
1106 | * include/std/numeric (midpoint(T, T, T), midpoint(T*, T*, T*)): | |
1107 | Likewise. | |
1108 | ||
14710c9d | 1109 | * include/std/tuple (apply): Use remove_reference_t instead of decay_t |
1110 | as per P0777R1. | |
1111 | * include/std/type_traits (__result_of_memfun): Use remove_reference | |
1112 | instead of __remove_cvref_t and remove redundant is_same check. | |
1113 | (__inv_unwrap): Use __remove_cvref_t instead of decay_t. | |
1114 | ||
809f1d63 | 1115 | * include/experimental/string_view (basic_string_view::pointer) |
1116 | (basic_string_view::reference): Fix to refer to non-const value_type. | |
1117 | * include/bits/basic_string.h (basic_string): Use __sv_check and | |
1118 | __sv_limit instead of basic_string_view::_M_check and | |
1119 | basic_string_view::_M_limit. | |
1120 | * include/std/string_view (__sv_check, __sv_limit): New | |
1121 | helper functions to replace basic_string_view::_M_check and | |
1122 | basic_string_view::_M_limit. | |
1123 | (basic_string_view): Add static assertions to enforce ill-formed | |
1124 | requirement for traits_type::char_type from P1148R0, and to enforce | |
1125 | required properties of char-like types. | |
1126 | (basic_string_view::pointer, basic_string_view::reference): Fix to | |
1127 | refer to non-const value_type. | |
1128 | (basic_string_view::operator[], basic_string_view::at) | |
1129 | (basic_string_view::front, basic_string_view::back) | |
1130 | (basic_string_view::data): Use const_reference and const_pointer | |
1131 | typedefs for return types. | |
1132 | (basic_string_view::_M_check, basic_string_view::_M_limit): Remove. | |
1133 | (hash<wstring_view>): Fix argument_type typedef. | |
1134 | * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/ | |
1135 | char/1.cc: Fix expected return type of basic_string_view::data(). | |
1136 | * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/ | |
1137 | wchar_t/1.cc: Likewise. | |
1138 | * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/ | |
1139 | char/1.cc: Likewise. | |
1140 | * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/ | |
1141 | wchar_t/1.cc: Likewise. | |
1142 | * testsuite/21_strings/basic_string_view/requirements/traits_neg.cc: | |
1143 | New test. | |
1144 | * testsuite/21_strings/basic_string_view/requirements/typedefs.cc: | |
1145 | Check reference and pointer typedefs. | |
1146 | * testsuite/experimental/string_view/requirements/typedefs.cc: | |
1147 | Likewise. | |
1148 | * testsuite/experimental/string_view/modifiers/remove_prefix/char/1.cc: | |
1149 | Fix expected return type of basic_string_view::data(). | |
1150 | * testsuite/experimental/string_view/modifiers/remove_prefix/wchar_t/ | |
1151 | 1.cc: Likewise. | |
1152 | * testsuite/experimental/string_view/modifiers/remove_suffix/char/1.cc: | |
1153 | Likewise. | |
1154 | * testsuite/experimental/string_view/modifiers/remove_suffix/wchar_t/ | |
1155 | 1.cc: Likewise. | |
1156 | ||
37020b0a | 1157 | PR libstdc++/90220 |
1158 | * include/std/any (__any_caster): Use remove_cv_t instead of decay_t. | |
1159 | Avoid a runtime check for types that can never be stored in std::any. | |
1160 | * testsuite/20_util/any/misc/any_cast.cc: Test std::any_cast with | |
1161 | array types. | |
1162 | ||
b8e73341 | 1163 | PR libstdc++/90220 (partial) |
1164 | * include/std/any (any_cast<T>(any*), any_cast<T>(const any*)): Do | |
1165 | not attempt ill-formed static_cast to pointers to non-object types. | |
1166 | * testsuite/20_util/any/misc/any_cast.cc: Test std::any_cast with | |
1167 | function types. | |
1168 | ||
1c9c8e0d | 1169 | * testsuite/20_util/variant/run.cc: Catch exception by reference to |
1170 | prevent -Wcatch-value warning. | |
1171 | ||
fd1863e1 | 1172 | * include/std/variant (__variant_construct): Use template parameter |
1173 | type instead of equivalent decltype-specifier. | |
1174 | (_Move_ctor_base<false, Types...>::_Move_ctor_base(_Move_ctor_base&&)): | |
1175 | Replace forward with move. | |
1176 | (_Move_ctor_base<false, Types...>::_M_destructive_move) | |
1177 | (_Move_ctor_base<false, Types...>::_M_destructive_copy) | |
1178 | (_Move_ctor_base<true, Types...>::_M_destructive_move) | |
1179 | (_Move_ctor_base<true, Types...>::_M_destructive_copy): Only set the | |
1180 | index after construction succeeds. | |
1181 | (_Copy_assign_base<false, Types...>::operator=): Remove redundant | |
1182 | if-constexpr checks that are always true. Use __remove_cvref_t instead | |
1183 | of remove_reference so that is_nothrow_move_constructible check | |
1184 | doesn't use a const rvalue parameter. In the potentially-throwing case | |
1185 | construct a temporary and move assign it, as per LWG 2904. | |
1186 | (_Move_assign_base<false, Types...>::operator=): Remove redundant | |
1187 | if-constexpr checks that are always true. Use emplace as per LWG 2904. | |
1188 | (variant::operator=(T&&)): Only use emplace conditionally, otherwise | |
1189 | construct a temporary and move assign from it, as per LWG 2904. | |
1190 | * testsuite/20_util/variant/exception_safety.cc: Check that | |
1191 | assignment operators have strong exception safety guarantee. | |
1192 | ||
55bb4515 | 1193 | 2019-04-23 Thomas Rodgers <trodgers@redhat.com> |
1194 | ||
1195 | Document PSTL linker flags | |
1196 | ||
7f6a1a9c | 1197 | * doc/xml/manual/using.xml: Add PSTL linker flags to table 3.1. |
55bb4515 | 1198 | |
b48cc8c5 | 1199 | 2019-04-23 Jonathan Wakely <jwakely@redhat.com> |
1200 | ||
a4265b66 | 1201 | * include/std/variant (__detail::__variant::_Traits): Make |
1202 | _S_trivial_copy_assign depend on _S_trivial_copy_ctor and make | |
1203 | _S_trivial_move_assign depend on _S_trivial_move_ctor, as per | |
1204 | P0602R4. | |
1205 | (__detail::__variant::_Copy_assign_alias): Only depend on | |
1206 | _S_trivial_copy_assign, which subsumes _S_trivial_copy_ctor now. | |
1207 | * testsuite/20_util/variant/compile.cc: Correct checks for trivial | |
1208 | move assignment operators. | |
1209 | ||
28cc38ec | 1210 | PR libstdc++/90165 |
1211 | * include/std/variant (variant::__not_self): New helper for the | |
1212 | is_same_v<remove_cvref_t<T>, variant>==false constraints. | |
1213 | (variant::__to_type_impl): Remove. | |
1214 | (variant::__to_type): Add default argument to check pack size, instead | |
1215 | of using __to_type_impl. | |
1216 | (variant::__accepted_type): Add default argument using __not_self. | |
1217 | (variant::__is_in_place_tag, variant::__not_in_place_tag): New helpers | |
1218 | for variant(T&&) constructor constraint. | |
1219 | (variant::variant(T&&)): Use __not_in_place_tag in constraints. | |
1220 | Extract __accepted_type into a named template parameter for reuse in | |
1221 | other constraints and in the exception specification. | |
1222 | (variant::variant(in_place_type_t<T>, Args&&...)) | |
1223 | (variant::variant(in_place_type_t<T>, initializer_list<U>, Args&&...)) | |
1224 | (variant::variant(in_place_index_t<T>, Args&&...)) | |
1225 | (variant::variant(in_place_index_t<T>, initializer_list<U>, Args&&...)) | |
1226 | (variant::operator=T&&)): Remove redundant && from trait arguments. | |
1227 | * testsuite/20_util/variant/compile.cc: Check variant(T&&) constructor | |
1228 | isn't used for in_place_type or in_place_index arguments. | |
1229 | ||
b48cc8c5 | 1230 | * include/std/type_traits (unwrap_reference_t): Define for C++2a. |
1231 | (unwrap_ref_decay): Remove inheritance from unwrap_reference. | |
1232 | * testsuite/20_util/unwrap_reference/1.cc: Adjust test to use alias. | |
1233 | ||
9ac9ee83 | 1234 | 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
1235 | Bernd Edlinger <bernd.edlinger@hotmail.de> | |
1236 | Jakub Jelinek <jakub@redhat.com> | |
1237 | ||
1238 | PR target/89093 | |
1239 | * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Add | |
1240 | general-regs-only target attribute for ARM. | |
1241 | ||
e11f5aed | 1242 | 2019-04-23 Jonathan Wakely <jwakely@redhat.com> |
1243 | ||
b9d8292f | 1244 | PR libstdc++/87431 |
1245 | * include/bits/basic_string.h (_Never_valueless_alt): Make partial | |
1246 | specialization also depend on is_nothrow_move_constructible. | |
1247 | * include/std/variant (__detail::__variant::__never_valueless()): | |
1248 | Only true if the variant would have a move assignment operator. | |
1249 | (__detail::__variant::_Variant_storage<false, T...>::_M_valid()): | |
1250 | Check __never_valueless<T...>(). | |
1251 | (variant::emplace): Only perform non-throwing move assignments | |
1252 | for never-valueless alternatives if the variant has a move assignment | |
1253 | operator. | |
1254 | * testsuite/20_util/variant/compile.cc: Check that never-valueless | |
1255 | types can be emplaced into non-assignable variants. | |
1256 | * testsuite/20_util/variant/run.cc: Check that never-valueless types | |
1257 | don't get copied when emplaced into non-assignable variants. | |
1258 | ||
e11f5aed | 1259 | * include/std/variant (__detail::__variant::__ref_cast): Remove |
1260 | unused function. | |
1261 | (__detail::__variant::_Uninitialized::_M_get) | |
1262 | (__detail::__variant::__get) | |
1263 | (__gen_vtable_impl::__element_by_index_or_cookie): Add noexcept. | |
1264 | ||
46fbb8aa | 1265 | 2019-04-21 Iain Sandoe <iain@sandoe.co.uk> |
1266 | ||
1267 | * testsuite/17_intro/headers/c++1998/charset.cc: Skip for Darwin8 | |
1268 | to Darwin10. | |
1269 | * testsuite/17_intro/headers/c++2011/charset.cc: Likewise. | |
1270 | * testsuite/17_intro/headers/c++2014/charset.cc: Likewise. | |
1271 | * testsuite/17_intro/headers/c++2017/charset.cc: Likewise. | |
1272 | * testsuite/17_intro/headers/c++2020/charset.cc: Likewise. | |
1273 | ||
dff3f73c | 1274 | 2019-04-20 Thomas Rodgers <trodgers@redhat.com> |
1275 | ||
1276 | Delegate PSTL configuration to pstl/pstl_config.h | |
1277 | ||
1278 | * include/bits/c++config: Remove explicit PSTL configuration | |
1279 | macros and use definitions from <pstl/pstl_config.h>. | |
1280 | ||
3dbad48e | 1281 | 2019-04-20 Thomas Rodgers <trodgers@redhat.com> |
1282 | ||
1283 | Cleanup algorithm implementations | |
1284 | * include/pstl/glue_algorithm_impl.h (stable_sort): Forward | |
ed42fdb5 | 1285 | execution policy. |
3dbad48e | 1286 | (mismatch): Forward execution policy. |
1287 | (equal): Qualify call to std::equal(). | |
1288 | (partial_sort): Forward execution policy. | |
1289 | (inplace_merge): Forward execution policy. | |
1290 | ||
5d637ddd | 1291 | 2019-04-19 Thomas Rodgers <trodgers@redhat.com> |
1292 | ||
1293 | Improve implementation of parallel equal() | |
1294 | * include/pstl/algorithm_impl.h | |
1295 | (__internal::__brick_equal): use "4 iterator" version of | |
1296 | std::equal(). | |
1297 | (__internal::__brick_equal): use simd for random access | |
1298 | iterators on unsequenced execution policies. | |
1299 | (__internal::__pattern_equal): add "4 iterator" version | |
1300 | (__internal::__pattern_equal): dispatch to simd __brick_equal | |
1301 | for vector-only execution policies. | |
1302 | (__internal::__pattern_equal): dispatch to __parallel_or for | |
1303 | parallel execution policies. | |
1304 | * include/pstl/glue_algorithm_impl.h | |
1305 | (std::equal): dispatch to "4 iterator" version of | |
1306 | __internal::__pattern_equal(). | |
1307 | ||
88dbeb04 | 1308 | 2019-04-17 Jonathan Wakely <jwakely@redhat.com> |
1309 | ||
a0295ab5 | 1310 | PR libstdc++/90105 |
1311 | * include/bits/forward_list.h (operator==): Do not use operator!= to | |
1312 | compare elements. | |
1313 | (forward_list<T, A>::sort(Comp)): When elements are equal take the one | |
1314 | earlier in the list, so that sort is stable. | |
1315 | * testsuite/23_containers/forward_list/operations/90105.cc: New test. | |
1316 | * testsuite/23_containers/forward_list/comparable.cc: Test with | |
1317 | types that meet the minimum EqualityComparable and LessThanComparable | |
1318 | requirements. Remove irrelevant comment. | |
1319 | ||
37a7dbf9 | 1320 | * include/std/variant (__detail::__variant::_Traits::_S_copy_assign): |
1321 | Do not depend on whether all alternative types are move constructible. | |
1322 | (__detail::__variant::_Copy_assign_base::operator=): Remove cv-quals | |
1323 | from the operand when deciding whether to perform the assignment. | |
1324 | * testsuite/20_util/variant/compile.cc (DeletedMoves): Define type | |
1325 | with deleted move constructor and deleted move assignment operator. | |
1326 | (default_ctor, copy_ctor, move_ctor, copy_assign, move_assign): Check | |
1327 | behaviour of variants with DeletedMoves as an alternative. | |
1328 | * testsuite/20_util/variant/run.cc (DeletedMoves): Define same type. | |
1329 | (move_ctor, move_assign): Check that moving a variant with a | |
1330 | DeletedMoves alternative falls back to copying instead of moving. | |
1331 | ||
e9a490a4 | 1332 | * testsuite/20_util/variant/compile.cc: Remove empty string literals |
1333 | from static_assert declarations. | |
1334 | ||
c4495ab1 | 1335 | * testsuite/20_util/variant/compile.cc (MoveCtorOnly): Fix type to |
1336 | actually match its name. | |
1337 | (MoveCtorAndSwapOnly): Define new type that adds swap to MoveCtorOnly. | |
1338 | (test_swap()): Fix result for MoveCtorOnly and check | |
1339 | MoveCtorAndSwapOnly. | |
1340 | ||
88dbeb04 | 1341 | * include/std/optional (optional::value_or(U&&) &&): Add missing |
1342 | constexpr specifier. | |
1343 | * testsuite/20_util/optional/constexpr/observers/4.cc: Check value_or | |
1344 | for disengaged optionals and rvalue optionals. | |
1345 | * testsuite/20_util/optional/observers/4.cc: Likewise. | |
1346 | ||
11deac81 | 1347 | 2019-04-12 Thomas Rodgers <trodgers@redhat.com> |
1348 | ||
1349 | * include/pstl/algorithm_impl.h: Uglify identfiers. | |
1350 | * include/pstl/numeric_impl.h: Uglify identfiers. | |
1351 | * include/pstl/parallel_backend_tbb.h: Uglify identfiers. | |
1352 | ||
34d8d757 | 1353 | 2019-04-11 Thomas Rodgers <trodgers@redhat.com> |
1354 | ||
1355 | * include/bits/c++config: | |
1356 | Add definition for __PSTL_ASSERT. | |
1357 | Add definition for __PSTL_ASSERT_MSG. | |
1358 | * include/pstl/algorithm_impl.h: Replace use of assert(). | |
1359 | * include/pstl/numeric_impl.h: Replace use of assert(). | |
1360 | * include/pstl/parallel_backend_tbb.h: | |
1361 | Replace use of assert(). | |
1362 | Replace use of __TBB_ASSERT(). | |
34d8d757 | 1363 | * include/pstl/parallel_backend_utils.h: Replace use of assert(). |
1364 | ||
629a2d18 | 1365 | 2019-04-11 Jonathan Wakely <jwakely@redhat.com> |
1366 | ||
1367 | PR libstdc++/90046 | |
1368 | * src/c++17/memory_resource.cc | |
1369 | (monotonic_buffer_resource::_Chunk::allocate): Increase alignment if | |
1370 | needed to allow placing a _Chunk at the end of the buffer. | |
1371 | (monotonic_buffer_resource::_M_new_buffer): Remove static_assert. | |
1372 | ||
b047c9ae | 1373 | 2019-04-10 Jonathan Wakely <jwakely@redhat.com> |
1374 | ||
6a98b075 | 1375 | * doc/xml/faq.xml: Add information about emergency EH pool. |
1376 | * doc/xml/manual/debug.xml: Update list of memory debugging tools. | |
1377 | Move outdated information on mt_allocator to a separate section. | |
1378 | * doc/xml/manual/evolution.xml: Clarify that GLIBCXX_FORCE_NEW | |
1379 | doesn't affect the default allocator. | |
1380 | ||
706bf2a5 | 1381 | * testsuite/lib/libstdc++.exp (check_v3_target_parallel_mode): Fix |
1382 | typo. | |
1383 | ||
b047c9ae | 1384 | PR libstdc++/89851 |
1385 | * testsuite/20_util/variant/89851.cc: New test. | |
1386 | ||
faa382bd | 1387 | 2019-04-09 Jonathan Wakely <jwakely@redhat.com> |
1388 | ||
492debfa | 1389 | * include/std/variant: Adjust whitespace. Add comments. |
1390 | (_Multi_array): Leave primary template undefined. | |
1391 | (_Multi_array<_Tp>): Define partial specialization for base case of | |
1392 | recursion. | |
1393 | (__gen_vtable_impl, __gen_vtable): Remove redundant && from type | |
1394 | which is always a reference. | |
1395 | (__gen_vtable::_S_apply()): Remove function, inline body into | |
1396 | default member initializer. | |
1397 | * testsuite/20_util/variant/visit.cc: Test with noncopyable types. | |
1398 | ||
47cf9c4c | 1399 | * include/std/variant (__variant_idx_cookie): Add member type. |
1400 | (__visitor_result_type): Remove. | |
1401 | (__do_visit): Use invoke_result instead of __visitor_result_type. | |
1402 | * testsuite/20_util/variant/visit.cc: New test. | |
1403 | ||
faa382bd | 1404 | PR libstdc++/90008 |
1405 | * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Remove | |
1406 | unused capture. | |
1407 | * testsuite/20_util/variant/90008.cc: New test. | |
1408 | ||
e4da4897 | 1409 | 2019-04-09 Thomas Rodgers <trodgers@redhat.com> |
1410 | ||
1411 | * include/pstl/algorithm_impl.h: Add namespace qualification. | |
1412 | * include/pstl/execution_defs.h: Add namespace qualification. | |
1413 | * include/pstl/execution_impl.h: Add namespace qualification. | |
1414 | * include/pstl/numeric_impl.h: Add namespace qualification. | |
1415 | * include/pstl/parallel_backend_tbb.h: Add namespace qualification. | |
1416 | * include/pstl/unseq_backend_simd.h: Add namespace qualification. | |
1417 | * include/pstl/parallel_backend_utils.h: Include <cassert>. | |
1418 | ||
ff7d433d | 1419 | 2019-04-08 Ville Voutilainen <ville.voutilainen@gmail.com> |
1420 | ||
1421 | Fix visit<R> for variant. | |
1422 | * include/std/variant (__do_visit): Add a template parameter | |
1423 | for enforcing same return types for visit. | |
1424 | (__gen_vtable_impl): Likewise. | |
1425 | (_S_apply_single_alt): Adjust. | |
1426 | (__visit_invoke_impl): New. Handle casting to void. | |
1427 | (__do_visit_invoke): New. Enforces same return types. | |
1428 | (__do_visit_invoke_r): New. Converts return types. | |
1429 | (__visit_invoke): Adjust. | |
1430 | (__gen_vtable): Add a template parameter for enforcing | |
1431 | same return types for visit. | |
1432 | * testsuite/20_util/variant/visit_r.cc: Add a test for a visitor with | |
1433 | different return types. | |
1434 | * testsuite/20_util/variant/visit_neg.cc: New. Ensures that | |
1435 | visitors with different return types don't accidentally | |
1436 | compile with regular visitation. | |
1437 | ||
d0f56531 | 1438 | 2019-04-08 Christophe Lyon <christophe.lyon@linaro.org> |
1439 | ||
1440 | * testsuite/27_io/filesystem/iterators/caching.cc: Add | |
1441 | dg-require-filesystem-ts. | |
1442 | ||
781cb64d | 1443 | 2019-04-05 Jonathan Wakely <jwakely@redhat.com> |
1444 | ||
bfbd20f7 | 1445 | * doc/xml/manual/status_cxx2020.xml: Update status. |
1446 | * include/std/variant (visit<R>): Define for C++2a (P0655R1). | |
1447 | * testsuite/20_util/variant/visit_r.cc: New test. | |
1448 | ||
83bd31bf | 1449 | * include/bits/fs_dir.h (directory_iterator::operator*) |
1450 | (directory_iterator::operator->): Add noexcept. | |
1451 | (operator==, operator!=): Replace namespace-scope equality operators | |
1452 | for directory iterators with hidden friends. | |
1453 | ||
0067a809 | 1454 | PR libstdc++/89986 |
1455 | * config/abi/pre/gnu.ver: Add missing exports. | |
1456 | * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Test | |
1457 | increment member. | |
1458 | ||
7d0ae205 | 1459 | * config/abi/pre/gnu.ver: Export new symbols. |
1460 | * include/bits/fs_dir.h (recursive_directory_iterator::options()) | |
1461 | (recursive_directory_iterator::recursion_pending()) | |
1462 | (recursive_directory_iterator::disable_recursion_pending()): Remove | |
1463 | inline definitions. Make noexcept. | |
1464 | (recursive_directory_iterator::depth()) | |
1465 | (recursive_directory_iterator::operator*()) | |
1466 | (recursive_directory_iterator::operator->()): Make noexcept. | |
1467 | (recursive_directory_iterator::_M_options) | |
1468 | (recursive_directory_iterator::_M_pending): Remove data members. | |
1469 | * src/c++17/fs_path.cc (_Dir_stack): Add constructor and data members. | |
1470 | (recursive_directory_iterator::recursive_directory_iterator): Remove | |
1471 | ctor-initializer. Use new constructor for _Dir_stack. | |
1472 | (recursive_directory_iterator::options()) | |
1473 | (recursive_directory_iterator::recursion_pending()) | |
1474 | (recursive_directory_iterator::disable_recursion_pending()): Add | |
1475 | non-inline definitions. | |
1476 | (recursive_directory_iterator::depth()): Make noexcept. | |
1477 | (recursive_directory_iterator::increment(error_code&)) | |
1478 | (recursive_directory_iterator::pop(error_code&)): Adjust to new | |
1479 | location of options and recursion_pending members. | |
1480 | * testsuite/27_io/filesystem/iterators/recursion_pending.cc: New test. | |
1481 | * testsuite/util/testsuite_fs.h (__gnu_test::scoped_file): Add | |
1482 | user-declared move constructor and assignment operator, to make the | |
1483 | type move-only. | |
1484 | ||
5a6e0b73 | 1485 | * src/c++17/fs_dir.cc (_Dir::advance(bool, error_code&)): Handle |
1486 | d_type == DT_UNKNOWN immediately. | |
1487 | (_Dir::should_recurse(bool, error_code&)): Remove file_type::unknown | |
1488 | handling here. | |
1489 | * testsuite/27_io/filesystem/iterators/caching.cc: New test. | |
1490 | ||
aa9c570e | 1491 | * include/bits/fs_path.h (path::operator=(path&&)): Check for self |
1492 | assignment. | |
1493 | * src/c++17/fs_path.cc (path::operator=(const path&)): Likewise. | |
1494 | * testsuite/27_io/filesystem/path/assign/copy.cc: Test self | |
1495 | assignment. | |
1496 | ||
781cb64d | 1497 | PR libstdc++/87431 (again) |
1498 | * include/bits/basic_string.h (__variant::_Never_valueless_alt): | |
1499 | Define partial specialization for basic_string. | |
1500 | * include/bits/shared_ptr.h (_Never_valueless_alt): Likewise for | |
1501 | shared_ptr and weak_ptr. | |
1502 | * include/bits/std_function.h (_Never_valueless_alt): Likewise for | |
1503 | function. | |
1504 | * include/bits/stl_vector.h (_Never_valueless_alt): Likewise for | |
1505 | vector. | |
1506 | * include/bits/unique_ptr.h (_Never_valueless_alt): Likewise for | |
1507 | unique_ptr. | |
1508 | * include/debug/vector (_Never_valueless_alt): Likewise for debug | |
1509 | vector. | |
1510 | * include/std/any (_Never_valueless_alt): Define explicit | |
1511 | specialization for any. | |
1512 | * include/std/variant (_Never_valueless_alt): Define primary template. | |
1513 | (__never_valueless): Use _Never_valueless_alt instead of | |
1514 | is_trivially_copyable. | |
1515 | (variant::emplace<N>(Args&&...)): Add special case for non-throwing | |
1516 | initializations to avoid try-catch overhead. Add special case for | |
1517 | scalars produced by potentially-throwing conversions. Use | |
1518 | _Never_valueless_alt instead of is_trivially_copyable for the | |
1519 | remaining strong exception-safety cases. | |
1520 | (variant::emplace<N>(initializer_list<U>, Args&&...)): Likewise. | |
1521 | * testsuite/20_util/variant/87431.cc: Run both test functions. | |
1522 | * testsuite/20_util/variant/exception_safety.cc: New test. | |
1523 | * testsuite/20_util/variant/run.cc: Use pmr::string instead of string, | |
1524 | so the variant becomes valueless. | |
1525 | ||
62fd39e8 | 1526 | 2019-04-03 Jonathan Wakely <jwakely@redhat.com> |
1527 | ||
e1d699b8 | 1528 | PR libstdc++/85184 |
1529 | * include/std/variant (_Copy_assign_base, _Move_assign_base, variant): | |
1530 | Remove assertions. | |
72be2bb7 | 1531 | (variant::emplace<_Tp>): Return result of emplace<N> directly. |
e1d699b8 | 1532 | |
62fd39e8 | 1533 | * include/std/string (__hash_string_base): New class template defining |
1534 | operator() for hashing strings. | |
1535 | (hash<pmr::string>, hash<pmr::u8string>, hash<pmr::u16string>) | |
1536 | (hash<pmr::u32string>, hash<pmr::wstring>): Define for C++17. | |
1537 | * testsuite/21_strings/basic_string/hash/hash.cc: New test. | |
1538 | * testsuite/21_strings/basic_string/hash/hash_char8_t.cc: New test. | |
1539 | ||
4f3e024d | 1540 | 2019-04-01 Ville Voutilainen <ville.voutilainen@gmail.com> |
1541 | ||
1542 | Use single-visitation in variant assignment and swap and relops. | |
1543 | Also use indices instead of types when checking whether | |
1544 | variants hold the same thing. | |
1545 | * include/std/variant (__do_visit): Add a template parameter | |
1546 | for index visitation, invoke with indices if index visitation | |
1547 | is used. | |
1548 | (__variant_idx_cookie): New. | |
1549 | (__visit_with_index): Likewise. | |
1550 | (_Copy_assign_base::operator=): Do single-visitation with | |
1551 | an index visitor. | |
1552 | (_Move_assign_base::operator=): Likewise. | |
1553 | (_Extra_visit_slot_needed): Adjust. | |
1554 | (__visit_invoke): Call with indices if it's an index visitor. | |
1555 | (relops): Do single-visitation with an index visitor. | |
1556 | (swap): Likewise. | |
1557 | (__visitor_result_type): New. | |
1558 | ||
106979b7 | 1559 | 2019-03-30 Eric Botcazou <ebotcazou@adacore.com> |
1560 | ||
1561 | * src/c++17/fs_ops.cc (fs::permissions): Use std::errc::not_supported. | |
1562 | ||
225ca87b | 1563 | 2019-03-28 Ville Voutilainen <ville.voutilainen@gmail.com> |
1564 | ||
1565 | Don't revisit a variant we are already visiting. | |
1566 | * include/std/variant (__variant_construct_single): New. | |
1567 | (__variant_construct): Use it. | |
1568 | (_M_destructive_move): Likewise. | |
1569 | (_M_destructive_copy): Likewise. | |
1570 | (_Copy_assign_base::operator=): Adjust. | |
1571 | (_Move_assign_base::operator=): Likewise. | |
1572 | (swap): Likewise. | |
1573 | ||
7237dce7 | 1574 | 2019-03-26 Jonathan Wakely <jwakely@redhat.com> |
1575 | ||
1576 | PR libstdc++/85965 | |
1577 | * include/bits/hashtable.h (_Hashtable): Move static assertions to | |
1578 | destructor so they are not evaluated until the _Key type is complete. | |
1579 | * include/bits/stl_tree.h (_Rb_tree): Likewise. | |
1580 | * testsuite/23_containers/set/85965.cc: New test. | |
1581 | * testsuite/23_containers/unordered_set/85965.cc: New test. | |
1582 | * testsuite/23_containers/map/48101_neg.cc: Replace "here" errors | |
1583 | with regexp matching the corresponding _Rb_tree specialization. | |
1584 | * testsuite/23_containers/multimap/48101_neg.cc: Likewise. | |
1585 | * testsuite/23_containers/multiset/48101_neg.cc: Remove "here" error. | |
1586 | * testsuite/23_containers/set/48101_neg.cc: Likewise. | |
1587 | * testsuite/23_containers/unordered_map/48101_neg.cc: Likewise. | |
1588 | * testsuite/23_containers/unordered_multimap/48101_neg.cc: Likewise. | |
1589 | * testsuite/23_containers/unordered_multiset/48101_neg.cc: Likewise. | |
1590 | * testsuite/23_containers/unordered_set/48101_neg.cc: Likewise. | |
1591 | ||
4c0ef551 | 1592 | 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com> |
1593 | ||
1594 | PR libstdc++/89825 | |
1595 | Fix based on a suggestion by Antony Polukhin. | |
1596 | * include/std/variant (__never_valueless): New. | |
1597 | (_M_valid): Use it. | |
1598 | (_Extra_visit_slot_needed): New. | |
1599 | (_Multi_array): Use it. | |
1600 | (_S_apply_all_alts): Likewise. | |
1601 | ||
28b460dd | 1602 | 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com> |
1603 | ||
1604 | PR libstdc++/89824 | |
1605 | Fix based on a suggestion by Antony Polukhin. | |
1606 | * include/std/variant (__gen_vtable): Don't reserve an | |
1607 | additional table slot, _Multi_array already does that. | |
1608 | ||
4d235dc5 | 1609 | 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com> |
1610 | ||
1611 | PR libstdc++/89816 | |
1612 | Fix based on a suggestion by Antony Polukhin. | |
1613 | * include/std/variant (__variant_construct): Capture a pointer | |
1614 | to the storage and visit just one variant. | |
1615 | ||
d0595c7e | 1616 | 2019-03-22 Jonathan Wakely <jwakely@redhat.com> |
1617 | ||
5c34f7ca | 1618 | * doc/xml/manual/backwards_compatibility.xml: Remove link to |
1619 | Doxygen-generated pages with unstable URL. | |
1620 | * doc/xml/manual/concurrency_extensions.xml: Likewise. | |
1621 | * doc/xml/manual/extensions.xml: Likewise. | |
1622 | * doc/xml/manual/parallel_mode.xml: Likewise. | |
1623 | * doc/xml/manual/support.xml: Likewise. | |
1624 | ||
d0595c7e | 1625 | * include/bits/stl_algobase.h (__lg): Do arithmetic on type int to |
1626 | avoid -Wconversion warnings. | |
1627 | ||
7e155e54 | 1628 | 2019-03-21 Thomas Rodgers <trodgers@redhat.com> |
1629 | ||
1630 | * include/Makefile.am (std_header): Add ${std_srcdir}/execution. | |
1631 | (pstl_srcdir, pstl_builddir, pstl_headers): New variables. | |
1632 | (allstamped): Add stamp-pstl. | |
1633 | (install-headers): Add ptsl_builddir. | |
1634 | * include/Makefile.in: Regenerate. | |
1635 | * include/bits/c++config: Add pstl configuration. | |
1636 | * include/pstl/LICENSE.txt: New file. | |
1637 | * include/pstl/algorithm_fwd.h: New file. | |
1638 | * include/pstl/algorithm_impl.h: New file. | |
1639 | * include/pstl/execution_defs.h: New file. | |
1640 | * include/pstl/execution_impl.h: New file. | |
1641 | * include/pstl/glue_algorithm_defs.h: New file. | |
1642 | * include/pstl/glue_algorithm_impl.h: New file. | |
1643 | * include/pstl/glue_execution_defs.h: New file. | |
1644 | * include/pstl/glue_memory_defs.h: New file. | |
1645 | * include/pstl/glue_memory_impl.h: New file. | |
1646 | * include/pstl/glue_numeric_defs.h: New file. | |
1647 | * include/pstl/glue_numeric_impl.h: New file. | |
1648 | * include/pstl/memory_impl.h: New file. | |
1649 | * include/pstl/numeric_fwd.h: New file. | |
1650 | * include/pstl/numeric_impl.h: New file. | |
1651 | * include/pstl/parallel_backend.h: New file. | |
1652 | * include/pstl/parallel_backend_tbb.h: New file. | |
1653 | * include/pstl/parallel_backend_utils.h: New file. | |
1654 | * include/pstl/parallel_impl.h: New file. | |
1655 | * include/pstl/pstl_config.h: New file. | |
1656 | * include/pstl/unseq_backend_simd.h: New file. | |
1657 | * include/pstl/utils.h: New file. | |
1658 | * include/std/algorithm: Include parallel algorithm implementations. | |
1659 | * include/std/execution: New file. | |
1660 | * include/std/memory: Include parallel algorithm implementations. | |
1661 | * include/std/numeric: Include parallel algorithm implementations. | |
1662 | * include/std/version: Add parallel algorithms feature test macro. | |
1663 | * testsuite/util/pstl/pstl_test_config.h: New file. | |
1664 | * testsuite/util/pstl/test_utils.h: New file. | |
1665 | * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file. | |
1666 | * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file. | |
1667 | * testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file. | |
1668 | * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file. | |
1669 | * testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file. | |
1670 | * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file. | |
1671 | * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file. | |
1672 | * testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file. | |
1673 | * testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file. | |
1674 | * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file. | |
1675 | * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file. | |
1676 | * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file. | |
1677 | * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file. | |
1678 | * testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file. | |
1679 | * testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file. | |
1680 | * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file. | |
1681 | * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file. | |
1682 | * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file. | |
1683 | * testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file. | |
1684 | * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file. | |
1685 | * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file. | |
1686 | * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file. | |
1687 | * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file. | |
1688 | * testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file. | |
1689 | * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file. | |
1690 | * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file. | |
1691 | * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file. | |
1692 | * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file. | |
1693 | * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file. | |
1694 | * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file. | |
1695 | * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file. | |
1696 | * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file. | |
1697 | * testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file. | |
1698 | * testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file. | |
1699 | * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file. | |
1700 | * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file. | |
1701 | * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file. | |
1702 | * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file. | |
1703 | * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file. | |
1704 | * testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file. | |
1705 | * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file. | |
1706 | * testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file. | |
1707 | * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file. | |
1708 | * testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file. | |
1709 | * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file. | |
1710 | * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file. | |
1711 | * testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file. | |
1712 | * testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file. | |
1713 | * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file. | |
1714 | * testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file. | |
1715 | * testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file. | |
1716 | * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file. | |
1717 | * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file. | |
1718 | * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file. | |
1719 | * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file. | |
1720 | * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file. | |
1721 | * testsuite/testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file. | |
1722 | * testsuite/testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file. | |
1723 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file. | |
1724 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file. | |
1725 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file. | |
1726 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file. | |
1727 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file. | |
1728 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file. | |
1729 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file. | |
1730 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file. | |
1731 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file. | |
1732 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file. | |
1733 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file. | |
1734 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file. | |
1735 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file. | |
1736 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file. | |
1737 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file. | |
1738 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file. | |
1739 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file. | |
1740 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file. | |
1741 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file. | |
1742 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file. | |
1743 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file. | |
1744 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file. | |
1745 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file. | |
1746 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file. | |
1747 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file. | |
1748 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file. | |
1749 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file. | |
1750 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file. | |
1751 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file. | |
1752 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file. | |
1753 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file. | |
1754 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file. | |
1755 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file. | |
1756 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file. | |
1757 | * testsuite/testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file. | |
1758 | * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file. | |
1759 | * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file. | |
1760 | * testsuite/testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file. | |
1761 | * testsuite/testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file. | |
1762 | * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file. | |
1763 | * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file. | |
1764 | * testsuite/testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file. | |
1765 | * testsuite/testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file. | |
1766 | * testsuite/testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file. | |
1767 | * testsuite/testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file. | |
1768 | * testsuite/testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file. | |
1769 | * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file. | |
1770 | * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file. | |
1771 | ||
480b3b75 | 1772 | 2019-03-21 Jonathan Wakely <jwakely@redhat.com> |
1773 | ||
0a4390ac | 1774 | * include/c_compatibility/math.h [!__STDCPP_WANT_MATH_SPEC_FUNCS__] |
1775 | (assoc_laguerre, assoc_laguerref, assoc_laguerrel, assoc_legendre) | |
1776 | (assoc_legendref, assoc_legendrel, beta, betaf, betal, comp_ellint_1) | |
1777 | (comp_ellint_1f, comp_ellint_1l, comp_ellint_2, comp_ellint_2f) | |
1778 | (comp_ellint_2l, comp_ellint_3, comp_ellint_3f, comp_ellint_3l) | |
1779 | (cyl_bessel_i, cyl_bessel_if, cyl_bessel_il, cyl_bessel_j) | |
1780 | (cyl_bessel_jf, cyl_bessel_jl, cyl_bessel_k, cyl_bessel_kf) | |
1781 | (cyl_bessel_kl, cyl_neumann, cyl_neumannf, cyl_neumannl, ellint_1) | |
1782 | (ellint_1f, ellint_1l, ellint_2, ellint_2f, ellint_2l, ellint_3) | |
1783 | (ellint_3f, ellint_3l, expint, expintf, expintl, hermite, hermitef) | |
1784 | (hermitel, laguerre, laguerref, laguerrel, legendre, legendref) | |
1785 | (legendrel, riemann_zeta, riemann_zetaf, riemann_zetal, sph_bessel) | |
1786 | (sph_besself, sph_bessell, sph_legendre, sph_legendref, sph_legendrel) | |
1787 | (sph_neumann, sph_neumannf, sph_neumannl): Only add using-declarations | |
1788 | when the special functions IS is enabled, not for C++17. | |
1789 | * testsuite/26_numerics/headers/cmath/functions_global_c++17.cc: | |
1790 | Replace with ... | |
1791 | * testsuite/26_numerics/headers/cmath/functions_global.cc: New test, | |
1792 | without checks for special functions in C++17. | |
1793 | * testsuite/26_numerics/headers/cmath/special_functions_global.cc: | |
1794 | New test. | |
1795 | ||
480b3b75 | 1796 | PR libstdc++/88066 |
1797 | * include/backward/hash_map: Use <> for includes not "". | |
1798 | * include/backward/hash_set: Likewise. | |
1799 | * include/backward/strstream: Likewise. | |
1800 | * include/tr1/bessel_function.tcc: Likewise. | |
1801 | * include/tr1/exp_integral.tcc: Likewise. | |
1802 | * include/tr1/legendre_function.tcc: Likewise. | |
1803 | * include/tr1/modified_bessel_func.tcc: Likewise. | |
1804 | * include/tr1/riemann_zeta.tcc: Likewise. | |
1805 | ||
ed360d55 | 1806 | 2019-03-19 Jonathan Wakely <jwakely@redhat.com> |
1807 | ||
1808 | * doc/xml/manual/allocator.xml: Link to table documenting evolution | |
1809 | of extension allocators. | |
1810 | * doc/xml/manual/evolution.xml: Use angle brackets for header names. | |
1811 | Document new headers in 7.2, 8.1 and 9.1 releases. | |
1812 | * doc/xml/manual/using.xml: Adjust link target for new_allocator. | |
1813 | * doc/html/*: Regenerate. | |
1814 | ||
8f9d7eb1 | 1815 | 2019-03-12 John David Anglin <dave.anglin@bell.net> |
1816 | ||
1817 | PR libstdc++/89461 | |
1818 | * testsuite/lib/libstdc++.exp: Locate libatomic. | |
1819 | * testsuite/lib/dg-options.exp (add_options_for_libatomic): New. | |
1820 | * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Add | |
1821 | libatomic options. | |
1822 | * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise. | |
1823 | * testsuite/experimental/net/timer/waitable/cons.cc: Likewise. | |
1824 | * testsuite/experimental/net/timer/waitable/dest.cc: Likewise. | |
1825 | * testsuite/experimental/net/timer/waitable/ops.cc: Likewise. | |
1826 | ||
0bd005b6 | 1827 | 2019-03-11 Jonathan Wakely <jwakely@redhat.com> |
1828 | ||
5995ba3a | 1829 | PR libstdc++/89460 |
1830 | * configure.ac: Check for sockatmark. | |
1831 | * crossconfig.m4: Check for sockatmark. | |
1832 | * config.h.in: Regenerate. | |
1833 | * configure: Regenerate. | |
1834 | * include/experimental/internet (address_v4::_S_hton): Rename | |
1835 | overloaded functions to _S_hton_16 and _S_ntoh_16. | |
1836 | (address_v4::_S_ntoh): Rename to _S_ntoh_16 and _S_ntoh_32. | |
1837 | (basic_endpoint): Adjust calls to _S_hton and _S_ntoh. | |
1838 | * include/experimental/socket (basic_socket::at_mark): Check | |
1839 | _GLIBCXX_HAVE_SOCKATMARK. | |
1840 | ||
5aa8571a | 1841 | * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc: Use |
1842 | const variables instead of macros. | |
1843 | ||
0bd005b6 | 1844 | PR libstdc++/89629 |
1845 | * libsupc++/hash_bytes.cc [__SIZEOF_SIZE_T__ == 8] (_Hash_bytes): | |
1846 | Use correct type for len_aligned. | |
1847 | * testsuite/20_util/hash/89629.cc: New test. | |
1848 | ||
bc204227 | 1849 | 2019-03-11 Jakub Jelinek <jakub@redhat.com> |
1850 | ||
1851 | PR libstdc++/89641 | |
1852 | * include/std/atomic (atomic<T>::store, atomic<T>::load, | |
1853 | atomic<T>::exchange, atomic<T>::compare_exchange_weak, | |
1854 | atomic<T>::compare_exchange_strong): Cast __m or __s and __f to int. | |
1855 | * include/bits/atomic_base.h (__atomic_base<T>::operator++, | |
1856 | __atomic_base<T>::operator--, __atomic_base<T>::operator+=, | |
1857 | __atomic_base<T>::operator-=, __atomic_base<T>::operator&=, | |
1858 | __atomic_base<T>::operator|=, __atomic_base<T>::operator^=, | |
1859 | __atomic_base<T*>::operator++, __atomic_base<T*>::operator--, | |
1860 | __atomic_base<T*>::operator+=, __atomic_base<T*>::operator-=): Cast | |
1861 | memory_order_seq_cst to int. | |
1862 | ||
fc557c2b | 1863 | 2019-03-08 Jonathan Wakely <jwakely@redhat.com> |
1864 | ||
59b5e890 | 1865 | * doc/xml/manual/using.xml: Use link element instead of xref. |
1866 | * doc/html/*: Regenerate. | |
1867 | ||
fc557c2b | 1868 | * include/bits/fs_path.h (path::format): Add fixed underlying type. |
1869 | ||
66c6ff9e | 1870 | 2019-03-08 François Dumont <fdumont@gcc.gnu.org> |
1871 | ||
448338d0 | 1872 | PR libstdc++/89477 |
1873 | * include/debug/map.h (map): Use _RequireNotAllocator to constrain | |
1874 | parameters in deduction guides. | |
1875 | * include/debug/multimap.h (multimap): Likewise. | |
1876 | * include/debug/set.h (multimap): Likewise. | |
1877 | * include/debug/multiset.h (multimap): Likewise. | |
1878 | * include/debug/unordered_map (unordered_map): Likewise. | |
1879 | (unordered_multimap): Likewise. | |
1880 | * include/debug/unordered_set (unordered_set): Likewise. | |
1881 | (unordered_multiset): Likewise. | |
1882 | ||
66c6ff9e | 1883 | PR libstdc++/89608 |
1884 | * include/debug/unordered_map (unordered_map<>::_M_check_rehashed): | |
1885 | Invalidate all iterators in case of rehash. | |
1886 | (unordered_multimap<>::_M_check_rehashed): Likewise. | |
1887 | * include/debug/unordered_set | |
1888 | (unordered_set<>::_M_check_rehashed): Likewise. | |
1889 | (unordered_multiset<>::_M_check_rehashed): Likewise. | |
1890 | * testsuite/23_containers/unordered_set/debug/89608_neg.cc: New. | |
1891 | ||
32e92dc2 | 1892 | 2019-03-07 Andreas Schwab <schwab@suse.de> |
1893 | ||
1894 | * config/abi/post/riscv64-linux-gnu: New directory. | |
1895 | * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: New file. | |
1896 | ||
61dcf2e1 | 1897 | 2019-03-07 Jonathan Wakely <jwakely@redhat.com> |
1898 | ||
682ee94e | 1899 | * testsuite/20_util/function_objects/bind_front/1.cc: Change from |
1900 | compile test to run. Fix typo. | |
1901 | ||
f24442bd | 1902 | * doc/xml/manual/status_cxx2020.xml: Update C++20 status. |
1903 | * doc/html/*: Regenerate. | |
1904 | ||
61dcf2e1 | 1905 | P0356R5 Simplified partial function application |
1906 | * include/std/functional [C++20] (_Bind_front, _Bind_front_t): Define | |
1907 | helpers for bind_front. | |
1908 | (bind_front, __cpp_lib_bind_front): Define. | |
1909 | * testsuite/20_util/function_objects/bind_front/1.cc: New test. | |
1910 | ||
b4af2395 | 1911 | 2019-03-06 Jonathan Wakely <jwakely@redhat.com> |
1912 | ||
1913 | * include/std/type_traits (__cpp_lib_bounded_array_traits): Define. | |
1914 | * include/std/version (__cpp_lib_bounded_array_traits): Likewise. | |
1915 | * testsuite/20_util/is_bounded_array/value.cc: Check for macro. | |
1916 | * testsuite/20_util/is_unbounded_array/value.cc: Likewise. | |
1917 | ||
f1857b8b | 1918 | 2019-03-06 Edward Smith-Rowland <3dw4rd@verizon.net> |
1919 | ||
1920 | PR libstdc++/86655 - std::assoc_legendre should not constrain | |
1921 | the value of m (or x). | |
1922 | * include/tr1/legendre_function.tcc (__assoc_legendre_p, | |
1923 | __sph_legendre): If degree > order Don't throw, return 0. | |
1924 | (__legendre_p, __assoc_legendre_p): Don't constrain x either. | |
1925 | * testsuite/special_functions/02_assoc_legendre/pr86655.cc: New test. | |
1926 | * testsuite/special_functions/20_sph_legendre/pr86655.cc: New test. | |
1927 | * testsuite/tr1/5_numerical_facilities/special_functions/ | |
1928 | 02_assoc_legendre/pr86655.cc: New test. | |
1929 | * testsuite/tr1/5_numerical_facilities/special_functions/ | |
1930 | 22_sph_legendre/pr86655.cc: New test. | |
1931 | ||
49c83dca | 1932 | 2019-03-06 Ville Voutilainen <ville.voutilainen@gmail.com> |
1933 | ||
1934 | Rewrite variant. | |
1935 | Also PR libstdc++/85517 | |
1936 | * include/std/variant (__do_visit): New. | |
1937 | (__variant_cast): Likewise. | |
1938 | (__variant_cookie): Likewise. | |
1939 | (__erased_*): Remove. | |
1940 | (_Variant_storage::_S_vtable): Likewise. | |
1941 | (_Variant_storage::__M_reset_impl): Adjust to use __do_visit. | |
1942 | (_Variant_storage::__M_reset): Adjust. | |
1943 | (__variant_construct): New. | |
1944 | (_Copy_ctor_base(const _Copy_ctor_base&)): Adjust to use | |
1945 | __variant_construct. | |
1946 | (_Move_ctor_base(_Move_ctor_base&&)): Likewise. | |
1947 | (_Move_ctor_base::__M_destructive_copy): New. | |
1948 | (_Move_ctor_base::__M_destructive_move): Adjust to use | |
1949 | __variant_construct. | |
1950 | (_Copy_assign_base::operator=): Adjust to use __do_visit. | |
1951 | (_Copy_assign_alias): Adjust to check both copy assignment | |
1952 | and copy construction for triviality. | |
1953 | (_Move_assign_base::operator=): Adjust to use __do_visit. | |
1954 | (_Multi_array): Add support for visitors that accept and return | |
1955 | a __variant_cookie. | |
1956 | (__gen_vtable_impl::_S_apply_all_alts): Likewise. | |
1957 | (__gen_vtable_impl::_S_apply_single_alt): Likewise. | |
1958 | (__gen_vtable_impl::__element_by_index_or_cookie): New. Generate | |
1959 | a __variant_cookie temporary for a variant that is valueless and.. | |
1960 | (__gen_vtable_impl::__visit_invoke): ..adjust here. | |
1961 | (__gen_vtable::_Array_type): Conditionally make space for | |
1962 | the __variant_cookie visitor case. | |
1963 | (__variant_construct_by_index): New. | |
1964 | (get_if): Adjust to use std::addressof. | |
1965 | (relops): Adjust to use __do_visit. | |
1966 | (variant): Add __variant_cast and __variant_construct_by_index | |
1967 | as friends. | |
1968 | (variant::emplace): Use _M_reset() and __variant_construct_by_index | |
1969 | instead of self-destruction. | |
1970 | (variant::swap): Adjust to use __do_visit. | |
1971 | (visit): Reimplement in terms of __do_visit. | |
1972 | (__variant_hash_call_base_impl::operator()): Adjust to use __do_visit. | |
1973 | * testsuite/20_util/variant/compile.cc: Adjust. | |
1974 | * testsuite/20_util/variant/run.cc: Likewise. | |
1975 | ||
13825fb2 | 1976 | 2019-03-06 Jonathan Wakely <jwakely@redhat.com> |
1977 | ||
2613fa6b | 1978 | * include/bits/c++config.h (_cpp_lib_char8_t): Add L suffix to |
1979 | constant. | |
1980 | * testsuite/experimental/feat-char8_t.cc: Likewise. | |
1981 | ||
a17f06b3 | 1982 | * include/std/type_traits [C++20] (is_bounded_array) |
1983 | (is_unbounded_array, is_bounded_array_v, is_unbounded_array_v): | |
1984 | Define. | |
1985 | * testsuite/20_util/is_bounded_array/requirements/ | |
1986 | explicit_instantiation.cc: New test. | |
1987 | * testsuite/20_util/is_bounded_array/requirements/typedefs.cc: New | |
1988 | test. | |
1989 | * testsuite/20_util/is_bounded_array/value.cc: New test. | |
1990 | * testsuite/20_util/is_unbounded_array/requirements/ | |
1991 | explicit_instantiation.cc: New test. | |
1992 | * testsuite/20_util/is_unbounded_array/requirements/typedefs.cc: New | |
1993 | * test. | |
1994 | * testsuite/20_util/is_unbounded_array/value.cc: New test. | |
1995 | ||
13825fb2 | 1996 | * include/bits/ptr_traits.h [C++20] (pointer_traits<T*>::pointer_to): |
1997 | Add constexpr. | |
1998 | * testsuite/20_util/pointer_traits/pointer_to_constexpr.cc: New test. | |
1999 | ||
2e73e63a | 2000 | 2019-03-05 Jonathan Wakely <jwakely@redhat.com> |
2001 | ||
2002 | * include/c_compatibility/math.h [C++20] (lerp): Add using | |
2003 | declaration. | |
2004 | * include/c_global/cmath [C++20] (__cpp_lib_interpolate): Define. | |
2005 | (__lerp): Define function template to implement lerp. | |
2006 | (lerp(float, float, float), lerp(double, double, double)) | |
2007 | (lerp(long double, long double, long double)): Define for C++20. | |
2008 | * include/std/numeric [C++20] (__cpp_lib_interpolate): Define. | |
2009 | (midpoint(T, T), midpoint(T*, T*)): Define. | |
2010 | * include/std::version [C++20] (__cpp_lib_interpolate): Define. | |
2011 | * testsuite/26_numerics/lerp.cc: New test. | |
2012 | * testsuite/26_numerics/midpoint/floating.cc: New test. | |
2013 | * testsuite/26_numerics/midpoint/integral.cc: New test. | |
2014 | * testsuite/26_numerics/midpoint/pointer.cc: New test. | |
2015 | ||
08d3ce5b | 2016 | 2019-03-04 Edward Smith-Rowland <3dw4rd@verizon.net> |
2017 | ||
2018 | PR libstdc++/88996 Implement P0439R0 | |
2019 | Make std::memory_order a scoped enumeration. | |
2020 | * include/bits/atomic_base.h: For C++20 make memory_order a scoped enum, | |
2021 | add variables for the old enumerators. Adjust calls. | |
2022 | * testsuite/29_atomics/headers/atomic/types_std_c++2a.cc: New test. | |
2023 | * testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc: New test. | |
2024 | ||
ad29ad75 | 2025 | 2019-03-04 Jonathan Wakely <jwakely@redhat.com> |
2026 | ||
4233f2a8 | 2027 | * testsuite/26_numerics/bit/bitops.rot/rotl.cc: Remove bogus dg-do |
2028 | directive. | |
2029 | ||
ad29ad75 | 2030 | * include/std/memory_resource (polymorphic_allocator): Add default |
2031 | template argument for C++20. | |
2032 | (polymorphic_allocator::allocate_bytes) | |
2033 | (polymorphic_allocator::deallocate_bytes) | |
2034 | (polymorphic_allocator::allocate_object) | |
2035 | (polymorphic_allocator::deallocate_object) | |
2036 | (polymorphic_allocator::new_object) | |
2037 | (polymorphic_allocator::delete_object): New member functions for | |
2038 | C++20. | |
2039 | * testsuite/20_util/polymorphic_allocator/allocate_object.cc: New | |
2040 | test. | |
2041 | ||
d4c27c4a | 2042 | 2019-03-03 Jonathan Wakely <jwakely@redhat.com> |
2043 | ||
2044 | PR libstdc++/89562 | |
2045 | * src/filesystem/ops-common.h (do_copy_file): Open files in binary | |
2046 | mode for mingw. | |
2047 | ||
6a9c77f1 | 2048 | 2019-03-01 Jonathan Wakely <jwakely@redhat.com> |
2049 | ||
5b313df9 | 2050 | * testsuite/util/testsuite_allocator.h (__gnu_test::memory_resource) |
2051 | [!__cpp_sized_deallocation]: Do not pass size to operator delete. | |
2052 | ||
6a9c77f1 | 2053 | * include/std/memory (uses_allocator_construction_args): New set of |
2054 | overloaded functions. | |
2055 | (make_obj_using_allocator, uninitialized_construct_using_allocator): | |
2056 | New functions. | |
2057 | * include/std/memory_resource (polymorphic_allocator::construct) | |
2058 | [__cplusplus > 201703l]: Replace all overloads with a single function | |
2059 | using uses_allocator_construction_args. | |
2060 | * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: New | |
2061 | test. | |
2062 | * testsuite/20_util/uses_allocator/make_obj.cc: New test. | |
2063 | ||
53ea0887 | 2064 | 2019-02-27 Jonathan Wakely <jwakely@redhat.com> |
2065 | ||
2066 | PR libstdc++/89466 | |
2067 | * acinclude.m4 (GLIBCXX_CONFIGURE_DOCBOOK): Reorder check for local | |
2068 | stylesheet directories before check for xsltproc. Try to use | |
2069 | xmlcatalog to find local stylesheet directory before trying hardcoded | |
2070 | paths. Add path used by suse to hardcoded paths. Adjust xsltproc | |
2071 | check to look for the same stylesheet as doc/Makefile.am uses. Don't | |
2072 | use xsltproc if xmlcatalog fails to find a local stylesheet. | |
2073 | * configure.ac: Check for xmlcatalog. | |
2074 | * Makefile.in: Regenerate. | |
2075 | * configure: Likewise. | |
2076 | * doc/Makefile.in: Likewise. | |
2077 | * include/Makefile.in: Likewise. | |
2078 | * libsupc++/Makefile.in: Likewise. | |
2079 | * po/Makefile.in: Likewise. | |
2080 | * python/Makefile.in: Likewise. | |
2081 | * src/Makefile.in: Likewise. | |
2082 | * src/c++11/Makefile.in: Likewise. | |
2083 | * src/c++17/Makefile.in: Likewise. | |
2084 | * src/c++98/Makefile.in: Likewise. | |
2085 | * src/filesystem/Makefile.in: Likewise. | |
2086 | * testsuite/Makefile.in: Likewise. | |
2087 | ||
72ebb7e8 | 2088 | 2019-02-26 Jonathan Wakely <jwakely@redhat.com> |
2089 | ||
a7f2f1b1 | 2090 | PR libstdc++/89477 |
2091 | * include/bits/alloc_traits.h (_RequireNotAllocator): New helper for | |
2092 | container deduction guides. | |
2093 | * include/bits/hashtable.h (_RequireNotAllocatorOrIntegral): Likewise. | |
2094 | * include/bits/stl_map.h (map): Use _RequireNotAllocator to constrain | |
2095 | parameters in deduction guides. | |
2096 | * include/bits/stl_multimap.h (multimap): Likewise. | |
2097 | * include/bits/stl_multiset.h (multiset): Likewise. | |
2098 | * include/bits/stl_queue.h (queue, priority_queue): Likewise. | |
2099 | * include/bits/stl_set.h (set): Likewise. | |
2100 | * include/bits/stl_stack.h (stack): Likewise. | |
2101 | * include/bits/unordered_map.h (unordered_map, unordered_multimap): | |
2102 | use _RequireNotAllocator and _RequireNotAllocatorOrIntegral to | |
2103 | constrain parameters in deduction guides. | |
2104 | * include/bits/unordered_set.h (unordered_set, unordered_multiset): | |
2105 | Likewise. | |
2106 | * testsuite/23_containers/map/cons/deduction.cc: Test additional | |
2107 | deduction cases. | |
2108 | * testsuite/23_containers/multiset/cons/deduction.cc: Likewise. | |
2109 | * testsuite/23_containers/set/cons/deduction.cc: Likewise. | |
2110 | * testsuite/23_containers/unordered_map/cons/deduction.cc: Likewise. | |
2111 | * testsuite/23_containers/unordered_multimap/cons/deduction.cc: | |
2112 | Likewise. | |
2113 | * testsuite/23_containers/unordered_multiset/cons/deduction.cc: | |
2114 | Likewise. | |
2115 | * testsuite/23_containers/unordered_set/cons/deduction.cc: Likewise. | |
2116 | ||
72ebb7e8 | 2117 | PR libstdc++/89416 |
2118 | * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Change | |
2119 | to class template and partial specialization using void_t. | |
2120 | (__is_copy_insertable, __is_move_insertable): Adjust base class. | |
2121 | ||
c9f61a64 | 2122 | 2019-02-24 Jonathan Wakely <jwakely@redhat.com> |
2123 | ||
2124 | PR libstdc++/89416 | |
2125 | * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Make | |
2126 | copy and move members public. | |
2127 | ||
61e2d6f7 | 2128 | 2019-02-23 Jonathan Wakely <jwakely@redhat.com> |
2129 | ||
87798f3f | 2130 | * include/std/type_traits (__underlying_type_impl): New helper to |
2131 | make underlying_type SFINAE-friendly. | |
2132 | (underlying_type): Derive from __underlying_type_impl. | |
2133 | * testsuite/20_util/underlying_type/requirements/typedefs-3.cc: New | |
2134 | test. | |
2135 | ||
61e2d6f7 | 2136 | PR libstdc++/89446 |
2137 | * include/bits/char_traits.h (__constant_char_array): Check index is | |
2138 | in range before dereferencing. | |
2139 | (char_traits<char>::compare, char_traits<char>::find) | |
2140 | (char_traits<char8_t>::compare, char_traits<char8_t>::find): Return | |
2141 | immediately if n is zero. | |
2142 | (char_traits<wchar_t>::compare, char_traits<wchar_t>::find): Likewise. | |
2143 | Remove workarounds for PR 67026. | |
2144 | * testsuite/21_strings/basic_string_view/operators/char/89446.cc: | |
2145 | New test. | |
2146 | * testsuite/21_strings/basic_string_view/operators/wchar_t/89446.cc: | |
2147 | New test. | |
2148 | ||
90a443b3 | 2149 | 2019-02-22 Eric Botcazou <ebotcazou@adacore.com> |
2150 | ||
2151 | * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: Adjust. | |
2152 | * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: Likewise. | |
2153 | ||
98485ce3 | 2154 | 2019-02-22 Jakub Jelinek <jakub@redhat.com> |
2155 | ||
2156 | PR libstdc++/89402 | |
2157 | * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Change return | |
2158 | type to std::size_t and argument to type to long double. | |
2159 | ||
26b4fc38 | 2160 | 2019-02-22 Eric Botcazou <ebotcazou@adacore.com> |
2161 | ||
2162 | * configure.host (abi_baseline_pair): Adjust for SPARC64/Linux. | |
2163 | * config/abi/post/sparc64-linux-gnu: New directory. | |
2164 | * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: New file. | |
2165 | * config/abi/post/sparc64-linux-gnu/32: New directory. | |
2166 | * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: New file. | |
2167 | ||
4f847a8e | 2168 | 2019-02-21 Jonathan Wakely <jwakely@redhat.com> |
2169 | ||
2170 | * testsuite/29_atomics/headers/atomic/types_std_c++20.cc: New test. | |
2171 | * testsuite/29_atomics/headers/atomic/types_std_c++20_neg.cc: New | |
2172 | test. | |
2173 | ||
aad651b3 | 2174 | 2019-02-22 Tom Honermann <tom@honermann.net> |
2175 | ||
2176 | * python/libstdcxx/v6/printers.py (register_type_printers): Add type | |
2177 | printers for u8string and u8string_view. | |
2178 | ||
c783b3cc | 2179 | 2019-02-22 Tom Honermann <tom@honermann.net> |
2180 | ||
2181 | * testsuite/18_support/byte/ops.cc: Validate | |
2182 | std::to_integer<char8_t>, std::to_integer<char16_t>, and | |
2183 | std::to_integer<char32_t>. | |
2184 | * testsuite/18_support/numeric_limits/dr559.cc: Validate | |
2185 | std::numeric_limits<char8_t>. | |
2186 | * testsuite/18_support/numeric_limits/lowest.cc: Validate | |
2187 | std::numeric_limits<char8_t>::lowest(). | |
2188 | * testsuite/18_support/numeric_limits/max_digits10.cc: Validate | |
2189 | std::numeric_limits<char8_t>::max_digits10. | |
2190 | * testsuite/18_support/type_info/fundamental.cc: Validate | |
2191 | typeinfo for char8_t. | |
2192 | * testsuite/20_util/from_chars/1_c++20_neg.cc: New test, validating | |
2193 | std::from_chars with char8_t. | |
2194 | * testsuite/20_util/hash/requirements/explicit_instantiation.cc: | |
2195 | Validate explicit instantiation of std::hash<char8_t>. | |
2196 | * testsuite/20_util/is_integral/value.cc: Validate | |
2197 | std::is_integral<char8_t>. | |
2198 | * testsuite/20_util/make_signed/requirements/typedefs-4.cc: | |
2199 | Validate std::make_signed<char8_t>. | |
2200 | * testsuite/21_strings/basic_string/cons/char/deduction.cc: | |
2201 | Validate u8string construction from char8_t sources. | |
2202 | * testsuite/21_strings/basic_string/types/pmr_typedefs.cc: Validate | |
2203 | std::pmr::u8string. | |
2204 | * testsuite/21_strings/basic_string_view/operations/compare/ | |
2205 | char/70483.cc: Validate substr operations on u8string_view. | |
2206 | * testsuite/21_strings/basic_string_view/typedefs.cc: Validate that | |
2207 | the u8string_view typedef is defined. | |
2208 | * testsuite/21_strings/char_traits/requirements/ | |
2209 | constexpr_functions.cc: Validate char_traits<char8_t> constexpr | |
2210 | member functions. | |
2211 | * testsuite/21_strings/char_traits/requirements/ | |
2212 | constexpr_functions_c++17.cc: Validate char_traits<char8_t> C++17 | |
2213 | constexpr member functions. | |
2214 | * testsuite/21_strings/headers/string/types_std_c++0x.cc: Validate | |
2215 | that the u8string typedef is defined. | |
2216 | * testsuite/22_locale/locale/cons/unicode.cc: Validate the presence | |
2217 | of the std::codecvt<char16_t, char8_t, std::mbstate_t> and | |
2218 | std::codecvt<char32_t, char8_t, std::mbstate_t> facets. | |
2219 | * testsuite/29_atomics/atomic/cons/assign_neg.cc: Update line | |
2220 | numbers. | |
2221 | * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise. | |
2222 | * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc: | |
2223 | Likewise. | |
2224 | * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise. | |
2225 | * testsuite/29_atomics/atomic_integral/is_always_lock_free.cc: | |
2226 | Validate std::atomic<char8_t>::is_always_lock_free | |
2227 | * testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc: | |
2228 | Update line numbers. | |
2229 | * testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc: | |
2230 | Likewise. | |
2231 | * testsuite/29_atomics/atomic_integral/operators/increment_neg.cc: | |
2232 | Likewise. | |
2233 | * testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc: | |
2234 | Validate std::experimental::pmr::u8string. | |
2235 | * testsuite/experimental/string_view/typedefs.cc: Validate that the | |
2236 | u8string_view typedef is defined. | |
2237 | * testsuite/util/testsuite_common_types.h: Add char8_t, char16_t and | |
2238 | char32_t to the typelists. | |
2239 | ||
ef96a935 | 2240 | 2019-02-22 Tom Honermann <tom@honermann.net> |
2241 | ||
2242 | * include/ext/typelist.h: Constrain a partial specialization of | |
2243 | typelist::detail::append_ to only match chain<T1,T2>. | |
2244 | ||
d373b606 | 2245 | 2019-02-21 Jonathan Wakely <jwakely@redhat.com> |
2246 | ||
2247 | PR libstdc++/89416 | |
2248 | * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Replace | |
2249 | class template with class. Replace move and copy member types with | |
2250 | member alias templates, so they are only instantiated when needed. | |
2251 | (__is_copy_insertable, __is_move_insertable): Adjust base class. | |
2252 | * testsuite/23_containers/vector/modifiers/push_back/89130.cc: Enable | |
2253 | test for C++11/14/17 as well. | |
2254 | * testsuite/23_containers/vector/modifiers/push_back/89416.cc: New | |
2255 | test. | |
2256 | ||
25395ee8 | 2257 | 2019-02-20 Jakub Jelinek <jakub@redhat.com> |
2258 | ||
2259 | PR libstdc++/89402 | |
2260 | * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Add | |
2261 | _GLIBCXX_PURE to the alias declaration. | |
2262 | ||
affcb65b | 2263 | 2019-02-19 Jonathan Wakely <jwakely@redhat.com> |
2264 | ||
2265 | * testsuite/21_strings/basic_string/literals/types.cc | |
2266 | [_GLIBCXX_USE_CHAR8_T]: Adjust expected string type for u8 literal. | |
2267 | * testsuite/21_strings/basic_string/literals/values.cc | |
2268 | [_GLIBCXX_USE_CHAR8_T]: Likewise. | |
2269 | * testsuite/22_locale/codecvt/char16_t.cc: Adjust for u8 literals | |
2270 | potentially having different type. | |
2271 | * testsuite/22_locale/codecvt/char32_t.cc: Likewise. | |
2272 | * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: Cast u8 literal | |
2273 | to char. | |
2274 | * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: Likewise. | |
2275 | * testsuite/22_locale/codecvt/utf8.cc: Likewise. | |
2276 | * testsuite/22_locale/conversions/string/2.cc: Remove u8 prefix from | |
2277 | string literals only using basic character set. | |
2278 | * testsuite/22_locale/conversions/string/3.cc: Likewise. Cast other | |
2279 | u8 literals to char. | |
2280 | * testsuite/29_atomics/headers/atomic/macros.cc [_GLIBCXX_USE_CHAR8_T]: | |
2281 | Test ATOMIC_CHAR8_T_LOCK_FREE. | |
2282 | Add missing #error to ATOMIC_CHAR16_T_LOCK_FREE test. | |
2283 | * testsuite/29_atomics/headers/atomic/types_std_c++0x.cc | |
2284 | [_GLIBCXX_USE_CHAR8_T]: Check for std::atomic_char8_t. | |
2285 | * testsuite/experimental/string_view/literals/types.cc | |
2286 | [_GLIBCXX_USE_CHAR8_T]: Adjust expected string_view type for u8 | |
2287 | literal. | |
2288 | * testsuite/experimental/string_view/literals/values.cc | |
2289 | [_GLIBCXX_USE_CHAR8_T]: Likewise. | |
2290 | ||
4acc5060 | 2291 | 2019-02-19 Tom Honermann <tom@honermann.net> |
2292 | ||
2293 | * testsuite/18_support/numeric_limits/char8_t.cc: New test cloned | |
2294 | from char16_32_t.cc; validates numeric_limits<char8_t>. | |
2295 | * testsuite/21_strings/basic_string/literals/types-char8_t.cc: New | |
2296 | test cloned from types.cc; validates operator""s for char8_t | |
2297 | returns u8string. | |
2298 | * testsuite/21_strings/basic_string/literals/values-char8_t.cc: New | |
2299 | test cloned from values.cc; validates construction and comparison | |
2300 | of u8string values. | |
2301 | * testsuite/21_strings/basic_string/requirements/ | |
2302 | /explicit_instantiation/char8_t/1.cc: New test cloned from | |
2303 | char16_t/1.cc; validates explicit instantiation of | |
2304 | basic_string<char8_t>. | |
2305 | * testsuite/21_strings/basic_string_view/literals/types-char8_t.cc: | |
2306 | New test cloned from types.cc; validates operator""sv for char8_t | |
2307 | returns u8string_view. | |
2308 | * testsuite/21_strings/basic_string_view/literals/ | |
2309 | values-char8_t.cc: New test cloned from values.cc; validates | |
2310 | construction and comparison of u8string_view values. | |
2311 | * testsuite/21_strings/basic_string_view/requirements/ | |
2312 | explicit_instantiation/char8_t/1.cc: New test cloned from | |
2313 | char16_t/1.cc; validates explicit instantiation of | |
2314 | basic_string_view<char8_t>. | |
2315 | * testsuite/21_strings/char_traits/requirements/char8_t/65049.cc: | |
2316 | New test cloned from char16_t/65049.cc; validates that | |
2317 | char_traits<char8_t> is not vulnerable to the concerns in PR65049. | |
2318 | * testsuite/21_strings/char_traits/requirements/char8_t/ | |
2319 | typedefs.cc: New test cloned from char16_t/typedefs.cc; validates | |
2320 | that char_traits<char8_t> member typedefs are present and correct. | |
2321 | * testsuite/21_strings/char_traits/requirements/ | |
2322 | explicit_instantiation/char8_t/1.cc: New test cloned from | |
2323 | char16_t/1.cc; validates explicit instantiation of | |
2324 | char_traits<char8_t>. | |
2325 | * testsuite/22_locale/codecvt/char16_t-char8_t.cc: New test cloned | |
2326 | from char16_t.cc: validates | |
2327 | codecvt<char16_t, char8_t, mbstate_t>. | |
2328 | * testsuite/22_locale/codecvt/char32_t-char8_t.cc: New test cloned | |
2329 | from char32_t.cc: validates | |
2330 | codecvt<char32_t, char8_t, mbstate_t>. | |
2331 | * testsuite/22_locale/codecvt/utf8-char8_t.cc: New test cloned from | |
2332 | utf8.cc; validates codecvt<char16_t, char8_t, std::mbstate_t> and | |
2333 | codecvt<char32_t, char8_t, std::mbstate_t>. | |
2334 | * testsuite/27_io/filesystem/path/native/string-char8_t.cc: New | |
2335 | test cloned from string.cc; validates filesystem::path construction | |
2336 | from char8_t input. | |
2337 | * testsuite/experimental/feat-char8_t.cc: New test; validates that | |
2338 | the __cpp_lib_char8_t feature test macro is defined with the | |
2339 | correct value. | |
2340 | * testsuite/experimental/filesystem/path/native/string-char8_t.cc: | |
2341 | New test cloned from string.cc; validates filesystem::path | |
2342 | construction from char8_t input. | |
2343 | * testsuite/experimental/string_view/literals/types-char8_t.cc: New | |
2344 | test cloned from types.cc; validates operator""sv for char8_t | |
2345 | returns u8string_view. | |
2346 | * testsuite/experimental/string_view/literals/values-char8_t.cc: | |
2347 | New test cloned from values.cc; validates construction and | |
2348 | comparison of u8string_view values. | |
2349 | * testsuite/experimental/string_view/requirements/ | |
2350 | explicit_instantiation/char8_t/1.cc: New test cloned from | |
2351 | char16_t/1.cc; validates explicit instantiation of | |
2352 | basic_string_view<char8_t>. | |
2353 | * testsuite/ext/char8_t/atomic-1.cc: New test; validates that | |
2354 | ATOMIC_CHAR8_T_LOCK_FREE is not defined if char8_t support is not | |
2355 | enabled. | |
2356 | ||
25694c85 | 2357 | 2019-02-19 Tom Honermann <tom@honermann.net> |
2358 | ||
2359 | P0482R5 char8_t: Standard library support | |
2360 | * config/abi/pre/gnu-versioned-namespace.ver (CXXABI_2.0): Add | |
2361 | typeinfo symbols for char8_t. | |
2362 | * config/abi/pre/gnu.ver: Add CXXABI_1.3.12. | |
2363 | (GLIBCXX_3.4.26): Add symbols for specializations of | |
2364 | numeric_limits and codecvt that involve char8_t. | |
2365 | (CXXABI_1.3.12): Add typeinfo symbols for char8_t. | |
2366 | * include/bits/atomic_base.h: Add atomic_char8_t. | |
2367 | * include/bits/basic_string.h: Add std::hash<u8string> and | |
2368 | operator""s(const char8_t*, size_t). | |
2369 | * include/bits/c++config: Define _GLIBCXX_USE_CHAR8_T and | |
2370 | __cpp_lib_char8_t. | |
2371 | * include/bits/char_traits.h: Add char_traits<char8_t>. | |
2372 | * include/bits/codecvt.h: Add | |
2373 | codecvt<char16_t, char8_t, mbstate_t>, | |
2374 | codecvt<char32_t, char8_t, mbstate_t>, | |
2375 | codecvt_byname<char16_t, char8_t, mbstate_t>, and | |
2376 | codecvt_byname<char32_t, char8_t, mbstate_t>. | |
2377 | * include/bits/cpp_type_traits.h: Add __is_integer<char8_t> to | |
2378 | recognize char8_t as an integral type. | |
2379 | * include/bits/fs_path.h: (path::__is_encoded_char): Recognize | |
2380 | char8_t. | |
2381 | (path::u8string): Return std::u8string when char8_t support is | |
2382 | enabled. | |
2383 | (path::generic_u8string): Likewise. | |
2384 | (path::_S_convert): Handle conversion from char8_t input. | |
2385 | (path::_S_str_convert): Likewise. | |
2386 | * include/bits/functional_hash.h: Add hash<char8_t>. | |
2387 | * include/bits/locale_conv.h (__str_codecvt_out): Add overloads for | |
2388 | char8_t. | |
2389 | * include/bits/locale_facets.h (_GLIBCXX_NUM_UNICODE_FACETS): Bump | |
2390 | for new char8_t specializations. | |
2391 | * include/bits/localefwd.h: Add missing declarations of | |
2392 | codecvt<char16_t, char, mbstate_t> and | |
2393 | codecvt<char32_t, char, mbstate_t>. Add char8_t declarations | |
2394 | codecvt<char16_t, char8_t, mbstate_t> and | |
2395 | codecvt<char32_t, char8_t, mbstate_t>. | |
2396 | * include/bits/postypes.h: Add u8streampos | |
2397 | * include/bits/stringfwd.h: Add declarations of | |
2398 | char_traits<char8_t> and u8string. | |
2399 | * include/c_global/cstddef: Add __byte_operand<char8_t>. | |
2400 | * include/experimental/bits/fs_path.h (path::__is_encoded_char): | |
2401 | Recognize char8_t. | |
2402 | (path::u8string): Return std::u8string when char8_t support is | |
2403 | enabled. | |
2404 | (path::generic_u8string): Likewise. | |
2405 | (path::_S_convert): Handle conversion from char8_t input. | |
2406 | (path::_S_str_convert): Likewise. | |
2407 | * include/experimental/string: Add u8string. | |
2408 | * include/experimental/string_view: Add u8string_view, | |
2409 | hash<experimental::u8string_view>, and | |
2410 | operator""sv(const char8_t*, size_t). | |
2411 | * include/std/atomic: Add atomic<char8_t> and atomic_char8_t. | |
2412 | * include/std/charconv (__is_int_to_chars_type): Recognize char8_t | |
2413 | as a character type. | |
2414 | * include/std/limits: Add numeric_limits<char8_t>. | |
2415 | * include/std/string_view: Add u8string_view, | |
2416 | hash<experimental::u8string_view>, and | |
2417 | operator""sv(const char8_t*, size_t). | |
2418 | * include/std/type_traits: Add __is_integral_helper<char8_t>, | |
2419 | __make_unsigned<char8_t>, and __make_signed<char8_t>. | |
2420 | * libsupc++/atomic_lockfree_defines.h: Define | |
2421 | ATOMIC_CHAR8_T_LOCK_FREE. | |
2422 | * src/c++11/Makefile.am: Compile with -fchar8_t when compiling | |
2423 | codecvt.cc and limits.cc so that char8_t specializations of | |
2424 | numeric_limits and codecvt and emitted. | |
2425 | * src/c++11/Makefile.in: Likewise. | |
2426 | * src/c++11/codecvt.cc: Define members of | |
2427 | codecvt<char16_t, char8_t, mbstate_t>, | |
2428 | codecvt<char32_t, char8_t, mbstate_t>, | |
2429 | codecvt_byname<char16_t, char8_t, mbstate_t>, and | |
2430 | codecvt_byname<char32_t, char8_t, mbstate_t>. | |
2431 | * src/c++11/limits.cc: Define members of | |
2432 | numeric_limits<char8_t>. | |
2433 | * src/c++98/Makefile.am: Compile with -fchar8_t when compiling | |
2434 | locale_init.cc and localename.cc. | |
2435 | * src/c++98/Makefile.in: Likewise. | |
2436 | * src/c++98/locale_init.cc: Add initialization for the | |
2437 | codecvt<char16_t, char8_t, mbstate_t> and | |
2438 | codecvt<char32_t, char8_t, mbstate_t> facets. | |
2439 | * src/c++98/localename.cc: Likewise. | |
2440 | * testsuite/util/testsuite_abi.cc: Validate ABI bump. | |
2441 | ||
140615bb | 2442 | 2019-02-18 Wilco Dijkstra <wdijkstr@arm.com> |
2443 | ||
2444 | * 27_io/filesystem/operations/all.cc: Add dg-require-filesystem-ts. | |
2445 | * 27_io/filesystem/operations/resize_file.cc: Likewise. | |
2446 | * 27_io/filesystem/path/generation/normal2.cc: Likewise. | |
2447 | ||
c677a9d7 | 2448 | 2019-02-14 Jonathan Wakely <jwakely@redhat.com> |
2449 | ||
1bbfe9f8 | 2450 | * doc/xml/manual/status_cxx2020.xml: Update P0887R1 status. |
2451 | * doc/html/*: Regenerate. | |
2452 | ||
b24f00b1 | 2453 | * doc/xml/manual/status_cxx2017.xml: Add P0063R3 to status table. |
2454 | * doc/html/*: Regenerate. | |
2455 | ||
a3d1baa9 | 2456 | * doc/xml/manual/intro.xml: Document LWG 2586 status. |
2457 | * include/bits/uses_allocator.h (__uses_alloc): Use const lvalue | |
2458 | allocator type in is_constructible checks. | |
2459 | * testsuite/20_util/scoped_allocator/69293_neg.cc: Adjust dg-error. | |
2460 | * testsuite/20_util/scoped_allocator/dr2586.cc: New test. | |
2461 | * testsuite/20_util/tuple/cons/allocators.cc: Add test using | |
2462 | problematic type from LWG 2586 discussion. | |
2463 | * testsuite/20_util/uses_allocator/69293_neg.cc: Adjust dg-error. | |
2464 | * testsuite/20_util/uses_allocator/cons_neg.cc: Likewise. | |
2465 | ||
99d130bf | 2466 | * configure.ac: Check for C11 timespec_get function. |
2467 | * crossconfig.m4 (freebsd, linux, gnu, cygwin, solaris, netbsd) | |
2468 | (openbsd): Likewise | |
2469 | * config.h.in: Regenerate. | |
2470 | * configure: Regenerate. | |
2471 | * include/c_global/ctime (timespec, timespec_get): Add to namespace | |
2472 | std for C++17 and up. | |
2473 | ||
48772ec3 | 2474 | * doc/xml/manual/intro.xml: Document LWG 2537 status. |
2475 | * include/bits/stl_queue.h | |
2476 | (priority_queue(const Compare&, const Container&, const Alloc&)) | |
2477 | (priority_queue(const Compare&, Container&&, const Alloc&)): Call | |
2478 | make_heap. | |
2479 | * testsuite/23_containers/priority_queue/dr2537.cc: New test. | |
2480 | ||
ee32dd64 | 2481 | * doc/xml/manual/intro.xml: Document LWG 2566 status. |
2482 | * include/bits/stl_queue.h (queue, priority_queue): Add static | |
2483 | assertions to enforce LWG 2566 requirement on value_type. | |
2484 | * include/bits/stl_stack.h (stack): Likewise. | |
2485 | ||
9724de38 | 2486 | PR middle-end/89303 |
2487 | * testsuite/20_util/enable_shared_from_this/89303.cc: New test. | |
2488 | ||
c677a9d7 | 2489 | * doc/xml/manual/intro.xml: Document LWG 2735 status. |
2490 | * include/bits/std_abs.h: Add comment about LWG 2735. | |
2491 | * testsuite/26_numerics/headers/cstdlib/dr2735.cc: New test. | |
2492 | ||
4194f872 | 2493 | 2019-02-13 Jonathan Wakely <jwakely@redhat.com> |
2494 | ||
2495 | PR libstdc++/89345 | |
2496 | * include/std/version [__cpp_impl_destroying_delete] | |
2497 | (__cpp_lib_destroying_delete): Only define for C++2a and later. | |
2498 | * libsupc++/new [__cpp_impl_destroying_delete] | |
2499 | (__cpp_lib_destroying_delete): Likewise. | |
2500 | (destroying_delete_t, destroying_delete): Likewise, but define even | |
2501 | when __cpp_impl_destroying_delete is not defined. | |
2502 | * testsuite/18_support/destroying_delete.cc: New test. | |
2503 | ||
aaacaee2 | 2504 | 2019-02-11 Jonathan Wakely <jwakely@redhat.com> |
2505 | ||
2506 | PR libstdc++/89023 | |
2507 | * testsuite/17_intro/headers/c++2011/parallel_mode.cc: New test. | |
2508 | * testsuite/17_intro/headers/c++2014/parallel_mode.cc: New test. | |
2509 | * testsuite/17_intro/headers/c++2017/parallel_mode.cc: New test. | |
2510 | * testsuite/28_regex/headers/regex/parallel_mode.cc: Remove. | |
2511 | ||
5256b0dd | 2512 | 2019-02-09 Jonathan Wakely <jwakely@redhat.com> |
2513 | ||
2514 | PR libstdc++/71044 | |
2515 | * include/bits/fs_path.h (path::has_root_name) | |
2516 | (path::has_root_directory, path::has_root_path) | |
2517 | (path::has_relative_path, path::has_parent_path) | |
2518 | (path::has_filename, path::has_stem, path::has_extension) | |
2519 | (path::is_absolute, path::is_relative, path::_M_find_extension): Add | |
2520 | noexcept. | |
2521 | * src/c++17/fs_path.cc (path::has_root_name) | |
2522 | (path::has_root_directory, path::has_root_path) | |
2523 | (path::has_relative_path, path::has_parent_path) | |
2524 | (path::has_filename, path::_M_find_extension): Add noexcept. | |
2525 | ||
e32f625e | 2526 | 2019-02-06 Jonathan Wakely <jwakely@redhat.com> |
2527 | ||
2528 | PR libstdc++/89102 (partial) | |
2529 | * include/std/type_traits (common_type<>): Define. | |
2530 | (common_type<T>): Derive from common_type<T, T>. | |
2531 | * testsuite/20_util/common_type/requirements/explicit_instantiation.cc: | |
2532 | Test zero-length template argument list. | |
2533 | * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: | |
2534 | Test additional single argument cases. | |
2535 | * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc: | |
2536 | Adjust expected error. | |
2537 | ||
b03489db | 2538 | 2019-02-05 Jonathan Wakely <jwakely@redhat.com> |
2539 | ||
e89e4fec | 2540 | PR libstdc++/89128 |
2541 | * include/bits/stl_queue.h (queue, priority_queue): Add deduction | |
2542 | guides. | |
2543 | * include/bits/stl_stack.h (stack): Likewise. | |
2544 | * testsuite/23_containers/priority_queue/deduction.cc: New test. | |
2545 | * testsuite/23_containers/queue/deduction.cc: New test. | |
2546 | * testsuite/23_containers/stack/deduction.cc: New test. | |
2547 | ||
b640dd11 | 2548 | PR libstdc++/89194 |
2549 | * include/std/type_traits (__is_convertible_helper) | |
2550 | (__is_convertible_helper<_From, _To, false>): Revert changes to | |
2551 | support is_nothrow_convertible. | |
2552 | (__is_nt_convertible_helper): New helper. | |
2553 | (is_nothrow_convertible): Use __is_nt_convertible_helper. | |
2554 | ||
74c88c5f | 2555 | * testsuite/23_containers/vector/modifiers/push_back/49836.cc: Restore |
2556 | use of CopyConsOnlyType, but also test DelAnyAssign for completeness. | |
2557 | ||
eca5e8d4 | 2558 | PR libstdc++/89130 |
2559 | * include/bits/alloc_traits.h (__is_copy_insertable_impl): Rename to | |
2560 | __is_alloc_insertable_impl. Replace single type member with two | |
2561 | members, one for each of copy and move insertable. | |
2562 | (__is_move_insertable): New trait for internal use. | |
2563 | * include/bits/stl_vector.h (vector::_S_nothrow_relocate(true_type)) | |
2564 | (vector::_S_nothrow_relocate(true_type)): New functions to | |
2565 | conditionally check if __relocate_a can throw. | |
2566 | (vector::_S_use_relocate()): Dispatch to _S_nothrow_relocate based | |
2567 | on __is_move_insertable. | |
2568 | (vector::_S_do_relocate): New overloaded functions to conditionally | |
2569 | call __relocate_a. | |
2570 | (vector::_S_relocate): New function that dispatches to _S_do_relocate | |
2571 | based on _S_use_relocate. | |
2572 | * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert) | |
2573 | (vector::_M_default_append): Call _S_relocate instead of __relocate_a. | |
2574 | * testsuite/23_containers/vector/modifiers/push_back/89130.cc: New. | |
2575 | ||
b03489db | 2576 | PR libstdc++/89090 |
2577 | * include/bits/stl_uninitialized.h (__relocate_a_1): Make unused | |
2578 | parameter unnamed. Add message to static assertion. | |
2579 | * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert) | |
2580 | (vector::_M_default_append): Use _GLIBCXX17_CONSTEXPR for if constexpr | |
2581 | in C++11 code. | |
2582 | ||
71625a15 | 2583 | 2019-02-05 Marc Glisse <marc.glisse@inria.fr> |
2584 | ||
2585 | PR libstdc++/87106 | |
2586 | * include/bits/stl_uninitialized.h (__is_trivially_relocatable): | |
2587 | Rename... | |
2588 | (__is_bitwise_relocatable): ... to this. | |
2589 | (__relocate_a_1): Adapt. | |
2590 | * include/bits/stl_deque.h (__is_trivially_relocatable): Rename... | |
2591 | (__is_bitwise_relocatable): ... to this. | |
2592 | ||
e7b22e58 | 2593 | 2019-01-30 Jonathan Wakely <jwakely@redhat.com> |
2594 | ||
2595 | PR libstdc++/89117 | |
2596 | * src/c++17/fs_path.cc (path::replace_extension): Erase extension from | |
2597 | final component as well as from _M_pathname. Append the dot using | |
2598 | operator+= instead of only to _M_pathname. | |
2599 | (path::_M_find_extension): Reformat slightly. | |
2600 | * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc: | |
2601 | Add more test cases. | |
2602 | ||
dae923a7 | 2603 | 2019-01-30 Ulrich Drepper <drepper@redhat.com> |
2604 | ||
2605 | * doc/xml/manual/status_cxx2020.xml: Update P0600 entry. | |
2606 | ||
710397ad | 2607 | 2019-01-29 Jonathan Wakely <jwakely@redhat.com> |
2608 | ||
5efc4356 | 2609 | * testsuite/26_numerics/headers/complex/synopsis.cc: Remove incorrect |
2610 | constexpr specifiers from arg and proj. | |
2611 | ||
5f15e718 | 2612 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add missing exports for |
2613 | __shared_ptr instantiations used by gcc4-compatible ABI. | |
2614 | ||
307e86fc | 2615 | * include/experimental/forward_list (experimental::erase): Qualify |
2616 | call to erase_if. | |
2617 | * include/experimental/list (experimental::erase): Likewise. | |
2618 | * include/std/forward_list (std::erase): Likewise. | |
2619 | * include/std/list (std::erase): Likewise. | |
2620 | ||
38129d1a | 2621 | * testsuite/20_util/reference_wrapper/result_type.cc: Disable for |
2622 | C++2a. | |
2623 | * testsuite/20_util/reference_wrapper/typedefs-2.cc: Likewise. | |
2624 | * testsuite/20_util/reference_wrapper/typedefs-3.cc: Likewise. | |
2625 | * testsuite/20_util/reference_wrapper/typedefs.cc: Likewise. | |
2626 | * testsuite/30_threads/async/54297.cc: Suppress nodiscard warning. | |
2627 | * testsuite/ext/array_allocator/26875.cc: Likewise. | |
2628 | * testsuite/ext/pool_allocator/allocate_chunk.cc: Likewise. | |
2629 | * testsuite/util/replacement_memory_operators.h: Likewise. | |
2630 | * testsuite/util/testsuite_allocator.h: Likewise. | |
2631 | ||
710397ad | 2632 | * include/std/memory_resource (__pool_resource::_M_unpooled): Use |
2633 | normal mode vector, even for debug mode. | |
2634 | * include/std/vector [_GLIBCXX_DEBUG] (_GLIBCXX_STD_C::pmr::vector): | |
2635 | Define alias template for normal mode vector. | |
2636 | ||
70f71249 | 2637 | 2019-01-28 Jonathan Wakely <jwakely@redhat.com> |
2638 | ||
2639 | PR libstdc++/68737 | |
2640 | * config/locale/generic/c_locale.h (__convert_from_v) | |
2641 | [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF. | |
2642 | * config/os/hpux/os_defines.h: Define _GLIBCXX_HAVE_BROKEN_VSNPRINTF. | |
2643 | * include/bits/locale_facets.tcc (num_put::_M_insert_float) | |
2644 | [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF. | |
2645 | ||
f1074115 | 2646 | 2019-01-24 Jonathan Wakely <jwakely@redhat.com> |
2647 | ||
4bc4fd90 | 2648 | PR libstdc++/88840 |
2649 | * include/bits/stl_vector.h (vector::__use_relocate): Replace static | |
2650 | data member with static member function _S_use_relocate(). | |
2651 | * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert) | |
2652 | (vector::_M_default_append): Use _S_use_relocate() instead of | |
2653 | __use_relocate. | |
2654 | ||
f1074115 | 2655 | * testsuite/27_io/filesystem/path/compare/strings.cc: Only compare |
2656 | sign of results. | |
2657 | ||
1c4657a3 | 2658 | 2019-01-22 Jonathan Wakely <jwakely@redhat.com> |
2659 | ||
2660 | PR libstdc++/88740 | |
2661 | * testsuite/util/testsuite_hooks.h [stderr] (VERIFY): Use fprintf to | |
2662 | write to stderr instead of using printf. | |
2663 | ||
dafe8c59 | 2664 | 2019-01-21 Jakub Jelinek <jakub@redhat.com> |
2665 | ||
2666 | PR libstdc++/86590 | |
2667 | * include/bits/char_traits.h (__constant_string_p, | |
2668 | __constant_char_array_p): Use __builtin_is_constant_evaluated if | |
2669 | available. | |
2670 | ||
eaf966f3 | 2671 | 2019-01-20 Ulrich Drepper <drepper@redhat.com> |
2672 | ||
2673 | Implement C++20 P0600r1. | |
2674 | * include/backward/hash_map: Add nodiscard attribute to empty. | |
2675 | * include/backward/hash_set: Likewise. | |
2676 | * backward/hashtable.h: Likewise. | |
2677 | * include/bits/basic_string.h: Likewise. | |
2678 | * include/bits/forward_list.h: Likewise. | |
2679 | * include/bits/hashtable.h: Likewise. | |
2680 | * include/bits/regex.h: Likewise. | |
2681 | * include/bits/stl_deque.h: Likewise. | |
2682 | * include/bits/stl_list.h: Likewise. | |
2683 | * include/bits/stl_map.h: Likewise. | |
2684 | * include/bits/stl_multimap.h: Likewise. | |
2685 | * include/bits/stl_multiset.h: Likewise. | |
2686 | * include/bits/stl_queue.h: Likewise. | |
2687 | * include/bits/stl_set.h: Likewise. | |
2688 | * include/bits/stl_stack.h: Likewise. | |
2689 | * include/bits/stl_tree.h: Likewise. | |
2690 | * include/bits/stl_vector.h: Likewise. | |
2691 | * include/bits/unordered_map.h: Likewise. | |
2692 | * include/bits/unordered_set.h: Likewise. | |
2693 | * include/debug/array: Likewise. | |
2694 | * include/experimental/any: Likewise. | |
2695 | * include/experimental/bits/fs_path.h: Likewise. | |
2696 | * include/experimental/internet: Likewise. | |
2697 | * include/experimental/string_view: Likewise. | |
2698 | * include/ext/pb_ds/detail/bin_search_tree_/info_fn_imps.hpp: | |
2699 | Likewise. | |
2700 | * include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp: | |
2701 | Likewise. | |
2702 | * include/ext/pb_ds/detail/binary_heap_/info_fn_imps.hpp: | |
2703 | Likewise. | |
2704 | * include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp: | |
2705 | Likewise. | |
2706 | * include/ext/pb_ds/detail/cc_hash_table_map_/info_fn_imps.hpp: | |
2707 | Likewise. | |
2708 | * include/ext/pb_ds/detail/cc_hash_table_map_/size_fn_imps.hpp: | |
2709 | Likewise. | |
2710 | * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: | |
2711 | Likewise. | |
2712 | * include/ext/pb_ds/detail/gp_hash_table_map_/info_fn_imps.hpp: | |
2713 | Likewise. | |
2714 | * include/ext/pb_ds/detail/left_child_next_sibling_heap_/ | |
2715 | info_fn_imps.hpp: Likewise. | |
2716 | * include/ext/pb_ds/detail/left_child_next_sibling_heap_/ | |
2717 | left_child_next_sibling_heap_.hpp: Likewise. | |
2718 | * include/ext/pb_ds/detail/list_update_map_/info_fn_imps.hpp: | |
2719 | Likewise. | |
2720 | * include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp: | |
2721 | Likewise. | |
2722 | * include/ext/pb_ds/detail/ov_tree_map_/info_fn_imps.hpp: | |
2723 | Likewise. | |
2724 | * include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hp: | |
2725 | Likewise. | |
2726 | * include/ext/pb_ds/detail/pat_trie_/info_fn_imps.hpp: | |
2727 | Likewise. | |
2728 | * include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp: | |
2729 | Likewise. | |
2730 | * include/ext/pb_ds/detail/rc_binomial_heap_/rc.hpp: | |
2731 | Likewise. | |
2732 | * include/ext/pb_ds/detail/tree_trace_base.hpp: Likewise. | |
2733 | * include/ext/pb_ds/trie_policy.hpp: Likewise. | |
2734 | * include/ext/rope: Likewise. | |
2735 | * include/ext/slist: Likewise. | |
2736 | * include/ext/vstring.h: Likewise. | |
2737 | * include/profile/array: Likewise. | |
2738 | * include/std/array: Likewise. | |
2739 | * include/tr1/array: Likewise. | |
2740 | * include/tr1/hashtable.h: Likewise. | |
2741 | * include/tr1/regex: Likewise. | |
2742 | * include/tr2/dynamic_bitset: Likewise. | |
2743 | * include/bits/alloc_traits.h: Add nodiscard attribute to | |
2744 | allocate. | |
2745 | * include/experimental/memory_resource: Likewise. | |
2746 | * include/ext/alloc_traits.h: Likewise. | |
2747 | * include/ext/array_allocator.h: Likewise. | |
2748 | * include/ext/bitmap_allocator.h: Likewise. | |
2749 | * include/ext/debug_allocator.h: Likewise. | |
2750 | * include/ext/extptr_allocator.h: Likewise. | |
2751 | * include/ext/mt_allocator.h: Likewise. | |
2752 | * include/ext/new_allocator.h: Likewise. | |
2753 | * include/ext/pool_allocator.h: Likewise. | |
2754 | * include/ext/throw_allocator.h: Likewise. | |
2755 | * include/std/scoped_allocator: Likewise. | |
2756 | * libsupc++/eh_alloc.cc: Likewise. | |
2757 | * include/std/future: Add nodiscard attribute to async. | |
2758 | * libsupc++/new: Add nodiscard attribute to new. | |
2759 | ||
3c1c2a8c | 2760 | 2019-01-18 Jonathan Wakely <jwakely@redhat.com> |
2761 | ||
2762 | PR libstdc++/87514 | |
2763 | PR libstdc++/87520 | |
2764 | PR libstdc++/88782 | |
2765 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export new symbol. | |
2766 | * include/bits/shared_ptr.h | |
2767 | (shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)) | |
2768 | (allocate_shared): Change to use new tag type. | |
2769 | * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_eq): | |
2770 | Declare new member function. | |
2771 | (_Sp_alloc_shared_tag): Define new type. | |
2772 | (_Sp_counted_ptr_inplace): Declare __shared_count<_Lp> as a friend. | |
2773 | (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Use | |
2774 | _Sp_make_shared_tag::_S_eq to check type_info. | |
2775 | (__shared_count(Ptr, Deleter),__shared_count(Ptr, Deleter, Alloc)): | |
2776 | Constrain to prevent being called with _Sp_alloc_shared_tag. | |
2777 | (__shared_count(_Sp_make_shared_tag, const _Alloc&, Args&&...)): | |
2778 | Replace constructor with ... | |
2779 | (__shared_count(Tp*&, _Sp_alloc_shared_tag<_Alloc>, Args&&...)): Use | |
2780 | reference parameter so address of the new object can be returned to | |
2781 | the caller. Obtain the allocator from the tag type. | |
2782 | (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Replace | |
2783 | constructor with ... | |
2784 | (__shared_ptr(_Sp_alloc_shared_tag<Alloc>, Args&&...)): Pass _M_ptr | |
2785 | to the __shared_count constructor. | |
2786 | (__allocate_shared): Change to use new tag type. | |
2787 | * src/c++11/shared_ptr.cc (_Sp_make_shared_tag::_S_eq): Define. | |
2788 | ||
21a962b2 | 2789 | 2019-01-17 Jonathan Wakely <jwakely@redhat.com> |
2790 | ||
464ac146 | 2791 | * src/c++17/fs_ops.cc |
2792 | (equivalent(const path&, const path&, error_code&)) | |
2793 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use GetFileInformationByHandle to | |
2794 | compare files instead of relying on incomplete info returned by stat. | |
2795 | ||
2987a93d | 2796 | PR libstdc++/88884 |
2797 | * src/c++17/fs_ops.cc (absolute(const path&, error_code&)): Do nothing | |
2798 | if the path is already absolute. | |
2799 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize root-directory. | |
2800 | [!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Pass error_code to current_path. | |
2801 | ||
21a962b2 | 2802 | PR libstdc++/88881 |
2803 | * src/c++17/fs_ops.cc (canonical(const path&, error_code&)) | |
2804 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize path, to match behaviour | |
2805 | of filesystem::exists. | |
2806 | (create_directories(const path&, error_code&)): Add assertions. | |
2807 | (status(const path&, error_code&)) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: | |
2808 | Add workaround for bug in _wstat for paths with trailing slash. | |
2809 | * testsuite/27_io/filesystem/operations/create_directories.cc: Adjust | |
2810 | for expected behaviour on mingw. | |
2811 | * testsuite/experimental/filesystem/operations/create_directories.cc: | |
2812 | Likewise. | |
2813 | * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Use | |
2814 | "TMP" instead of "TMPDIR" and clean environment before each test. Do | |
2815 | not test permissions on mingw targets. | |
2816 | ||
93478c9f | 2817 | 2019-01-16 Jonathan Wakely <jwakely@redhat.com> |
2818 | ||
2819 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add exports for fstream | |
2820 | constructors and open members taking wide strings. Fix patterns for | |
2821 | filesystem::path members to match wstring_view parameters. Add | |
2822 | exports for shared_ptr members used by directory iterators. | |
2823 | * src/c++17/fs_ops.cc (remove(const path&, error_code&)): Clear the | |
2824 | error code parameter if the file doesn't exist. | |
2825 | * src/filesystem/ops.cc (remove(const path&, error_code&)): | |
2826 | Likewise. | |
2827 | * testsuite/27_io/filesystem/operations/canonical.cc: Fix expected | |
2828 | values for mingw targets, where "/" is not an absolute path. Do not | |
2829 | test symlinks on mingw targets. | |
2830 | * testsuite/experimental/filesystem/operations/canonical.cc: Likewise. | |
2831 | * testsuite/27_io/filesystem/operations/copy.cc: Do not test symlinks | |
2832 | on mingw targets. | |
2833 | * testsuite/experimental/filesystem/operations/copy.cc: Likewise. | |
2834 | * testsuite/27_io/filesystem/operations/create_directories.cc: Check | |
2835 | that each component of the path is created. | |
2836 | * testsuite/experimental/filesystem/operations/create_directories.cc: | |
2837 | Likewise. | |
2838 | * testsuite/27_io/filesystem/operations/exists.cc: Do not test | |
2839 | permissions on mingw targets. | |
2840 | * testsuite/experimental/filesystem/operations/exists.cc: Likewise. | |
2841 | * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise. | |
2842 | * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise. | |
2843 | * testsuite/27_io/filesystem/operations/permissions.cc: XFAIL for | |
2844 | mingw targets. | |
2845 | * testsuite/experimental/filesystem/operations/permissions.cc: | |
2846 | Likewise. | |
2847 | * testsuite/27_io/filesystem/operations/remove.cc: Do not test | |
2848 | symlinks or permissions on mingw targets. | |
2849 | * testsuite/experimental/filesystem/operations/remove.cc: Likewise. | |
2850 | * testsuite/27_io/filesystem/operations/remove_all.cc: Do not test | |
2851 | symlinks on mingw targets. | |
2852 | * testsuite/experimental/filesystem/operations/remove_all.cc: | |
2853 | Likewise. | |
2854 | * testsuite/27_io/filesystem/operations/status.cc: Do not test | |
2855 | permissions on mingw targets. | |
2856 | * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Do not | |
2857 | test symlinks on mingw targets. | |
2858 | * testsuite/experimental/filesystem/operations/space.cc: Fix test | |
2859 | for mingw targets. | |
2860 | ||
af93b844 | 2861 | 2019-02-14 Ulrich Drepper <drepper@redhat.com> |
2862 | ||
2863 | PR libstdc++/88738 | |
2864 | Warn about unused comparisons of shared_ptr/unique_ptr | |
2865 | * include/bits/c++config [_GLIBCXX_NODISCARD]: Define. | |
2866 | * include/bits/shared_ptr.h: Use it for operator ==, !=, | |
2867 | <, <=, >, >= for shared_ptr. | |
2868 | * include/bits/unique_ptr.h: Likewise for unique_ptr. | |
2869 | ||
8793c0de | 2870 | 2019-01-15 Jonathan Wakely <jwakely@redhat.com> |
2871 | ||
afa61572 | 2872 | * include/bits/shared_ptr_base.h (__cpp_lib_shared_ptr_arrays): Define |
2873 | as 201611L, because P0497R0 changes are supported. | |
2874 | * include/std/version (__cpp_lib_shared_ptr_arrays): Likewise. | |
2875 | ||
feb89906 | 2876 | * include/bits/erase_if.h [__cplusplus > 201703L] |
2877 | (__cpp_lib_erase_if): Only define for C++2a. | |
2878 | * include/std/iterator [__cplusplus >= 201402L && !_GLIBCXX_DEBUG] | |
2879 | (__cpp_lib_null_iterators): Define. | |
2880 | * include/std/version [__cplusplus >= 201402L && !_GLIBCXX_DEBUG] | |
2881 | (__cpp_lib_null_iterators): Define. | |
2882 | [__cpp_impl_destroying_delete] (__cpp_lib_destroying_delete): Define. | |
2883 | ||
d253bcb1 | 2884 | * doc/xml/manual/status_cxx2017.xml: Document P0032R3 and P0307R2 |
2885 | status. | |
2886 | * include/bits/stl_uninitialized.h (__cpp_lib_raw_memory_algorithms): | |
2887 | Define. | |
2888 | * include/std/any (__cpp_lib_any): Define as 201606L, because P0032R3 | |
2889 | changes are supported. | |
2890 | * include/std/optional (__cpp_lib_optional): Likewise. | |
2891 | * include/std/variant (__cpp_lib_variant): Likewise. | |
2892 | * include/std/version [!__STRICT_ANSI__] | |
2893 | (__cpp_lib_uncaught_exceptions): Define as long integer. | |
2894 | [__cplusplus >= 201703L] (__cpp_lib_any) | |
2895 | (__cpp_lib_raw_memory_algorithms, __cpp_lib_uncaught_exceptions) | |
2896 | (__cpp_lib_variant): Define for C++17. | |
2897 | [__cplusplus >= 201703L] (__cpp_lib_optional): Update value and define | |
2898 | as long integer. | |
2899 | * libsupc++/exception (__cpp_lib_uncaught_exceptions): Define as long | |
2900 | integer. | |
2901 | ||
8793c0de | 2902 | * doc/xml/manual/status_cxx2020.xml: Update P1123R0 status. |
2903 | ||
a8cd4b2b | 2904 | 2019-01-12 Jonathan Wakely <jwakely@redhat.com> |
2905 | ||
2906 | PR libstdc++/88811 | |
2907 | PR libstdc++/83306 | |
2908 | * src/filesystem/path.cc: Fix typo. If first path is empty, show [] | |
2909 | before second path. | |
2910 | * testsuite/experimental/filesystem/filesystem_error/cons.cc: New | |
2911 | test. | |
2912 | ||
a5b1332c | 2913 | 2019-01-11 Jonathan Wakely <jwakely@redhat.com> |
2914 | ||
656ac8b7 | 2915 | * doc/xml/manual/intro.xml: Include new section. |
2916 | * doc/xml/manual/status_cxx2017.xml: Document more | |
2917 | implementation-defined properties of the library. | |
2918 | * doc/xml/manual/status_cxx2020.xml: Document C++2a status. | |
2919 | * doc/html/*: Regenerate. | |
2920 | ||
f5480b8c | 2921 | * include/bits/refwrap.h [__cplusplus > 201703L] |
2922 | (_Refwrap_base_arg1, _Refwrap_base_arg2, _Reference_wrapper_base) | |
2923 | (_Reference_wrapper_base_memfun): Do not define for C++2a. | |
2924 | (reference_wrapper): Do not derive from _Reference_wrapper_base_memfun | |
2925 | for C++2a. | |
2926 | (reference_wrapper::operator()): Add static assertion. | |
2927 | * testsuite/20_util/reference_wrapper/incomplete.cc: New test. | |
2928 | ||
36496c4d | 2929 | * include/std/chrono (duration_values::zero(), duration_values::min()) |
2930 | (duration_values::max()): Add noexcept. | |
2931 | (duration::zero(), duration::min(), duration::max()): Likewise. | |
2932 | (time_point::zero(), time_point::min(), time_point::max()): Likewise. | |
2933 | * testsuite/20_util/duration/requirements/noexcept.cc: New test. | |
2934 | * testsuite/20_util/time_point/requirements/noexcept.cc: New test. | |
2935 | ||
a5b1332c | 2936 | * include/std/version (__cpp_lib_erase_if): Move to C++20 group. |
2937 | ||
d9de68bc | 2938 | 2019-01-11 Jakub Jelinek <jakub@redhat.com> |
2939 | ||
2940 | * include/std/type_traits (__cpp_lib_is_constant_evaluated): Define. | |
2941 | * include/std/version (__cpp_lib_is_constant_evaluated): Define. | |
2942 | ||
beb370cb | 2943 | 2019-01-11 Jonathan Wakely <jwakely@redhat.com> |
2944 | ||
1d628fd4 | 2945 | PR libstdc++/88802 |
2946 | * include/bits/functional_hash.h (hash<nullptr_t>): Define | |
2947 | specialization for C++17 (P0513R0, LWG 2817). | |
2948 | * testsuite/20_util/hash/nullptr.cc: New test. | |
2949 | ||
a18b3766 | 2950 | PR libstdc++/88125 |
2951 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.6): Remove unused duplicate | |
2952 | pattern for std::basic_stringbuf::str(). | |
2953 | ||
beb370cb | 2954 | * config/abi/pre/gnu.ver (GLIBCXX_3.4): Correct recent changes to |
2955 | basic_ostream::operator<< patterns. | |
2956 | ||
cbbb35ec | 2957 | 2019-01-10 Jonathan Wakely <jwakely@redhat.com> |
2958 | ||
1715824b | 2959 | * testsuite/27_io/filesystem/operations/last_write_time.cc: Fix |
2960 | test failures on targets with 32-bit time_t. | |
2961 | ||
f5529091 | 2962 | * include/bits/erase_if.h: Define __cpp_lib_erase_if. |
2963 | * include/std/deque: Likewise. | |
2964 | * include/std/forward_list: Likewise. | |
2965 | * include/std/list: Likewise. | |
2966 | * include/std/string: Likewise. | |
2967 | * include/std/vector: Likewise. | |
2968 | * include/std/version: Likewise. | |
2969 | * testsuite/21_strings/basic_string/erasure.cc: Test macro. | |
2970 | * testsuite/23_containers/deque/erasure.cc: Likewise. | |
2971 | * testsuite/23_containers/forward_list/erasure.cc: Likewise. | |
2972 | * testsuite/23_containers/list/erasure.cc: Likewise. | |
2973 | * testsuite/23_containers/map/erasure.cc: Likewise. | |
2974 | * testsuite/23_containers/set/erasure.cc: Likewise. | |
2975 | * testsuite/23_containers/unordered_map/erasure.cc: Likewise. | |
2976 | * testsuite/23_containers/unordered_set/erasure.cc: Likewise. | |
2977 | * testsuite/23_containers/vector/erasure.cc: Likewise. | |
2978 | ||
cbbb35ec | 2979 | * include/experimental/internet [AI_NUMERICSERV] |
2980 | (resolver_base::numeric_service): Define conditionally. | |
2981 | * testsuite/experimental/net/internet/resolver/base.cc: Test it | |
2982 | conditionally. | |
2983 | * testsuite/experimental/net/internet/resolver/ops/lookup.cc: | |
2984 | Likewise. | |
2985 | ||
ac9a8436 | 2986 | 2019-01-10 Ville Voutilainen <ville.voutilainen@gmail.com> |
2987 | Jonathan Wakely <jwakely@redhat.com> | |
2988 | ||
2989 | Implement LWG 2221 | |
2990 | * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten patterns. | |
2991 | (GLIBCXX_3.4.26): Add new exports. | |
2992 | * include/Makefile.am: Add ostream-inst.cc. Move string-inst.cc to | |
2993 | correct list of sources. | |
2994 | * include/Makefile.in: Regenerate. | |
2995 | * include/std/ostream (operator<<(nullptr_t)): New member function. | |
2996 | * src/c++17/ostream-inst.cc: New file. | |
2997 | * testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc: New | |
2998 | test. | |
2999 | ||
5f027941 | 3000 | 2019-01-10 Jonathan Wakely <jwakely@redhat.com> |
3001 | ||
3002 | * testsuite/util/testsuite_fs.h (nonexistent_path): Include name | |
3003 | of the source file containing the caller. | |
3004 | * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Remove | |
3005 | directories created by test. | |
3006 | * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc: | |
3007 | Likewise. | |
3008 | * testsuite/experimental/filesystem/iterators/directory_iterator.cc: | |
3009 | Likewise. | |
3010 | * testsuite/experimental/filesystem/iterators/ | |
3011 | recursive_directory_iterator.cc: Likewise. | |
3012 | ||
3273d2e6 | 3013 | 2019-01-10 Jakub Jelinek <jakub@redhat.com> |
3014 | ||
3015 | PR tree-optimization/88775 | |
3016 | * include/bits/stl_function.h (greater<_Tp*>::operator(), | |
3017 | less<_Tp*>::operator(), greater_equal<_Tp*>::operator(), | |
3018 | less_equal<_Tp*>::operator()): Use __builtin_is_constant_evaluated | |
3019 | instead of __builtin_constant_p if available. Don't bother with | |
3020 | the pointer comparison in C++11 and earlier. | |
3021 | ||
f4d3c071 | 3022 | 2019-01-09 Sandra Loosemore <sandra@codesourcery.com> |
3023 | ||
3024 | PR other/16615 | |
3025 | ||
3026 | * include/ext/bitmap_allocator.h: Mechanically replace "can not" | |
3027 | with "cannot". | |
3028 | ||
8eba10af | 3029 | 2019-01-09 Jonathan Wakely <jwakely@redhat.com> |
3030 | ||
6a6ade9f | 3031 | * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix expected output |
3032 | for filesystem::path. Give variables more distinctive names. | |
3033 | ||
41cda271 | 3034 | * include/std/optional (_Optional_payload_base::_M_copy_assign): New |
3035 | member function to perform non-trivial assignment. | |
3036 | (_Optional_payload_base::_M_move_assign): Likewise. | |
3037 | (_Optional_payload<T, true, false, true>::operator=) | |
3038 | (_Optional_payload<T, true, true, false>::operator=) | |
3039 | (_Optional_payload<T, true, false, false>::operator=): Call | |
3040 | _M_copy_assign and/or _M_move_assign to do non-trivial assignments. | |
3041 | ||
8eba10af | 3042 | PR libstdc++/88204 |
3043 | * testsuite/26_numerics/complex/operators/more_constexpr.cc: Do not | |
3044 | test std::complex<long double> if long double format is IBM128. | |
3045 | * testsuite/26_numerics/complex/requirements/more_constexpr.cc: | |
3046 | Likewise. | |
3047 | ||
64a50f48 | 3048 | 2019-01-08 Jonathan Wakely <jwakely@redhat.com> |
3049 | ||
73f3ad16 | 3050 | * testsuite/libstdc++-prettyprinters/compat.cc: Test printer support |
3051 | for old std::unique_ptr layout. | |
3052 | * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix std::variant test | |
3053 | to become valueless. Add filesystem::path tests. | |
3054 | ||
58e897da | 3055 | PR libstdc++/87855 |
3056 | * include/std/optional (_Optional_payload_base): New class template | |
3057 | for common code hoisted from _Optional_payload specializations. Use | |
3058 | a template for the union, to allow a partial specialization for | |
3059 | types with non-trivial destructors. Add constructors for in-place | |
3060 | initialization to the union. | |
3061 | (_Optional_payload(bool, const _Optional_payload&)): Use _M_construct | |
3062 | to perform non-trivial copy construction, instead of relying on | |
3063 | non-standard copy elision in a delegating constructor. | |
3064 | (_Optional_payload(bool, _Optional_payload&&)): Likewise for | |
3065 | non-trivial move construction. | |
3066 | (_Optional_payload): Derive from _Optional_payload_base and use it | |
3067 | for everything except the non-trivial assignment operators, which are | |
3068 | defined as needed. | |
3069 | (_Optional_payload<false, C, M>): Derive from the specialization | |
3070 | _Optional_payload<true, false, false> and add a destructor. | |
3071 | (_Optional_base_impl::_M_destruct, _Optional_base_impl::_M_reset): | |
3072 | Forward to corresponding members of _Optional_payload. | |
3073 | (_Optional_base_impl::_M_is_engaged, _Optional_base_impl::_M_get): | |
3074 | Hoist common members from _Optional_base. | |
3075 | (_Optional_base): Make all members and base class public. | |
3076 | (_Optional_base::_M_get, _Optional_base::_M_is_engaged): Move to | |
3077 | _Optional_base_impl. | |
3078 | * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Add | |
3079 | support for new std::optional layout. | |
3080 | * testsuite/libstdc++-prettyprinters/compat.cc: New test. | |
3081 | ||
64a50f48 | 3082 | PR libstdc++/88066 |
3083 | * include/bits/locale_conv.h: Use <> for includes not "". | |
3084 | * include/ext/random: Likewise. | |
3085 | * include/ext/vstring.h: Likewise. | |
3086 | ||
95b40931 | 3087 | 2019-01-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3088 | ||
3089 | * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten existing patterns. | |
3090 | (GLIBCXX_3.4.21): Likewise. | |
3091 | ||
fa00ec77 | 3092 | 2019-01-08 Jonathan Wakely <jwakely@redhat.com> |
3093 | ||
3094 | PR libstdc++/88749 | |
3095 | * src/filesystem/ops.cc (last_write_time): Fix preprocessor condition | |
3096 | to match the one that controls whether utimbuf and utime are declared. | |
3097 | ||
3f304b2d | 3098 | 2019-01-07 Jonathan Wakely <jwakely@redhat.com> |
3099 | ||
fc6ac813 | 3100 | PR libstdc++/87787 |
3101 | * include/bits/char_traits.h (char_traits::move): Do not pass null | |
3102 | pointers to memmove. | |
3103 | * include/bits/locale_facets.h | |
3104 | (ctype<char>::widen(const char*, const char*, char*)): Do not | |
3105 | pass null pointers to memcpy. | |
3106 | (ctype<char>::narrow(const char*, const char*, char, char*)): | |
3107 | Likewise. | |
3108 | (ctype<char>::do_widen(const char*, const char*, char*)): | |
3109 | Likewise. | |
3110 | (ctype<char>::do_narrow(const char*, const char*, char, char*)): | |
3111 | Likewise. | |
3112 | ||
bbc66c45 | 3113 | * doc/xml/manual/spine.xml: Update copyright years. |
3114 | * doc/xml/manual/status_cxx2017.xml: Adjust note about -lstdc++fs. | |
3115 | * doc/xml/manual/using.xml: Remove requirement to link with -lstdc++fs | |
3116 | for C++17 filesystem library. | |
3117 | * doc/html/*: Regenerate. | |
3118 | ||
3f304b2d | 3119 | * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for truncate. |
3120 | * config.h.in: Regenerate. | |
3121 | * config/abi/pre/gnu.ver: Order patterns for filesystem operations | |
3122 | alphabetically and add missing entries for copy_symlink, | |
3123 | hard_link_count, rename, and resize_file. | |
3124 | * configure: Regenerate. | |
3125 | * src/c++17/fs_ops.cc (resize_file): Remove #if so posix::truncate is | |
3126 | used unconditionally. | |
3127 | * src/filesystem/ops-common.h (__gnu_posix::truncate) | |
3128 | [!_GLIBCXX_HAVE_TRUNCATE]: Provide fallback definition that only | |
3129 | supports truncating to zero length. | |
3130 | * testsuite/27_io/filesystem/operations/all.cc: New test. | |
3131 | * testsuite/27_io/filesystem/operations/resize_file.cc: New test. | |
3132 | ||
0ebb0980 | 3133 | 2019-01-06 Jonathan Wakely <jwakely@redhat.com> |
3134 | ||
3935f409 | 3135 | PR libstdc++/86756 |
3136 | * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for utime and | |
3137 | lstat and define _GLIBCXX_USE_UTIME and _GLIBCXX_USE_LSTAT. | |
3138 | * config.h.in: Regenerate. | |
3139 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export symbols for | |
3140 | remaining std::filesystem types and functions. | |
3141 | * configure: Regenerate. | |
3142 | * src/c++17/Makefile.am: Add C++17 filesystem sources. | |
3143 | * src/c++17/Makefile.in: Regenerate. | |
3144 | * src/c++17/cow-fs_dir.cc: Move src/filesystem/cow-std-dir.cc to | |
3145 | here, and change name of included file. | |
3146 | * src/c++17/cow-fs_ops.cc: Move src/filesystem/cow-std-ops.cc to | |
3147 | here, and change name of included file. | |
3148 | * src/c++17/fs_dir.cc: Move src/filesystem/std-dir.cc to here. Change | |
3149 | path to dir-common.h. | |
3150 | * src/c++17/fs_ops.cc: Move src/filesystem/std-ops.cc to here. Change | |
3151 | path to ops-common.h. Disable -Wunused-parameter warnings. | |
3152 | (internal_file_clock): Define unconditionally. | |
3153 | [!_GLIBCXX_HAVE_SYS_STAT_H] (internal_file_clock::from_stat): Do not | |
3154 | define. | |
3155 | (do_copy_file, do_space): Move definitions to ops.common.h. | |
3156 | (copy, file_size, hard_link_count, last_write_time, space): Only | |
3157 | perform operation when _GLIBCXX_HAVE_SYS_STAT_H is defined, otherwise | |
3158 | report an error. | |
3159 | (last_write_time, read_symlink): Remove unused attributes from | |
3160 | parameters. | |
3161 | * src/filesystem/Makefile.am: Remove C++17 filesystem sources. | |
3162 | * src/filesystem/Makefile.in: Regenerate. | |
3163 | * src/filesystem/cow-std-dir.cc: Move to src/c++17/cow-fs_dir.cc. | |
3164 | * src/filesystem/cow-std-ops.cc: Move to src/c++17/cow-fs_ops.cc. | |
3165 | * src/filesystem/std-dir.cc: Move to src/c++17/fs_dir.cc. | |
3166 | * src/filesystem/std-ops.cc: Move to src/c++17/fs_ops.cc. | |
3167 | * src/filesystem/dir-common.h [!_GLIBCXX_HAVE_DIRENT_H]: Define | |
3168 | dummy types and functions instead of using #error. | |
3169 | * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H]: Use #error. | |
3170 | * src/filesystem/ops-common.h [!_GLIBCXX_USE_LSTAT] (lstat): Define | |
3171 | in terms of stat. | |
3172 | [!_GLIBCXX_HAVE_UNISTD_H]: Define dummy types and functions. | |
3173 | (do_copy_file, do_space): Move definitions here from std-ops.cc. | |
3174 | * src/filesystem/ops.cc: Adjust calls to do_copy_file and do_space | |
3175 | to account for new namespace. | |
3176 | * testsuite/27_io/filesystem/directory_entry/86597.cc: Remove | |
3177 | -lstdc++fs from dg-options. | |
3178 | * testsuite/27_io/filesystem/directory_entry/lwg3171.cc: Likewise. | |
3179 | * testsuite/27_io/filesystem/file_status/1.cc: Likewise. | |
3180 | * testsuite/27_io/filesystem/filesystem_error/cons.cc: Likewise. | |
3181 | * testsuite/27_io/filesystem/filesystem_error/copy.cc: Likewise. | |
3182 | * testsuite/27_io/filesystem/iterators/directory_iterator.cc: | |
3183 | Likewise. | |
3184 | * testsuite/27_io/filesystem/iterators/pop.cc: Likewise. | |
3185 | * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc: | |
3186 | Likewise. | |
3187 | * testsuite/27_io/filesystem/operations/absolute.cc: Likewise. | |
3188 | * testsuite/27_io/filesystem/operations/canonical.cc: Likewise. | |
3189 | * testsuite/27_io/filesystem/operations/copy.cc: Likewise. | |
3190 | * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise. | |
3191 | * testsuite/27_io/filesystem/operations/create_directories.cc: | |
3192 | Likewise. | |
3193 | * testsuite/27_io/filesystem/operations/create_directory.cc: Likewise. | |
3194 | * testsuite/27_io/filesystem/operations/create_symlink.cc: Likewise. | |
3195 | * testsuite/27_io/filesystem/operations/current_path.cc: Likewise. | |
3196 | * testsuite/27_io/filesystem/operations/equivalent.cc: Likewise. | |
3197 | * testsuite/27_io/filesystem/operations/exists.cc: Likewise. | |
3198 | * testsuite/27_io/filesystem/operations/file_size.cc: Likewise. | |
3199 | * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise. | |
3200 | * testsuite/27_io/filesystem/operations/last_write_time.cc: Likewise. | |
3201 | * testsuite/27_io/filesystem/operations/permissions.cc: Likewise. | |
3202 | * testsuite/27_io/filesystem/operations/proximate.cc: Likewise. | |
3203 | * testsuite/27_io/filesystem/operations/read_symlink.cc: Likewise. | |
3204 | * testsuite/27_io/filesystem/operations/relative.cc: Likewise. | |
3205 | * testsuite/27_io/filesystem/operations/remove.cc: Likewise. | |
3206 | * testsuite/27_io/filesystem/operations/remove_all.cc: Likewise. | |
3207 | * testsuite/27_io/filesystem/operations/space.cc: Likewise. | |
3208 | * testsuite/27_io/filesystem/operations/status.cc: Likewise. | |
3209 | * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise. | |
3210 | * testsuite/27_io/filesystem/operations/temp_directory_path.cc: | |
3211 | Likewise. | |
3212 | * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Likewise. | |
3213 | ||
3214 | ||
c6e37a9f | 3215 | PR libstdc++/86756 |
3216 | * config/abi/pre/gnu.ver (GLIBCXX_3.4): Make various patterns for | |
3217 | typeinfo and vtables less greedy. | |
3218 | (GLIBCXX_3.4.26): Export symbols for std::filesystem::path. | |
3219 | * src/c++17/Makefile.am: Add fs_path.cc and cow-fs_path.cc. | |
3220 | * src/c++17/Makefile.in: Regenerate. | |
3221 | * src/c++17/cow-fs_path.cc: Move src/filesystem/cow-std-path.cc to | |
3222 | here, and change name of included file. | |
3223 | * src/c++17/fs_path.cc: Move src/filesystem/std-path.cc to here. | |
3224 | * src/filesystem/Makefile.am: Remove std-path.cc and cow-std-path.cc | |
3225 | from sources. | |
3226 | * src/filesystem/Makefile.in: Regenerate. | |
3227 | * src/filesystem/cow-std-path.cc: Move to src/c++17/cow-fs_path.cc. | |
3228 | * src/filesystem/std-path.cc: Move to src/c++17/fs_path.cc. | |
3229 | * testsuite/27_io/filesystem/path/append/path.cc: Remove -lstdc++fs | |
3230 | from dg-options and remove dg-require-filesystem-ts. | |
3231 | * testsuite/27_io/filesystem/path/append/source.cc: Likewise. | |
3232 | * testsuite/27_io/filesystem/path/assign/assign.cc: Likewise. | |
3233 | * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise. | |
3234 | * testsuite/27_io/filesystem/path/compare/compare.cc: Likewise. | |
3235 | * testsuite/27_io/filesystem/path/compare/lwg2936.cc: Likewise. | |
3236 | * testsuite/27_io/filesystem/path/compare/path.cc: Likewise. | |
3237 | * testsuite/27_io/filesystem/path/compare/strings.cc: Likewise. | |
3238 | * testsuite/27_io/filesystem/path/concat/path.cc: Likewise. | |
3239 | * testsuite/27_io/filesystem/path/concat/strings.cc: Likewise. | |
3240 | * testsuite/27_io/filesystem/path/construct/80762.cc: Likewise. | |
3241 | * testsuite/27_io/filesystem/path/construct/copy.cc: Likewise. | |
3242 | * testsuite/27_io/filesystem/path/construct/default.cc: Likewise. | |
3243 | * testsuite/27_io/filesystem/path/construct/format.cc: Likewise. | |
3244 | * testsuite/27_io/filesystem/path/construct/locale.cc: Likewise. | |
3245 | * testsuite/27_io/filesystem/path/construct/range.cc: Likewise. | |
3246 | * testsuite/27_io/filesystem/path/construct/string_view.cc: Likewise. | |
3247 | * testsuite/27_io/filesystem/path/decompose/extension.cc: Likewise. | |
3248 | * testsuite/27_io/filesystem/path/decompose/filename.cc: Likewise. | |
3249 | * testsuite/27_io/filesystem/path/decompose/parent_path.cc: Likewise. | |
3250 | * testsuite/27_io/filesystem/path/decompose/relative_path.cc: Likewise. | |
3251 | * testsuite/27_io/filesystem/path/decompose/root_directory.cc: | |
3252 | Likewise. | |
3253 | * testsuite/27_io/filesystem/path/decompose/root_name.cc: Likewise. | |
3254 | * testsuite/27_io/filesystem/path/decompose/root_path.cc: Likewise. | |
3255 | * testsuite/27_io/filesystem/path/decompose/stem.cc: Likewise. | |
3256 | * testsuite/27_io/filesystem/path/generation/normal.cc: Likewise. | |
3257 | * testsuite/27_io/filesystem/path/generation/normal2.cc: Likewise. | |
3258 | * testsuite/27_io/filesystem/path/generation/proximate.cc: Likewise. | |
3259 | * testsuite/27_io/filesystem/path/generation/relative.cc: Likewise. | |
3260 | * testsuite/27_io/filesystem/path/generic/generic_string.cc: Likewise. | |
3261 | * testsuite/27_io/filesystem/path/itr/components.cc: Likewise. | |
3262 | * testsuite/27_io/filesystem/path/itr/traversal.cc: Likewise. | |
3263 | * testsuite/27_io/filesystem/path/modifiers/clear.cc: Likewise. | |
3264 | * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc: | |
3265 | Likewise. | |
3266 | * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc: | |
3267 | Likewise. | |
3268 | * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc: | |
3269 | Likewise. | |
3270 | * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc: | |
3271 | Likewise. | |
3272 | * testsuite/27_io/filesystem/path/modifiers/swap.cc: Likewise. | |
3273 | * testsuite/27_io/filesystem/path/native/string.cc: Likewise. | |
3274 | * testsuite/27_io/filesystem/path/nonmember/append.cc: Likewise. | |
3275 | * testsuite/27_io/filesystem/path/nonmember/hash_value.cc: Likewise. | |
3276 | * testsuite/27_io/filesystem/path/query/empty.cc: Likewise. | |
3277 | * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise. | |
3278 | * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise. | |
3279 | * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise. | |
3280 | * testsuite/27_io/filesystem/path/query/has_relative_path.cc: Likewise. | |
3281 | * testsuite/27_io/filesystem/path/query/has_root_directory.cc: | |
3282 | Likewise. | |
3283 | * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise. | |
3284 | * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise. | |
3285 | * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise. | |
3286 | * testsuite/27_io/filesystem/path/query/is_absolute.cc: Likewise. | |
3287 | * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise. | |
3288 | ||
8815ac91 | 3289 | PR libstdc++/87431 |
3290 | * include/std/variant (_Variant_storage<true, _Types...>::_M_valid): | |
3291 | Check is_trivially_copyable instead of is_scalar. | |
3292 | (variant::emplace<N, Args>(Args&&...)): If construction of the new | |
3293 | contained value can throw and its type is trivially copyable then | |
3294 | construct into a temporary variant and move from it, to provide the | |
3295 | strong exception safety guarantee. | |
3296 | (variant::emplace<N, U, Args>(initializer_list<U>, Args&&...)): | |
3297 | Likewise. | |
3298 | * testsuite/20_util/variant/87431.cc: New test. | |
3299 | * testsuite/20_util/variant/run.cc: Adjust test so that throwing | |
3300 | conversion causes valueless state. | |
3301 | ||
0ebb0980 | 3302 | PR libstdc++/88607 |
3303 | * testsuite/17_intro/headers/c++1998/charset.cc: New test. | |
3304 | * testsuite/17_intro/headers/c++2011/charset.cc: New test. | |
3305 | * testsuite/17_intro/headers/c++2014/charset.cc: New test. | |
3306 | * testsuite/17_intro/headers/c++2017/charset.cc: New test. | |
3307 | * testsuite/17_intro/headers/c++2020/charset.cc: New test. | |
3308 | ||
adc6beee | 3309 | 2019-01-05 Jonathan Wakely <jwakely@redhat.com> |
3310 | ||
3311 | * include/bits/fs_fwd.h (__file_clock): Define new clock. | |
3312 | (file_time_type): Redefine in terms of __file_clock. | |
3313 | * src/filesystem/ops-common.h (file_time): Add FIXME comment about | |
3314 | overflow. | |
3315 | * src/filesystem/std-ops.cc (is_set(perm_options, perm_options)): Give | |
3316 | internal linkage. | |
3317 | (internal_file_lock): New helper type for accessing __file_clock. | |
3318 | (do_copy_file): Use internal_file_lock to convert system time to | |
3319 | file_time_type. | |
3320 | (last_write_time(const path&, error_code&)): Likewise. | |
3321 | (last_write_time(const path&, file_time_type, error_code&)): Likewise. | |
3322 | ||
6b4a77f2 | 3323 | 2019-01-04 Jonathan Wakely <jwakely@redhat.com> |
3324 | ||
98185b9f | 3325 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.21): Make patterns less greedy |
3326 | for const member functions of std::basic_string. | |
3327 | (GLIBCXX_3.4.26): Export member functions of std::basic_string added | |
3328 | in C++17. | |
3329 | * include/bits/basic_string.h (basic_string(__sv_wrapper, const A&)): | |
3330 | Make non-standard constructor private. | |
3331 | [!_GLIBCXX_USE_CXX11_ABI] (basic_string(__sv_wrapper, const A&)): | |
3332 | Likewise. | |
3333 | * include/bits/basic_string.tcc (std::string, std::wstring): Declare | |
3334 | explicit instantiations for C++17 as well as earlier dialects. | |
3335 | * src/c++17/Makefile.am: Add new source files. | |
3336 | * src/c++17/Makefile.in: Regenerate. | |
3337 | * src/c++17/cow-string-inst.cc: New file defining explicit | |
3338 | instantiations for basic_string member functions added in C++17. | |
3339 | * src/c++17/string-inst.cc: Likewise. | |
3340 | ||
859e6fed | 3341 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export allocator-extended |
3342 | copy/move constructors for old std::basic_string. | |
3343 | * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI] | |
3344 | (basic_string::reference, basic_string::const_reference): Define | |
3345 | as plain references for C++11 and later. | |
3346 | (basic_string::basic_string()): Put constructor body outside | |
3347 | preprocessor conditional groups. | |
3348 | (basic_string::basic_string(basic_string&&)): Move _Alloc_hider | |
3349 | instead of copying it. | |
3350 | (basic_string::basic_string(const basic_string&, const _Alloc&)): | |
3351 | Define. | |
3352 | (basic_string::basic_string(basic_string&&, const _Alloc&)): | |
3353 | Define. | |
3354 | * include/bits/fs_path.h [!_GLIBCXX_USE_CXX11_ABI]: Remove special | |
3355 | cases for old basic_string. | |
3356 | * testsuite/21_strings/basic_string/cons/char/8.cc: Test | |
3357 | allocator-extended constructors unconditionally. Add extra members to | |
3358 | allocator type when using old string ABI. | |
3359 | * testsuite/21_strings/basic_string/allocator/71964.cc: Enable test | |
3360 | for old string ABI. | |
3361 | * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise. | |
3362 | ||
e13f6a7f | 3363 | * testsuite/23_containers/list/61347.cc: Avoid spurious failure when |
3364 | -fno-inline added to test flags. | |
3365 | ||
a18fccd0 | 3366 | * testsuite/21_strings/basic_string/requirements/ |
3367 | explicit_instantiation/debug.cc: Remove XFAIL for old ABI. | |
3368 | ||
7f77ca07 | 3369 | * testsuite/27_io/filesystem/filesystem_error/copy.cc: Fix static |
3370 | assertion failures with old std::string ABI. | |
3371 | ||
9346fb0e | 3372 | * include/bits/fs_path.h (path::_List::erase): Replace both overloads |
3373 | with ... | |
3374 | (path::pop_back(), path::_M_erase_from(const_iterator)): New member | |
3375 | functions that will only erase elements at the end. | |
3376 | * src/filesystem/std-path.cc (path::_List::_Impl::pop_back()): Define. | |
3377 | (path::_List::_Impl::_M_erase_from(const_iterator)): Define. | |
3378 | (path::_List::operator=(const _List&)): Use _M_erase_from(p) instead | |
3379 | of erase(p, end()). | |
3380 | (path::_List::pop_back()): Define. | |
3381 | (path::_List::_M_erase_from(const_iterator)): Define. | |
3382 | (path::operator/=(const path&)): Use pop_back to remove last component | |
3383 | and _M_erase_from to remove multiple components. | |
3384 | (path::_M_append(basic_string_view<value_type>)): Likewise. | |
3385 | (path::operator+=(const path&)): Likewise. | |
3386 | (path::_M_concat(basic_string_view<value_type>)): Likewise. | |
3387 | (path::remove_filename()): Likewise. | |
3388 | (path::lexically_normal()): Use _List::_Impl iterators instead of | |
3389 | path::iterator. Use pop_back to remove components from the end. Clear | |
3390 | trailing filename, instead of using erase(const_iterator) to remove | |
3391 | a non-final component. | |
3392 | * testsuite/27_io/filesystem/path/generation/normal.cc: Test | |
3393 | additional cases. | |
3394 | * testsuite/27_io/filesystem/path/generation/normal2.cc: New test. | |
3395 | ||
24230cab | 3396 | * src/filesystem/std-path.cc (path::operator+=(const path&)): Fix |
3397 | incorrect treatment of empty filename after trailing slash. | |
3398 | * testsuite/27_io/filesystem/path/concat/path.cc: Test problem case. | |
3399 | ||
6b4a77f2 | 3400 | * testsuite/21_strings/basic_string/modifiers/assign/char/ |
3401 | move_assign_optim.cc: Avoid spurious failure when -fno-inline added | |
3402 | to test flags. | |
3403 | * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/ | |
3404 | move_assign_optim.cc: Likewise. | |
3405 | ||
02df5941 | 3406 | 2019-01-03 Jonathan Wakely <jwakely@redhat.com> |
3407 | Jakub Jelinek <jakub@redhat.com> | |
3408 | ||
3409 | PR libstdc++/88607 | |
3410 | * include/experimental/memory: Replace UTF-8 quote characters. | |
3411 | * include/std/future: Replace UTF-8 "em dash" characters. | |
3412 | ||
f8ad40d8 | 3413 | 2019-01-03 Jonathan Wakely <jwakely@redhat.com> |
3414 | ||
9013258b | 3415 | PR libstdc++/88607 |
3416 | * include/bits/forward_list.h: Replace UTF-8 "ligature fi" character. | |
3417 | * include/debug/forward_list: Likewise. | |
3418 | * include/experimental/bits/shared_ptr.h: Remove UTF-8 "section sign" | |
3419 | character. | |
3420 | * include/experimental/chrono: Likewise. | |
3421 | * include/experimental/functional: Likewise. | |
3422 | * include/experimental/ratio: Likewise. | |
3423 | * include/experimental/system_error: Likewise. | |
3424 | * include/experimental/tuple: Likewise. | |
3425 | * include/experimental/type_traits: Likewise. | |
3426 | * include/parallel/workstealing.h: Replace UTF-8 "en dash" character. | |
3427 | * include/parallel/multiseq_selection.h: Likewise. | |
3428 | ||
f8ad40d8 | 3429 | PR libstdc++/88681 |
3430 | * config/abi/pre/gnu.ver: Add missing exports. | |
3431 | * testsuite/22_locale/collate_byname/88681.cc: New test. | |
3432 | * testsuite/22_locale/time_get/get/char/88681.cc: New test. | |
3433 | * testsuite/22_locale/time_get/get/wchar_t/88681.cc: New test. | |
3434 | ||
138292f4 | 3435 | 2019-01-02 Jonathan Wakely <jwakely@redhat.com> |
3436 | ||
553d41a8 | 3437 | * testsuite/23_containers/map/cons/deduction.cc: Test deduction from |
3438 | initializer_list<value_type> and from input iterator ranges. | |
3439 | * testsuite/23_containers/multimap/cons/deduction.cc: Likewise. | |
3440 | ||
138292f4 | 3441 | * testsuite/experimental/string_view/element_access/char/empty.cc: |
3442 | Fix year range in copyright header. | |
3443 | ||
963c0125 | 3444 | 2019-01-02 Joel Brobecker <brobecker@adacore.com> |
3445 | ||
3446 | * testsuite/21_strings/basic_string_view/element_access/char/empty.cc: | |
3447 | Fix year range in copyright header. | |
3448 | ||
fbd26352 | 3449 | 2019-01-01 Jakub Jelinek <jakub@redhat.com> |
d353bf18 | 3450 | |
3451 | Update copyright years. | |
fb96fbb3 | 3452 | \f |
fbd26352 | 3453 | Copyright (C) 2019 Free Software Foundation, Inc. |
fb96fbb3 | 3454 | |
3455 | Copying and distribution of this file, with or without modification, | |
3456 | are permitted in any medium without royalty provided the copyright | |
3457 | notice and this notice are preserved. |