]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/ChangeLog
ce726599d0e46781b46c066f0fe4f4566c7d2094
[thirdparty/gcc.git] / libstdc++-v3 / ChangeLog
1 2019-04-19 Thomas Rodgers <trodgers@redhat.com>
2
3 Improve implementation of parallel equal()
4 * include/pstl/algorithm_impl.h
5 (__internal::__brick_equal): use "4 iterator" version of
6 std::equal().
7 (__internal::__brick_equal): use simd for random access
8 iterators on unsequenced execution policies.
9 (__internal::__pattern_equal): add "4 iterator" version
10 (__internal::__pattern_equal): dispatch to simd __brick_equal
11 for vector-only execution policies.
12 (__internal::__pattern_equal): dispatch to __parallel_or for
13 parallel execution policies.
14 * include/pstl/glue_algorithm_impl.h
15 (std::equal): dispatch to "4 iterator" version of
16 __internal::__pattern_equal().
17
18 2019-04-17 Jonathan Wakely <jwakely@redhat.com>
19
20 PR libstdc++/90105
21 * include/bits/forward_list.h (operator==): Do not use operator!= to
22 compare elements.
23 (forward_list<T, A>::sort(Comp)): When elements are equal take the one
24 earlier in the list, so that sort is stable.
25 * testsuite/23_containers/forward_list/operations/90105.cc: New test.
26 * testsuite/23_containers/forward_list/comparable.cc: Test with
27 types that meet the minimum EqualityComparable and LessThanComparable
28 requirements. Remove irrelevant comment.
29
30 * include/std/variant (__detail::__variant::_Traits::_S_copy_assign):
31 Do not depend on whether all alternative types are move constructible.
32 (__detail::__variant::_Copy_assign_base::operator=): Remove cv-quals
33 from the operand when deciding whether to perform the assignment.
34 * testsuite/20_util/variant/compile.cc (DeletedMoves): Define type
35 with deleted move constructor and deleted move assignment operator.
36 (default_ctor, copy_ctor, move_ctor, copy_assign, move_assign): Check
37 behaviour of variants with DeletedMoves as an alternative.
38 * testsuite/20_util/variant/run.cc (DeletedMoves): Define same type.
39 (move_ctor, move_assign): Check that moving a variant with a
40 DeletedMoves alternative falls back to copying instead of moving.
41
42 * testsuite/20_util/variant/compile.cc: Remove empty string literals
43 from static_assert declarations.
44
45 * testsuite/20_util/variant/compile.cc (MoveCtorOnly): Fix type to
46 actually match its name.
47 (MoveCtorAndSwapOnly): Define new type that adds swap to MoveCtorOnly.
48 (test_swap()): Fix result for MoveCtorOnly and check
49 MoveCtorAndSwapOnly.
50
51 * include/std/optional (optional::value_or(U&&) &&): Add missing
52 constexpr specifier.
53 * testsuite/20_util/optional/constexpr/observers/4.cc: Check value_or
54 for disengaged optionals and rvalue optionals.
55 * testsuite/20_util/optional/observers/4.cc: Likewise.
56
57 2019-04-12 Thomas Rodgers <trodgers@redhat.com>
58
59 * include/pstl/algorithm_impl.h: Uglify identfiers.
60 * include/pstl/numeric_impl.h: Uglify identfiers.
61 * include/pstl/parallel_backend_tbb.h: Uglify identfiers.
62
63 2019-04-11 Thomas Rodgers <trodgers@redhat.com>
64
65 * include/bits/c++config:
66 Add definition for __PSTL_ASSERT.
67 Add definition for __PSTL_ASSERT_MSG.
68 * include/pstl/algorithm_impl.h: Replace use of assert().
69 * include/pstl/numeric_impl.h: Replace use of assert().
70 * include/pstl/parallel_backend_tbb.h:
71 Replace use of assert().
72 Replace use of __TBB_ASSERT().
73 * include/pstl/parallel_backend_utils.h: Replace use of assert().
74
75 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
76
77 PR libstdc++/90046
78 * src/c++17/memory_resource.cc
79 (monotonic_buffer_resource::_Chunk::allocate): Increase alignment if
80 needed to allow placing a _Chunk at the end of the buffer.
81 (monotonic_buffer_resource::_M_new_buffer): Remove static_assert.
82
83 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
84
85 * doc/xml/faq.xml: Add information about emergency EH pool.
86 * doc/xml/manual/debug.xml: Update list of memory debugging tools.
87 Move outdated information on mt_allocator to a separate section.
88 * doc/xml/manual/evolution.xml: Clarify that GLIBCXX_FORCE_NEW
89 doesn't affect the default allocator.
90
91 * testsuite/lib/libstdc++.exp (check_v3_target_parallel_mode): Fix
92 typo.
93
94 PR libstdc++/89851
95 * testsuite/20_util/variant/89851.cc: New test.
96
97 2019-04-09 Jonathan Wakely <jwakely@redhat.com>
98
99 * include/std/variant: Adjust whitespace. Add comments.
100 (_Multi_array): Leave primary template undefined.
101 (_Multi_array<_Tp>): Define partial specialization for base case of
102 recursion.
103 (__gen_vtable_impl, __gen_vtable): Remove redundant && from type
104 which is always a reference.
105 (__gen_vtable::_S_apply()): Remove function, inline body into
106 default member initializer.
107 * testsuite/20_util/variant/visit.cc: Test with noncopyable types.
108
109 * include/std/variant (__variant_idx_cookie): Add member type.
110 (__visitor_result_type): Remove.
111 (__do_visit): Use invoke_result instead of __visitor_result_type.
112 * testsuite/20_util/variant/visit.cc: New test.
113
114 PR libstdc++/90008
115 * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Remove
116 unused capture.
117 * testsuite/20_util/variant/90008.cc: New test.
118
119 2019-04-09 Thomas Rodgers <trodgers@redhat.com>
120
121 * include/pstl/algorithm_impl.h: Add namespace qualification.
122 * include/pstl/execution_defs.h: Add namespace qualification.
123 * include/pstl/execution_impl.h: Add namespace qualification.
124 * include/pstl/numeric_impl.h: Add namespace qualification.
125 * include/pstl/parallel_backend_tbb.h: Add namespace qualification.
126 * include/pstl/unseq_backend_simd.h: Add namespace qualification.
127 * include/pstl/parallel_backend_utils.h: Include <cassert>.
128
129 2019-04-08 Ville Voutilainen <ville.voutilainen@gmail.com>
130
131 Fix visit<R> for variant.
132 * include/std/variant (__do_visit): Add a template parameter
133 for enforcing same return types for visit.
134 (__gen_vtable_impl): Likewise.
135 (_S_apply_single_alt): Adjust.
136 (__visit_invoke_impl): New. Handle casting to void.
137 (__do_visit_invoke): New. Enforces same return types.
138 (__do_visit_invoke_r): New. Converts return types.
139 (__visit_invoke): Adjust.
140 (__gen_vtable): Add a template parameter for enforcing
141 same return types for visit.
142 * testsuite/20_util/variant/visit_r.cc: Add a test for a visitor with
143 different return types.
144 * testsuite/20_util/variant/visit_neg.cc: New. Ensures that
145 visitors with different return types don't accidentally
146 compile with regular visitation.
147
148 2019-04-08 Christophe Lyon <christophe.lyon@linaro.org>
149
150 * testsuite/27_io/filesystem/iterators/caching.cc: Add
151 dg-require-filesystem-ts.
152
153 2019-04-05 Jonathan Wakely <jwakely@redhat.com>
154
155 * doc/xml/manual/status_cxx2020.xml: Update status.
156 * include/std/variant (visit<R>): Define for C++2a (P0655R1).
157 * testsuite/20_util/variant/visit_r.cc: New test.
158
159 * include/bits/fs_dir.h (directory_iterator::operator*)
160 (directory_iterator::operator->): Add noexcept.
161 (operator==, operator!=): Replace namespace-scope equality operators
162 for directory iterators with hidden friends.
163
164 PR libstdc++/89986
165 * config/abi/pre/gnu.ver: Add missing exports.
166 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Test
167 increment member.
168
169 * config/abi/pre/gnu.ver: Export new symbols.
170 * include/bits/fs_dir.h (recursive_directory_iterator::options())
171 (recursive_directory_iterator::recursion_pending())
172 (recursive_directory_iterator::disable_recursion_pending()): Remove
173 inline definitions. Make noexcept.
174 (recursive_directory_iterator::depth())
175 (recursive_directory_iterator::operator*())
176 (recursive_directory_iterator::operator->()): Make noexcept.
177 (recursive_directory_iterator::_M_options)
178 (recursive_directory_iterator::_M_pending): Remove data members.
179 * src/c++17/fs_path.cc (_Dir_stack): Add constructor and data members.
180 (recursive_directory_iterator::recursive_directory_iterator): Remove
181 ctor-initializer. Use new constructor for _Dir_stack.
182 (recursive_directory_iterator::options())
183 (recursive_directory_iterator::recursion_pending())
184 (recursive_directory_iterator::disable_recursion_pending()): Add
185 non-inline definitions.
186 (recursive_directory_iterator::depth()): Make noexcept.
187 (recursive_directory_iterator::increment(error_code&))
188 (recursive_directory_iterator::pop(error_code&)): Adjust to new
189 location of options and recursion_pending members.
190 * testsuite/27_io/filesystem/iterators/recursion_pending.cc: New test.
191 * testsuite/util/testsuite_fs.h (__gnu_test::scoped_file): Add
192 user-declared move constructor and assignment operator, to make the
193 type move-only.
194
195 * src/c++17/fs_dir.cc (_Dir::advance(bool, error_code&)): Handle
196 d_type == DT_UNKNOWN immediately.
197 (_Dir::should_recurse(bool, error_code&)): Remove file_type::unknown
198 handling here.
199 * testsuite/27_io/filesystem/iterators/caching.cc: New test.
200
201 * include/bits/fs_path.h (path::operator=(path&&)): Check for self
202 assignment.
203 * src/c++17/fs_path.cc (path::operator=(const path&)): Likewise.
204 * testsuite/27_io/filesystem/path/assign/copy.cc: Test self
205 assignment.
206
207 PR libstdc++/87431 (again)
208 * include/bits/basic_string.h (__variant::_Never_valueless_alt):
209 Define partial specialization for basic_string.
210 * include/bits/shared_ptr.h (_Never_valueless_alt): Likewise for
211 shared_ptr and weak_ptr.
212 * include/bits/std_function.h (_Never_valueless_alt): Likewise for
213 function.
214 * include/bits/stl_vector.h (_Never_valueless_alt): Likewise for
215 vector.
216 * include/bits/unique_ptr.h (_Never_valueless_alt): Likewise for
217 unique_ptr.
218 * include/debug/vector (_Never_valueless_alt): Likewise for debug
219 vector.
220 * include/std/any (_Never_valueless_alt): Define explicit
221 specialization for any.
222 * include/std/variant (_Never_valueless_alt): Define primary template.
223 (__never_valueless): Use _Never_valueless_alt instead of
224 is_trivially_copyable.
225 (variant::emplace<N>(Args&&...)): Add special case for non-throwing
226 initializations to avoid try-catch overhead. Add special case for
227 scalars produced by potentially-throwing conversions. Use
228 _Never_valueless_alt instead of is_trivially_copyable for the
229 remaining strong exception-safety cases.
230 (variant::emplace<N>(initializer_list<U>, Args&&...)): Likewise.
231 * testsuite/20_util/variant/87431.cc: Run both test functions.
232 * testsuite/20_util/variant/exception_safety.cc: New test.
233 * testsuite/20_util/variant/run.cc: Use pmr::string instead of string,
234 so the variant becomes valueless.
235
236 2019-04-03 Jonathan Wakely <jwakely@redhat.com>
237
238 PR libstdc++/85184
239 * include/std/variant (_Copy_assign_base, _Move_assign_base, variant):
240 Remove assertions.
241 (variant::emplace<_Tp>): Return result of emplace<N> directly.
242
243 * include/std/string (__hash_string_base): New class template defining
244 operator() for hashing strings.
245 (hash<pmr::string>, hash<pmr::u8string>, hash<pmr::u16string>)
246 (hash<pmr::u32string>, hash<pmr::wstring>): Define for C++17.
247 * testsuite/21_strings/basic_string/hash/hash.cc: New test.
248 * testsuite/21_strings/basic_string/hash/hash_char8_t.cc: New test.
249
250 2019-04-01 Ville Voutilainen <ville.voutilainen@gmail.com>
251
252 Use single-visitation in variant assignment and swap and relops.
253 Also use indices instead of types when checking whether
254 variants hold the same thing.
255 * include/std/variant (__do_visit): Add a template parameter
256 for index visitation, invoke with indices if index visitation
257 is used.
258 (__variant_idx_cookie): New.
259 (__visit_with_index): Likewise.
260 (_Copy_assign_base::operator=): Do single-visitation with
261 an index visitor.
262 (_Move_assign_base::operator=): Likewise.
263 (_Extra_visit_slot_needed): Adjust.
264 (__visit_invoke): Call with indices if it's an index visitor.
265 (relops): Do single-visitation with an index visitor.
266 (swap): Likewise.
267 (__visitor_result_type): New.
268
269 2019-03-30 Eric Botcazou <ebotcazou@adacore.com>
270
271 * src/c++17/fs_ops.cc (fs::permissions): Use std::errc::not_supported.
272
273 2019-03-28 Ville Voutilainen <ville.voutilainen@gmail.com>
274
275 Don't revisit a variant we are already visiting.
276 * include/std/variant (__variant_construct_single): New.
277 (__variant_construct): Use it.
278 (_M_destructive_move): Likewise.
279 (_M_destructive_copy): Likewise.
280 (_Copy_assign_base::operator=): Adjust.
281 (_Move_assign_base::operator=): Likewise.
282 (swap): Likewise.
283
284 2019-03-26 Jonathan Wakely <jwakely@redhat.com>
285
286 PR libstdc++/85965
287 * include/bits/hashtable.h (_Hashtable): Move static assertions to
288 destructor so they are not evaluated until the _Key type is complete.
289 * include/bits/stl_tree.h (_Rb_tree): Likewise.
290 * testsuite/23_containers/set/85965.cc: New test.
291 * testsuite/23_containers/unordered_set/85965.cc: New test.
292 * testsuite/23_containers/map/48101_neg.cc: Replace "here" errors
293 with regexp matching the corresponding _Rb_tree specialization.
294 * testsuite/23_containers/multimap/48101_neg.cc: Likewise.
295 * testsuite/23_containers/multiset/48101_neg.cc: Remove "here" error.
296 * testsuite/23_containers/set/48101_neg.cc: Likewise.
297 * testsuite/23_containers/unordered_map/48101_neg.cc: Likewise.
298 * testsuite/23_containers/unordered_multimap/48101_neg.cc: Likewise.
299 * testsuite/23_containers/unordered_multiset/48101_neg.cc: Likewise.
300 * testsuite/23_containers/unordered_set/48101_neg.cc: Likewise.
301
302 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
303
304 PR libstdc++/89825
305 Fix based on a suggestion by Antony Polukhin.
306 * include/std/variant (__never_valueless): New.
307 (_M_valid): Use it.
308 (_Extra_visit_slot_needed): New.
309 (_Multi_array): Use it.
310 (_S_apply_all_alts): Likewise.
311
312 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
313
314 PR libstdc++/89824
315 Fix based on a suggestion by Antony Polukhin.
316 * include/std/variant (__gen_vtable): Don't reserve an
317 additional table slot, _Multi_array already does that.
318
319 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
320
321 PR libstdc++/89816
322 Fix based on a suggestion by Antony Polukhin.
323 * include/std/variant (__variant_construct): Capture a pointer
324 to the storage and visit just one variant.
325
326 2019-03-22 Jonathan Wakely <jwakely@redhat.com>
327
328 * doc/xml/manual/backwards_compatibility.xml: Remove link to
329 Doxygen-generated pages with unstable URL.
330 * doc/xml/manual/concurrency_extensions.xml: Likewise.
331 * doc/xml/manual/extensions.xml: Likewise.
332 * doc/xml/manual/parallel_mode.xml: Likewise.
333 * doc/xml/manual/support.xml: Likewise.
334
335 * include/bits/stl_algobase.h (__lg): Do arithmetic on type int to
336 avoid -Wconversion warnings.
337
338 2019-03-21 Thomas Rodgers <trodgers@redhat.com>
339
340 * include/Makefile.am (std_header): Add ${std_srcdir}/execution.
341 (pstl_srcdir, pstl_builddir, pstl_headers): New variables.
342 (allstamped): Add stamp-pstl.
343 (install-headers): Add ptsl_builddir.
344 * include/Makefile.in: Regenerate.
345 * include/bits/c++config: Add pstl configuration.
346 * include/pstl/LICENSE.txt: New file.
347 * include/pstl/algorithm_fwd.h: New file.
348 * include/pstl/algorithm_impl.h: New file.
349 * include/pstl/execution_defs.h: New file.
350 * include/pstl/execution_impl.h: New file.
351 * include/pstl/glue_algorithm_defs.h: New file.
352 * include/pstl/glue_algorithm_impl.h: New file.
353 * include/pstl/glue_execution_defs.h: New file.
354 * include/pstl/glue_memory_defs.h: New file.
355 * include/pstl/glue_memory_impl.h: New file.
356 * include/pstl/glue_numeric_defs.h: New file.
357 * include/pstl/glue_numeric_impl.h: New file.
358 * include/pstl/memory_impl.h: New file.
359 * include/pstl/numeric_fwd.h: New file.
360 * include/pstl/numeric_impl.h: New file.
361 * include/pstl/parallel_backend.h: New file.
362 * include/pstl/parallel_backend_tbb.h: New file.
363 * include/pstl/parallel_backend_utils.h: New file.
364 * include/pstl/parallel_impl.h: New file.
365 * include/pstl/pstl_config.h: New file.
366 * include/pstl/unseq_backend_simd.h: New file.
367 * include/pstl/utils.h: New file.
368 * include/std/algorithm: Include parallel algorithm implementations.
369 * include/std/execution: New file.
370 * include/std/memory: Include parallel algorithm implementations.
371 * include/std/numeric: Include parallel algorithm implementations.
372 * include/std/version: Add parallel algorithms feature test macro.
373 * testsuite/util/pstl/pstl_test_config.h: New file.
374 * testsuite/util/pstl/test_utils.h: New file.
375 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file.
376 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file.
377 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file.
378 * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file.
379 * testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file.
380 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file.
381 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file.
382 * testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file.
383 * testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file.
384 * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file.
385 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file.
386 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file.
387 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file.
388 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file.
389 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file.
390 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file.
391 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file.
392 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file.
393 * testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file.
394 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file.
395 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file.
396 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file.
397 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file.
398 * testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file.
399 * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file.
400 * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file.
401 * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file.
402 * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file.
403 * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file.
404 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file.
405 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file.
406 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file.
407 * testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file.
408 * testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file.
409 * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file.
410 * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file.
411 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file.
412 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file.
413 * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file.
414 * testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file.
415 * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file.
416 * testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file.
417 * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file.
418 * testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file.
419 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file.
420 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file.
421 * testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file.
422 * testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file.
423 * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file.
424 * testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file.
425 * testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file.
426 * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file.
427 * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file.
428 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file.
429 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file.
430 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file.
431 * testsuite/testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file.
432 * testsuite/testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file.
433 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file.
434 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file.
435 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file.
436 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file.
437 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file.
438 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file.
439 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file.
440 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file.
441 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file.
442 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file.
443 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file.
444 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file.
445 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file.
446 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file.
447 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file.
448 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file.
449 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file.
450 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file.
451 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file.
452 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file.
453 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file.
454 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file.
455 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file.
456 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file.
457 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file.
458 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file.
459 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file.
460 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file.
461 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file.
462 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file.
463 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file.
464 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file.
465 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file.
466 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file.
467 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file.
468 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file.
469 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file.
470 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file.
471 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file.
472 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file.
473 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file.
474 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file.
475 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file.
476 * testsuite/testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file.
477 * testsuite/testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file.
478 * testsuite/testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file.
479 * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file.
480 * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file.
481
482 2019-03-21 Jonathan Wakely <jwakely@redhat.com>
483
484 * include/c_compatibility/math.h [!__STDCPP_WANT_MATH_SPEC_FUNCS__]
485 (assoc_laguerre, assoc_laguerref, assoc_laguerrel, assoc_legendre)
486 (assoc_legendref, assoc_legendrel, beta, betaf, betal, comp_ellint_1)
487 (comp_ellint_1f, comp_ellint_1l, comp_ellint_2, comp_ellint_2f)
488 (comp_ellint_2l, comp_ellint_3, comp_ellint_3f, comp_ellint_3l)
489 (cyl_bessel_i, cyl_bessel_if, cyl_bessel_il, cyl_bessel_j)
490 (cyl_bessel_jf, cyl_bessel_jl, cyl_bessel_k, cyl_bessel_kf)
491 (cyl_bessel_kl, cyl_neumann, cyl_neumannf, cyl_neumannl, ellint_1)
492 (ellint_1f, ellint_1l, ellint_2, ellint_2f, ellint_2l, ellint_3)
493 (ellint_3f, ellint_3l, expint, expintf, expintl, hermite, hermitef)
494 (hermitel, laguerre, laguerref, laguerrel, legendre, legendref)
495 (legendrel, riemann_zeta, riemann_zetaf, riemann_zetal, sph_bessel)
496 (sph_besself, sph_bessell, sph_legendre, sph_legendref, sph_legendrel)
497 (sph_neumann, sph_neumannf, sph_neumannl): Only add using-declarations
498 when the special functions IS is enabled, not for C++17.
499 * testsuite/26_numerics/headers/cmath/functions_global_c++17.cc:
500 Replace with ...
501 * testsuite/26_numerics/headers/cmath/functions_global.cc: New test,
502 without checks for special functions in C++17.
503 * testsuite/26_numerics/headers/cmath/special_functions_global.cc:
504 New test.
505
506 PR libstdc++/88066
507 * include/backward/hash_map: Use <> for includes not "".
508 * include/backward/hash_set: Likewise.
509 * include/backward/strstream: Likewise.
510 * include/tr1/bessel_function.tcc: Likewise.
511 * include/tr1/exp_integral.tcc: Likewise.
512 * include/tr1/legendre_function.tcc: Likewise.
513 * include/tr1/modified_bessel_func.tcc: Likewise.
514 * include/tr1/riemann_zeta.tcc: Likewise.
515
516 2019-03-19 Jonathan Wakely <jwakely@redhat.com>
517
518 * doc/xml/manual/allocator.xml: Link to table documenting evolution
519 of extension allocators.
520 * doc/xml/manual/evolution.xml: Use angle brackets for header names.
521 Document new headers in 7.2, 8.1 and 9.1 releases.
522 * doc/xml/manual/using.xml: Adjust link target for new_allocator.
523 * doc/html/*: Regenerate.
524
525 2019-03-12 John David Anglin <dave.anglin@bell.net>
526
527 PR libstdc++/89461
528 * testsuite/lib/libstdc++.exp: Locate libatomic.
529 * testsuite/lib/dg-options.exp (add_options_for_libatomic): New.
530 * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Add
531 libatomic options.
532 * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
533 * testsuite/experimental/net/timer/waitable/cons.cc: Likewise.
534 * testsuite/experimental/net/timer/waitable/dest.cc: Likewise.
535 * testsuite/experimental/net/timer/waitable/ops.cc: Likewise.
536
537 2019-03-11 Jonathan Wakely <jwakely@redhat.com>
538
539 PR libstdc++/89460
540 * configure.ac: Check for sockatmark.
541 * crossconfig.m4: Check for sockatmark.
542 * config.h.in: Regenerate.
543 * configure: Regenerate.
544 * include/experimental/internet (address_v4::_S_hton): Rename
545 overloaded functions to _S_hton_16 and _S_ntoh_16.
546 (address_v4::_S_ntoh): Rename to _S_ntoh_16 and _S_ntoh_32.
547 (basic_endpoint): Adjust calls to _S_hton and _S_ntoh.
548 * include/experimental/socket (basic_socket::at_mark): Check
549 _GLIBCXX_HAVE_SOCKATMARK.
550
551 * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc: Use
552 const variables instead of macros.
553
554 PR libstdc++/89629
555 * libsupc++/hash_bytes.cc [__SIZEOF_SIZE_T__ == 8] (_Hash_bytes):
556 Use correct type for len_aligned.
557 * testsuite/20_util/hash/89629.cc: New test.
558
559 2019-03-11 Jakub Jelinek <jakub@redhat.com>
560
561 PR libstdc++/89641
562 * include/std/atomic (atomic<T>::store, atomic<T>::load,
563 atomic<T>::exchange, atomic<T>::compare_exchange_weak,
564 atomic<T>::compare_exchange_strong): Cast __m or __s and __f to int.
565 * include/bits/atomic_base.h (__atomic_base<T>::operator++,
566 __atomic_base<T>::operator--, __atomic_base<T>::operator+=,
567 __atomic_base<T>::operator-=, __atomic_base<T>::operator&=,
568 __atomic_base<T>::operator|=, __atomic_base<T>::operator^=,
569 __atomic_base<T*>::operator++, __atomic_base<T*>::operator--,
570 __atomic_base<T*>::operator+=, __atomic_base<T*>::operator-=): Cast
571 memory_order_seq_cst to int.
572
573 2019-03-08 Jonathan Wakely <jwakely@redhat.com>
574
575 * doc/xml/manual/using.xml: Use link element instead of xref.
576 * doc/html/*: Regenerate.
577
578 * include/bits/fs_path.h (path::format): Add fixed underlying type.
579
580 2019-03-08 François Dumont <fdumont@gcc.gnu.org>
581
582 PR libstdc++/89477
583 * include/debug/map.h (map): Use _RequireNotAllocator to constrain
584 parameters in deduction guides.
585 * include/debug/multimap.h (multimap): Likewise.
586 * include/debug/set.h (multimap): Likewise.
587 * include/debug/multiset.h (multimap): Likewise.
588 * include/debug/unordered_map (unordered_map): Likewise.
589 (unordered_multimap): Likewise.
590 * include/debug/unordered_set (unordered_set): Likewise.
591 (unordered_multiset): Likewise.
592
593 PR libstdc++/89608
594 * include/debug/unordered_map (unordered_map<>::_M_check_rehashed):
595 Invalidate all iterators in case of rehash.
596 (unordered_multimap<>::_M_check_rehashed): Likewise.
597 * include/debug/unordered_set
598 (unordered_set<>::_M_check_rehashed): Likewise.
599 (unordered_multiset<>::_M_check_rehashed): Likewise.
600 * testsuite/23_containers/unordered_set/debug/89608_neg.cc: New.
601
602 2019-03-07 Andreas Schwab <schwab@suse.de>
603
604 * config/abi/post/riscv64-linux-gnu: New directory.
605 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: New file.
606
607 2019-03-07 Jonathan Wakely <jwakely@redhat.com>
608
609 * testsuite/20_util/function_objects/bind_front/1.cc: Change from
610 compile test to run. Fix typo.
611
612 * doc/xml/manual/status_cxx2020.xml: Update C++20 status.
613 * doc/html/*: Regenerate.
614
615 P0356R5 Simplified partial function application
616 * include/std/functional [C++20] (_Bind_front, _Bind_front_t): Define
617 helpers for bind_front.
618 (bind_front, __cpp_lib_bind_front): Define.
619 * testsuite/20_util/function_objects/bind_front/1.cc: New test.
620
621 2019-03-06 Jonathan Wakely <jwakely@redhat.com>
622
623 * include/std/type_traits (__cpp_lib_bounded_array_traits): Define.
624 * include/std/version (__cpp_lib_bounded_array_traits): Likewise.
625 * testsuite/20_util/is_bounded_array/value.cc: Check for macro.
626 * testsuite/20_util/is_unbounded_array/value.cc: Likewise.
627
628 2019-03-06 Edward Smith-Rowland <3dw4rd@verizon.net>
629
630 PR libstdc++/86655 - std::assoc_legendre should not constrain
631 the value of m (or x).
632 * include/tr1/legendre_function.tcc (__assoc_legendre_p,
633 __sph_legendre): If degree > order Don't throw, return 0.
634 (__legendre_p, __assoc_legendre_p): Don't constrain x either.
635 * testsuite/special_functions/02_assoc_legendre/pr86655.cc: New test.
636 * testsuite/special_functions/20_sph_legendre/pr86655.cc: New test.
637 * testsuite/tr1/5_numerical_facilities/special_functions/
638 02_assoc_legendre/pr86655.cc: New test.
639 * testsuite/tr1/5_numerical_facilities/special_functions/
640 22_sph_legendre/pr86655.cc: New test.
641
642 2019-03-06 Ville Voutilainen <ville.voutilainen@gmail.com>
643
644 Rewrite variant.
645 Also PR libstdc++/85517
646 * include/std/variant (__do_visit): New.
647 (__variant_cast): Likewise.
648 (__variant_cookie): Likewise.
649 (__erased_*): Remove.
650 (_Variant_storage::_S_vtable): Likewise.
651 (_Variant_storage::__M_reset_impl): Adjust to use __do_visit.
652 (_Variant_storage::__M_reset): Adjust.
653 (__variant_construct): New.
654 (_Copy_ctor_base(const _Copy_ctor_base&)): Adjust to use
655 __variant_construct.
656 (_Move_ctor_base(_Move_ctor_base&&)): Likewise.
657 (_Move_ctor_base::__M_destructive_copy): New.
658 (_Move_ctor_base::__M_destructive_move): Adjust to use
659 __variant_construct.
660 (_Copy_assign_base::operator=): Adjust to use __do_visit.
661 (_Copy_assign_alias): Adjust to check both copy assignment
662 and copy construction for triviality.
663 (_Move_assign_base::operator=): Adjust to use __do_visit.
664 (_Multi_array): Add support for visitors that accept and return
665 a __variant_cookie.
666 (__gen_vtable_impl::_S_apply_all_alts): Likewise.
667 (__gen_vtable_impl::_S_apply_single_alt): Likewise.
668 (__gen_vtable_impl::__element_by_index_or_cookie): New. Generate
669 a __variant_cookie temporary for a variant that is valueless and..
670 (__gen_vtable_impl::__visit_invoke): ..adjust here.
671 (__gen_vtable::_Array_type): Conditionally make space for
672 the __variant_cookie visitor case.
673 (__variant_construct_by_index): New.
674 (get_if): Adjust to use std::addressof.
675 (relops): Adjust to use __do_visit.
676 (variant): Add __variant_cast and __variant_construct_by_index
677 as friends.
678 (variant::emplace): Use _M_reset() and __variant_construct_by_index
679 instead of self-destruction.
680 (variant::swap): Adjust to use __do_visit.
681 (visit): Reimplement in terms of __do_visit.
682 (__variant_hash_call_base_impl::operator()): Adjust to use __do_visit.
683 * testsuite/20_util/variant/compile.cc: Adjust.
684 * testsuite/20_util/variant/run.cc: Likewise.
685
686 2019-03-06 Jonathan Wakely <jwakely@redhat.com>
687
688 * include/bits/c++config.h (_cpp_lib_char8_t): Add L suffix to
689 constant.
690 * testsuite/experimental/feat-char8_t.cc: Likewise.
691
692 * include/std/type_traits [C++20] (is_bounded_array)
693 (is_unbounded_array, is_bounded_array_v, is_unbounded_array_v):
694 Define.
695 * testsuite/20_util/is_bounded_array/requirements/
696 explicit_instantiation.cc: New test.
697 * testsuite/20_util/is_bounded_array/requirements/typedefs.cc: New
698 test.
699 * testsuite/20_util/is_bounded_array/value.cc: New test.
700 * testsuite/20_util/is_unbounded_array/requirements/
701 explicit_instantiation.cc: New test.
702 * testsuite/20_util/is_unbounded_array/requirements/typedefs.cc: New
703 * test.
704 * testsuite/20_util/is_unbounded_array/value.cc: New test.
705
706 * include/bits/ptr_traits.h [C++20] (pointer_traits<T*>::pointer_to):
707 Add constexpr.
708 * testsuite/20_util/pointer_traits/pointer_to_constexpr.cc: New test.
709
710 2019-03-05 Jonathan Wakely <jwakely@redhat.com>
711
712 * include/c_compatibility/math.h [C++20] (lerp): Add using
713 declaration.
714 * include/c_global/cmath [C++20] (__cpp_lib_interpolate): Define.
715 (__lerp): Define function template to implement lerp.
716 (lerp(float, float, float), lerp(double, double, double))
717 (lerp(long double, long double, long double)): Define for C++20.
718 * include/std/numeric [C++20] (__cpp_lib_interpolate): Define.
719 (midpoint(T, T), midpoint(T*, T*)): Define.
720 * include/std::version [C++20] (__cpp_lib_interpolate): Define.
721 * testsuite/26_numerics/lerp.cc: New test.
722 * testsuite/26_numerics/midpoint/floating.cc: New test.
723 * testsuite/26_numerics/midpoint/integral.cc: New test.
724 * testsuite/26_numerics/midpoint/pointer.cc: New test.
725
726 2019-03-04 Edward Smith-Rowland <3dw4rd@verizon.net>
727
728 PR libstdc++/88996 Implement P0439R0
729 Make std::memory_order a scoped enumeration.
730 * include/bits/atomic_base.h: For C++20 make memory_order a scoped enum,
731 add variables for the old enumerators. Adjust calls.
732 * testsuite/29_atomics/headers/atomic/types_std_c++2a.cc: New test.
733 * testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc: New test.
734
735 2019-03-04 Jonathan Wakely <jwakely@redhat.com>
736
737 * testsuite/26_numerics/bit/bitops.rot/rotl.cc: Remove bogus dg-do
738 directive.
739
740 * include/std/memory_resource (polymorphic_allocator): Add default
741 template argument for C++20.
742 (polymorphic_allocator::allocate_bytes)
743 (polymorphic_allocator::deallocate_bytes)
744 (polymorphic_allocator::allocate_object)
745 (polymorphic_allocator::deallocate_object)
746 (polymorphic_allocator::new_object)
747 (polymorphic_allocator::delete_object): New member functions for
748 C++20.
749 * testsuite/20_util/polymorphic_allocator/allocate_object.cc: New
750 test.
751
752 2019-03-03 Jonathan Wakely <jwakely@redhat.com>
753
754 PR libstdc++/89562
755 * src/filesystem/ops-common.h (do_copy_file): Open files in binary
756 mode for mingw.
757
758 2019-03-01 Jonathan Wakely <jwakely@redhat.com>
759
760 * testsuite/util/testsuite_allocator.h (__gnu_test::memory_resource)
761 [!__cpp_sized_deallocation]: Do not pass size to operator delete.
762
763 * include/std/memory (uses_allocator_construction_args): New set of
764 overloaded functions.
765 (make_obj_using_allocator, uninitialized_construct_using_allocator):
766 New functions.
767 * include/std/memory_resource (polymorphic_allocator::construct)
768 [__cplusplus > 201703l]: Replace all overloads with a single function
769 using uses_allocator_construction_args.
770 * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: New
771 test.
772 * testsuite/20_util/uses_allocator/make_obj.cc: New test.
773
774 2019-02-27 Jonathan Wakely <jwakely@redhat.com>
775
776 PR libstdc++/89466
777 * acinclude.m4 (GLIBCXX_CONFIGURE_DOCBOOK): Reorder check for local
778 stylesheet directories before check for xsltproc. Try to use
779 xmlcatalog to find local stylesheet directory before trying hardcoded
780 paths. Add path used by suse to hardcoded paths. Adjust xsltproc
781 check to look for the same stylesheet as doc/Makefile.am uses. Don't
782 use xsltproc if xmlcatalog fails to find a local stylesheet.
783 * configure.ac: Check for xmlcatalog.
784 * Makefile.in: Regenerate.
785 * configure: Likewise.
786 * doc/Makefile.in: Likewise.
787 * include/Makefile.in: Likewise.
788 * libsupc++/Makefile.in: Likewise.
789 * po/Makefile.in: Likewise.
790 * python/Makefile.in: Likewise.
791 * src/Makefile.in: Likewise.
792 * src/c++11/Makefile.in: Likewise.
793 * src/c++17/Makefile.in: Likewise.
794 * src/c++98/Makefile.in: Likewise.
795 * src/filesystem/Makefile.in: Likewise.
796 * testsuite/Makefile.in: Likewise.
797
798 2019-02-26 Jonathan Wakely <jwakely@redhat.com>
799
800 PR libstdc++/89477
801 * include/bits/alloc_traits.h (_RequireNotAllocator): New helper for
802 container deduction guides.
803 * include/bits/hashtable.h (_RequireNotAllocatorOrIntegral): Likewise.
804 * include/bits/stl_map.h (map): Use _RequireNotAllocator to constrain
805 parameters in deduction guides.
806 * include/bits/stl_multimap.h (multimap): Likewise.
807 * include/bits/stl_multiset.h (multiset): Likewise.
808 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
809 * include/bits/stl_set.h (set): Likewise.
810 * include/bits/stl_stack.h (stack): Likewise.
811 * include/bits/unordered_map.h (unordered_map, unordered_multimap):
812 use _RequireNotAllocator and _RequireNotAllocatorOrIntegral to
813 constrain parameters in deduction guides.
814 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
815 Likewise.
816 * testsuite/23_containers/map/cons/deduction.cc: Test additional
817 deduction cases.
818 * testsuite/23_containers/multiset/cons/deduction.cc: Likewise.
819 * testsuite/23_containers/set/cons/deduction.cc: Likewise.
820 * testsuite/23_containers/unordered_map/cons/deduction.cc: Likewise.
821 * testsuite/23_containers/unordered_multimap/cons/deduction.cc:
822 Likewise.
823 * testsuite/23_containers/unordered_multiset/cons/deduction.cc:
824 Likewise.
825 * testsuite/23_containers/unordered_set/cons/deduction.cc: Likewise.
826
827 PR libstdc++/89416
828 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Change
829 to class template and partial specialization using void_t.
830 (__is_copy_insertable, __is_move_insertable): Adjust base class.
831
832 2019-02-24 Jonathan Wakely <jwakely@redhat.com>
833
834 PR libstdc++/89416
835 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Make
836 copy and move members public.
837
838 2019-02-23 Jonathan Wakely <jwakely@redhat.com>
839
840 * include/std/type_traits (__underlying_type_impl): New helper to
841 make underlying_type SFINAE-friendly.
842 (underlying_type): Derive from __underlying_type_impl.
843 * testsuite/20_util/underlying_type/requirements/typedefs-3.cc: New
844 test.
845
846 PR libstdc++/89446
847 * include/bits/char_traits.h (__constant_char_array): Check index is
848 in range before dereferencing.
849 (char_traits<char>::compare, char_traits<char>::find)
850 (char_traits<char8_t>::compare, char_traits<char8_t>::find): Return
851 immediately if n is zero.
852 (char_traits<wchar_t>::compare, char_traits<wchar_t>::find): Likewise.
853 Remove workarounds for PR 67026.
854 * testsuite/21_strings/basic_string_view/operators/char/89446.cc:
855 New test.
856 * testsuite/21_strings/basic_string_view/operators/wchar_t/89446.cc:
857 New test.
858
859 2019-02-22 Eric Botcazou <ebotcazou@adacore.com>
860
861 * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: Adjust.
862 * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: Likewise.
863
864 2019-02-22 Jakub Jelinek <jakub@redhat.com>
865
866 PR libstdc++/89402
867 * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Change return
868 type to std::size_t and argument to type to long double.
869
870 2019-02-22 Eric Botcazou <ebotcazou@adacore.com>
871
872 * configure.host (abi_baseline_pair): Adjust for SPARC64/Linux.
873 * config/abi/post/sparc64-linux-gnu: New directory.
874 * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: New file.
875 * config/abi/post/sparc64-linux-gnu/32: New directory.
876 * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: New file.
877
878 2019-02-21 Jonathan Wakely <jwakely@redhat.com>
879
880 * testsuite/29_atomics/headers/atomic/types_std_c++20.cc: New test.
881 * testsuite/29_atomics/headers/atomic/types_std_c++20_neg.cc: New
882 test.
883
884 2019-02-22 Tom Honermann <tom@honermann.net>
885
886 * python/libstdcxx/v6/printers.py (register_type_printers): Add type
887 printers for u8string and u8string_view.
888
889 2019-02-22 Tom Honermann <tom@honermann.net>
890
891 * testsuite/18_support/byte/ops.cc: Validate
892 std::to_integer<char8_t>, std::to_integer<char16_t>, and
893 std::to_integer<char32_t>.
894 * testsuite/18_support/numeric_limits/dr559.cc: Validate
895 std::numeric_limits<char8_t>.
896 * testsuite/18_support/numeric_limits/lowest.cc: Validate
897 std::numeric_limits<char8_t>::lowest().
898 * testsuite/18_support/numeric_limits/max_digits10.cc: Validate
899 std::numeric_limits<char8_t>::max_digits10.
900 * testsuite/18_support/type_info/fundamental.cc: Validate
901 typeinfo for char8_t.
902 * testsuite/20_util/from_chars/1_c++20_neg.cc: New test, validating
903 std::from_chars with char8_t.
904 * testsuite/20_util/hash/requirements/explicit_instantiation.cc:
905 Validate explicit instantiation of std::hash<char8_t>.
906 * testsuite/20_util/is_integral/value.cc: Validate
907 std::is_integral<char8_t>.
908 * testsuite/20_util/make_signed/requirements/typedefs-4.cc:
909 Validate std::make_signed<char8_t>.
910 * testsuite/21_strings/basic_string/cons/char/deduction.cc:
911 Validate u8string construction from char8_t sources.
912 * testsuite/21_strings/basic_string/types/pmr_typedefs.cc: Validate
913 std::pmr::u8string.
914 * testsuite/21_strings/basic_string_view/operations/compare/
915 char/70483.cc: Validate substr operations on u8string_view.
916 * testsuite/21_strings/basic_string_view/typedefs.cc: Validate that
917 the u8string_view typedef is defined.
918 * testsuite/21_strings/char_traits/requirements/
919 constexpr_functions.cc: Validate char_traits<char8_t> constexpr
920 member functions.
921 * testsuite/21_strings/char_traits/requirements/
922 constexpr_functions_c++17.cc: Validate char_traits<char8_t> C++17
923 constexpr member functions.
924 * testsuite/21_strings/headers/string/types_std_c++0x.cc: Validate
925 that the u8string typedef is defined.
926 * testsuite/22_locale/locale/cons/unicode.cc: Validate the presence
927 of the std::codecvt<char16_t, char8_t, std::mbstate_t> and
928 std::codecvt<char32_t, char8_t, std::mbstate_t> facets.
929 * testsuite/29_atomics/atomic/cons/assign_neg.cc: Update line
930 numbers.
931 * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise.
932 * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc:
933 Likewise.
934 * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise.
935 * testsuite/29_atomics/atomic_integral/is_always_lock_free.cc:
936 Validate std::atomic<char8_t>::is_always_lock_free
937 * testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc:
938 Update line numbers.
939 * testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc:
940 Likewise.
941 * testsuite/29_atomics/atomic_integral/operators/increment_neg.cc:
942 Likewise.
943 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc:
944 Validate std::experimental::pmr::u8string.
945 * testsuite/experimental/string_view/typedefs.cc: Validate that the
946 u8string_view typedef is defined.
947 * testsuite/util/testsuite_common_types.h: Add char8_t, char16_t and
948 char32_t to the typelists.
949
950 2019-02-22 Tom Honermann <tom@honermann.net>
951
952 * include/ext/typelist.h: Constrain a partial specialization of
953 typelist::detail::append_ to only match chain<T1,T2>.
954
955 2019-02-21 Jonathan Wakely <jwakely@redhat.com>
956
957 PR libstdc++/89416
958 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Replace
959 class template with class. Replace move and copy member types with
960 member alias templates, so they are only instantiated when needed.
961 (__is_copy_insertable, __is_move_insertable): Adjust base class.
962 * testsuite/23_containers/vector/modifiers/push_back/89130.cc: Enable
963 test for C++11/14/17 as well.
964 * testsuite/23_containers/vector/modifiers/push_back/89416.cc: New
965 test.
966
967 2019-02-20 Jakub Jelinek <jakub@redhat.com>
968
969 PR libstdc++/89402
970 * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Add
971 _GLIBCXX_PURE to the alias declaration.
972
973 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
974
975 * testsuite/21_strings/basic_string/literals/types.cc
976 [_GLIBCXX_USE_CHAR8_T]: Adjust expected string type for u8 literal.
977 * testsuite/21_strings/basic_string/literals/values.cc
978 [_GLIBCXX_USE_CHAR8_T]: Likewise.
979 * testsuite/22_locale/codecvt/char16_t.cc: Adjust for u8 literals
980 potentially having different type.
981 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
982 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: Cast u8 literal
983 to char.
984 * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: Likewise.
985 * testsuite/22_locale/codecvt/utf8.cc: Likewise.
986 * testsuite/22_locale/conversions/string/2.cc: Remove u8 prefix from
987 string literals only using basic character set.
988 * testsuite/22_locale/conversions/string/3.cc: Likewise. Cast other
989 u8 literals to char.
990 * testsuite/29_atomics/headers/atomic/macros.cc [_GLIBCXX_USE_CHAR8_T]:
991 Test ATOMIC_CHAR8_T_LOCK_FREE.
992 Add missing #error to ATOMIC_CHAR16_T_LOCK_FREE test.
993 * testsuite/29_atomics/headers/atomic/types_std_c++0x.cc
994 [_GLIBCXX_USE_CHAR8_T]: Check for std::atomic_char8_t.
995 * testsuite/experimental/string_view/literals/types.cc
996 [_GLIBCXX_USE_CHAR8_T]: Adjust expected string_view type for u8
997 literal.
998 * testsuite/experimental/string_view/literals/values.cc
999 [_GLIBCXX_USE_CHAR8_T]: Likewise.
1000
1001 2019-02-19 Tom Honermann <tom@honermann.net>
1002
1003 * testsuite/18_support/numeric_limits/char8_t.cc: New test cloned
1004 from char16_32_t.cc; validates numeric_limits<char8_t>.
1005 * testsuite/21_strings/basic_string/literals/types-char8_t.cc: New
1006 test cloned from types.cc; validates operator""s for char8_t
1007 returns u8string.
1008 * testsuite/21_strings/basic_string/literals/values-char8_t.cc: New
1009 test cloned from values.cc; validates construction and comparison
1010 of u8string values.
1011 * testsuite/21_strings/basic_string/requirements/
1012 /explicit_instantiation/char8_t/1.cc: New test cloned from
1013 char16_t/1.cc; validates explicit instantiation of
1014 basic_string<char8_t>.
1015 * testsuite/21_strings/basic_string_view/literals/types-char8_t.cc:
1016 New test cloned from types.cc; validates operator""sv for char8_t
1017 returns u8string_view.
1018 * testsuite/21_strings/basic_string_view/literals/
1019 values-char8_t.cc: New test cloned from values.cc; validates
1020 construction and comparison of u8string_view values.
1021 * testsuite/21_strings/basic_string_view/requirements/
1022 explicit_instantiation/char8_t/1.cc: New test cloned from
1023 char16_t/1.cc; validates explicit instantiation of
1024 basic_string_view<char8_t>.
1025 * testsuite/21_strings/char_traits/requirements/char8_t/65049.cc:
1026 New test cloned from char16_t/65049.cc; validates that
1027 char_traits<char8_t> is not vulnerable to the concerns in PR65049.
1028 * testsuite/21_strings/char_traits/requirements/char8_t/
1029 typedefs.cc: New test cloned from char16_t/typedefs.cc; validates
1030 that char_traits<char8_t> member typedefs are present and correct.
1031 * testsuite/21_strings/char_traits/requirements/
1032 explicit_instantiation/char8_t/1.cc: New test cloned from
1033 char16_t/1.cc; validates explicit instantiation of
1034 char_traits<char8_t>.
1035 * testsuite/22_locale/codecvt/char16_t-char8_t.cc: New test cloned
1036 from char16_t.cc: validates
1037 codecvt<char16_t, char8_t, mbstate_t>.
1038 * testsuite/22_locale/codecvt/char32_t-char8_t.cc: New test cloned
1039 from char32_t.cc: validates
1040 codecvt<char32_t, char8_t, mbstate_t>.
1041 * testsuite/22_locale/codecvt/utf8-char8_t.cc: New test cloned from
1042 utf8.cc; validates codecvt<char16_t, char8_t, std::mbstate_t> and
1043 codecvt<char32_t, char8_t, std::mbstate_t>.
1044 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: New
1045 test cloned from string.cc; validates filesystem::path construction
1046 from char8_t input.
1047 * testsuite/experimental/feat-char8_t.cc: New test; validates that
1048 the __cpp_lib_char8_t feature test macro is defined with the
1049 correct value.
1050 * testsuite/experimental/filesystem/path/native/string-char8_t.cc:
1051 New test cloned from string.cc; validates filesystem::path
1052 construction from char8_t input.
1053 * testsuite/experimental/string_view/literals/types-char8_t.cc: New
1054 test cloned from types.cc; validates operator""sv for char8_t
1055 returns u8string_view.
1056 * testsuite/experimental/string_view/literals/values-char8_t.cc:
1057 New test cloned from values.cc; validates construction and
1058 comparison of u8string_view values.
1059 * testsuite/experimental/string_view/requirements/
1060 explicit_instantiation/char8_t/1.cc: New test cloned from
1061 char16_t/1.cc; validates explicit instantiation of
1062 basic_string_view<char8_t>.
1063 * testsuite/ext/char8_t/atomic-1.cc: New test; validates that
1064 ATOMIC_CHAR8_T_LOCK_FREE is not defined if char8_t support is not
1065 enabled.
1066
1067 2019-02-19 Tom Honermann <tom@honermann.net>
1068
1069 P0482R5 char8_t: Standard library support
1070 * config/abi/pre/gnu-versioned-namespace.ver (CXXABI_2.0): Add
1071 typeinfo symbols for char8_t.
1072 * config/abi/pre/gnu.ver: Add CXXABI_1.3.12.
1073 (GLIBCXX_3.4.26): Add symbols for specializations of
1074 numeric_limits and codecvt that involve char8_t.
1075 (CXXABI_1.3.12): Add typeinfo symbols for char8_t.
1076 * include/bits/atomic_base.h: Add atomic_char8_t.
1077 * include/bits/basic_string.h: Add std::hash<u8string> and
1078 operator""s(const char8_t*, size_t).
1079 * include/bits/c++config: Define _GLIBCXX_USE_CHAR8_T and
1080 __cpp_lib_char8_t.
1081 * include/bits/char_traits.h: Add char_traits<char8_t>.
1082 * include/bits/codecvt.h: Add
1083 codecvt<char16_t, char8_t, mbstate_t>,
1084 codecvt<char32_t, char8_t, mbstate_t>,
1085 codecvt_byname<char16_t, char8_t, mbstate_t>, and
1086 codecvt_byname<char32_t, char8_t, mbstate_t>.
1087 * include/bits/cpp_type_traits.h: Add __is_integer<char8_t> to
1088 recognize char8_t as an integral type.
1089 * include/bits/fs_path.h: (path::__is_encoded_char): Recognize
1090 char8_t.
1091 (path::u8string): Return std::u8string when char8_t support is
1092 enabled.
1093 (path::generic_u8string): Likewise.
1094 (path::_S_convert): Handle conversion from char8_t input.
1095 (path::_S_str_convert): Likewise.
1096 * include/bits/functional_hash.h: Add hash<char8_t>.
1097 * include/bits/locale_conv.h (__str_codecvt_out): Add overloads for
1098 char8_t.
1099 * include/bits/locale_facets.h (_GLIBCXX_NUM_UNICODE_FACETS): Bump
1100 for new char8_t specializations.
1101 * include/bits/localefwd.h: Add missing declarations of
1102 codecvt<char16_t, char, mbstate_t> and
1103 codecvt<char32_t, char, mbstate_t>. Add char8_t declarations
1104 codecvt<char16_t, char8_t, mbstate_t> and
1105 codecvt<char32_t, char8_t, mbstate_t>.
1106 * include/bits/postypes.h: Add u8streampos
1107 * include/bits/stringfwd.h: Add declarations of
1108 char_traits<char8_t> and u8string.
1109 * include/c_global/cstddef: Add __byte_operand<char8_t>.
1110 * include/experimental/bits/fs_path.h (path::__is_encoded_char):
1111 Recognize char8_t.
1112 (path::u8string): Return std::u8string when char8_t support is
1113 enabled.
1114 (path::generic_u8string): Likewise.
1115 (path::_S_convert): Handle conversion from char8_t input.
1116 (path::_S_str_convert): Likewise.
1117 * include/experimental/string: Add u8string.
1118 * include/experimental/string_view: Add u8string_view,
1119 hash<experimental::u8string_view>, and
1120 operator""sv(const char8_t*, size_t).
1121 * include/std/atomic: Add atomic<char8_t> and atomic_char8_t.
1122 * include/std/charconv (__is_int_to_chars_type): Recognize char8_t
1123 as a character type.
1124 * include/std/limits: Add numeric_limits<char8_t>.
1125 * include/std/string_view: Add u8string_view,
1126 hash<experimental::u8string_view>, and
1127 operator""sv(const char8_t*, size_t).
1128 * include/std/type_traits: Add __is_integral_helper<char8_t>,
1129 __make_unsigned<char8_t>, and __make_signed<char8_t>.
1130 * libsupc++/atomic_lockfree_defines.h: Define
1131 ATOMIC_CHAR8_T_LOCK_FREE.
1132 * src/c++11/Makefile.am: Compile with -fchar8_t when compiling
1133 codecvt.cc and limits.cc so that char8_t specializations of
1134 numeric_limits and codecvt and emitted.
1135 * src/c++11/Makefile.in: Likewise.
1136 * src/c++11/codecvt.cc: Define members of
1137 codecvt<char16_t, char8_t, mbstate_t>,
1138 codecvt<char32_t, char8_t, mbstate_t>,
1139 codecvt_byname<char16_t, char8_t, mbstate_t>, and
1140 codecvt_byname<char32_t, char8_t, mbstate_t>.
1141 * src/c++11/limits.cc: Define members of
1142 numeric_limits<char8_t>.
1143 * src/c++98/Makefile.am: Compile with -fchar8_t when compiling
1144 locale_init.cc and localename.cc.
1145 * src/c++98/Makefile.in: Likewise.
1146 * src/c++98/locale_init.cc: Add initialization for the
1147 codecvt<char16_t, char8_t, mbstate_t> and
1148 codecvt<char32_t, char8_t, mbstate_t> facets.
1149 * src/c++98/localename.cc: Likewise.
1150 * testsuite/util/testsuite_abi.cc: Validate ABI bump.
1151
1152 2019-02-18 Wilco Dijkstra <wdijkstr@arm.com>
1153
1154 * 27_io/filesystem/operations/all.cc: Add dg-require-filesystem-ts.
1155 * 27_io/filesystem/operations/resize_file.cc: Likewise.
1156 * 27_io/filesystem/path/generation/normal2.cc: Likewise.
1157
1158 2019-02-14 Jonathan Wakely <jwakely@redhat.com>
1159
1160 * doc/xml/manual/status_cxx2020.xml: Update P0887R1 status.
1161 * doc/html/*: Regenerate.
1162
1163 * doc/xml/manual/status_cxx2017.xml: Add P0063R3 to status table.
1164 * doc/html/*: Regenerate.
1165
1166 * doc/xml/manual/intro.xml: Document LWG 2586 status.
1167 * include/bits/uses_allocator.h (__uses_alloc): Use const lvalue
1168 allocator type in is_constructible checks.
1169 * testsuite/20_util/scoped_allocator/69293_neg.cc: Adjust dg-error.
1170 * testsuite/20_util/scoped_allocator/dr2586.cc: New test.
1171 * testsuite/20_util/tuple/cons/allocators.cc: Add test using
1172 problematic type from LWG 2586 discussion.
1173 * testsuite/20_util/uses_allocator/69293_neg.cc: Adjust dg-error.
1174 * testsuite/20_util/uses_allocator/cons_neg.cc: Likewise.
1175
1176 * configure.ac: Check for C11 timespec_get function.
1177 * crossconfig.m4 (freebsd, linux, gnu, cygwin, solaris, netbsd)
1178 (openbsd): Likewise
1179 * config.h.in: Regenerate.
1180 * configure: Regenerate.
1181 * include/c_global/ctime (timespec, timespec_get): Add to namespace
1182 std for C++17 and up.
1183
1184 * doc/xml/manual/intro.xml: Document LWG 2537 status.
1185 * include/bits/stl_queue.h
1186 (priority_queue(const Compare&, const Container&, const Alloc&))
1187 (priority_queue(const Compare&, Container&&, const Alloc&)): Call
1188 make_heap.
1189 * testsuite/23_containers/priority_queue/dr2537.cc: New test.
1190
1191 * doc/xml/manual/intro.xml: Document LWG 2566 status.
1192 * include/bits/stl_queue.h (queue, priority_queue): Add static
1193 assertions to enforce LWG 2566 requirement on value_type.
1194 * include/bits/stl_stack.h (stack): Likewise.
1195
1196 PR middle-end/89303
1197 * testsuite/20_util/enable_shared_from_this/89303.cc: New test.
1198
1199 * doc/xml/manual/intro.xml: Document LWG 2735 status.
1200 * include/bits/std_abs.h: Add comment about LWG 2735.
1201 * testsuite/26_numerics/headers/cstdlib/dr2735.cc: New test.
1202
1203 2019-02-13 Jonathan Wakely <jwakely@redhat.com>
1204
1205 PR libstdc++/89345
1206 * include/std/version [__cpp_impl_destroying_delete]
1207 (__cpp_lib_destroying_delete): Only define for C++2a and later.
1208 * libsupc++/new [__cpp_impl_destroying_delete]
1209 (__cpp_lib_destroying_delete): Likewise.
1210 (destroying_delete_t, destroying_delete): Likewise, but define even
1211 when __cpp_impl_destroying_delete is not defined.
1212 * testsuite/18_support/destroying_delete.cc: New test.
1213
1214 2019-02-11 Jonathan Wakely <jwakely@redhat.com>
1215
1216 PR libstdc++/89023
1217 * testsuite/17_intro/headers/c++2011/parallel_mode.cc: New test.
1218 * testsuite/17_intro/headers/c++2014/parallel_mode.cc: New test.
1219 * testsuite/17_intro/headers/c++2017/parallel_mode.cc: New test.
1220 * testsuite/28_regex/headers/regex/parallel_mode.cc: Remove.
1221
1222 2019-02-09 Jonathan Wakely <jwakely@redhat.com>
1223
1224 PR libstdc++/71044
1225 * include/bits/fs_path.h (path::has_root_name)
1226 (path::has_root_directory, path::has_root_path)
1227 (path::has_relative_path, path::has_parent_path)
1228 (path::has_filename, path::has_stem, path::has_extension)
1229 (path::is_absolute, path::is_relative, path::_M_find_extension): Add
1230 noexcept.
1231 * src/c++17/fs_path.cc (path::has_root_name)
1232 (path::has_root_directory, path::has_root_path)
1233 (path::has_relative_path, path::has_parent_path)
1234 (path::has_filename, path::_M_find_extension): Add noexcept.
1235
1236 2019-02-06 Jonathan Wakely <jwakely@redhat.com>
1237
1238 PR libstdc++/89102 (partial)
1239 * include/std/type_traits (common_type<>): Define.
1240 (common_type<T>): Derive from common_type<T, T>.
1241 * testsuite/20_util/common_type/requirements/explicit_instantiation.cc:
1242 Test zero-length template argument list.
1243 * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc:
1244 Test additional single argument cases.
1245 * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc:
1246 Adjust expected error.
1247
1248 2019-02-05 Jonathan Wakely <jwakely@redhat.com>
1249
1250 PR libstdc++/89128
1251 * include/bits/stl_queue.h (queue, priority_queue): Add deduction
1252 guides.
1253 * include/bits/stl_stack.h (stack): Likewise.
1254 * testsuite/23_containers/priority_queue/deduction.cc: New test.
1255 * testsuite/23_containers/queue/deduction.cc: New test.
1256 * testsuite/23_containers/stack/deduction.cc: New test.
1257
1258 PR libstdc++/89194
1259 * include/std/type_traits (__is_convertible_helper)
1260 (__is_convertible_helper<_From, _To, false>): Revert changes to
1261 support is_nothrow_convertible.
1262 (__is_nt_convertible_helper): New helper.
1263 (is_nothrow_convertible): Use __is_nt_convertible_helper.
1264
1265 * testsuite/23_containers/vector/modifiers/push_back/49836.cc: Restore
1266 use of CopyConsOnlyType, but also test DelAnyAssign for completeness.
1267
1268 PR libstdc++/89130
1269 * include/bits/alloc_traits.h (__is_copy_insertable_impl): Rename to
1270 __is_alloc_insertable_impl. Replace single type member with two
1271 members, one for each of copy and move insertable.
1272 (__is_move_insertable): New trait for internal use.
1273 * include/bits/stl_vector.h (vector::_S_nothrow_relocate(true_type))
1274 (vector::_S_nothrow_relocate(true_type)): New functions to
1275 conditionally check if __relocate_a can throw.
1276 (vector::_S_use_relocate()): Dispatch to _S_nothrow_relocate based
1277 on __is_move_insertable.
1278 (vector::_S_do_relocate): New overloaded functions to conditionally
1279 call __relocate_a.
1280 (vector::_S_relocate): New function that dispatches to _S_do_relocate
1281 based on _S_use_relocate.
1282 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
1283 (vector::_M_default_append): Call _S_relocate instead of __relocate_a.
1284 * testsuite/23_containers/vector/modifiers/push_back/89130.cc: New.
1285
1286 PR libstdc++/89090
1287 * include/bits/stl_uninitialized.h (__relocate_a_1): Make unused
1288 parameter unnamed. Add message to static assertion.
1289 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
1290 (vector::_M_default_append): Use _GLIBCXX17_CONSTEXPR for if constexpr
1291 in C++11 code.
1292
1293 2019-02-05 Marc Glisse <marc.glisse@inria.fr>
1294
1295 PR libstdc++/87106
1296 * include/bits/stl_uninitialized.h (__is_trivially_relocatable):
1297 Rename...
1298 (__is_bitwise_relocatable): ... to this.
1299 (__relocate_a_1): Adapt.
1300 * include/bits/stl_deque.h (__is_trivially_relocatable): Rename...
1301 (__is_bitwise_relocatable): ... to this.
1302
1303 2019-01-30 Jonathan Wakely <jwakely@redhat.com>
1304
1305 PR libstdc++/89117
1306 * src/c++17/fs_path.cc (path::replace_extension): Erase extension from
1307 final component as well as from _M_pathname. Append the dot using
1308 operator+= instead of only to _M_pathname.
1309 (path::_M_find_extension): Reformat slightly.
1310 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
1311 Add more test cases.
1312
1313 2019-01-30 Ulrich Drepper <drepper@redhat.com>
1314
1315 * doc/xml/manual/status_cxx2020.xml: Update P0600 entry.
1316
1317 2019-01-29 Jonathan Wakely <jwakely@redhat.com>
1318
1319 * testsuite/26_numerics/headers/complex/synopsis.cc: Remove incorrect
1320 constexpr specifiers from arg and proj.
1321
1322 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add missing exports for
1323 __shared_ptr instantiations used by gcc4-compatible ABI.
1324
1325 * include/experimental/forward_list (experimental::erase): Qualify
1326 call to erase_if.
1327 * include/experimental/list (experimental::erase): Likewise.
1328 * include/std/forward_list (std::erase): Likewise.
1329 * include/std/list (std::erase): Likewise.
1330
1331 * testsuite/20_util/reference_wrapper/result_type.cc: Disable for
1332 C++2a.
1333 * testsuite/20_util/reference_wrapper/typedefs-2.cc: Likewise.
1334 * testsuite/20_util/reference_wrapper/typedefs-3.cc: Likewise.
1335 * testsuite/20_util/reference_wrapper/typedefs.cc: Likewise.
1336 * testsuite/30_threads/async/54297.cc: Suppress nodiscard warning.
1337 * testsuite/ext/array_allocator/26875.cc: Likewise.
1338 * testsuite/ext/pool_allocator/allocate_chunk.cc: Likewise.
1339 * testsuite/util/replacement_memory_operators.h: Likewise.
1340 * testsuite/util/testsuite_allocator.h: Likewise.
1341
1342 * include/std/memory_resource (__pool_resource::_M_unpooled): Use
1343 normal mode vector, even for debug mode.
1344 * include/std/vector [_GLIBCXX_DEBUG] (_GLIBCXX_STD_C::pmr::vector):
1345 Define alias template for normal mode vector.
1346
1347 2019-01-28 Jonathan Wakely <jwakely@redhat.com>
1348
1349 PR libstdc++/68737
1350 * config/locale/generic/c_locale.h (__convert_from_v)
1351 [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
1352 * config/os/hpux/os_defines.h: Define _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
1353 * include/bits/locale_facets.tcc (num_put::_M_insert_float)
1354 [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
1355
1356 2019-01-24 Jonathan Wakely <jwakely@redhat.com>
1357
1358 PR libstdc++/88840
1359 * include/bits/stl_vector.h (vector::__use_relocate): Replace static
1360 data member with static member function _S_use_relocate().
1361 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
1362 (vector::_M_default_append): Use _S_use_relocate() instead of
1363 __use_relocate.
1364
1365 * testsuite/27_io/filesystem/path/compare/strings.cc: Only compare
1366 sign of results.
1367
1368 2019-01-22 Jonathan Wakely <jwakely@redhat.com>
1369
1370 PR libstdc++/88740
1371 * testsuite/util/testsuite_hooks.h [stderr] (VERIFY): Use fprintf to
1372 write to stderr instead of using printf.
1373
1374 2019-01-21 Jakub Jelinek <jakub@redhat.com>
1375
1376 PR libstdc++/86590
1377 * include/bits/char_traits.h (__constant_string_p,
1378 __constant_char_array_p): Use __builtin_is_constant_evaluated if
1379 available.
1380
1381 2019-01-20 Ulrich Drepper <drepper@redhat.com>
1382
1383 Implement C++20 P0600r1.
1384 * include/backward/hash_map: Add nodiscard attribute to empty.
1385 * include/backward/hash_set: Likewise.
1386 * backward/hashtable.h: Likewise.
1387 * include/bits/basic_string.h: Likewise.
1388 * include/bits/forward_list.h: Likewise.
1389 * include/bits/hashtable.h: Likewise.
1390 * include/bits/regex.h: Likewise.
1391 * include/bits/stl_deque.h: Likewise.
1392 * include/bits/stl_list.h: Likewise.
1393 * include/bits/stl_map.h: Likewise.
1394 * include/bits/stl_multimap.h: Likewise.
1395 * include/bits/stl_multiset.h: Likewise.
1396 * include/bits/stl_queue.h: Likewise.
1397 * include/bits/stl_set.h: Likewise.
1398 * include/bits/stl_stack.h: Likewise.
1399 * include/bits/stl_tree.h: Likewise.
1400 * include/bits/stl_vector.h: Likewise.
1401 * include/bits/unordered_map.h: Likewise.
1402 * include/bits/unordered_set.h: Likewise.
1403 * include/debug/array: Likewise.
1404 * include/experimental/any: Likewise.
1405 * include/experimental/bits/fs_path.h: Likewise.
1406 * include/experimental/internet: Likewise.
1407 * include/experimental/string_view: Likewise.
1408 * include/ext/pb_ds/detail/bin_search_tree_/info_fn_imps.hpp:
1409 Likewise.
1410 * include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp:
1411 Likewise.
1412 * include/ext/pb_ds/detail/binary_heap_/info_fn_imps.hpp:
1413 Likewise.
1414 * include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp:
1415 Likewise.
1416 * include/ext/pb_ds/detail/cc_hash_table_map_/info_fn_imps.hpp:
1417 Likewise.
1418 * include/ext/pb_ds/detail/cc_hash_table_map_/size_fn_imps.hpp:
1419 Likewise.
1420 * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp:
1421 Likewise.
1422 * include/ext/pb_ds/detail/gp_hash_table_map_/info_fn_imps.hpp:
1423 Likewise.
1424 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
1425 info_fn_imps.hpp: Likewise.
1426 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
1427 left_child_next_sibling_heap_.hpp: Likewise.
1428 * include/ext/pb_ds/detail/list_update_map_/info_fn_imps.hpp:
1429 Likewise.
1430 * include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp:
1431 Likewise.
1432 * include/ext/pb_ds/detail/ov_tree_map_/info_fn_imps.hpp:
1433 Likewise.
1434 * include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hp:
1435 Likewise.
1436 * include/ext/pb_ds/detail/pat_trie_/info_fn_imps.hpp:
1437 Likewise.
1438 * include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp:
1439 Likewise.
1440 * include/ext/pb_ds/detail/rc_binomial_heap_/rc.hpp:
1441 Likewise.
1442 * include/ext/pb_ds/detail/tree_trace_base.hpp: Likewise.
1443 * include/ext/pb_ds/trie_policy.hpp: Likewise.
1444 * include/ext/rope: Likewise.
1445 * include/ext/slist: Likewise.
1446 * include/ext/vstring.h: Likewise.
1447 * include/profile/array: Likewise.
1448 * include/std/array: Likewise.
1449 * include/tr1/array: Likewise.
1450 * include/tr1/hashtable.h: Likewise.
1451 * include/tr1/regex: Likewise.
1452 * include/tr2/dynamic_bitset: Likewise.
1453 * include/bits/alloc_traits.h: Add nodiscard attribute to
1454 allocate.
1455 * include/experimental/memory_resource: Likewise.
1456 * include/ext/alloc_traits.h: Likewise.
1457 * include/ext/array_allocator.h: Likewise.
1458 * include/ext/bitmap_allocator.h: Likewise.
1459 * include/ext/debug_allocator.h: Likewise.
1460 * include/ext/extptr_allocator.h: Likewise.
1461 * include/ext/mt_allocator.h: Likewise.
1462 * include/ext/new_allocator.h: Likewise.
1463 * include/ext/pool_allocator.h: Likewise.
1464 * include/ext/throw_allocator.h: Likewise.
1465 * include/std/scoped_allocator: Likewise.
1466 * libsupc++/eh_alloc.cc: Likewise.
1467 * include/std/future: Add nodiscard attribute to async.
1468 * libsupc++/new: Add nodiscard attribute to new.
1469
1470 2019-01-18 Jonathan Wakely <jwakely@redhat.com>
1471
1472 PR libstdc++/87514
1473 PR libstdc++/87520
1474 PR libstdc++/88782
1475 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export new symbol.
1476 * include/bits/shared_ptr.h
1477 (shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...))
1478 (allocate_shared): Change to use new tag type.
1479 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_eq):
1480 Declare new member function.
1481 (_Sp_alloc_shared_tag): Define new type.
1482 (_Sp_counted_ptr_inplace): Declare __shared_count<_Lp> as a friend.
1483 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Use
1484 _Sp_make_shared_tag::_S_eq to check type_info.
1485 (__shared_count(Ptr, Deleter),__shared_count(Ptr, Deleter, Alloc)):
1486 Constrain to prevent being called with _Sp_alloc_shared_tag.
1487 (__shared_count(_Sp_make_shared_tag, const _Alloc&, Args&&...)):
1488 Replace constructor with ...
1489 (__shared_count(Tp*&, _Sp_alloc_shared_tag<_Alloc>, Args&&...)): Use
1490 reference parameter so address of the new object can be returned to
1491 the caller. Obtain the allocator from the tag type.
1492 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Replace
1493 constructor with ...
1494 (__shared_ptr(_Sp_alloc_shared_tag<Alloc>, Args&&...)): Pass _M_ptr
1495 to the __shared_count constructor.
1496 (__allocate_shared): Change to use new tag type.
1497 * src/c++11/shared_ptr.cc (_Sp_make_shared_tag::_S_eq): Define.
1498
1499 2019-01-17 Jonathan Wakely <jwakely@redhat.com>
1500
1501 * src/c++17/fs_ops.cc
1502 (equivalent(const path&, const path&, error_code&))
1503 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use GetFileInformationByHandle to
1504 compare files instead of relying on incomplete info returned by stat.
1505
1506 PR libstdc++/88884
1507 * src/c++17/fs_ops.cc (absolute(const path&, error_code&)): Do nothing
1508 if the path is already absolute.
1509 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize root-directory.
1510 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Pass error_code to current_path.
1511
1512 PR libstdc++/88881
1513 * src/c++17/fs_ops.cc (canonical(const path&, error_code&))
1514 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize path, to match behaviour
1515 of filesystem::exists.
1516 (create_directories(const path&, error_code&)): Add assertions.
1517 (status(const path&, error_code&)) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]:
1518 Add workaround for bug in _wstat for paths with trailing slash.
1519 * testsuite/27_io/filesystem/operations/create_directories.cc: Adjust
1520 for expected behaviour on mingw.
1521 * testsuite/experimental/filesystem/operations/create_directories.cc:
1522 Likewise.
1523 * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Use
1524 "TMP" instead of "TMPDIR" and clean environment before each test. Do
1525 not test permissions on mingw targets.
1526
1527 2019-01-16 Jonathan Wakely <jwakely@redhat.com>
1528
1529 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add exports for fstream
1530 constructors and open members taking wide strings. Fix patterns for
1531 filesystem::path members to match wstring_view parameters. Add
1532 exports for shared_ptr members used by directory iterators.
1533 * src/c++17/fs_ops.cc (remove(const path&, error_code&)): Clear the
1534 error code parameter if the file doesn't exist.
1535 * src/filesystem/ops.cc (remove(const path&, error_code&)):
1536 Likewise.
1537 * testsuite/27_io/filesystem/operations/canonical.cc: Fix expected
1538 values for mingw targets, where "/" is not an absolute path. Do not
1539 test symlinks on mingw targets.
1540 * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
1541 * testsuite/27_io/filesystem/operations/copy.cc: Do not test symlinks
1542 on mingw targets.
1543 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
1544 * testsuite/27_io/filesystem/operations/create_directories.cc: Check
1545 that each component of the path is created.
1546 * testsuite/experimental/filesystem/operations/create_directories.cc:
1547 Likewise.
1548 * testsuite/27_io/filesystem/operations/exists.cc: Do not test
1549 permissions on mingw targets.
1550 * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
1551 * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
1552 * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
1553 * testsuite/27_io/filesystem/operations/permissions.cc: XFAIL for
1554 mingw targets.
1555 * testsuite/experimental/filesystem/operations/permissions.cc:
1556 Likewise.
1557 * testsuite/27_io/filesystem/operations/remove.cc: Do not test
1558 symlinks or permissions on mingw targets.
1559 * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
1560 * testsuite/27_io/filesystem/operations/remove_all.cc: Do not test
1561 symlinks on mingw targets.
1562 * testsuite/experimental/filesystem/operations/remove_all.cc:
1563 Likewise.
1564 * testsuite/27_io/filesystem/operations/status.cc: Do not test
1565 permissions on mingw targets.
1566 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Do not
1567 test symlinks on mingw targets.
1568 * testsuite/experimental/filesystem/operations/space.cc: Fix test
1569 for mingw targets.
1570
1571 2019-02-14 Ulrich Drepper <drepper@redhat.com>
1572
1573 PR libstdc++/88738
1574 Warn about unused comparisons of shared_ptr/unique_ptr
1575 * include/bits/c++config [_GLIBCXX_NODISCARD]: Define.
1576 * include/bits/shared_ptr.h: Use it for operator ==, !=,
1577 <, <=, >, >= for shared_ptr.
1578 * include/bits/unique_ptr.h: Likewise for unique_ptr.
1579
1580 2019-01-15 Jonathan Wakely <jwakely@redhat.com>
1581
1582 * include/bits/shared_ptr_base.h (__cpp_lib_shared_ptr_arrays): Define
1583 as 201611L, because P0497R0 changes are supported.
1584 * include/std/version (__cpp_lib_shared_ptr_arrays): Likewise.
1585
1586 * include/bits/erase_if.h [__cplusplus > 201703L]
1587 (__cpp_lib_erase_if): Only define for C++2a.
1588 * include/std/iterator [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
1589 (__cpp_lib_null_iterators): Define.
1590 * include/std/version [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
1591 (__cpp_lib_null_iterators): Define.
1592 [__cpp_impl_destroying_delete] (__cpp_lib_destroying_delete): Define.
1593
1594 * doc/xml/manual/status_cxx2017.xml: Document P0032R3 and P0307R2
1595 status.
1596 * include/bits/stl_uninitialized.h (__cpp_lib_raw_memory_algorithms):
1597 Define.
1598 * include/std/any (__cpp_lib_any): Define as 201606L, because P0032R3
1599 changes are supported.
1600 * include/std/optional (__cpp_lib_optional): Likewise.
1601 * include/std/variant (__cpp_lib_variant): Likewise.
1602 * include/std/version [!__STRICT_ANSI__]
1603 (__cpp_lib_uncaught_exceptions): Define as long integer.
1604 [__cplusplus >= 201703L] (__cpp_lib_any)
1605 (__cpp_lib_raw_memory_algorithms, __cpp_lib_uncaught_exceptions)
1606 (__cpp_lib_variant): Define for C++17.
1607 [__cplusplus >= 201703L] (__cpp_lib_optional): Update value and define
1608 as long integer.
1609 * libsupc++/exception (__cpp_lib_uncaught_exceptions): Define as long
1610 integer.
1611
1612 * doc/xml/manual/status_cxx2020.xml: Update P1123R0 status.
1613
1614 2019-01-12 Jonathan Wakely <jwakely@redhat.com>
1615
1616 PR libstdc++/88811
1617 PR libstdc++/83306
1618 * src/filesystem/path.cc: Fix typo. If first path is empty, show []
1619 before second path.
1620 * testsuite/experimental/filesystem/filesystem_error/cons.cc: New
1621 test.
1622
1623 2019-01-11 Jonathan Wakely <jwakely@redhat.com>
1624
1625 * doc/xml/manual/intro.xml: Include new section.
1626 * doc/xml/manual/status_cxx2017.xml: Document more
1627 implementation-defined properties of the library.
1628 * doc/xml/manual/status_cxx2020.xml: Document C++2a status.
1629 * doc/html/*: Regenerate.
1630
1631 * include/bits/refwrap.h [__cplusplus > 201703L]
1632 (_Refwrap_base_arg1, _Refwrap_base_arg2, _Reference_wrapper_base)
1633 (_Reference_wrapper_base_memfun): Do not define for C++2a.
1634 (reference_wrapper): Do not derive from _Reference_wrapper_base_memfun
1635 for C++2a.
1636 (reference_wrapper::operator()): Add static assertion.
1637 * testsuite/20_util/reference_wrapper/incomplete.cc: New test.
1638
1639 * include/std/chrono (duration_values::zero(), duration_values::min())
1640 (duration_values::max()): Add noexcept.
1641 (duration::zero(), duration::min(), duration::max()): Likewise.
1642 (time_point::zero(), time_point::min(), time_point::max()): Likewise.
1643 * testsuite/20_util/duration/requirements/noexcept.cc: New test.
1644 * testsuite/20_util/time_point/requirements/noexcept.cc: New test.
1645
1646 * include/std/version (__cpp_lib_erase_if): Move to C++20 group.
1647
1648 2019-01-11 Jakub Jelinek <jakub@redhat.com>
1649
1650 * include/std/type_traits (__cpp_lib_is_constant_evaluated): Define.
1651 * include/std/version (__cpp_lib_is_constant_evaluated): Define.
1652
1653 2019-01-11 Jonathan Wakely <jwakely@redhat.com>
1654
1655 PR libstdc++/88802
1656 * include/bits/functional_hash.h (hash<nullptr_t>): Define
1657 specialization for C++17 (P0513R0, LWG 2817).
1658 * testsuite/20_util/hash/nullptr.cc: New test.
1659
1660 PR libstdc++/88125
1661 * config/abi/pre/gnu.ver (GLIBCXX_3.4.6): Remove unused duplicate
1662 pattern for std::basic_stringbuf::str().
1663
1664 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Correct recent changes to
1665 basic_ostream::operator<< patterns.
1666
1667 2019-01-10 Jonathan Wakely <jwakely@redhat.com>
1668
1669 * testsuite/27_io/filesystem/operations/last_write_time.cc: Fix
1670 test failures on targets with 32-bit time_t.
1671
1672 * include/bits/erase_if.h: Define __cpp_lib_erase_if.
1673 * include/std/deque: Likewise.
1674 * include/std/forward_list: Likewise.
1675 * include/std/list: Likewise.
1676 * include/std/string: Likewise.
1677 * include/std/vector: Likewise.
1678 * include/std/version: Likewise.
1679 * testsuite/21_strings/basic_string/erasure.cc: Test macro.
1680 * testsuite/23_containers/deque/erasure.cc: Likewise.
1681 * testsuite/23_containers/forward_list/erasure.cc: Likewise.
1682 * testsuite/23_containers/list/erasure.cc: Likewise.
1683 * testsuite/23_containers/map/erasure.cc: Likewise.
1684 * testsuite/23_containers/set/erasure.cc: Likewise.
1685 * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
1686 * testsuite/23_containers/unordered_set/erasure.cc: Likewise.
1687 * testsuite/23_containers/vector/erasure.cc: Likewise.
1688
1689 * include/experimental/internet [AI_NUMERICSERV]
1690 (resolver_base::numeric_service): Define conditionally.
1691 * testsuite/experimental/net/internet/resolver/base.cc: Test it
1692 conditionally.
1693 * testsuite/experimental/net/internet/resolver/ops/lookup.cc:
1694 Likewise.
1695
1696 2019-01-10 Ville Voutilainen <ville.voutilainen@gmail.com>
1697 Jonathan Wakely <jwakely@redhat.com>
1698
1699 Implement LWG 2221
1700 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten patterns.
1701 (GLIBCXX_3.4.26): Add new exports.
1702 * include/Makefile.am: Add ostream-inst.cc. Move string-inst.cc to
1703 correct list of sources.
1704 * include/Makefile.in: Regenerate.
1705 * include/std/ostream (operator<<(nullptr_t)): New member function.
1706 * src/c++17/ostream-inst.cc: New file.
1707 * testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc: New
1708 test.
1709
1710 2019-01-10 Jonathan Wakely <jwakely@redhat.com>
1711
1712 * testsuite/util/testsuite_fs.h (nonexistent_path): Include name
1713 of the source file containing the caller.
1714 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Remove
1715 directories created by test.
1716 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
1717 Likewise.
1718 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
1719 Likewise.
1720 * testsuite/experimental/filesystem/iterators/
1721 recursive_directory_iterator.cc: Likewise.
1722
1723 2019-01-10 Jakub Jelinek <jakub@redhat.com>
1724
1725 PR tree-optimization/88775
1726 * include/bits/stl_function.h (greater<_Tp*>::operator(),
1727 less<_Tp*>::operator(), greater_equal<_Tp*>::operator(),
1728 less_equal<_Tp*>::operator()): Use __builtin_is_constant_evaluated
1729 instead of __builtin_constant_p if available. Don't bother with
1730 the pointer comparison in C++11 and earlier.
1731
1732 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
1733
1734 PR other/16615
1735
1736 * include/ext/bitmap_allocator.h: Mechanically replace "can not"
1737 with "cannot".
1738
1739 2019-01-09 Jonathan Wakely <jwakely@redhat.com>
1740
1741 * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix expected output
1742 for filesystem::path. Give variables more distinctive names.
1743
1744 * include/std/optional (_Optional_payload_base::_M_copy_assign): New
1745 member function to perform non-trivial assignment.
1746 (_Optional_payload_base::_M_move_assign): Likewise.
1747 (_Optional_payload<T, true, false, true>::operator=)
1748 (_Optional_payload<T, true, true, false>::operator=)
1749 (_Optional_payload<T, true, false, false>::operator=): Call
1750 _M_copy_assign and/or _M_move_assign to do non-trivial assignments.
1751
1752 PR libstdc++/88204
1753 * testsuite/26_numerics/complex/operators/more_constexpr.cc: Do not
1754 test std::complex<long double> if long double format is IBM128.
1755 * testsuite/26_numerics/complex/requirements/more_constexpr.cc:
1756 Likewise.
1757
1758 2019-01-08 Jonathan Wakely <jwakely@redhat.com>
1759
1760 * testsuite/libstdc++-prettyprinters/compat.cc: Test printer support
1761 for old std::unique_ptr layout.
1762 * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix std::variant test
1763 to become valueless. Add filesystem::path tests.
1764
1765 PR libstdc++/87855
1766 * include/std/optional (_Optional_payload_base): New class template
1767 for common code hoisted from _Optional_payload specializations. Use
1768 a template for the union, to allow a partial specialization for
1769 types with non-trivial destructors. Add constructors for in-place
1770 initialization to the union.
1771 (_Optional_payload(bool, const _Optional_payload&)): Use _M_construct
1772 to perform non-trivial copy construction, instead of relying on
1773 non-standard copy elision in a delegating constructor.
1774 (_Optional_payload(bool, _Optional_payload&&)): Likewise for
1775 non-trivial move construction.
1776 (_Optional_payload): Derive from _Optional_payload_base and use it
1777 for everything except the non-trivial assignment operators, which are
1778 defined as needed.
1779 (_Optional_payload<false, C, M>): Derive from the specialization
1780 _Optional_payload<true, false, false> and add a destructor.
1781 (_Optional_base_impl::_M_destruct, _Optional_base_impl::_M_reset):
1782 Forward to corresponding members of _Optional_payload.
1783 (_Optional_base_impl::_M_is_engaged, _Optional_base_impl::_M_get):
1784 Hoist common members from _Optional_base.
1785 (_Optional_base): Make all members and base class public.
1786 (_Optional_base::_M_get, _Optional_base::_M_is_engaged): Move to
1787 _Optional_base_impl.
1788 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Add
1789 support for new std::optional layout.
1790 * testsuite/libstdc++-prettyprinters/compat.cc: New test.
1791
1792 PR libstdc++/88066
1793 * include/bits/locale_conv.h: Use <> for includes not "".
1794 * include/ext/random: Likewise.
1795 * include/ext/vstring.h: Likewise.
1796
1797 2019-01-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1798
1799 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten existing patterns.
1800 (GLIBCXX_3.4.21): Likewise.
1801
1802 2019-01-08 Jonathan Wakely <jwakely@redhat.com>
1803
1804 PR libstdc++/88749
1805 * src/filesystem/ops.cc (last_write_time): Fix preprocessor condition
1806 to match the one that controls whether utimbuf and utime are declared.
1807
1808 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
1809
1810 PR libstdc++/87787
1811 * include/bits/char_traits.h (char_traits::move): Do not pass null
1812 pointers to memmove.
1813 * include/bits/locale_facets.h
1814 (ctype<char>::widen(const char*, const char*, char*)): Do not
1815 pass null pointers to memcpy.
1816 (ctype<char>::narrow(const char*, const char*, char, char*)):
1817 Likewise.
1818 (ctype<char>::do_widen(const char*, const char*, char*)):
1819 Likewise.
1820 (ctype<char>::do_narrow(const char*, const char*, char, char*)):
1821 Likewise.
1822
1823 * doc/xml/manual/spine.xml: Update copyright years.
1824 * doc/xml/manual/status_cxx2017.xml: Adjust note about -lstdc++fs.
1825 * doc/xml/manual/using.xml: Remove requirement to link with -lstdc++fs
1826 for C++17 filesystem library.
1827 * doc/html/*: Regenerate.
1828
1829 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for truncate.
1830 * config.h.in: Regenerate.
1831 * config/abi/pre/gnu.ver: Order patterns for filesystem operations
1832 alphabetically and add missing entries for copy_symlink,
1833 hard_link_count, rename, and resize_file.
1834 * configure: Regenerate.
1835 * src/c++17/fs_ops.cc (resize_file): Remove #if so posix::truncate is
1836 used unconditionally.
1837 * src/filesystem/ops-common.h (__gnu_posix::truncate)
1838 [!_GLIBCXX_HAVE_TRUNCATE]: Provide fallback definition that only
1839 supports truncating to zero length.
1840 * testsuite/27_io/filesystem/operations/all.cc: New test.
1841 * testsuite/27_io/filesystem/operations/resize_file.cc: New test.
1842
1843 2019-01-06 Jonathan Wakely <jwakely@redhat.com>
1844
1845 PR libstdc++/86756
1846 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for utime and
1847 lstat and define _GLIBCXX_USE_UTIME and _GLIBCXX_USE_LSTAT.
1848 * config.h.in: Regenerate.
1849 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export symbols for
1850 remaining std::filesystem types and functions.
1851 * configure: Regenerate.
1852 * src/c++17/Makefile.am: Add C++17 filesystem sources.
1853 * src/c++17/Makefile.in: Regenerate.
1854 * src/c++17/cow-fs_dir.cc: Move src/filesystem/cow-std-dir.cc to
1855 here, and change name of included file.
1856 * src/c++17/cow-fs_ops.cc: Move src/filesystem/cow-std-ops.cc to
1857 here, and change name of included file.
1858 * src/c++17/fs_dir.cc: Move src/filesystem/std-dir.cc to here. Change
1859 path to dir-common.h.
1860 * src/c++17/fs_ops.cc: Move src/filesystem/std-ops.cc to here. Change
1861 path to ops-common.h. Disable -Wunused-parameter warnings.
1862 (internal_file_clock): Define unconditionally.
1863 [!_GLIBCXX_HAVE_SYS_STAT_H] (internal_file_clock::from_stat): Do not
1864 define.
1865 (do_copy_file, do_space): Move definitions to ops.common.h.
1866 (copy, file_size, hard_link_count, last_write_time, space): Only
1867 perform operation when _GLIBCXX_HAVE_SYS_STAT_H is defined, otherwise
1868 report an error.
1869 (last_write_time, read_symlink): Remove unused attributes from
1870 parameters.
1871 * src/filesystem/Makefile.am: Remove C++17 filesystem sources.
1872 * src/filesystem/Makefile.in: Regenerate.
1873 * src/filesystem/cow-std-dir.cc: Move to src/c++17/cow-fs_dir.cc.
1874 * src/filesystem/cow-std-ops.cc: Move to src/c++17/cow-fs_ops.cc.
1875 * src/filesystem/std-dir.cc: Move to src/c++17/fs_dir.cc.
1876 * src/filesystem/std-ops.cc: Move to src/c++17/fs_ops.cc.
1877 * src/filesystem/dir-common.h [!_GLIBCXX_HAVE_DIRENT_H]: Define
1878 dummy types and functions instead of using #error.
1879 * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H]: Use #error.
1880 * src/filesystem/ops-common.h [!_GLIBCXX_USE_LSTAT] (lstat): Define
1881 in terms of stat.
1882 [!_GLIBCXX_HAVE_UNISTD_H]: Define dummy types and functions.
1883 (do_copy_file, do_space): Move definitions here from std-ops.cc.
1884 * src/filesystem/ops.cc: Adjust calls to do_copy_file and do_space
1885 to account for new namespace.
1886 * testsuite/27_io/filesystem/directory_entry/86597.cc: Remove
1887 -lstdc++fs from dg-options.
1888 * testsuite/27_io/filesystem/directory_entry/lwg3171.cc: Likewise.
1889 * testsuite/27_io/filesystem/file_status/1.cc: Likewise.
1890 * testsuite/27_io/filesystem/filesystem_error/cons.cc: Likewise.
1891 * testsuite/27_io/filesystem/filesystem_error/copy.cc: Likewise.
1892 * testsuite/27_io/filesystem/iterators/directory_iterator.cc:
1893 Likewise.
1894 * testsuite/27_io/filesystem/iterators/pop.cc: Likewise.
1895 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
1896 Likewise.
1897 * testsuite/27_io/filesystem/operations/absolute.cc: Likewise.
1898 * testsuite/27_io/filesystem/operations/canonical.cc: Likewise.
1899 * testsuite/27_io/filesystem/operations/copy.cc: Likewise.
1900 * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
1901 * testsuite/27_io/filesystem/operations/create_directories.cc:
1902 Likewise.
1903 * testsuite/27_io/filesystem/operations/create_directory.cc: Likewise.
1904 * testsuite/27_io/filesystem/operations/create_symlink.cc: Likewise.
1905 * testsuite/27_io/filesystem/operations/current_path.cc: Likewise.
1906 * testsuite/27_io/filesystem/operations/equivalent.cc: Likewise.
1907 * testsuite/27_io/filesystem/operations/exists.cc: Likewise.
1908 * testsuite/27_io/filesystem/operations/file_size.cc: Likewise.
1909 * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
1910 * testsuite/27_io/filesystem/operations/last_write_time.cc: Likewise.
1911 * testsuite/27_io/filesystem/operations/permissions.cc: Likewise.
1912 * testsuite/27_io/filesystem/operations/proximate.cc: Likewise.
1913 * testsuite/27_io/filesystem/operations/read_symlink.cc: Likewise.
1914 * testsuite/27_io/filesystem/operations/relative.cc: Likewise.
1915 * testsuite/27_io/filesystem/operations/remove.cc: Likewise.
1916 * testsuite/27_io/filesystem/operations/remove_all.cc: Likewise.
1917 * testsuite/27_io/filesystem/operations/space.cc: Likewise.
1918 * testsuite/27_io/filesystem/operations/status.cc: Likewise.
1919 * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
1920 * testsuite/27_io/filesystem/operations/temp_directory_path.cc:
1921 Likewise.
1922 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Likewise.
1923
1924
1925 PR libstdc++/86756
1926 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Make various patterns for
1927 typeinfo and vtables less greedy.
1928 (GLIBCXX_3.4.26): Export symbols for std::filesystem::path.
1929 * src/c++17/Makefile.am: Add fs_path.cc and cow-fs_path.cc.
1930 * src/c++17/Makefile.in: Regenerate.
1931 * src/c++17/cow-fs_path.cc: Move src/filesystem/cow-std-path.cc to
1932 here, and change name of included file.
1933 * src/c++17/fs_path.cc: Move src/filesystem/std-path.cc to here.
1934 * src/filesystem/Makefile.am: Remove std-path.cc and cow-std-path.cc
1935 from sources.
1936 * src/filesystem/Makefile.in: Regenerate.
1937 * src/filesystem/cow-std-path.cc: Move to src/c++17/cow-fs_path.cc.
1938 * src/filesystem/std-path.cc: Move to src/c++17/fs_path.cc.
1939 * testsuite/27_io/filesystem/path/append/path.cc: Remove -lstdc++fs
1940 from dg-options and remove dg-require-filesystem-ts.
1941 * testsuite/27_io/filesystem/path/append/source.cc: Likewise.
1942 * testsuite/27_io/filesystem/path/assign/assign.cc: Likewise.
1943 * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise.
1944 * testsuite/27_io/filesystem/path/compare/compare.cc: Likewise.
1945 * testsuite/27_io/filesystem/path/compare/lwg2936.cc: Likewise.
1946 * testsuite/27_io/filesystem/path/compare/path.cc: Likewise.
1947 * testsuite/27_io/filesystem/path/compare/strings.cc: Likewise.
1948 * testsuite/27_io/filesystem/path/concat/path.cc: Likewise.
1949 * testsuite/27_io/filesystem/path/concat/strings.cc: Likewise.
1950 * testsuite/27_io/filesystem/path/construct/80762.cc: Likewise.
1951 * testsuite/27_io/filesystem/path/construct/copy.cc: Likewise.
1952 * testsuite/27_io/filesystem/path/construct/default.cc: Likewise.
1953 * testsuite/27_io/filesystem/path/construct/format.cc: Likewise.
1954 * testsuite/27_io/filesystem/path/construct/locale.cc: Likewise.
1955 * testsuite/27_io/filesystem/path/construct/range.cc: Likewise.
1956 * testsuite/27_io/filesystem/path/construct/string_view.cc: Likewise.
1957 * testsuite/27_io/filesystem/path/decompose/extension.cc: Likewise.
1958 * testsuite/27_io/filesystem/path/decompose/filename.cc: Likewise.
1959 * testsuite/27_io/filesystem/path/decompose/parent_path.cc: Likewise.
1960 * testsuite/27_io/filesystem/path/decompose/relative_path.cc: Likewise.
1961 * testsuite/27_io/filesystem/path/decompose/root_directory.cc:
1962 Likewise.
1963 * testsuite/27_io/filesystem/path/decompose/root_name.cc: Likewise.
1964 * testsuite/27_io/filesystem/path/decompose/root_path.cc: Likewise.
1965 * testsuite/27_io/filesystem/path/decompose/stem.cc: Likewise.
1966 * testsuite/27_io/filesystem/path/generation/normal.cc: Likewise.
1967 * testsuite/27_io/filesystem/path/generation/normal2.cc: Likewise.
1968 * testsuite/27_io/filesystem/path/generation/proximate.cc: Likewise.
1969 * testsuite/27_io/filesystem/path/generation/relative.cc: Likewise.
1970 * testsuite/27_io/filesystem/path/generic/generic_string.cc: Likewise.
1971 * testsuite/27_io/filesystem/path/itr/components.cc: Likewise.
1972 * testsuite/27_io/filesystem/path/itr/traversal.cc: Likewise.
1973 * testsuite/27_io/filesystem/path/modifiers/clear.cc: Likewise.
1974 * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc:
1975 Likewise.
1976 * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc:
1977 Likewise.
1978 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
1979 Likewise.
1980 * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc:
1981 Likewise.
1982 * testsuite/27_io/filesystem/path/modifiers/swap.cc: Likewise.
1983 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
1984 * testsuite/27_io/filesystem/path/nonmember/append.cc: Likewise.
1985 * testsuite/27_io/filesystem/path/nonmember/hash_value.cc: Likewise.
1986 * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
1987 * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
1988 * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
1989 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
1990 * testsuite/27_io/filesystem/path/query/has_relative_path.cc: Likewise.
1991 * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
1992 Likewise.
1993 * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
1994 * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
1995 * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
1996 * testsuite/27_io/filesystem/path/query/is_absolute.cc: Likewise.
1997 * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
1998
1999 PR libstdc++/87431
2000 * include/std/variant (_Variant_storage<true, _Types...>::_M_valid):
2001 Check is_trivially_copyable instead of is_scalar.
2002 (variant::emplace<N, Args>(Args&&...)): If construction of the new
2003 contained value can throw and its type is trivially copyable then
2004 construct into a temporary variant and move from it, to provide the
2005 strong exception safety guarantee.
2006 (variant::emplace<N, U, Args>(initializer_list<U>, Args&&...)):
2007 Likewise.
2008 * testsuite/20_util/variant/87431.cc: New test.
2009 * testsuite/20_util/variant/run.cc: Adjust test so that throwing
2010 conversion causes valueless state.
2011
2012 PR libstdc++/88607
2013 * testsuite/17_intro/headers/c++1998/charset.cc: New test.
2014 * testsuite/17_intro/headers/c++2011/charset.cc: New test.
2015 * testsuite/17_intro/headers/c++2014/charset.cc: New test.
2016 * testsuite/17_intro/headers/c++2017/charset.cc: New test.
2017 * testsuite/17_intro/headers/c++2020/charset.cc: New test.
2018
2019 2019-01-05 Jonathan Wakely <jwakely@redhat.com>
2020
2021 * include/bits/fs_fwd.h (__file_clock): Define new clock.
2022 (file_time_type): Redefine in terms of __file_clock.
2023 * src/filesystem/ops-common.h (file_time): Add FIXME comment about
2024 overflow.
2025 * src/filesystem/std-ops.cc (is_set(perm_options, perm_options)): Give
2026 internal linkage.
2027 (internal_file_lock): New helper type for accessing __file_clock.
2028 (do_copy_file): Use internal_file_lock to convert system time to
2029 file_time_type.
2030 (last_write_time(const path&, error_code&)): Likewise.
2031 (last_write_time(const path&, file_time_type, error_code&)): Likewise.
2032
2033 2019-01-04 Jonathan Wakely <jwakely@redhat.com>
2034
2035 * config/abi/pre/gnu.ver (GLIBCXX_3.4.21): Make patterns less greedy
2036 for const member functions of std::basic_string.
2037 (GLIBCXX_3.4.26): Export member functions of std::basic_string added
2038 in C++17.
2039 * include/bits/basic_string.h (basic_string(__sv_wrapper, const A&)):
2040 Make non-standard constructor private.
2041 [!_GLIBCXX_USE_CXX11_ABI] (basic_string(__sv_wrapper, const A&)):
2042 Likewise.
2043 * include/bits/basic_string.tcc (std::string, std::wstring): Declare
2044 explicit instantiations for C++17 as well as earlier dialects.
2045 * src/c++17/Makefile.am: Add new source files.
2046 * src/c++17/Makefile.in: Regenerate.
2047 * src/c++17/cow-string-inst.cc: New file defining explicit
2048 instantiations for basic_string member functions added in C++17.
2049 * src/c++17/string-inst.cc: Likewise.
2050
2051 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export allocator-extended
2052 copy/move constructors for old std::basic_string.
2053 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
2054 (basic_string::reference, basic_string::const_reference): Define
2055 as plain references for C++11 and later.
2056 (basic_string::basic_string()): Put constructor body outside
2057 preprocessor conditional groups.
2058 (basic_string::basic_string(basic_string&&)): Move _Alloc_hider
2059 instead of copying it.
2060 (basic_string::basic_string(const basic_string&, const _Alloc&)):
2061 Define.
2062 (basic_string::basic_string(basic_string&&, const _Alloc&)):
2063 Define.
2064 * include/bits/fs_path.h [!_GLIBCXX_USE_CXX11_ABI]: Remove special
2065 cases for old basic_string.
2066 * testsuite/21_strings/basic_string/cons/char/8.cc: Test
2067 allocator-extended constructors unconditionally. Add extra members to
2068 allocator type when using old string ABI.
2069 * testsuite/21_strings/basic_string/allocator/71964.cc: Enable test
2070 for old string ABI.
2071 * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
2072
2073 * testsuite/23_containers/list/61347.cc: Avoid spurious failure when
2074 -fno-inline added to test flags.
2075
2076 * testsuite/21_strings/basic_string/requirements/
2077 explicit_instantiation/debug.cc: Remove XFAIL for old ABI.
2078
2079 * testsuite/27_io/filesystem/filesystem_error/copy.cc: Fix static
2080 assertion failures with old std::string ABI.
2081
2082 * include/bits/fs_path.h (path::_List::erase): Replace both overloads
2083 with ...
2084 (path::pop_back(), path::_M_erase_from(const_iterator)): New member
2085 functions that will only erase elements at the end.
2086 * src/filesystem/std-path.cc (path::_List::_Impl::pop_back()): Define.
2087 (path::_List::_Impl::_M_erase_from(const_iterator)): Define.
2088 (path::_List::operator=(const _List&)): Use _M_erase_from(p) instead
2089 of erase(p, end()).
2090 (path::_List::pop_back()): Define.
2091 (path::_List::_M_erase_from(const_iterator)): Define.
2092 (path::operator/=(const path&)): Use pop_back to remove last component
2093 and _M_erase_from to remove multiple components.
2094 (path::_M_append(basic_string_view<value_type>)): Likewise.
2095 (path::operator+=(const path&)): Likewise.
2096 (path::_M_concat(basic_string_view<value_type>)): Likewise.
2097 (path::remove_filename()): Likewise.
2098 (path::lexically_normal()): Use _List::_Impl iterators instead of
2099 path::iterator. Use pop_back to remove components from the end. Clear
2100 trailing filename, instead of using erase(const_iterator) to remove
2101 a non-final component.
2102 * testsuite/27_io/filesystem/path/generation/normal.cc: Test
2103 additional cases.
2104 * testsuite/27_io/filesystem/path/generation/normal2.cc: New test.
2105
2106 * src/filesystem/std-path.cc (path::operator+=(const path&)): Fix
2107 incorrect treatment of empty filename after trailing slash.
2108 * testsuite/27_io/filesystem/path/concat/path.cc: Test problem case.
2109
2110 * testsuite/21_strings/basic_string/modifiers/assign/char/
2111 move_assign_optim.cc: Avoid spurious failure when -fno-inline added
2112 to test flags.
2113 * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/
2114 move_assign_optim.cc: Likewise.
2115
2116 2019-01-03 Jonathan Wakely <jwakely@redhat.com>
2117 Jakub Jelinek <jakub@redhat.com>
2118
2119 PR libstdc++/88607
2120 * include/experimental/memory: Replace UTF-8 quote characters.
2121 * include/std/future: Replace UTF-8 "em dash" characters.
2122
2123 2019-01-03 Jonathan Wakely <jwakely@redhat.com>
2124
2125 PR libstdc++/88607
2126 * include/bits/forward_list.h: Replace UTF-8 "ligature fi" character.
2127 * include/debug/forward_list: Likewise.
2128 * include/experimental/bits/shared_ptr.h: Remove UTF-8 "section sign"
2129 character.
2130 * include/experimental/chrono: Likewise.
2131 * include/experimental/functional: Likewise.
2132 * include/experimental/ratio: Likewise.
2133 * include/experimental/system_error: Likewise.
2134 * include/experimental/tuple: Likewise.
2135 * include/experimental/type_traits: Likewise.
2136 * include/parallel/workstealing.h: Replace UTF-8 "en dash" character.
2137 * include/parallel/multiseq_selection.h: Likewise.
2138
2139 PR libstdc++/88681
2140 * config/abi/pre/gnu.ver: Add missing exports.
2141 * testsuite/22_locale/collate_byname/88681.cc: New test.
2142 * testsuite/22_locale/time_get/get/char/88681.cc: New test.
2143 * testsuite/22_locale/time_get/get/wchar_t/88681.cc: New test.
2144
2145 2019-01-02 Jonathan Wakely <jwakely@redhat.com>
2146
2147 * testsuite/23_containers/map/cons/deduction.cc: Test deduction from
2148 initializer_list<value_type> and from input iterator ranges.
2149 * testsuite/23_containers/multimap/cons/deduction.cc: Likewise.
2150
2151 * testsuite/experimental/string_view/element_access/char/empty.cc:
2152 Fix year range in copyright header.
2153
2154 2019-01-02 Joel Brobecker <brobecker@adacore.com>
2155
2156 * testsuite/21_strings/basic_string_view/element_access/char/empty.cc:
2157 Fix year range in copyright header.
2158
2159 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2160
2161 Update copyright years.
2162 \f
2163 Copyright (C) 2019 Free Software Foundation, Inc.
2164
2165 Copying and distribution of this file, with or without modification,
2166 are permitted in any medium without royalty provided the copyright
2167 notice and this notice are preserved.