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