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