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