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