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