1 2019-03-22 Jonathan Wakely <jwakely@redhat.com>
3 * doc/xml/manual/backwards_compatibility.xml: Remove link to
4 Doxygen-generated pages with unstable URL.
5 * doc/xml/manual/concurrency_extensions.xml: Likewise.
6 * doc/xml/manual/extensions.xml: Likewise.
7 * doc/xml/manual/parallel_mode.xml: Likewise.
8 * doc/xml/manual/support.xml: Likewise.
10 * include/bits/stl_algobase.h (__lg): Do arithmetic on type int to
11 avoid -Wconversion warnings.
13 2019-03-21 Thomas Rodgers <trodgers@redhat.com>
15 * include/Makefile.am (std_header): Add ${std_srcdir}/execution.
16 (pstl_srcdir, pstl_builddir, pstl_headers): New variables.
17 (allstamped): Add stamp-pstl.
18 (install-headers): Add ptsl_builddir.
19 * include/Makefile.in: Regenerate.
20 * include/bits/c++config: Add pstl configuration.
21 * include/pstl/LICENSE.txt: New file.
22 * include/pstl/algorithm_fwd.h: New file.
23 * include/pstl/algorithm_impl.h: New file.
24 * include/pstl/execution_defs.h: New file.
25 * include/pstl/execution_impl.h: New file.
26 * include/pstl/glue_algorithm_defs.h: New file.
27 * include/pstl/glue_algorithm_impl.h: New file.
28 * include/pstl/glue_execution_defs.h: New file.
29 * include/pstl/glue_memory_defs.h: New file.
30 * include/pstl/glue_memory_impl.h: New file.
31 * include/pstl/glue_numeric_defs.h: New file.
32 * include/pstl/glue_numeric_impl.h: New file.
33 * include/pstl/memory_impl.h: New file.
34 * include/pstl/numeric_fwd.h: New file.
35 * include/pstl/numeric_impl.h: New file.
36 * include/pstl/parallel_backend.h: New file.
37 * include/pstl/parallel_backend_tbb.h: New file.
38 * include/pstl/parallel_backend_utils.h: New file.
39 * include/pstl/parallel_impl.h: New file.
40 * include/pstl/pstl_config.h: New file.
41 * include/pstl/unseq_backend_simd.h: New file.
42 * include/pstl/utils.h: New file.
43 * include/std/algorithm: Include parallel algorithm implementations.
44 * include/std/execution: New file.
45 * include/std/memory: Include parallel algorithm implementations.
46 * include/std/numeric: Include parallel algorithm implementations.
47 * include/std/version: Add parallel algorithms feature test macro.
48 * testsuite/util/pstl/pstl_test_config.h: New file.
49 * testsuite/util/pstl/test_utils.h: New file.
50 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file.
51 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file.
52 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file.
53 * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file.
54 * testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file.
55 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file.
56 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file.
57 * testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file.
58 * testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file.
59 * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file.
60 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file.
61 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file.
62 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file.
63 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file.
64 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file.
65 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file.
66 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file.
67 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file.
68 * testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file.
69 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file.
70 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file.
71 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file.
72 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file.
73 * testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file.
74 * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file.
75 * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file.
76 * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file.
77 * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file.
78 * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file.
79 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file.
80 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file.
81 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file.
82 * testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file.
83 * testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file.
84 * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file.
85 * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file.
86 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file.
87 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file.
88 * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file.
89 * testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file.
90 * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file.
91 * testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file.
92 * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file.
93 * testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file.
94 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file.
95 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file.
96 * testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file.
97 * testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file.
98 * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file.
99 * testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file.
100 * testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file.
101 * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file.
102 * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file.
103 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file.
104 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file.
105 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file.
106 * testsuite/testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file.
107 * testsuite/testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file.
108 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file.
109 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file.
110 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file.
111 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file.
112 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file.
113 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file.
114 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file.
115 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file.
116 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file.
117 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file.
118 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file.
119 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file.
120 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file.
121 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file.
122 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file.
123 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file.
124 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file.
125 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file.
126 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file.
127 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file.
128 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file.
129 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file.
130 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file.
131 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file.
132 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file.
133 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file.
134 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file.
135 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file.
136 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file.
137 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file.
138 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file.
139 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file.
140 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file.
141 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file.
142 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file.
143 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file.
144 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file.
145 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file.
146 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file.
147 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file.
148 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file.
149 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file.
150 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file.
151 * testsuite/testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file.
152 * testsuite/testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file.
153 * testsuite/testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file.
154 * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file.
155 * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file.
157 2019-03-21 Jonathan Wakely <jwakely@redhat.com>
159 * include/c_compatibility/math.h [!__STDCPP_WANT_MATH_SPEC_FUNCS__]
160 (assoc_laguerre, assoc_laguerref, assoc_laguerrel, assoc_legendre)
161 (assoc_legendref, assoc_legendrel, beta, betaf, betal, comp_ellint_1)
162 (comp_ellint_1f, comp_ellint_1l, comp_ellint_2, comp_ellint_2f)
163 (comp_ellint_2l, comp_ellint_3, comp_ellint_3f, comp_ellint_3l)
164 (cyl_bessel_i, cyl_bessel_if, cyl_bessel_il, cyl_bessel_j)
165 (cyl_bessel_jf, cyl_bessel_jl, cyl_bessel_k, cyl_bessel_kf)
166 (cyl_bessel_kl, cyl_neumann, cyl_neumannf, cyl_neumannl, ellint_1)
167 (ellint_1f, ellint_1l, ellint_2, ellint_2f, ellint_2l, ellint_3)
168 (ellint_3f, ellint_3l, expint, expintf, expintl, hermite, hermitef)
169 (hermitel, laguerre, laguerref, laguerrel, legendre, legendref)
170 (legendrel, riemann_zeta, riemann_zetaf, riemann_zetal, sph_bessel)
171 (sph_besself, sph_bessell, sph_legendre, sph_legendref, sph_legendrel)
172 (sph_neumann, sph_neumannf, sph_neumannl): Only add using-declarations
173 when the special functions IS is enabled, not for C++17.
174 * testsuite/26_numerics/headers/cmath/functions_global_c++17.cc:
176 * testsuite/26_numerics/headers/cmath/functions_global.cc: New test,
177 without checks for special functions in C++17.
178 * testsuite/26_numerics/headers/cmath/special_functions_global.cc:
182 * include/backward/hash_map: Use <> for includes not "".
183 * include/backward/hash_set: Likewise.
184 * include/backward/strstream: Likewise.
185 * include/tr1/bessel_function.tcc: Likewise.
186 * include/tr1/exp_integral.tcc: Likewise.
187 * include/tr1/legendre_function.tcc: Likewise.
188 * include/tr1/modified_bessel_func.tcc: Likewise.
189 * include/tr1/riemann_zeta.tcc: Likewise.
191 2019-03-19 Jonathan Wakely <jwakely@redhat.com>
193 * doc/xml/manual/allocator.xml: Link to table documenting evolution
194 of extension allocators.
195 * doc/xml/manual/evolution.xml: Use angle brackets for header names.
196 Document new headers in 7.2, 8.1 and 9.1 releases.
197 * doc/xml/manual/using.xml: Adjust link target for new_allocator.
198 * doc/html/*: Regenerate.
200 2019-03-12 John David Anglin <dave.anglin@bell.net>
203 * testsuite/lib/libstdc++.exp: Locate libatomic.
204 * testsuite/lib/dg-options.exp (add_options_for_libatomic): New.
205 * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Add
207 * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
208 * testsuite/experimental/net/timer/waitable/cons.cc: Likewise.
209 * testsuite/experimental/net/timer/waitable/dest.cc: Likewise.
210 * testsuite/experimental/net/timer/waitable/ops.cc: Likewise.
212 2019-03-11 Jonathan Wakely <jwakely@redhat.com>
215 * configure.ac: Check for sockatmark.
216 * crossconfig.m4: Check for sockatmark.
217 * config.h.in: Regenerate.
218 * configure: Regenerate.
219 * include/experimental/internet (address_v4::_S_hton): Rename
220 overloaded functions to _S_hton_16 and _S_ntoh_16.
221 (address_v4::_S_ntoh): Rename to _S_ntoh_16 and _S_ntoh_32.
222 (basic_endpoint): Adjust calls to _S_hton and _S_ntoh.
223 * include/experimental/socket (basic_socket::at_mark): Check
224 _GLIBCXX_HAVE_SOCKATMARK.
226 * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc: Use
227 const variables instead of macros.
230 * libsupc++/hash_bytes.cc [__SIZEOF_SIZE_T__ == 8] (_Hash_bytes):
231 Use correct type for len_aligned.
232 * testsuite/20_util/hash/89629.cc: New test.
234 2019-03-11 Jakub Jelinek <jakub@redhat.com>
237 * include/std/atomic (atomic<T>::store, atomic<T>::load,
238 atomic<T>::exchange, atomic<T>::compare_exchange_weak,
239 atomic<T>::compare_exchange_strong): Cast __m or __s and __f to int.
240 * include/bits/atomic_base.h (__atomic_base<T>::operator++,
241 __atomic_base<T>::operator--, __atomic_base<T>::operator+=,
242 __atomic_base<T>::operator-=, __atomic_base<T>::operator&=,
243 __atomic_base<T>::operator|=, __atomic_base<T>::operator^=,
244 __atomic_base<T*>::operator++, __atomic_base<T*>::operator--,
245 __atomic_base<T*>::operator+=, __atomic_base<T*>::operator-=): Cast
246 memory_order_seq_cst to int.
248 2019-03-08 Jonathan Wakely <jwakely@redhat.com>
250 * doc/xml/manual/using.xml: Use link element instead of xref.
251 * doc/html/*: Regenerate.
253 * include/bits/fs_path.h (path::format): Add fixed underlying type.
255 2019-03-08 François Dumont <fdumont@gcc.gnu.org>
258 * include/debug/map.h (map): Use _RequireNotAllocator to constrain
259 parameters in deduction guides.
260 * include/debug/multimap.h (multimap): Likewise.
261 * include/debug/set.h (multimap): Likewise.
262 * include/debug/multiset.h (multimap): Likewise.
263 * include/debug/unordered_map (unordered_map): Likewise.
264 (unordered_multimap): Likewise.
265 * include/debug/unordered_set (unordered_set): Likewise.
266 (unordered_multiset): Likewise.
269 * include/debug/unordered_map (unordered_map<>::_M_check_rehashed):
270 Invalidate all iterators in case of rehash.
271 (unordered_multimap<>::_M_check_rehashed): Likewise.
272 * include/debug/unordered_set
273 (unordered_set<>::_M_check_rehashed): Likewise.
274 (unordered_multiset<>::_M_check_rehashed): Likewise.
275 * testsuite/23_containers/unordered_set/debug/89608_neg.cc: New.
277 2019-03-07 Andreas Schwab <schwab@suse.de>
279 * config/abi/post/riscv64-linux-gnu: New directory.
280 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: New file.
282 2019-03-07 Jonathan Wakely <jwakely@redhat.com>
284 * testsuite/20_util/function_objects/bind_front/1.cc: Change from
285 compile test to run. Fix typo.
287 * doc/xml/manual/status_cxx2020.xml: Update C++20 status.
288 * doc/html/*: Regenerate.
290 P0356R5 Simplified partial function application
291 * include/std/functional [C++20] (_Bind_front, _Bind_front_t): Define
292 helpers for bind_front.
293 (bind_front, __cpp_lib_bind_front): Define.
294 * testsuite/20_util/function_objects/bind_front/1.cc: New test.
296 2019-03-06 Jonathan Wakely <jwakely@redhat.com>
298 * include/std/type_traits (__cpp_lib_bounded_array_traits): Define.
299 * include/std/version (__cpp_lib_bounded_array_traits): Likewise.
300 * testsuite/20_util/is_bounded_array/value.cc: Check for macro.
301 * testsuite/20_util/is_unbounded_array/value.cc: Likewise.
303 2019-03-06 Edward Smith-Rowland <3dw4rd@verizon.net>
305 PR libstdc++/86655 - std::assoc_legendre should not constrain
306 the value of m (or x).
307 * include/tr1/legendre_function.tcc (__assoc_legendre_p,
308 __sph_legendre): If degree > order Don't throw, return 0.
309 (__legendre_p, __assoc_legendre_p): Don't constrain x either.
310 * testsuite/special_functions/02_assoc_legendre/pr86655.cc: New test.
311 * testsuite/special_functions/20_sph_legendre/pr86655.cc: New test.
312 * testsuite/tr1/5_numerical_facilities/special_functions/
313 02_assoc_legendre/pr86655.cc: New test.
314 * testsuite/tr1/5_numerical_facilities/special_functions/
315 22_sph_legendre/pr86655.cc: New test.
317 2019-03-06 Ville Voutilainen <ville.voutilainen@gmail.com>
320 Also PR libstdc++/85517
321 * include/std/variant (__do_visit): New.
322 (__variant_cast): Likewise.
323 (__variant_cookie): Likewise.
324 (__erased_*): Remove.
325 (_Variant_storage::_S_vtable): Likewise.
326 (_Variant_storage::__M_reset_impl): Adjust to use __do_visit.
327 (_Variant_storage::__M_reset): Adjust.
328 (__variant_construct): New.
329 (_Copy_ctor_base(const _Copy_ctor_base&)): Adjust to use
331 (_Move_ctor_base(_Move_ctor_base&&)): Likewise.
332 (_Move_ctor_base::__M_destructive_copy): New.
333 (_Move_ctor_base::__M_destructive_move): Adjust to use
335 (_Copy_assign_base::operator=): Adjust to use __do_visit.
336 (_Copy_assign_alias): Adjust to check both copy assignment
337 and copy construction for triviality.
338 (_Move_assign_base::operator=): Adjust to use __do_visit.
339 (_Multi_array): Add support for visitors that accept and return
341 (__gen_vtable_impl::_S_apply_all_alts): Likewise.
342 (__gen_vtable_impl::_S_apply_single_alt): Likewise.
343 (__gen_vtable_impl::__element_by_index_or_cookie): New. Generate
344 a __variant_cookie temporary for a variant that is valueless and..
345 (__gen_vtable_impl::__visit_invoke): ..adjust here.
346 (__gen_vtable::_Array_type): Conditionally make space for
347 the __variant_cookie visitor case.
348 (__variant_construct_by_index): New.
349 (get_if): Adjust to use std::addressof.
350 (relops): Adjust to use __do_visit.
351 (variant): Add __variant_cast and __variant_construct_by_index
353 (variant::emplace): Use _M_reset() and __variant_construct_by_index
354 instead of self-destruction.
355 (variant::swap): Adjust to use __do_visit.
356 (visit): Reimplement in terms of __do_visit.
357 (__variant_hash_call_base_impl::operator()): Adjust to use __do_visit.
358 * testsuite/20_util/variant/compile.cc: Adjust.
359 * testsuite/20_util/variant/run.cc: Likewise.
361 2019-03-06 Jonathan Wakely <jwakely@redhat.com>
363 * include/bits/c++config.h (_cpp_lib_char8_t): Add L suffix to
365 * testsuite/experimental/feat-char8_t.cc: Likewise.
367 * include/std/type_traits [C++20] (is_bounded_array)
368 (is_unbounded_array, is_bounded_array_v, is_unbounded_array_v):
370 * testsuite/20_util/is_bounded_array/requirements/
371 explicit_instantiation.cc: New test.
372 * testsuite/20_util/is_bounded_array/requirements/typedefs.cc: New
374 * testsuite/20_util/is_bounded_array/value.cc: New test.
375 * testsuite/20_util/is_unbounded_array/requirements/
376 explicit_instantiation.cc: New test.
377 * testsuite/20_util/is_unbounded_array/requirements/typedefs.cc: New
379 * testsuite/20_util/is_unbounded_array/value.cc: New test.
381 * include/bits/ptr_traits.h [C++20] (pointer_traits<T*>::pointer_to):
383 * testsuite/20_util/pointer_traits/pointer_to_constexpr.cc: New test.
385 2019-03-05 Jonathan Wakely <jwakely@redhat.com>
387 * include/c_compatibility/math.h [C++20] (lerp): Add using
389 * include/c_global/cmath [C++20] (__cpp_lib_interpolate): Define.
390 (__lerp): Define function template to implement lerp.
391 (lerp(float, float, float), lerp(double, double, double))
392 (lerp(long double, long double, long double)): Define for C++20.
393 * include/std/numeric [C++20] (__cpp_lib_interpolate): Define.
394 (midpoint(T, T), midpoint(T*, T*)): Define.
395 * include/std::version [C++20] (__cpp_lib_interpolate): Define.
396 * testsuite/26_numerics/lerp.cc: New test.
397 * testsuite/26_numerics/midpoint/floating.cc: New test.
398 * testsuite/26_numerics/midpoint/integral.cc: New test.
399 * testsuite/26_numerics/midpoint/pointer.cc: New test.
401 2019-03-04 Edward Smith-Rowland <3dw4rd@verizon.net>
403 PR libstdc++/88996 Implement P0439R0
404 Make std::memory_order a scoped enumeration.
405 * include/bits/atomic_base.h: For C++20 make memory_order a scoped enum,
406 add variables for the old enumerators. Adjust calls.
407 * testsuite/29_atomics/headers/atomic/types_std_c++2a.cc: New test.
408 * testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc: New test.
410 2019-03-04 Jonathan Wakely <jwakely@redhat.com>
412 * testsuite/26_numerics/bit/bitops.rot/rotl.cc: Remove bogus dg-do
415 * include/std/memory_resource (polymorphic_allocator): Add default
416 template argument for C++20.
417 (polymorphic_allocator::allocate_bytes)
418 (polymorphic_allocator::deallocate_bytes)
419 (polymorphic_allocator::allocate_object)
420 (polymorphic_allocator::deallocate_object)
421 (polymorphic_allocator::new_object)
422 (polymorphic_allocator::delete_object): New member functions for
424 * testsuite/20_util/polymorphic_allocator/allocate_object.cc: New
427 2019-03-03 Jonathan Wakely <jwakely@redhat.com>
430 * src/filesystem/ops-common.h (do_copy_file): Open files in binary
433 2019-03-01 Jonathan Wakely <jwakely@redhat.com>
435 * testsuite/util/testsuite_allocator.h (__gnu_test::memory_resource)
436 [!__cpp_sized_deallocation]: Do not pass size to operator delete.
438 * include/std/memory (uses_allocator_construction_args): New set of
439 overloaded functions.
440 (make_obj_using_allocator, uninitialized_construct_using_allocator):
442 * include/std/memory_resource (polymorphic_allocator::construct)
443 [__cplusplus > 201703l]: Replace all overloads with a single function
444 using uses_allocator_construction_args.
445 * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: New
447 * testsuite/20_util/uses_allocator/make_obj.cc: New test.
449 2019-02-27 Jonathan Wakely <jwakely@redhat.com>
452 * acinclude.m4 (GLIBCXX_CONFIGURE_DOCBOOK): Reorder check for local
453 stylesheet directories before check for xsltproc. Try to use
454 xmlcatalog to find local stylesheet directory before trying hardcoded
455 paths. Add path used by suse to hardcoded paths. Adjust xsltproc
456 check to look for the same stylesheet as doc/Makefile.am uses. Don't
457 use xsltproc if xmlcatalog fails to find a local stylesheet.
458 * configure.ac: Check for xmlcatalog.
459 * Makefile.in: Regenerate.
460 * configure: Likewise.
461 * doc/Makefile.in: Likewise.
462 * include/Makefile.in: Likewise.
463 * libsupc++/Makefile.in: Likewise.
464 * po/Makefile.in: Likewise.
465 * python/Makefile.in: Likewise.
466 * src/Makefile.in: Likewise.
467 * src/c++11/Makefile.in: Likewise.
468 * src/c++17/Makefile.in: Likewise.
469 * src/c++98/Makefile.in: Likewise.
470 * src/filesystem/Makefile.in: Likewise.
471 * testsuite/Makefile.in: Likewise.
473 2019-02-26 Jonathan Wakely <jwakely@redhat.com>
476 * include/bits/alloc_traits.h (_RequireNotAllocator): New helper for
477 container deduction guides.
478 * include/bits/hashtable.h (_RequireNotAllocatorOrIntegral): Likewise.
479 * include/bits/stl_map.h (map): Use _RequireNotAllocator to constrain
480 parameters in deduction guides.
481 * include/bits/stl_multimap.h (multimap): Likewise.
482 * include/bits/stl_multiset.h (multiset): Likewise.
483 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
484 * include/bits/stl_set.h (set): Likewise.
485 * include/bits/stl_stack.h (stack): Likewise.
486 * include/bits/unordered_map.h (unordered_map, unordered_multimap):
487 use _RequireNotAllocator and _RequireNotAllocatorOrIntegral to
488 constrain parameters in deduction guides.
489 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
491 * testsuite/23_containers/map/cons/deduction.cc: Test additional
493 * testsuite/23_containers/multiset/cons/deduction.cc: Likewise.
494 * testsuite/23_containers/set/cons/deduction.cc: Likewise.
495 * testsuite/23_containers/unordered_map/cons/deduction.cc: Likewise.
496 * testsuite/23_containers/unordered_multimap/cons/deduction.cc:
498 * testsuite/23_containers/unordered_multiset/cons/deduction.cc:
500 * testsuite/23_containers/unordered_set/cons/deduction.cc: Likewise.
503 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Change
504 to class template and partial specialization using void_t.
505 (__is_copy_insertable, __is_move_insertable): Adjust base class.
507 2019-02-24 Jonathan Wakely <jwakely@redhat.com>
510 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Make
511 copy and move members public.
513 2019-02-23 Jonathan Wakely <jwakely@redhat.com>
515 * include/std/type_traits (__underlying_type_impl): New helper to
516 make underlying_type SFINAE-friendly.
517 (underlying_type): Derive from __underlying_type_impl.
518 * testsuite/20_util/underlying_type/requirements/typedefs-3.cc: New
522 * include/bits/char_traits.h (__constant_char_array): Check index is
523 in range before dereferencing.
524 (char_traits<char>::compare, char_traits<char>::find)
525 (char_traits<char8_t>::compare, char_traits<char8_t>::find): Return
526 immediately if n is zero.
527 (char_traits<wchar_t>::compare, char_traits<wchar_t>::find): Likewise.
528 Remove workarounds for PR 67026.
529 * testsuite/21_strings/basic_string_view/operators/char/89446.cc:
531 * testsuite/21_strings/basic_string_view/operators/wchar_t/89446.cc:
534 2019-02-22 Eric Botcazou <ebotcazou@adacore.com>
536 * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: Adjust.
537 * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: Likewise.
539 2019-02-22 Jakub Jelinek <jakub@redhat.com>
542 * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Change return
543 type to std::size_t and argument to type to long double.
545 2019-02-22 Eric Botcazou <ebotcazou@adacore.com>
547 * configure.host (abi_baseline_pair): Adjust for SPARC64/Linux.
548 * config/abi/post/sparc64-linux-gnu: New directory.
549 * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: New file.
550 * config/abi/post/sparc64-linux-gnu/32: New directory.
551 * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: New file.
553 2019-02-21 Jonathan Wakely <jwakely@redhat.com>
555 * testsuite/29_atomics/headers/atomic/types_std_c++20.cc: New test.
556 * testsuite/29_atomics/headers/atomic/types_std_c++20_neg.cc: New
559 2019-02-22 Tom Honermann <tom@honermann.net>
561 * python/libstdcxx/v6/printers.py (register_type_printers): Add type
562 printers for u8string and u8string_view.
564 2019-02-22 Tom Honermann <tom@honermann.net>
566 * testsuite/18_support/byte/ops.cc: Validate
567 std::to_integer<char8_t>, std::to_integer<char16_t>, and
568 std::to_integer<char32_t>.
569 * testsuite/18_support/numeric_limits/dr559.cc: Validate
570 std::numeric_limits<char8_t>.
571 * testsuite/18_support/numeric_limits/lowest.cc: Validate
572 std::numeric_limits<char8_t>::lowest().
573 * testsuite/18_support/numeric_limits/max_digits10.cc: Validate
574 std::numeric_limits<char8_t>::max_digits10.
575 * testsuite/18_support/type_info/fundamental.cc: Validate
576 typeinfo for char8_t.
577 * testsuite/20_util/from_chars/1_c++20_neg.cc: New test, validating
578 std::from_chars with char8_t.
579 * testsuite/20_util/hash/requirements/explicit_instantiation.cc:
580 Validate explicit instantiation of std::hash<char8_t>.
581 * testsuite/20_util/is_integral/value.cc: Validate
582 std::is_integral<char8_t>.
583 * testsuite/20_util/make_signed/requirements/typedefs-4.cc:
584 Validate std::make_signed<char8_t>.
585 * testsuite/21_strings/basic_string/cons/char/deduction.cc:
586 Validate u8string construction from char8_t sources.
587 * testsuite/21_strings/basic_string/types/pmr_typedefs.cc: Validate
589 * testsuite/21_strings/basic_string_view/operations/compare/
590 char/70483.cc: Validate substr operations on u8string_view.
591 * testsuite/21_strings/basic_string_view/typedefs.cc: Validate that
592 the u8string_view typedef is defined.
593 * testsuite/21_strings/char_traits/requirements/
594 constexpr_functions.cc: Validate char_traits<char8_t> constexpr
596 * testsuite/21_strings/char_traits/requirements/
597 constexpr_functions_c++17.cc: Validate char_traits<char8_t> C++17
598 constexpr member functions.
599 * testsuite/21_strings/headers/string/types_std_c++0x.cc: Validate
600 that the u8string typedef is defined.
601 * testsuite/22_locale/locale/cons/unicode.cc: Validate the presence
602 of the std::codecvt<char16_t, char8_t, std::mbstate_t> and
603 std::codecvt<char32_t, char8_t, std::mbstate_t> facets.
604 * testsuite/29_atomics/atomic/cons/assign_neg.cc: Update line
606 * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise.
607 * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc:
609 * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise.
610 * testsuite/29_atomics/atomic_integral/is_always_lock_free.cc:
611 Validate std::atomic<char8_t>::is_always_lock_free
612 * testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc:
614 * testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc:
616 * testsuite/29_atomics/atomic_integral/operators/increment_neg.cc:
618 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc:
619 Validate std::experimental::pmr::u8string.
620 * testsuite/experimental/string_view/typedefs.cc: Validate that the
621 u8string_view typedef is defined.
622 * testsuite/util/testsuite_common_types.h: Add char8_t, char16_t and
623 char32_t to the typelists.
625 2019-02-22 Tom Honermann <tom@honermann.net>
627 * include/ext/typelist.h: Constrain a partial specialization of
628 typelist::detail::append_ to only match chain<T1,T2>.
630 2019-02-21 Jonathan Wakely <jwakely@redhat.com>
633 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Replace
634 class template with class. Replace move and copy member types with
635 member alias templates, so they are only instantiated when needed.
636 (__is_copy_insertable, __is_move_insertable): Adjust base class.
637 * testsuite/23_containers/vector/modifiers/push_back/89130.cc: Enable
638 test for C++11/14/17 as well.
639 * testsuite/23_containers/vector/modifiers/push_back/89416.cc: New
642 2019-02-20 Jakub Jelinek <jakub@redhat.com>
645 * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Add
646 _GLIBCXX_PURE to the alias declaration.
648 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
650 * testsuite/21_strings/basic_string/literals/types.cc
651 [_GLIBCXX_USE_CHAR8_T]: Adjust expected string type for u8 literal.
652 * testsuite/21_strings/basic_string/literals/values.cc
653 [_GLIBCXX_USE_CHAR8_T]: Likewise.
654 * testsuite/22_locale/codecvt/char16_t.cc: Adjust for u8 literals
655 potentially having different type.
656 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
657 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: Cast u8 literal
659 * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: Likewise.
660 * testsuite/22_locale/codecvt/utf8.cc: Likewise.
661 * testsuite/22_locale/conversions/string/2.cc: Remove u8 prefix from
662 string literals only using basic character set.
663 * testsuite/22_locale/conversions/string/3.cc: Likewise. Cast other
665 * testsuite/29_atomics/headers/atomic/macros.cc [_GLIBCXX_USE_CHAR8_T]:
666 Test ATOMIC_CHAR8_T_LOCK_FREE.
667 Add missing #error to ATOMIC_CHAR16_T_LOCK_FREE test.
668 * testsuite/29_atomics/headers/atomic/types_std_c++0x.cc
669 [_GLIBCXX_USE_CHAR8_T]: Check for std::atomic_char8_t.
670 * testsuite/experimental/string_view/literals/types.cc
671 [_GLIBCXX_USE_CHAR8_T]: Adjust expected string_view type for u8
673 * testsuite/experimental/string_view/literals/values.cc
674 [_GLIBCXX_USE_CHAR8_T]: Likewise.
676 2019-02-19 Tom Honermann <tom@honermann.net>
678 * testsuite/18_support/numeric_limits/char8_t.cc: New test cloned
679 from char16_32_t.cc; validates numeric_limits<char8_t>.
680 * testsuite/21_strings/basic_string/literals/types-char8_t.cc: New
681 test cloned from types.cc; validates operator""s for char8_t
683 * testsuite/21_strings/basic_string/literals/values-char8_t.cc: New
684 test cloned from values.cc; validates construction and comparison
686 * testsuite/21_strings/basic_string/requirements/
687 /explicit_instantiation/char8_t/1.cc: New test cloned from
688 char16_t/1.cc; validates explicit instantiation of
689 basic_string<char8_t>.
690 * testsuite/21_strings/basic_string_view/literals/types-char8_t.cc:
691 New test cloned from types.cc; validates operator""sv for char8_t
692 returns u8string_view.
693 * testsuite/21_strings/basic_string_view/literals/
694 values-char8_t.cc: New test cloned from values.cc; validates
695 construction and comparison of u8string_view values.
696 * testsuite/21_strings/basic_string_view/requirements/
697 explicit_instantiation/char8_t/1.cc: New test cloned from
698 char16_t/1.cc; validates explicit instantiation of
699 basic_string_view<char8_t>.
700 * testsuite/21_strings/char_traits/requirements/char8_t/65049.cc:
701 New test cloned from char16_t/65049.cc; validates that
702 char_traits<char8_t> is not vulnerable to the concerns in PR65049.
703 * testsuite/21_strings/char_traits/requirements/char8_t/
704 typedefs.cc: New test cloned from char16_t/typedefs.cc; validates
705 that char_traits<char8_t> member typedefs are present and correct.
706 * testsuite/21_strings/char_traits/requirements/
707 explicit_instantiation/char8_t/1.cc: New test cloned from
708 char16_t/1.cc; validates explicit instantiation of
709 char_traits<char8_t>.
710 * testsuite/22_locale/codecvt/char16_t-char8_t.cc: New test cloned
711 from char16_t.cc: validates
712 codecvt<char16_t, char8_t, mbstate_t>.
713 * testsuite/22_locale/codecvt/char32_t-char8_t.cc: New test cloned
714 from char32_t.cc: validates
715 codecvt<char32_t, char8_t, mbstate_t>.
716 * testsuite/22_locale/codecvt/utf8-char8_t.cc: New test cloned from
717 utf8.cc; validates codecvt<char16_t, char8_t, std::mbstate_t> and
718 codecvt<char32_t, char8_t, std::mbstate_t>.
719 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: New
720 test cloned from string.cc; validates filesystem::path construction
722 * testsuite/experimental/feat-char8_t.cc: New test; validates that
723 the __cpp_lib_char8_t feature test macro is defined with the
725 * testsuite/experimental/filesystem/path/native/string-char8_t.cc:
726 New test cloned from string.cc; validates filesystem::path
727 construction from char8_t input.
728 * testsuite/experimental/string_view/literals/types-char8_t.cc: New
729 test cloned from types.cc; validates operator""sv for char8_t
730 returns u8string_view.
731 * testsuite/experimental/string_view/literals/values-char8_t.cc:
732 New test cloned from values.cc; validates construction and
733 comparison of u8string_view values.
734 * testsuite/experimental/string_view/requirements/
735 explicit_instantiation/char8_t/1.cc: New test cloned from
736 char16_t/1.cc; validates explicit instantiation of
737 basic_string_view<char8_t>.
738 * testsuite/ext/char8_t/atomic-1.cc: New test; validates that
739 ATOMIC_CHAR8_T_LOCK_FREE is not defined if char8_t support is not
742 2019-02-19 Tom Honermann <tom@honermann.net>
744 P0482R5 char8_t: Standard library support
745 * config/abi/pre/gnu-versioned-namespace.ver (CXXABI_2.0): Add
746 typeinfo symbols for char8_t.
747 * config/abi/pre/gnu.ver: Add CXXABI_1.3.12.
748 (GLIBCXX_3.4.26): Add symbols for specializations of
749 numeric_limits and codecvt that involve char8_t.
750 (CXXABI_1.3.12): Add typeinfo symbols for char8_t.
751 * include/bits/atomic_base.h: Add atomic_char8_t.
752 * include/bits/basic_string.h: Add std::hash<u8string> and
753 operator""s(const char8_t*, size_t).
754 * include/bits/c++config: Define _GLIBCXX_USE_CHAR8_T and
756 * include/bits/char_traits.h: Add char_traits<char8_t>.
757 * include/bits/codecvt.h: Add
758 codecvt<char16_t, char8_t, mbstate_t>,
759 codecvt<char32_t, char8_t, mbstate_t>,
760 codecvt_byname<char16_t, char8_t, mbstate_t>, and
761 codecvt_byname<char32_t, char8_t, mbstate_t>.
762 * include/bits/cpp_type_traits.h: Add __is_integer<char8_t> to
763 recognize char8_t as an integral type.
764 * include/bits/fs_path.h: (path::__is_encoded_char): Recognize
766 (path::u8string): Return std::u8string when char8_t support is
768 (path::generic_u8string): Likewise.
769 (path::_S_convert): Handle conversion from char8_t input.
770 (path::_S_str_convert): Likewise.
771 * include/bits/functional_hash.h: Add hash<char8_t>.
772 * include/bits/locale_conv.h (__str_codecvt_out): Add overloads for
774 * include/bits/locale_facets.h (_GLIBCXX_NUM_UNICODE_FACETS): Bump
775 for new char8_t specializations.
776 * include/bits/localefwd.h: Add missing declarations of
777 codecvt<char16_t, char, mbstate_t> and
778 codecvt<char32_t, char, mbstate_t>. Add char8_t declarations
779 codecvt<char16_t, char8_t, mbstate_t> and
780 codecvt<char32_t, char8_t, mbstate_t>.
781 * include/bits/postypes.h: Add u8streampos
782 * include/bits/stringfwd.h: Add declarations of
783 char_traits<char8_t> and u8string.
784 * include/c_global/cstddef: Add __byte_operand<char8_t>.
785 * include/experimental/bits/fs_path.h (path::__is_encoded_char):
787 (path::u8string): Return std::u8string when char8_t support is
789 (path::generic_u8string): Likewise.
790 (path::_S_convert): Handle conversion from char8_t input.
791 (path::_S_str_convert): Likewise.
792 * include/experimental/string: Add u8string.
793 * include/experimental/string_view: Add u8string_view,
794 hash<experimental::u8string_view>, and
795 operator""sv(const char8_t*, size_t).
796 * include/std/atomic: Add atomic<char8_t> and atomic_char8_t.
797 * include/std/charconv (__is_int_to_chars_type): Recognize char8_t
799 * include/std/limits: Add numeric_limits<char8_t>.
800 * include/std/string_view: Add u8string_view,
801 hash<experimental::u8string_view>, and
802 operator""sv(const char8_t*, size_t).
803 * include/std/type_traits: Add __is_integral_helper<char8_t>,
804 __make_unsigned<char8_t>, and __make_signed<char8_t>.
805 * libsupc++/atomic_lockfree_defines.h: Define
806 ATOMIC_CHAR8_T_LOCK_FREE.
807 * src/c++11/Makefile.am: Compile with -fchar8_t when compiling
808 codecvt.cc and limits.cc so that char8_t specializations of
809 numeric_limits and codecvt and emitted.
810 * src/c++11/Makefile.in: Likewise.
811 * src/c++11/codecvt.cc: Define members of
812 codecvt<char16_t, char8_t, mbstate_t>,
813 codecvt<char32_t, char8_t, mbstate_t>,
814 codecvt_byname<char16_t, char8_t, mbstate_t>, and
815 codecvt_byname<char32_t, char8_t, mbstate_t>.
816 * src/c++11/limits.cc: Define members of
817 numeric_limits<char8_t>.
818 * src/c++98/Makefile.am: Compile with -fchar8_t when compiling
819 locale_init.cc and localename.cc.
820 * src/c++98/Makefile.in: Likewise.
821 * src/c++98/locale_init.cc: Add initialization for the
822 codecvt<char16_t, char8_t, mbstate_t> and
823 codecvt<char32_t, char8_t, mbstate_t> facets.
824 * src/c++98/localename.cc: Likewise.
825 * testsuite/util/testsuite_abi.cc: Validate ABI bump.
827 2019-02-18 Wilco Dijkstra <wdijkstr@arm.com>
829 * 27_io/filesystem/operations/all.cc: Add dg-require-filesystem-ts.
830 * 27_io/filesystem/operations/resize_file.cc: Likewise.
831 * 27_io/filesystem/path/generation/normal2.cc: Likewise.
833 2019-02-14 Jonathan Wakely <jwakely@redhat.com>
835 * doc/xml/manual/status_cxx2020.xml: Update P0887R1 status.
836 * doc/html/*: Regenerate.
838 * doc/xml/manual/status_cxx2017.xml: Add P0063R3 to status table.
839 * doc/html/*: Regenerate.
841 * doc/xml/manual/intro.xml: Document LWG 2586 status.
842 * include/bits/uses_allocator.h (__uses_alloc): Use const lvalue
843 allocator type in is_constructible checks.
844 * testsuite/20_util/scoped_allocator/69293_neg.cc: Adjust dg-error.
845 * testsuite/20_util/scoped_allocator/dr2586.cc: New test.
846 * testsuite/20_util/tuple/cons/allocators.cc: Add test using
847 problematic type from LWG 2586 discussion.
848 * testsuite/20_util/uses_allocator/69293_neg.cc: Adjust dg-error.
849 * testsuite/20_util/uses_allocator/cons_neg.cc: Likewise.
851 * configure.ac: Check for C11 timespec_get function.
852 * crossconfig.m4 (freebsd, linux, gnu, cygwin, solaris, netbsd)
854 * config.h.in: Regenerate.
855 * configure: Regenerate.
856 * include/c_global/ctime (timespec, timespec_get): Add to namespace
857 std for C++17 and up.
859 * doc/xml/manual/intro.xml: Document LWG 2537 status.
860 * include/bits/stl_queue.h
861 (priority_queue(const Compare&, const Container&, const Alloc&))
862 (priority_queue(const Compare&, Container&&, const Alloc&)): Call
864 * testsuite/23_containers/priority_queue/dr2537.cc: New test.
866 * doc/xml/manual/intro.xml: Document LWG 2566 status.
867 * include/bits/stl_queue.h (queue, priority_queue): Add static
868 assertions to enforce LWG 2566 requirement on value_type.
869 * include/bits/stl_stack.h (stack): Likewise.
872 * testsuite/20_util/enable_shared_from_this/89303.cc: New test.
874 * doc/xml/manual/intro.xml: Document LWG 2735 status.
875 * include/bits/std_abs.h: Add comment about LWG 2735.
876 * testsuite/26_numerics/headers/cstdlib/dr2735.cc: New test.
878 2019-02-13 Jonathan Wakely <jwakely@redhat.com>
881 * include/std/version [__cpp_impl_destroying_delete]
882 (__cpp_lib_destroying_delete): Only define for C++2a and later.
883 * libsupc++/new [__cpp_impl_destroying_delete]
884 (__cpp_lib_destroying_delete): Likewise.
885 (destroying_delete_t, destroying_delete): Likewise, but define even
886 when __cpp_impl_destroying_delete is not defined.
887 * testsuite/18_support/destroying_delete.cc: New test.
889 2019-02-11 Jonathan Wakely <jwakely@redhat.com>
892 * testsuite/17_intro/headers/c++2011/parallel_mode.cc: New test.
893 * testsuite/17_intro/headers/c++2014/parallel_mode.cc: New test.
894 * testsuite/17_intro/headers/c++2017/parallel_mode.cc: New test.
895 * testsuite/28_regex/headers/regex/parallel_mode.cc: Remove.
897 2019-02-09 Jonathan Wakely <jwakely@redhat.com>
900 * include/bits/fs_path.h (path::has_root_name)
901 (path::has_root_directory, path::has_root_path)
902 (path::has_relative_path, path::has_parent_path)
903 (path::has_filename, path::has_stem, path::has_extension)
904 (path::is_absolute, path::is_relative, path::_M_find_extension): Add
906 * src/c++17/fs_path.cc (path::has_root_name)
907 (path::has_root_directory, path::has_root_path)
908 (path::has_relative_path, path::has_parent_path)
909 (path::has_filename, path::_M_find_extension): Add noexcept.
911 2019-02-06 Jonathan Wakely <jwakely@redhat.com>
913 PR libstdc++/89102 (partial)
914 * include/std/type_traits (common_type<>): Define.
915 (common_type<T>): Derive from common_type<T, T>.
916 * testsuite/20_util/common_type/requirements/explicit_instantiation.cc:
917 Test zero-length template argument list.
918 * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc:
919 Test additional single argument cases.
920 * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc:
921 Adjust expected error.
923 2019-02-05 Jonathan Wakely <jwakely@redhat.com>
926 * include/bits/stl_queue.h (queue, priority_queue): Add deduction
928 * include/bits/stl_stack.h (stack): Likewise.
929 * testsuite/23_containers/priority_queue/deduction.cc: New test.
930 * testsuite/23_containers/queue/deduction.cc: New test.
931 * testsuite/23_containers/stack/deduction.cc: New test.
934 * include/std/type_traits (__is_convertible_helper)
935 (__is_convertible_helper<_From, _To, false>): Revert changes to
936 support is_nothrow_convertible.
937 (__is_nt_convertible_helper): New helper.
938 (is_nothrow_convertible): Use __is_nt_convertible_helper.
940 * testsuite/23_containers/vector/modifiers/push_back/49836.cc: Restore
941 use of CopyConsOnlyType, but also test DelAnyAssign for completeness.
944 * include/bits/alloc_traits.h (__is_copy_insertable_impl): Rename to
945 __is_alloc_insertable_impl. Replace single type member with two
946 members, one for each of copy and move insertable.
947 (__is_move_insertable): New trait for internal use.
948 * include/bits/stl_vector.h (vector::_S_nothrow_relocate(true_type))
949 (vector::_S_nothrow_relocate(true_type)): New functions to
950 conditionally check if __relocate_a can throw.
951 (vector::_S_use_relocate()): Dispatch to _S_nothrow_relocate based
952 on __is_move_insertable.
953 (vector::_S_do_relocate): New overloaded functions to conditionally
955 (vector::_S_relocate): New function that dispatches to _S_do_relocate
956 based on _S_use_relocate.
957 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
958 (vector::_M_default_append): Call _S_relocate instead of __relocate_a.
959 * testsuite/23_containers/vector/modifiers/push_back/89130.cc: New.
962 * include/bits/stl_uninitialized.h (__relocate_a_1): Make unused
963 parameter unnamed. Add message to static assertion.
964 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
965 (vector::_M_default_append): Use _GLIBCXX17_CONSTEXPR for if constexpr
968 2019-02-05 Marc Glisse <marc.glisse@inria.fr>
971 * include/bits/stl_uninitialized.h (__is_trivially_relocatable):
973 (__is_bitwise_relocatable): ... to this.
974 (__relocate_a_1): Adapt.
975 * include/bits/stl_deque.h (__is_trivially_relocatable): Rename...
976 (__is_bitwise_relocatable): ... to this.
978 2019-01-30 Jonathan Wakely <jwakely@redhat.com>
981 * src/c++17/fs_path.cc (path::replace_extension): Erase extension from
982 final component as well as from _M_pathname. Append the dot using
983 operator+= instead of only to _M_pathname.
984 (path::_M_find_extension): Reformat slightly.
985 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
988 2019-01-30 Ulrich Drepper <drepper@redhat.com>
990 * doc/xml/manual/status_cxx2020.xml: Update P0600 entry.
992 2019-01-29 Jonathan Wakely <jwakely@redhat.com>
994 * testsuite/26_numerics/headers/complex/synopsis.cc: Remove incorrect
995 constexpr specifiers from arg and proj.
997 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add missing exports for
998 __shared_ptr instantiations used by gcc4-compatible ABI.
1000 * include/experimental/forward_list (experimental::erase): Qualify
1002 * include/experimental/list (experimental::erase): Likewise.
1003 * include/std/forward_list (std::erase): Likewise.
1004 * include/std/list (std::erase): Likewise.
1006 * testsuite/20_util/reference_wrapper/result_type.cc: Disable for
1008 * testsuite/20_util/reference_wrapper/typedefs-2.cc: Likewise.
1009 * testsuite/20_util/reference_wrapper/typedefs-3.cc: Likewise.
1010 * testsuite/20_util/reference_wrapper/typedefs.cc: Likewise.
1011 * testsuite/30_threads/async/54297.cc: Suppress nodiscard warning.
1012 * testsuite/ext/array_allocator/26875.cc: Likewise.
1013 * testsuite/ext/pool_allocator/allocate_chunk.cc: Likewise.
1014 * testsuite/util/replacement_memory_operators.h: Likewise.
1015 * testsuite/util/testsuite_allocator.h: Likewise.
1017 * include/std/memory_resource (__pool_resource::_M_unpooled): Use
1018 normal mode vector, even for debug mode.
1019 * include/std/vector [_GLIBCXX_DEBUG] (_GLIBCXX_STD_C::pmr::vector):
1020 Define alias template for normal mode vector.
1022 2019-01-28 Jonathan Wakely <jwakely@redhat.com>
1025 * config/locale/generic/c_locale.h (__convert_from_v)
1026 [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
1027 * config/os/hpux/os_defines.h: Define _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
1028 * include/bits/locale_facets.tcc (num_put::_M_insert_float)
1029 [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
1031 2019-01-24 Jonathan Wakely <jwakely@redhat.com>
1034 * include/bits/stl_vector.h (vector::__use_relocate): Replace static
1035 data member with static member function _S_use_relocate().
1036 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
1037 (vector::_M_default_append): Use _S_use_relocate() instead of
1040 * testsuite/27_io/filesystem/path/compare/strings.cc: Only compare
1043 2019-01-22 Jonathan Wakely <jwakely@redhat.com>
1046 * testsuite/util/testsuite_hooks.h [stderr] (VERIFY): Use fprintf to
1047 write to stderr instead of using printf.
1049 2019-01-21 Jakub Jelinek <jakub@redhat.com>
1052 * include/bits/char_traits.h (__constant_string_p,
1053 __constant_char_array_p): Use __builtin_is_constant_evaluated if
1056 2019-01-20 Ulrich Drepper <drepper@redhat.com>
1058 Implement C++20 P0600r1.
1059 * include/backward/hash_map: Add nodiscard attribute to empty.
1060 * include/backward/hash_set: Likewise.
1061 * backward/hashtable.h: Likewise.
1062 * include/bits/basic_string.h: Likewise.
1063 * include/bits/forward_list.h: Likewise.
1064 * include/bits/hashtable.h: Likewise.
1065 * include/bits/regex.h: Likewise.
1066 * include/bits/stl_deque.h: Likewise.
1067 * include/bits/stl_list.h: Likewise.
1068 * include/bits/stl_map.h: Likewise.
1069 * include/bits/stl_multimap.h: Likewise.
1070 * include/bits/stl_multiset.h: Likewise.
1071 * include/bits/stl_queue.h: Likewise.
1072 * include/bits/stl_set.h: Likewise.
1073 * include/bits/stl_stack.h: Likewise.
1074 * include/bits/stl_tree.h: Likewise.
1075 * include/bits/stl_vector.h: Likewise.
1076 * include/bits/unordered_map.h: Likewise.
1077 * include/bits/unordered_set.h: Likewise.
1078 * include/debug/array: Likewise.
1079 * include/experimental/any: Likewise.
1080 * include/experimental/bits/fs_path.h: Likewise.
1081 * include/experimental/internet: Likewise.
1082 * include/experimental/string_view: Likewise.
1083 * include/ext/pb_ds/detail/bin_search_tree_/info_fn_imps.hpp:
1085 * include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp:
1087 * include/ext/pb_ds/detail/binary_heap_/info_fn_imps.hpp:
1089 * include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp:
1091 * include/ext/pb_ds/detail/cc_hash_table_map_/info_fn_imps.hpp:
1093 * include/ext/pb_ds/detail/cc_hash_table_map_/size_fn_imps.hpp:
1095 * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp:
1097 * include/ext/pb_ds/detail/gp_hash_table_map_/info_fn_imps.hpp:
1099 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
1100 info_fn_imps.hpp: Likewise.
1101 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
1102 left_child_next_sibling_heap_.hpp: Likewise.
1103 * include/ext/pb_ds/detail/list_update_map_/info_fn_imps.hpp:
1105 * include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp:
1107 * include/ext/pb_ds/detail/ov_tree_map_/info_fn_imps.hpp:
1109 * include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hp:
1111 * include/ext/pb_ds/detail/pat_trie_/info_fn_imps.hpp:
1113 * include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp:
1115 * include/ext/pb_ds/detail/rc_binomial_heap_/rc.hpp:
1117 * include/ext/pb_ds/detail/tree_trace_base.hpp: Likewise.
1118 * include/ext/pb_ds/trie_policy.hpp: Likewise.
1119 * include/ext/rope: Likewise.
1120 * include/ext/slist: Likewise.
1121 * include/ext/vstring.h: Likewise.
1122 * include/profile/array: Likewise.
1123 * include/std/array: Likewise.
1124 * include/tr1/array: Likewise.
1125 * include/tr1/hashtable.h: Likewise.
1126 * include/tr1/regex: Likewise.
1127 * include/tr2/dynamic_bitset: Likewise.
1128 * include/bits/alloc_traits.h: Add nodiscard attribute to
1130 * include/experimental/memory_resource: Likewise.
1131 * include/ext/alloc_traits.h: Likewise.
1132 * include/ext/array_allocator.h: Likewise.
1133 * include/ext/bitmap_allocator.h: Likewise.
1134 * include/ext/debug_allocator.h: Likewise.
1135 * include/ext/extptr_allocator.h: Likewise.
1136 * include/ext/mt_allocator.h: Likewise.
1137 * include/ext/new_allocator.h: Likewise.
1138 * include/ext/pool_allocator.h: Likewise.
1139 * include/ext/throw_allocator.h: Likewise.
1140 * include/std/scoped_allocator: Likewise.
1141 * libsupc++/eh_alloc.cc: Likewise.
1142 * include/std/future: Add nodiscard attribute to async.
1143 * libsupc++/new: Add nodiscard attribute to new.
1145 2019-01-18 Jonathan Wakely <jwakely@redhat.com>
1150 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export new symbol.
1151 * include/bits/shared_ptr.h
1152 (shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...))
1153 (allocate_shared): Change to use new tag type.
1154 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_eq):
1155 Declare new member function.
1156 (_Sp_alloc_shared_tag): Define new type.
1157 (_Sp_counted_ptr_inplace): Declare __shared_count<_Lp> as a friend.
1158 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Use
1159 _Sp_make_shared_tag::_S_eq to check type_info.
1160 (__shared_count(Ptr, Deleter),__shared_count(Ptr, Deleter, Alloc)):
1161 Constrain to prevent being called with _Sp_alloc_shared_tag.
1162 (__shared_count(_Sp_make_shared_tag, const _Alloc&, Args&&...)):
1163 Replace constructor with ...
1164 (__shared_count(Tp*&, _Sp_alloc_shared_tag<_Alloc>, Args&&...)): Use
1165 reference parameter so address of the new object can be returned to
1166 the caller. Obtain the allocator from the tag type.
1167 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Replace
1168 constructor with ...
1169 (__shared_ptr(_Sp_alloc_shared_tag<Alloc>, Args&&...)): Pass _M_ptr
1170 to the __shared_count constructor.
1171 (__allocate_shared): Change to use new tag type.
1172 * src/c++11/shared_ptr.cc (_Sp_make_shared_tag::_S_eq): Define.
1174 2019-01-17 Jonathan Wakely <jwakely@redhat.com>
1176 * src/c++17/fs_ops.cc
1177 (equivalent(const path&, const path&, error_code&))
1178 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use GetFileInformationByHandle to
1179 compare files instead of relying on incomplete info returned by stat.
1182 * src/c++17/fs_ops.cc (absolute(const path&, error_code&)): Do nothing
1183 if the path is already absolute.
1184 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize root-directory.
1185 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Pass error_code to current_path.
1188 * src/c++17/fs_ops.cc (canonical(const path&, error_code&))
1189 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize path, to match behaviour
1190 of filesystem::exists.
1191 (create_directories(const path&, error_code&)): Add assertions.
1192 (status(const path&, error_code&)) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]:
1193 Add workaround for bug in _wstat for paths with trailing slash.
1194 * testsuite/27_io/filesystem/operations/create_directories.cc: Adjust
1195 for expected behaviour on mingw.
1196 * testsuite/experimental/filesystem/operations/create_directories.cc:
1198 * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Use
1199 "TMP" instead of "TMPDIR" and clean environment before each test. Do
1200 not test permissions on mingw targets.
1202 2019-01-16 Jonathan Wakely <jwakely@redhat.com>
1204 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add exports for fstream
1205 constructors and open members taking wide strings. Fix patterns for
1206 filesystem::path members to match wstring_view parameters. Add
1207 exports for shared_ptr members used by directory iterators.
1208 * src/c++17/fs_ops.cc (remove(const path&, error_code&)): Clear the
1209 error code parameter if the file doesn't exist.
1210 * src/filesystem/ops.cc (remove(const path&, error_code&)):
1212 * testsuite/27_io/filesystem/operations/canonical.cc: Fix expected
1213 values for mingw targets, where "/" is not an absolute path. Do not
1214 test symlinks on mingw targets.
1215 * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
1216 * testsuite/27_io/filesystem/operations/copy.cc: Do not test symlinks
1218 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
1219 * testsuite/27_io/filesystem/operations/create_directories.cc: Check
1220 that each component of the path is created.
1221 * testsuite/experimental/filesystem/operations/create_directories.cc:
1223 * testsuite/27_io/filesystem/operations/exists.cc: Do not test
1224 permissions on mingw targets.
1225 * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
1226 * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
1227 * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
1228 * testsuite/27_io/filesystem/operations/permissions.cc: XFAIL for
1230 * testsuite/experimental/filesystem/operations/permissions.cc:
1232 * testsuite/27_io/filesystem/operations/remove.cc: Do not test
1233 symlinks or permissions on mingw targets.
1234 * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
1235 * testsuite/27_io/filesystem/operations/remove_all.cc: Do not test
1236 symlinks on mingw targets.
1237 * testsuite/experimental/filesystem/operations/remove_all.cc:
1239 * testsuite/27_io/filesystem/operations/status.cc: Do not test
1240 permissions on mingw targets.
1241 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Do not
1242 test symlinks on mingw targets.
1243 * testsuite/experimental/filesystem/operations/space.cc: Fix test
1246 2019-02-14 Ulrich Drepper <drepper@redhat.com>
1249 Warn about unused comparisons of shared_ptr/unique_ptr
1250 * include/bits/c++config [_GLIBCXX_NODISCARD]: Define.
1251 * include/bits/shared_ptr.h: Use it for operator ==, !=,
1252 <, <=, >, >= for shared_ptr.
1253 * include/bits/unique_ptr.h: Likewise for unique_ptr.
1255 2019-01-15 Jonathan Wakely <jwakely@redhat.com>
1257 * include/bits/shared_ptr_base.h (__cpp_lib_shared_ptr_arrays): Define
1258 as 201611L, because P0497R0 changes are supported.
1259 * include/std/version (__cpp_lib_shared_ptr_arrays): Likewise.
1261 * include/bits/erase_if.h [__cplusplus > 201703L]
1262 (__cpp_lib_erase_if): Only define for C++2a.
1263 * include/std/iterator [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
1264 (__cpp_lib_null_iterators): Define.
1265 * include/std/version [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
1266 (__cpp_lib_null_iterators): Define.
1267 [__cpp_impl_destroying_delete] (__cpp_lib_destroying_delete): Define.
1269 * doc/xml/manual/status_cxx2017.xml: Document P0032R3 and P0307R2
1271 * include/bits/stl_uninitialized.h (__cpp_lib_raw_memory_algorithms):
1273 * include/std/any (__cpp_lib_any): Define as 201606L, because P0032R3
1274 changes are supported.
1275 * include/std/optional (__cpp_lib_optional): Likewise.
1276 * include/std/variant (__cpp_lib_variant): Likewise.
1277 * include/std/version [!__STRICT_ANSI__]
1278 (__cpp_lib_uncaught_exceptions): Define as long integer.
1279 [__cplusplus >= 201703L] (__cpp_lib_any)
1280 (__cpp_lib_raw_memory_algorithms, __cpp_lib_uncaught_exceptions)
1281 (__cpp_lib_variant): Define for C++17.
1282 [__cplusplus >= 201703L] (__cpp_lib_optional): Update value and define
1284 * libsupc++/exception (__cpp_lib_uncaught_exceptions): Define as long
1287 * doc/xml/manual/status_cxx2020.xml: Update P1123R0 status.
1289 2019-01-12 Jonathan Wakely <jwakely@redhat.com>
1293 * src/filesystem/path.cc: Fix typo. If first path is empty, show []
1295 * testsuite/experimental/filesystem/filesystem_error/cons.cc: New
1298 2019-01-11 Jonathan Wakely <jwakely@redhat.com>
1300 * doc/xml/manual/intro.xml: Include new section.
1301 * doc/xml/manual/status_cxx2017.xml: Document more
1302 implementation-defined properties of the library.
1303 * doc/xml/manual/status_cxx2020.xml: Document C++2a status.
1304 * doc/html/*: Regenerate.
1306 * include/bits/refwrap.h [__cplusplus > 201703L]
1307 (_Refwrap_base_arg1, _Refwrap_base_arg2, _Reference_wrapper_base)
1308 (_Reference_wrapper_base_memfun): Do not define for C++2a.
1309 (reference_wrapper): Do not derive from _Reference_wrapper_base_memfun
1311 (reference_wrapper::operator()): Add static assertion.
1312 * testsuite/20_util/reference_wrapper/incomplete.cc: New test.
1314 * include/std/chrono (duration_values::zero(), duration_values::min())
1315 (duration_values::max()): Add noexcept.
1316 (duration::zero(), duration::min(), duration::max()): Likewise.
1317 (time_point::zero(), time_point::min(), time_point::max()): Likewise.
1318 * testsuite/20_util/duration/requirements/noexcept.cc: New test.
1319 * testsuite/20_util/time_point/requirements/noexcept.cc: New test.
1321 * include/std/version (__cpp_lib_erase_if): Move to C++20 group.
1323 2019-01-11 Jakub Jelinek <jakub@redhat.com>
1325 * include/std/type_traits (__cpp_lib_is_constant_evaluated): Define.
1326 * include/std/version (__cpp_lib_is_constant_evaluated): Define.
1328 2019-01-11 Jonathan Wakely <jwakely@redhat.com>
1331 * include/bits/functional_hash.h (hash<nullptr_t>): Define
1332 specialization for C++17 (P0513R0, LWG 2817).
1333 * testsuite/20_util/hash/nullptr.cc: New test.
1336 * config/abi/pre/gnu.ver (GLIBCXX_3.4.6): Remove unused duplicate
1337 pattern for std::basic_stringbuf::str().
1339 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Correct recent changes to
1340 basic_ostream::operator<< patterns.
1342 2019-01-10 Jonathan Wakely <jwakely@redhat.com>
1344 * testsuite/27_io/filesystem/operations/last_write_time.cc: Fix
1345 test failures on targets with 32-bit time_t.
1347 * include/bits/erase_if.h: Define __cpp_lib_erase_if.
1348 * include/std/deque: Likewise.
1349 * include/std/forward_list: Likewise.
1350 * include/std/list: Likewise.
1351 * include/std/string: Likewise.
1352 * include/std/vector: Likewise.
1353 * include/std/version: Likewise.
1354 * testsuite/21_strings/basic_string/erasure.cc: Test macro.
1355 * testsuite/23_containers/deque/erasure.cc: Likewise.
1356 * testsuite/23_containers/forward_list/erasure.cc: Likewise.
1357 * testsuite/23_containers/list/erasure.cc: Likewise.
1358 * testsuite/23_containers/map/erasure.cc: Likewise.
1359 * testsuite/23_containers/set/erasure.cc: Likewise.
1360 * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
1361 * testsuite/23_containers/unordered_set/erasure.cc: Likewise.
1362 * testsuite/23_containers/vector/erasure.cc: Likewise.
1364 * include/experimental/internet [AI_NUMERICSERV]
1365 (resolver_base::numeric_service): Define conditionally.
1366 * testsuite/experimental/net/internet/resolver/base.cc: Test it
1368 * testsuite/experimental/net/internet/resolver/ops/lookup.cc:
1371 2019-01-10 Ville Voutilainen <ville.voutilainen@gmail.com>
1372 Jonathan Wakely <jwakely@redhat.com>
1375 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten patterns.
1376 (GLIBCXX_3.4.26): Add new exports.
1377 * include/Makefile.am: Add ostream-inst.cc. Move string-inst.cc to
1378 correct list of sources.
1379 * include/Makefile.in: Regenerate.
1380 * include/std/ostream (operator<<(nullptr_t)): New member function.
1381 * src/c++17/ostream-inst.cc: New file.
1382 * testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc: New
1385 2019-01-10 Jonathan Wakely <jwakely@redhat.com>
1387 * testsuite/util/testsuite_fs.h (nonexistent_path): Include name
1388 of the source file containing the caller.
1389 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Remove
1390 directories created by test.
1391 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
1393 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
1395 * testsuite/experimental/filesystem/iterators/
1396 recursive_directory_iterator.cc: Likewise.
1398 2019-01-10 Jakub Jelinek <jakub@redhat.com>
1400 PR tree-optimization/88775
1401 * include/bits/stl_function.h (greater<_Tp*>::operator(),
1402 less<_Tp*>::operator(), greater_equal<_Tp*>::operator(),
1403 less_equal<_Tp*>::operator()): Use __builtin_is_constant_evaluated
1404 instead of __builtin_constant_p if available. Don't bother with
1405 the pointer comparison in C++11 and earlier.
1407 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
1411 * include/ext/bitmap_allocator.h: Mechanically replace "can not"
1414 2019-01-09 Jonathan Wakely <jwakely@redhat.com>
1416 * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix expected output
1417 for filesystem::path. Give variables more distinctive names.
1419 * include/std/optional (_Optional_payload_base::_M_copy_assign): New
1420 member function to perform non-trivial assignment.
1421 (_Optional_payload_base::_M_move_assign): Likewise.
1422 (_Optional_payload<T, true, false, true>::operator=)
1423 (_Optional_payload<T, true, true, false>::operator=)
1424 (_Optional_payload<T, true, false, false>::operator=): Call
1425 _M_copy_assign and/or _M_move_assign to do non-trivial assignments.
1428 * testsuite/26_numerics/complex/operators/more_constexpr.cc: Do not
1429 test std::complex<long double> if long double format is IBM128.
1430 * testsuite/26_numerics/complex/requirements/more_constexpr.cc:
1433 2019-01-08 Jonathan Wakely <jwakely@redhat.com>
1435 * testsuite/libstdc++-prettyprinters/compat.cc: Test printer support
1436 for old std::unique_ptr layout.
1437 * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix std::variant test
1438 to become valueless. Add filesystem::path tests.
1441 * include/std/optional (_Optional_payload_base): New class template
1442 for common code hoisted from _Optional_payload specializations. Use
1443 a template for the union, to allow a partial specialization for
1444 types with non-trivial destructors. Add constructors for in-place
1445 initialization to the union.
1446 (_Optional_payload(bool, const _Optional_payload&)): Use _M_construct
1447 to perform non-trivial copy construction, instead of relying on
1448 non-standard copy elision in a delegating constructor.
1449 (_Optional_payload(bool, _Optional_payload&&)): Likewise for
1450 non-trivial move construction.
1451 (_Optional_payload): Derive from _Optional_payload_base and use it
1452 for everything except the non-trivial assignment operators, which are
1454 (_Optional_payload<false, C, M>): Derive from the specialization
1455 _Optional_payload<true, false, false> and add a destructor.
1456 (_Optional_base_impl::_M_destruct, _Optional_base_impl::_M_reset):
1457 Forward to corresponding members of _Optional_payload.
1458 (_Optional_base_impl::_M_is_engaged, _Optional_base_impl::_M_get):
1459 Hoist common members from _Optional_base.
1460 (_Optional_base): Make all members and base class public.
1461 (_Optional_base::_M_get, _Optional_base::_M_is_engaged): Move to
1462 _Optional_base_impl.
1463 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Add
1464 support for new std::optional layout.
1465 * testsuite/libstdc++-prettyprinters/compat.cc: New test.
1468 * include/bits/locale_conv.h: Use <> for includes not "".
1469 * include/ext/random: Likewise.
1470 * include/ext/vstring.h: Likewise.
1472 2019-01-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1474 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten existing patterns.
1475 (GLIBCXX_3.4.21): Likewise.
1477 2019-01-08 Jonathan Wakely <jwakely@redhat.com>
1480 * src/filesystem/ops.cc (last_write_time): Fix preprocessor condition
1481 to match the one that controls whether utimbuf and utime are declared.
1483 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
1486 * include/bits/char_traits.h (char_traits::move): Do not pass null
1487 pointers to memmove.
1488 * include/bits/locale_facets.h
1489 (ctype<char>::widen(const char*, const char*, char*)): Do not
1490 pass null pointers to memcpy.
1491 (ctype<char>::narrow(const char*, const char*, char, char*)):
1493 (ctype<char>::do_widen(const char*, const char*, char*)):
1495 (ctype<char>::do_narrow(const char*, const char*, char, char*)):
1498 * doc/xml/manual/spine.xml: Update copyright years.
1499 * doc/xml/manual/status_cxx2017.xml: Adjust note about -lstdc++fs.
1500 * doc/xml/manual/using.xml: Remove requirement to link with -lstdc++fs
1501 for C++17 filesystem library.
1502 * doc/html/*: Regenerate.
1504 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for truncate.
1505 * config.h.in: Regenerate.
1506 * config/abi/pre/gnu.ver: Order patterns for filesystem operations
1507 alphabetically and add missing entries for copy_symlink,
1508 hard_link_count, rename, and resize_file.
1509 * configure: Regenerate.
1510 * src/c++17/fs_ops.cc (resize_file): Remove #if so posix::truncate is
1511 used unconditionally.
1512 * src/filesystem/ops-common.h (__gnu_posix::truncate)
1513 [!_GLIBCXX_HAVE_TRUNCATE]: Provide fallback definition that only
1514 supports truncating to zero length.
1515 * testsuite/27_io/filesystem/operations/all.cc: New test.
1516 * testsuite/27_io/filesystem/operations/resize_file.cc: New test.
1518 2019-01-06 Jonathan Wakely <jwakely@redhat.com>
1521 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for utime and
1522 lstat and define _GLIBCXX_USE_UTIME and _GLIBCXX_USE_LSTAT.
1523 * config.h.in: Regenerate.
1524 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export symbols for
1525 remaining std::filesystem types and functions.
1526 * configure: Regenerate.
1527 * src/c++17/Makefile.am: Add C++17 filesystem sources.
1528 * src/c++17/Makefile.in: Regenerate.
1529 * src/c++17/cow-fs_dir.cc: Move src/filesystem/cow-std-dir.cc to
1530 here, and change name of included file.
1531 * src/c++17/cow-fs_ops.cc: Move src/filesystem/cow-std-ops.cc to
1532 here, and change name of included file.
1533 * src/c++17/fs_dir.cc: Move src/filesystem/std-dir.cc to here. Change
1534 path to dir-common.h.
1535 * src/c++17/fs_ops.cc: Move src/filesystem/std-ops.cc to here. Change
1536 path to ops-common.h. Disable -Wunused-parameter warnings.
1537 (internal_file_clock): Define unconditionally.
1538 [!_GLIBCXX_HAVE_SYS_STAT_H] (internal_file_clock::from_stat): Do not
1540 (do_copy_file, do_space): Move definitions to ops.common.h.
1541 (copy, file_size, hard_link_count, last_write_time, space): Only
1542 perform operation when _GLIBCXX_HAVE_SYS_STAT_H is defined, otherwise
1544 (last_write_time, read_symlink): Remove unused attributes from
1546 * src/filesystem/Makefile.am: Remove C++17 filesystem sources.
1547 * src/filesystem/Makefile.in: Regenerate.
1548 * src/filesystem/cow-std-dir.cc: Move to src/c++17/cow-fs_dir.cc.
1549 * src/filesystem/cow-std-ops.cc: Move to src/c++17/cow-fs_ops.cc.
1550 * src/filesystem/std-dir.cc: Move to src/c++17/fs_dir.cc.
1551 * src/filesystem/std-ops.cc: Move to src/c++17/fs_ops.cc.
1552 * src/filesystem/dir-common.h [!_GLIBCXX_HAVE_DIRENT_H]: Define
1553 dummy types and functions instead of using #error.
1554 * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H]: Use #error.
1555 * src/filesystem/ops-common.h [!_GLIBCXX_USE_LSTAT] (lstat): Define
1557 [!_GLIBCXX_HAVE_UNISTD_H]: Define dummy types and functions.
1558 (do_copy_file, do_space): Move definitions here from std-ops.cc.
1559 * src/filesystem/ops.cc: Adjust calls to do_copy_file and do_space
1560 to account for new namespace.
1561 * testsuite/27_io/filesystem/directory_entry/86597.cc: Remove
1562 -lstdc++fs from dg-options.
1563 * testsuite/27_io/filesystem/directory_entry/lwg3171.cc: Likewise.
1564 * testsuite/27_io/filesystem/file_status/1.cc: Likewise.
1565 * testsuite/27_io/filesystem/filesystem_error/cons.cc: Likewise.
1566 * testsuite/27_io/filesystem/filesystem_error/copy.cc: Likewise.
1567 * testsuite/27_io/filesystem/iterators/directory_iterator.cc:
1569 * testsuite/27_io/filesystem/iterators/pop.cc: Likewise.
1570 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
1572 * testsuite/27_io/filesystem/operations/absolute.cc: Likewise.
1573 * testsuite/27_io/filesystem/operations/canonical.cc: Likewise.
1574 * testsuite/27_io/filesystem/operations/copy.cc: Likewise.
1575 * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
1576 * testsuite/27_io/filesystem/operations/create_directories.cc:
1578 * testsuite/27_io/filesystem/operations/create_directory.cc: Likewise.
1579 * testsuite/27_io/filesystem/operations/create_symlink.cc: Likewise.
1580 * testsuite/27_io/filesystem/operations/current_path.cc: Likewise.
1581 * testsuite/27_io/filesystem/operations/equivalent.cc: Likewise.
1582 * testsuite/27_io/filesystem/operations/exists.cc: Likewise.
1583 * testsuite/27_io/filesystem/operations/file_size.cc: Likewise.
1584 * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
1585 * testsuite/27_io/filesystem/operations/last_write_time.cc: Likewise.
1586 * testsuite/27_io/filesystem/operations/permissions.cc: Likewise.
1587 * testsuite/27_io/filesystem/operations/proximate.cc: Likewise.
1588 * testsuite/27_io/filesystem/operations/read_symlink.cc: Likewise.
1589 * testsuite/27_io/filesystem/operations/relative.cc: Likewise.
1590 * testsuite/27_io/filesystem/operations/remove.cc: Likewise.
1591 * testsuite/27_io/filesystem/operations/remove_all.cc: Likewise.
1592 * testsuite/27_io/filesystem/operations/space.cc: Likewise.
1593 * testsuite/27_io/filesystem/operations/status.cc: Likewise.
1594 * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
1595 * testsuite/27_io/filesystem/operations/temp_directory_path.cc:
1597 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Likewise.
1601 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Make various patterns for
1602 typeinfo and vtables less greedy.
1603 (GLIBCXX_3.4.26): Export symbols for std::filesystem::path.
1604 * src/c++17/Makefile.am: Add fs_path.cc and cow-fs_path.cc.
1605 * src/c++17/Makefile.in: Regenerate.
1606 * src/c++17/cow-fs_path.cc: Move src/filesystem/cow-std-path.cc to
1607 here, and change name of included file.
1608 * src/c++17/fs_path.cc: Move src/filesystem/std-path.cc to here.
1609 * src/filesystem/Makefile.am: Remove std-path.cc and cow-std-path.cc
1611 * src/filesystem/Makefile.in: Regenerate.
1612 * src/filesystem/cow-std-path.cc: Move to src/c++17/cow-fs_path.cc.
1613 * src/filesystem/std-path.cc: Move to src/c++17/fs_path.cc.
1614 * testsuite/27_io/filesystem/path/append/path.cc: Remove -lstdc++fs
1615 from dg-options and remove dg-require-filesystem-ts.
1616 * testsuite/27_io/filesystem/path/append/source.cc: Likewise.
1617 * testsuite/27_io/filesystem/path/assign/assign.cc: Likewise.
1618 * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise.
1619 * testsuite/27_io/filesystem/path/compare/compare.cc: Likewise.
1620 * testsuite/27_io/filesystem/path/compare/lwg2936.cc: Likewise.
1621 * testsuite/27_io/filesystem/path/compare/path.cc: Likewise.
1622 * testsuite/27_io/filesystem/path/compare/strings.cc: Likewise.
1623 * testsuite/27_io/filesystem/path/concat/path.cc: Likewise.
1624 * testsuite/27_io/filesystem/path/concat/strings.cc: Likewise.
1625 * testsuite/27_io/filesystem/path/construct/80762.cc: Likewise.
1626 * testsuite/27_io/filesystem/path/construct/copy.cc: Likewise.
1627 * testsuite/27_io/filesystem/path/construct/default.cc: Likewise.
1628 * testsuite/27_io/filesystem/path/construct/format.cc: Likewise.
1629 * testsuite/27_io/filesystem/path/construct/locale.cc: Likewise.
1630 * testsuite/27_io/filesystem/path/construct/range.cc: Likewise.
1631 * testsuite/27_io/filesystem/path/construct/string_view.cc: Likewise.
1632 * testsuite/27_io/filesystem/path/decompose/extension.cc: Likewise.
1633 * testsuite/27_io/filesystem/path/decompose/filename.cc: Likewise.
1634 * testsuite/27_io/filesystem/path/decompose/parent_path.cc: Likewise.
1635 * testsuite/27_io/filesystem/path/decompose/relative_path.cc: Likewise.
1636 * testsuite/27_io/filesystem/path/decompose/root_directory.cc:
1638 * testsuite/27_io/filesystem/path/decompose/root_name.cc: Likewise.
1639 * testsuite/27_io/filesystem/path/decompose/root_path.cc: Likewise.
1640 * testsuite/27_io/filesystem/path/decompose/stem.cc: Likewise.
1641 * testsuite/27_io/filesystem/path/generation/normal.cc: Likewise.
1642 * testsuite/27_io/filesystem/path/generation/normal2.cc: Likewise.
1643 * testsuite/27_io/filesystem/path/generation/proximate.cc: Likewise.
1644 * testsuite/27_io/filesystem/path/generation/relative.cc: Likewise.
1645 * testsuite/27_io/filesystem/path/generic/generic_string.cc: Likewise.
1646 * testsuite/27_io/filesystem/path/itr/components.cc: Likewise.
1647 * testsuite/27_io/filesystem/path/itr/traversal.cc: Likewise.
1648 * testsuite/27_io/filesystem/path/modifiers/clear.cc: Likewise.
1649 * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc:
1651 * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc:
1653 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
1655 * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc:
1657 * testsuite/27_io/filesystem/path/modifiers/swap.cc: Likewise.
1658 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
1659 * testsuite/27_io/filesystem/path/nonmember/append.cc: Likewise.
1660 * testsuite/27_io/filesystem/path/nonmember/hash_value.cc: Likewise.
1661 * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
1662 * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
1663 * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
1664 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
1665 * testsuite/27_io/filesystem/path/query/has_relative_path.cc: Likewise.
1666 * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
1668 * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
1669 * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
1670 * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
1671 * testsuite/27_io/filesystem/path/query/is_absolute.cc: Likewise.
1672 * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
1675 * include/std/variant (_Variant_storage<true, _Types...>::_M_valid):
1676 Check is_trivially_copyable instead of is_scalar.
1677 (variant::emplace<N, Args>(Args&&...)): If construction of the new
1678 contained value can throw and its type is trivially copyable then
1679 construct into a temporary variant and move from it, to provide the
1680 strong exception safety guarantee.
1681 (variant::emplace<N, U, Args>(initializer_list<U>, Args&&...)):
1683 * testsuite/20_util/variant/87431.cc: New test.
1684 * testsuite/20_util/variant/run.cc: Adjust test so that throwing
1685 conversion causes valueless state.
1688 * testsuite/17_intro/headers/c++1998/charset.cc: New test.
1689 * testsuite/17_intro/headers/c++2011/charset.cc: New test.
1690 * testsuite/17_intro/headers/c++2014/charset.cc: New test.
1691 * testsuite/17_intro/headers/c++2017/charset.cc: New test.
1692 * testsuite/17_intro/headers/c++2020/charset.cc: New test.
1694 2019-01-05 Jonathan Wakely <jwakely@redhat.com>
1696 * include/bits/fs_fwd.h (__file_clock): Define new clock.
1697 (file_time_type): Redefine in terms of __file_clock.
1698 * src/filesystem/ops-common.h (file_time): Add FIXME comment about
1700 * src/filesystem/std-ops.cc (is_set(perm_options, perm_options)): Give
1702 (internal_file_lock): New helper type for accessing __file_clock.
1703 (do_copy_file): Use internal_file_lock to convert system time to
1705 (last_write_time(const path&, error_code&)): Likewise.
1706 (last_write_time(const path&, file_time_type, error_code&)): Likewise.
1708 2019-01-04 Jonathan Wakely <jwakely@redhat.com>
1710 * config/abi/pre/gnu.ver (GLIBCXX_3.4.21): Make patterns less greedy
1711 for const member functions of std::basic_string.
1712 (GLIBCXX_3.4.26): Export member functions of std::basic_string added
1714 * include/bits/basic_string.h (basic_string(__sv_wrapper, const A&)):
1715 Make non-standard constructor private.
1716 [!_GLIBCXX_USE_CXX11_ABI] (basic_string(__sv_wrapper, const A&)):
1718 * include/bits/basic_string.tcc (std::string, std::wstring): Declare
1719 explicit instantiations for C++17 as well as earlier dialects.
1720 * src/c++17/Makefile.am: Add new source files.
1721 * src/c++17/Makefile.in: Regenerate.
1722 * src/c++17/cow-string-inst.cc: New file defining explicit
1723 instantiations for basic_string member functions added in C++17.
1724 * src/c++17/string-inst.cc: Likewise.
1726 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export allocator-extended
1727 copy/move constructors for old std::basic_string.
1728 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
1729 (basic_string::reference, basic_string::const_reference): Define
1730 as plain references for C++11 and later.
1731 (basic_string::basic_string()): Put constructor body outside
1732 preprocessor conditional groups.
1733 (basic_string::basic_string(basic_string&&)): Move _Alloc_hider
1734 instead of copying it.
1735 (basic_string::basic_string(const basic_string&, const _Alloc&)):
1737 (basic_string::basic_string(basic_string&&, const _Alloc&)):
1739 * include/bits/fs_path.h [!_GLIBCXX_USE_CXX11_ABI]: Remove special
1740 cases for old basic_string.
1741 * testsuite/21_strings/basic_string/cons/char/8.cc: Test
1742 allocator-extended constructors unconditionally. Add extra members to
1743 allocator type when using old string ABI.
1744 * testsuite/21_strings/basic_string/allocator/71964.cc: Enable test
1746 * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
1748 * testsuite/23_containers/list/61347.cc: Avoid spurious failure when
1749 -fno-inline added to test flags.
1751 * testsuite/21_strings/basic_string/requirements/
1752 explicit_instantiation/debug.cc: Remove XFAIL for old ABI.
1754 * testsuite/27_io/filesystem/filesystem_error/copy.cc: Fix static
1755 assertion failures with old std::string ABI.
1757 * include/bits/fs_path.h (path::_List::erase): Replace both overloads
1759 (path::pop_back(), path::_M_erase_from(const_iterator)): New member
1760 functions that will only erase elements at the end.
1761 * src/filesystem/std-path.cc (path::_List::_Impl::pop_back()): Define.
1762 (path::_List::_Impl::_M_erase_from(const_iterator)): Define.
1763 (path::_List::operator=(const _List&)): Use _M_erase_from(p) instead
1765 (path::_List::pop_back()): Define.
1766 (path::_List::_M_erase_from(const_iterator)): Define.
1767 (path::operator/=(const path&)): Use pop_back to remove last component
1768 and _M_erase_from to remove multiple components.
1769 (path::_M_append(basic_string_view<value_type>)): Likewise.
1770 (path::operator+=(const path&)): Likewise.
1771 (path::_M_concat(basic_string_view<value_type>)): Likewise.
1772 (path::remove_filename()): Likewise.
1773 (path::lexically_normal()): Use _List::_Impl iterators instead of
1774 path::iterator. Use pop_back to remove components from the end. Clear
1775 trailing filename, instead of using erase(const_iterator) to remove
1776 a non-final component.
1777 * testsuite/27_io/filesystem/path/generation/normal.cc: Test
1779 * testsuite/27_io/filesystem/path/generation/normal2.cc: New test.
1781 * src/filesystem/std-path.cc (path::operator+=(const path&)): Fix
1782 incorrect treatment of empty filename after trailing slash.
1783 * testsuite/27_io/filesystem/path/concat/path.cc: Test problem case.
1785 * testsuite/21_strings/basic_string/modifiers/assign/char/
1786 move_assign_optim.cc: Avoid spurious failure when -fno-inline added
1788 * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/
1789 move_assign_optim.cc: Likewise.
1791 2019-01-03 Jonathan Wakely <jwakely@redhat.com>
1792 Jakub Jelinek <jakub@redhat.com>
1795 * include/experimental/memory: Replace UTF-8 quote characters.
1796 * include/std/future: Replace UTF-8 "em dash" characters.
1798 2019-01-03 Jonathan Wakely <jwakely@redhat.com>
1801 * include/bits/forward_list.h: Replace UTF-8 "ligature fi" character.
1802 * include/debug/forward_list: Likewise.
1803 * include/experimental/bits/shared_ptr.h: Remove UTF-8 "section sign"
1805 * include/experimental/chrono: Likewise.
1806 * include/experimental/functional: Likewise.
1807 * include/experimental/ratio: Likewise.
1808 * include/experimental/system_error: Likewise.
1809 * include/experimental/tuple: Likewise.
1810 * include/experimental/type_traits: Likewise.
1811 * include/parallel/workstealing.h: Replace UTF-8 "en dash" character.
1812 * include/parallel/multiseq_selection.h: Likewise.
1815 * config/abi/pre/gnu.ver: Add missing exports.
1816 * testsuite/22_locale/collate_byname/88681.cc: New test.
1817 * testsuite/22_locale/time_get/get/char/88681.cc: New test.
1818 * testsuite/22_locale/time_get/get/wchar_t/88681.cc: New test.
1820 2019-01-02 Jonathan Wakely <jwakely@redhat.com>
1822 * testsuite/23_containers/map/cons/deduction.cc: Test deduction from
1823 initializer_list<value_type> and from input iterator ranges.
1824 * testsuite/23_containers/multimap/cons/deduction.cc: Likewise.
1826 * testsuite/experimental/string_view/element_access/char/empty.cc:
1827 Fix year range in copyright header.
1829 2019-01-02 Joel Brobecker <brobecker@adacore.com>
1831 * testsuite/21_strings/basic_string_view/element_access/char/empty.cc:
1832 Fix year range in copyright header.
1834 2019-01-01 Jakub Jelinek <jakub@redhat.com>
1836 Update copyright years.
1838 Copyright (C) 2019 Free Software Foundation, Inc.
1840 Copying and distribution of this file, with or without modification,
1841 are permitted in any medium without royalty provided the copyright
1842 notice and this notice are preserved.