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