]>
Commit | Line | Data |
---|---|---|
c677a9d7 | 1 | 2019-02-14 Jonathan Wakely <jwakely@redhat.com> |
2 | ||
99d130bf | 3 | * configure.ac: Check for C11 timespec_get function. |
4 | * crossconfig.m4 (freebsd, linux, gnu, cygwin, solaris, netbsd) | |
5 | (openbsd): Likewise | |
6 | * config.h.in: Regenerate. | |
7 | * configure: Regenerate. | |
8 | * include/c_global/ctime (timespec, timespec_get): Add to namespace | |
9 | std for C++17 and up. | |
10 | ||
48772ec3 | 11 | * doc/xml/manual/intro.xml: Document LWG 2537 status. |
12 | * include/bits/stl_queue.h | |
13 | (priority_queue(const Compare&, const Container&, const Alloc&)) | |
14 | (priority_queue(const Compare&, Container&&, const Alloc&)): Call | |
15 | make_heap. | |
16 | * testsuite/23_containers/priority_queue/dr2537.cc: New test. | |
17 | ||
ee32dd64 | 18 | * doc/xml/manual/intro.xml: Document LWG 2566 status. |
19 | * include/bits/stl_queue.h (queue, priority_queue): Add static | |
20 | assertions to enforce LWG 2566 requirement on value_type. | |
21 | * include/bits/stl_stack.h (stack): Likewise. | |
22 | ||
9724de38 | 23 | PR middle-end/89303 |
24 | * testsuite/20_util/enable_shared_from_this/89303.cc: New test. | |
25 | ||
c677a9d7 | 26 | * doc/xml/manual/intro.xml: Document LWG 2735 status. |
27 | * include/bits/std_abs.h: Add comment about LWG 2735. | |
28 | * testsuite/26_numerics/headers/cstdlib/dr2735.cc: New test. | |
29 | ||
4194f872 | 30 | 2019-02-13 Jonathan Wakely <jwakely@redhat.com> |
31 | ||
32 | PR libstdc++/89345 | |
33 | * include/std/version [__cpp_impl_destroying_delete] | |
34 | (__cpp_lib_destroying_delete): Only define for C++2a and later. | |
35 | * libsupc++/new [__cpp_impl_destroying_delete] | |
36 | (__cpp_lib_destroying_delete): Likewise. | |
37 | (destroying_delete_t, destroying_delete): Likewise, but define even | |
38 | when __cpp_impl_destroying_delete is not defined. | |
39 | * testsuite/18_support/destroying_delete.cc: New test. | |
40 | ||
aaacaee2 | 41 | 2019-02-11 Jonathan Wakely <jwakely@redhat.com> |
42 | ||
43 | PR libstdc++/89023 | |
44 | * testsuite/17_intro/headers/c++2011/parallel_mode.cc: New test. | |
45 | * testsuite/17_intro/headers/c++2014/parallel_mode.cc: New test. | |
46 | * testsuite/17_intro/headers/c++2017/parallel_mode.cc: New test. | |
47 | * testsuite/28_regex/headers/regex/parallel_mode.cc: Remove. | |
48 | ||
5256b0dd | 49 | 2019-02-09 Jonathan Wakely <jwakely@redhat.com> |
50 | ||
51 | PR libstdc++/71044 | |
52 | * include/bits/fs_path.h (path::has_root_name) | |
53 | (path::has_root_directory, path::has_root_path) | |
54 | (path::has_relative_path, path::has_parent_path) | |
55 | (path::has_filename, path::has_stem, path::has_extension) | |
56 | (path::is_absolute, path::is_relative, path::_M_find_extension): Add | |
57 | noexcept. | |
58 | * src/c++17/fs_path.cc (path::has_root_name) | |
59 | (path::has_root_directory, path::has_root_path) | |
60 | (path::has_relative_path, path::has_parent_path) | |
61 | (path::has_filename, path::_M_find_extension): Add noexcept. | |
62 | ||
e32f625e | 63 | 2019-02-06 Jonathan Wakely <jwakely@redhat.com> |
64 | ||
65 | PR libstdc++/89102 (partial) | |
66 | * include/std/type_traits (common_type<>): Define. | |
67 | (common_type<T>): Derive from common_type<T, T>. | |
68 | * testsuite/20_util/common_type/requirements/explicit_instantiation.cc: | |
69 | Test zero-length template argument list. | |
70 | * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: | |
71 | Test additional single argument cases. | |
72 | * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc: | |
73 | Adjust expected error. | |
74 | ||
b03489db | 75 | 2019-02-05 Jonathan Wakely <jwakely@redhat.com> |
76 | ||
e89e4fec | 77 | PR libstdc++/89128 |
78 | * include/bits/stl_queue.h (queue, priority_queue): Add deduction | |
79 | guides. | |
80 | * include/bits/stl_stack.h (stack): Likewise. | |
81 | * testsuite/23_containers/priority_queue/deduction.cc: New test. | |
82 | * testsuite/23_containers/queue/deduction.cc: New test. | |
83 | * testsuite/23_containers/stack/deduction.cc: New test. | |
84 | ||
b640dd11 | 85 | PR libstdc++/89194 |
86 | * include/std/type_traits (__is_convertible_helper) | |
87 | (__is_convertible_helper<_From, _To, false>): Revert changes to | |
88 | support is_nothrow_convertible. | |
89 | (__is_nt_convertible_helper): New helper. | |
90 | (is_nothrow_convertible): Use __is_nt_convertible_helper. | |
91 | ||
74c88c5f | 92 | * testsuite/23_containers/vector/modifiers/push_back/49836.cc: Restore |
93 | use of CopyConsOnlyType, but also test DelAnyAssign for completeness. | |
94 | ||
eca5e8d4 | 95 | PR libstdc++/89130 |
96 | * include/bits/alloc_traits.h (__is_copy_insertable_impl): Rename to | |
97 | __is_alloc_insertable_impl. Replace single type member with two | |
98 | members, one for each of copy and move insertable. | |
99 | (__is_move_insertable): New trait for internal use. | |
100 | * include/bits/stl_vector.h (vector::_S_nothrow_relocate(true_type)) | |
101 | (vector::_S_nothrow_relocate(true_type)): New functions to | |
102 | conditionally check if __relocate_a can throw. | |
103 | (vector::_S_use_relocate()): Dispatch to _S_nothrow_relocate based | |
104 | on __is_move_insertable. | |
105 | (vector::_S_do_relocate): New overloaded functions to conditionally | |
106 | call __relocate_a. | |
107 | (vector::_S_relocate): New function that dispatches to _S_do_relocate | |
108 | based on _S_use_relocate. | |
109 | * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert) | |
110 | (vector::_M_default_append): Call _S_relocate instead of __relocate_a. | |
111 | * testsuite/23_containers/vector/modifiers/push_back/89130.cc: New. | |
112 | ||
b03489db | 113 | PR libstdc++/89090 |
114 | * include/bits/stl_uninitialized.h (__relocate_a_1): Make unused | |
115 | parameter unnamed. Add message to static assertion. | |
116 | * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert) | |
117 | (vector::_M_default_append): Use _GLIBCXX17_CONSTEXPR for if constexpr | |
118 | in C++11 code. | |
119 | ||
71625a15 | 120 | 2019-02-05 Marc Glisse <marc.glisse@inria.fr> |
121 | ||
122 | PR libstdc++/87106 | |
123 | * include/bits/stl_uninitialized.h (__is_trivially_relocatable): | |
124 | Rename... | |
125 | (__is_bitwise_relocatable): ... to this. | |
126 | (__relocate_a_1): Adapt. | |
127 | * include/bits/stl_deque.h (__is_trivially_relocatable): Rename... | |
128 | (__is_bitwise_relocatable): ... to this. | |
129 | ||
e7b22e58 | 130 | 2019-01-30 Jonathan Wakely <jwakely@redhat.com> |
131 | ||
132 | PR libstdc++/89117 | |
133 | * src/c++17/fs_path.cc (path::replace_extension): Erase extension from | |
134 | final component as well as from _M_pathname. Append the dot using | |
135 | operator+= instead of only to _M_pathname. | |
136 | (path::_M_find_extension): Reformat slightly. | |
137 | * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc: | |
138 | Add more test cases. | |
139 | ||
dae923a7 | 140 | 2019-01-30 Ulrich Drepper <drepper@redhat.com> |
141 | ||
142 | * doc/xml/manual/status_cxx2020.xml: Update P0600 entry. | |
143 | ||
710397ad | 144 | 2019-01-29 Jonathan Wakely <jwakely@redhat.com> |
145 | ||
5efc4356 | 146 | * testsuite/26_numerics/headers/complex/synopsis.cc: Remove incorrect |
147 | constexpr specifiers from arg and proj. | |
148 | ||
5f15e718 | 149 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add missing exports for |
150 | __shared_ptr instantiations used by gcc4-compatible ABI. | |
151 | ||
307e86fc | 152 | * include/experimental/forward_list (experimental::erase): Qualify |
153 | call to erase_if. | |
154 | * include/experimental/list (experimental::erase): Likewise. | |
155 | * include/std/forward_list (std::erase): Likewise. | |
156 | * include/std/list (std::erase): Likewise. | |
157 | ||
38129d1a | 158 | * testsuite/20_util/reference_wrapper/result_type.cc: Disable for |
159 | C++2a. | |
160 | * testsuite/20_util/reference_wrapper/typedefs-2.cc: Likewise. | |
161 | * testsuite/20_util/reference_wrapper/typedefs-3.cc: Likewise. | |
162 | * testsuite/20_util/reference_wrapper/typedefs.cc: Likewise. | |
163 | * testsuite/30_threads/async/54297.cc: Suppress nodiscard warning. | |
164 | * testsuite/ext/array_allocator/26875.cc: Likewise. | |
165 | * testsuite/ext/pool_allocator/allocate_chunk.cc: Likewise. | |
166 | * testsuite/util/replacement_memory_operators.h: Likewise. | |
167 | * testsuite/util/testsuite_allocator.h: Likewise. | |
168 | ||
710397ad | 169 | * include/std/memory_resource (__pool_resource::_M_unpooled): Use |
170 | normal mode vector, even for debug mode. | |
171 | * include/std/vector [_GLIBCXX_DEBUG] (_GLIBCXX_STD_C::pmr::vector): | |
172 | Define alias template for normal mode vector. | |
173 | ||
70f71249 | 174 | 2019-01-28 Jonathan Wakely <jwakely@redhat.com> |
175 | ||
176 | PR libstdc++/68737 | |
177 | * config/locale/generic/c_locale.h (__convert_from_v) | |
178 | [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF. | |
179 | * config/os/hpux/os_defines.h: Define _GLIBCXX_HAVE_BROKEN_VSNPRINTF. | |
180 | * include/bits/locale_facets.tcc (num_put::_M_insert_float) | |
181 | [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF. | |
182 | ||
f1074115 | 183 | 2019-01-24 Jonathan Wakely <jwakely@redhat.com> |
184 | ||
4bc4fd90 | 185 | PR libstdc++/88840 |
186 | * include/bits/stl_vector.h (vector::__use_relocate): Replace static | |
187 | data member with static member function _S_use_relocate(). | |
188 | * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert) | |
189 | (vector::_M_default_append): Use _S_use_relocate() instead of | |
190 | __use_relocate. | |
191 | ||
f1074115 | 192 | * testsuite/27_io/filesystem/path/compare/strings.cc: Only compare |
193 | sign of results. | |
194 | ||
1c4657a3 | 195 | 2019-01-22 Jonathan Wakely <jwakely@redhat.com> |
196 | ||
197 | PR libstdc++/88740 | |
198 | * testsuite/util/testsuite_hooks.h [stderr] (VERIFY): Use fprintf to | |
199 | write to stderr instead of using printf. | |
200 | ||
dafe8c59 | 201 | 2019-01-21 Jakub Jelinek <jakub@redhat.com> |
202 | ||
203 | PR libstdc++/86590 | |
204 | * include/bits/char_traits.h (__constant_string_p, | |
205 | __constant_char_array_p): Use __builtin_is_constant_evaluated if | |
206 | available. | |
207 | ||
eaf966f3 | 208 | 2019-01-20 Ulrich Drepper <drepper@redhat.com> |
209 | ||
210 | Implement C++20 P0600r1. | |
211 | * include/backward/hash_map: Add nodiscard attribute to empty. | |
212 | * include/backward/hash_set: Likewise. | |
213 | * backward/hashtable.h: Likewise. | |
214 | * include/bits/basic_string.h: Likewise. | |
215 | * include/bits/forward_list.h: Likewise. | |
216 | * include/bits/hashtable.h: Likewise. | |
217 | * include/bits/regex.h: Likewise. | |
218 | * include/bits/stl_deque.h: Likewise. | |
219 | * include/bits/stl_list.h: Likewise. | |
220 | * include/bits/stl_map.h: Likewise. | |
221 | * include/bits/stl_multimap.h: Likewise. | |
222 | * include/bits/stl_multiset.h: Likewise. | |
223 | * include/bits/stl_queue.h: Likewise. | |
224 | * include/bits/stl_set.h: Likewise. | |
225 | * include/bits/stl_stack.h: Likewise. | |
226 | * include/bits/stl_tree.h: Likewise. | |
227 | * include/bits/stl_vector.h: Likewise. | |
228 | * include/bits/unordered_map.h: Likewise. | |
229 | * include/bits/unordered_set.h: Likewise. | |
230 | * include/debug/array: Likewise. | |
231 | * include/experimental/any: Likewise. | |
232 | * include/experimental/bits/fs_path.h: Likewise. | |
233 | * include/experimental/internet: Likewise. | |
234 | * include/experimental/string_view: Likewise. | |
235 | * include/ext/pb_ds/detail/bin_search_tree_/info_fn_imps.hpp: | |
236 | Likewise. | |
237 | * include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp: | |
238 | Likewise. | |
239 | * include/ext/pb_ds/detail/binary_heap_/info_fn_imps.hpp: | |
240 | Likewise. | |
241 | * include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp: | |
242 | Likewise. | |
243 | * include/ext/pb_ds/detail/cc_hash_table_map_/info_fn_imps.hpp: | |
244 | Likewise. | |
245 | * include/ext/pb_ds/detail/cc_hash_table_map_/size_fn_imps.hpp: | |
246 | Likewise. | |
247 | * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: | |
248 | Likewise. | |
249 | * include/ext/pb_ds/detail/gp_hash_table_map_/info_fn_imps.hpp: | |
250 | Likewise. | |
251 | * include/ext/pb_ds/detail/left_child_next_sibling_heap_/ | |
252 | info_fn_imps.hpp: Likewise. | |
253 | * include/ext/pb_ds/detail/left_child_next_sibling_heap_/ | |
254 | left_child_next_sibling_heap_.hpp: Likewise. | |
255 | * include/ext/pb_ds/detail/list_update_map_/info_fn_imps.hpp: | |
256 | Likewise. | |
257 | * include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp: | |
258 | Likewise. | |
259 | * include/ext/pb_ds/detail/ov_tree_map_/info_fn_imps.hpp: | |
260 | Likewise. | |
261 | * include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hp: | |
262 | Likewise. | |
263 | * include/ext/pb_ds/detail/pat_trie_/info_fn_imps.hpp: | |
264 | Likewise. | |
265 | * include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp: | |
266 | Likewise. | |
267 | * include/ext/pb_ds/detail/rc_binomial_heap_/rc.hpp: | |
268 | Likewise. | |
269 | * include/ext/pb_ds/detail/tree_trace_base.hpp: Likewise. | |
270 | * include/ext/pb_ds/trie_policy.hpp: Likewise. | |
271 | * include/ext/rope: Likewise. | |
272 | * include/ext/slist: Likewise. | |
273 | * include/ext/vstring.h: Likewise. | |
274 | * include/profile/array: Likewise. | |
275 | * include/std/array: Likewise. | |
276 | * include/tr1/array: Likewise. | |
277 | * include/tr1/hashtable.h: Likewise. | |
278 | * include/tr1/regex: Likewise. | |
279 | * include/tr2/dynamic_bitset: Likewise. | |
280 | * include/bits/alloc_traits.h: Add nodiscard attribute to | |
281 | allocate. | |
282 | * include/experimental/memory_resource: Likewise. | |
283 | * include/ext/alloc_traits.h: Likewise. | |
284 | * include/ext/array_allocator.h: Likewise. | |
285 | * include/ext/bitmap_allocator.h: Likewise. | |
286 | * include/ext/debug_allocator.h: Likewise. | |
287 | * include/ext/extptr_allocator.h: Likewise. | |
288 | * include/ext/mt_allocator.h: Likewise. | |
289 | * include/ext/new_allocator.h: Likewise. | |
290 | * include/ext/pool_allocator.h: Likewise. | |
291 | * include/ext/throw_allocator.h: Likewise. | |
292 | * include/std/scoped_allocator: Likewise. | |
293 | * libsupc++/eh_alloc.cc: Likewise. | |
294 | * include/std/future: Add nodiscard attribute to async. | |
295 | * libsupc++/new: Add nodiscard attribute to new. | |
296 | ||
3c1c2a8c | 297 | 2019-01-18 Jonathan Wakely <jwakely@redhat.com> |
298 | ||
299 | PR libstdc++/87514 | |
300 | PR libstdc++/87520 | |
301 | PR libstdc++/88782 | |
302 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export new symbol. | |
303 | * include/bits/shared_ptr.h | |
304 | (shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)) | |
305 | (allocate_shared): Change to use new tag type. | |
306 | * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_eq): | |
307 | Declare new member function. | |
308 | (_Sp_alloc_shared_tag): Define new type. | |
309 | (_Sp_counted_ptr_inplace): Declare __shared_count<_Lp> as a friend. | |
310 | (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Use | |
311 | _Sp_make_shared_tag::_S_eq to check type_info. | |
312 | (__shared_count(Ptr, Deleter),__shared_count(Ptr, Deleter, Alloc)): | |
313 | Constrain to prevent being called with _Sp_alloc_shared_tag. | |
314 | (__shared_count(_Sp_make_shared_tag, const _Alloc&, Args&&...)): | |
315 | Replace constructor with ... | |
316 | (__shared_count(Tp*&, _Sp_alloc_shared_tag<_Alloc>, Args&&...)): Use | |
317 | reference parameter so address of the new object can be returned to | |
318 | the caller. Obtain the allocator from the tag type. | |
319 | (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Replace | |
320 | constructor with ... | |
321 | (__shared_ptr(_Sp_alloc_shared_tag<Alloc>, Args&&...)): Pass _M_ptr | |
322 | to the __shared_count constructor. | |
323 | (__allocate_shared): Change to use new tag type. | |
324 | * src/c++11/shared_ptr.cc (_Sp_make_shared_tag::_S_eq): Define. | |
325 | ||
21a962b2 | 326 | 2019-01-17 Jonathan Wakely <jwakely@redhat.com> |
327 | ||
464ac146 | 328 | * src/c++17/fs_ops.cc |
329 | (equivalent(const path&, const path&, error_code&)) | |
330 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use GetFileInformationByHandle to | |
331 | compare files instead of relying on incomplete info returned by stat. | |
332 | ||
2987a93d | 333 | PR libstdc++/88884 |
334 | * src/c++17/fs_ops.cc (absolute(const path&, error_code&)): Do nothing | |
335 | if the path is already absolute. | |
336 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize root-directory. | |
337 | [!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Pass error_code to current_path. | |
338 | ||
21a962b2 | 339 | PR libstdc++/88881 |
340 | * src/c++17/fs_ops.cc (canonical(const path&, error_code&)) | |
341 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize path, to match behaviour | |
342 | of filesystem::exists. | |
343 | (create_directories(const path&, error_code&)): Add assertions. | |
344 | (status(const path&, error_code&)) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: | |
345 | Add workaround for bug in _wstat for paths with trailing slash. | |
346 | * testsuite/27_io/filesystem/operations/create_directories.cc: Adjust | |
347 | for expected behaviour on mingw. | |
348 | * testsuite/experimental/filesystem/operations/create_directories.cc: | |
349 | Likewise. | |
350 | * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Use | |
351 | "TMP" instead of "TMPDIR" and clean environment before each test. Do | |
352 | not test permissions on mingw targets. | |
353 | ||
93478c9f | 354 | 2019-01-16 Jonathan Wakely <jwakely@redhat.com> |
355 | ||
356 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add exports for fstream | |
357 | constructors and open members taking wide strings. Fix patterns for | |
358 | filesystem::path members to match wstring_view parameters. Add | |
359 | exports for shared_ptr members used by directory iterators. | |
360 | * src/c++17/fs_ops.cc (remove(const path&, error_code&)): Clear the | |
361 | error code parameter if the file doesn't exist. | |
362 | * src/filesystem/ops.cc (remove(const path&, error_code&)): | |
363 | Likewise. | |
364 | * testsuite/27_io/filesystem/operations/canonical.cc: Fix expected | |
365 | values for mingw targets, where "/" is not an absolute path. Do not | |
366 | test symlinks on mingw targets. | |
367 | * testsuite/experimental/filesystem/operations/canonical.cc: Likewise. | |
368 | * testsuite/27_io/filesystem/operations/copy.cc: Do not test symlinks | |
369 | on mingw targets. | |
370 | * testsuite/experimental/filesystem/operations/copy.cc: Likewise. | |
371 | * testsuite/27_io/filesystem/operations/create_directories.cc: Check | |
372 | that each component of the path is created. | |
373 | * testsuite/experimental/filesystem/operations/create_directories.cc: | |
374 | Likewise. | |
375 | * testsuite/27_io/filesystem/operations/exists.cc: Do not test | |
376 | permissions on mingw targets. | |
377 | * testsuite/experimental/filesystem/operations/exists.cc: Likewise. | |
378 | * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise. | |
379 | * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise. | |
380 | * testsuite/27_io/filesystem/operations/permissions.cc: XFAIL for | |
381 | mingw targets. | |
382 | * testsuite/experimental/filesystem/operations/permissions.cc: | |
383 | Likewise. | |
384 | * testsuite/27_io/filesystem/operations/remove.cc: Do not test | |
385 | symlinks or permissions on mingw targets. | |
386 | * testsuite/experimental/filesystem/operations/remove.cc: Likewise. | |
387 | * testsuite/27_io/filesystem/operations/remove_all.cc: Do not test | |
388 | symlinks on mingw targets. | |
389 | * testsuite/experimental/filesystem/operations/remove_all.cc: | |
390 | Likewise. | |
391 | * testsuite/27_io/filesystem/operations/status.cc: Do not test | |
392 | permissions on mingw targets. | |
393 | * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Do not | |
394 | test symlinks on mingw targets. | |
395 | * testsuite/experimental/filesystem/operations/space.cc: Fix test | |
396 | for mingw targets. | |
397 | ||
af93b844 | 398 | 2019-02-14 Ulrich Drepper <drepper@redhat.com> |
399 | ||
400 | PR libstdc++/88738 | |
401 | Warn about unused comparisons of shared_ptr/unique_ptr | |
402 | * include/bits/c++config [_GLIBCXX_NODISCARD]: Define. | |
403 | * include/bits/shared_ptr.h: Use it for operator ==, !=, | |
404 | <, <=, >, >= for shared_ptr. | |
405 | * include/bits/unique_ptr.h: Likewise for unique_ptr. | |
406 | ||
8793c0de | 407 | 2019-01-15 Jonathan Wakely <jwakely@redhat.com> |
408 | ||
afa61572 | 409 | * include/bits/shared_ptr_base.h (__cpp_lib_shared_ptr_arrays): Define |
410 | as 201611L, because P0497R0 changes are supported. | |
411 | * include/std/version (__cpp_lib_shared_ptr_arrays): Likewise. | |
412 | ||
feb89906 | 413 | * include/bits/erase_if.h [__cplusplus > 201703L] |
414 | (__cpp_lib_erase_if): Only define for C++2a. | |
415 | * include/std/iterator [__cplusplus >= 201402L && !_GLIBCXX_DEBUG] | |
416 | (__cpp_lib_null_iterators): Define. | |
417 | * include/std/version [__cplusplus >= 201402L && !_GLIBCXX_DEBUG] | |
418 | (__cpp_lib_null_iterators): Define. | |
419 | [__cpp_impl_destroying_delete] (__cpp_lib_destroying_delete): Define. | |
420 | ||
d253bcb1 | 421 | * doc/xml/manual/status_cxx2017.xml: Document P0032R3 and P0307R2 |
422 | status. | |
423 | * include/bits/stl_uninitialized.h (__cpp_lib_raw_memory_algorithms): | |
424 | Define. | |
425 | * include/std/any (__cpp_lib_any): Define as 201606L, because P0032R3 | |
426 | changes are supported. | |
427 | * include/std/optional (__cpp_lib_optional): Likewise. | |
428 | * include/std/variant (__cpp_lib_variant): Likewise. | |
429 | * include/std/version [!__STRICT_ANSI__] | |
430 | (__cpp_lib_uncaught_exceptions): Define as long integer. | |
431 | [__cplusplus >= 201703L] (__cpp_lib_any) | |
432 | (__cpp_lib_raw_memory_algorithms, __cpp_lib_uncaught_exceptions) | |
433 | (__cpp_lib_variant): Define for C++17. | |
434 | [__cplusplus >= 201703L] (__cpp_lib_optional): Update value and define | |
435 | as long integer. | |
436 | * libsupc++/exception (__cpp_lib_uncaught_exceptions): Define as long | |
437 | integer. | |
438 | ||
8793c0de | 439 | * doc/xml/manual/status_cxx2020.xml: Update P1123R0 status. |
440 | ||
a8cd4b2b | 441 | 2019-01-12 Jonathan Wakely <jwakely@redhat.com> |
442 | ||
443 | PR libstdc++/88811 | |
444 | PR libstdc++/83306 | |
445 | * src/filesystem/path.cc: Fix typo. If first path is empty, show [] | |
446 | before second path. | |
447 | * testsuite/experimental/filesystem/filesystem_error/cons.cc: New | |
448 | test. | |
449 | ||
a5b1332c | 450 | 2019-01-11 Jonathan Wakely <jwakely@redhat.com> |
451 | ||
656ac8b7 | 452 | * doc/xml/manual/intro.xml: Include new section. |
453 | * doc/xml/manual/status_cxx2017.xml: Document more | |
454 | implementation-defined properties of the library. | |
455 | * doc/xml/manual/status_cxx2020.xml: Document C++2a status. | |
456 | * doc/html/*: Regenerate. | |
457 | ||
f5480b8c | 458 | * include/bits/refwrap.h [__cplusplus > 201703L] |
459 | (_Refwrap_base_arg1, _Refwrap_base_arg2, _Reference_wrapper_base) | |
460 | (_Reference_wrapper_base_memfun): Do not define for C++2a. | |
461 | (reference_wrapper): Do not derive from _Reference_wrapper_base_memfun | |
462 | for C++2a. | |
463 | (reference_wrapper::operator()): Add static assertion. | |
464 | * testsuite/20_util/reference_wrapper/incomplete.cc: New test. | |
465 | ||
36496c4d | 466 | * include/std/chrono (duration_values::zero(), duration_values::min()) |
467 | (duration_values::max()): Add noexcept. | |
468 | (duration::zero(), duration::min(), duration::max()): Likewise. | |
469 | (time_point::zero(), time_point::min(), time_point::max()): Likewise. | |
470 | * testsuite/20_util/duration/requirements/noexcept.cc: New test. | |
471 | * testsuite/20_util/time_point/requirements/noexcept.cc: New test. | |
472 | ||
a5b1332c | 473 | * include/std/version (__cpp_lib_erase_if): Move to C++20 group. |
474 | ||
d9de68bc | 475 | 2019-01-11 Jakub Jelinek <jakub@redhat.com> |
476 | ||
477 | * include/std/type_traits (__cpp_lib_is_constant_evaluated): Define. | |
478 | * include/std/version (__cpp_lib_is_constant_evaluated): Define. | |
479 | ||
beb370cb | 480 | 2019-01-11 Jonathan Wakely <jwakely@redhat.com> |
481 | ||
1d628fd4 | 482 | PR libstdc++/88802 |
483 | * include/bits/functional_hash.h (hash<nullptr_t>): Define | |
484 | specialization for C++17 (P0513R0, LWG 2817). | |
485 | * testsuite/20_util/hash/nullptr.cc: New test. | |
486 | ||
a18b3766 | 487 | PR libstdc++/88125 |
488 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.6): Remove unused duplicate | |
489 | pattern for std::basic_stringbuf::str(). | |
490 | ||
beb370cb | 491 | * config/abi/pre/gnu.ver (GLIBCXX_3.4): Correct recent changes to |
492 | basic_ostream::operator<< patterns. | |
493 | ||
cbbb35ec | 494 | 2019-01-10 Jonathan Wakely <jwakely@redhat.com> |
495 | ||
1715824b | 496 | * testsuite/27_io/filesystem/operations/last_write_time.cc: Fix |
497 | test failures on targets with 32-bit time_t. | |
498 | ||
f5529091 | 499 | * include/bits/erase_if.h: Define __cpp_lib_erase_if. |
500 | * include/std/deque: Likewise. | |
501 | * include/std/forward_list: Likewise. | |
502 | * include/std/list: Likewise. | |
503 | * include/std/string: Likewise. | |
504 | * include/std/vector: Likewise. | |
505 | * include/std/version: Likewise. | |
506 | * testsuite/21_strings/basic_string/erasure.cc: Test macro. | |
507 | * testsuite/23_containers/deque/erasure.cc: Likewise. | |
508 | * testsuite/23_containers/forward_list/erasure.cc: Likewise. | |
509 | * testsuite/23_containers/list/erasure.cc: Likewise. | |
510 | * testsuite/23_containers/map/erasure.cc: Likewise. | |
511 | * testsuite/23_containers/set/erasure.cc: Likewise. | |
512 | * testsuite/23_containers/unordered_map/erasure.cc: Likewise. | |
513 | * testsuite/23_containers/unordered_set/erasure.cc: Likewise. | |
514 | * testsuite/23_containers/vector/erasure.cc: Likewise. | |
515 | ||
cbbb35ec | 516 | * include/experimental/internet [AI_NUMERICSERV] |
517 | (resolver_base::numeric_service): Define conditionally. | |
518 | * testsuite/experimental/net/internet/resolver/base.cc: Test it | |
519 | conditionally. | |
520 | * testsuite/experimental/net/internet/resolver/ops/lookup.cc: | |
521 | Likewise. | |
522 | ||
ac9a8436 | 523 | 2019-01-10 Ville Voutilainen <ville.voutilainen@gmail.com> |
524 | Jonathan Wakely <jwakely@redhat.com> | |
525 | ||
526 | Implement LWG 2221 | |
527 | * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten patterns. | |
528 | (GLIBCXX_3.4.26): Add new exports. | |
529 | * include/Makefile.am: Add ostream-inst.cc. Move string-inst.cc to | |
530 | correct list of sources. | |
531 | * include/Makefile.in: Regenerate. | |
532 | * include/std/ostream (operator<<(nullptr_t)): New member function. | |
533 | * src/c++17/ostream-inst.cc: New file. | |
534 | * testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc: New | |
535 | test. | |
536 | ||
5f027941 | 537 | 2019-01-10 Jonathan Wakely <jwakely@redhat.com> |
538 | ||
539 | * testsuite/util/testsuite_fs.h (nonexistent_path): Include name | |
540 | of the source file containing the caller. | |
541 | * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Remove | |
542 | directories created by test. | |
543 | * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc: | |
544 | Likewise. | |
545 | * testsuite/experimental/filesystem/iterators/directory_iterator.cc: | |
546 | Likewise. | |
547 | * testsuite/experimental/filesystem/iterators/ | |
548 | recursive_directory_iterator.cc: Likewise. | |
549 | ||
3273d2e6 | 550 | 2019-01-10 Jakub Jelinek <jakub@redhat.com> |
551 | ||
552 | PR tree-optimization/88775 | |
553 | * include/bits/stl_function.h (greater<_Tp*>::operator(), | |
554 | less<_Tp*>::operator(), greater_equal<_Tp*>::operator(), | |
555 | less_equal<_Tp*>::operator()): Use __builtin_is_constant_evaluated | |
556 | instead of __builtin_constant_p if available. Don't bother with | |
557 | the pointer comparison in C++11 and earlier. | |
558 | ||
f4d3c071 | 559 | 2019-01-09 Sandra Loosemore <sandra@codesourcery.com> |
560 | ||
561 | PR other/16615 | |
562 | ||
563 | * include/ext/bitmap_allocator.h: Mechanically replace "can not" | |
564 | with "cannot". | |
565 | ||
8eba10af | 566 | 2019-01-09 Jonathan Wakely <jwakely@redhat.com> |
567 | ||
6a6ade9f | 568 | * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix expected output |
569 | for filesystem::path. Give variables more distinctive names. | |
570 | ||
41cda271 | 571 | * include/std/optional (_Optional_payload_base::_M_copy_assign): New |
572 | member function to perform non-trivial assignment. | |
573 | (_Optional_payload_base::_M_move_assign): Likewise. | |
574 | (_Optional_payload<T, true, false, true>::operator=) | |
575 | (_Optional_payload<T, true, true, false>::operator=) | |
576 | (_Optional_payload<T, true, false, false>::operator=): Call | |
577 | _M_copy_assign and/or _M_move_assign to do non-trivial assignments. | |
578 | ||
8eba10af | 579 | PR libstdc++/88204 |
580 | * testsuite/26_numerics/complex/operators/more_constexpr.cc: Do not | |
581 | test std::complex<long double> if long double format is IBM128. | |
582 | * testsuite/26_numerics/complex/requirements/more_constexpr.cc: | |
583 | Likewise. | |
584 | ||
64a50f48 | 585 | 2019-01-08 Jonathan Wakely <jwakely@redhat.com> |
586 | ||
73f3ad16 | 587 | * testsuite/libstdc++-prettyprinters/compat.cc: Test printer support |
588 | for old std::unique_ptr layout. | |
589 | * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix std::variant test | |
590 | to become valueless. Add filesystem::path tests. | |
591 | ||
58e897da | 592 | PR libstdc++/87855 |
593 | * include/std/optional (_Optional_payload_base): New class template | |
594 | for common code hoisted from _Optional_payload specializations. Use | |
595 | a template for the union, to allow a partial specialization for | |
596 | types with non-trivial destructors. Add constructors for in-place | |
597 | initialization to the union. | |
598 | (_Optional_payload(bool, const _Optional_payload&)): Use _M_construct | |
599 | to perform non-trivial copy construction, instead of relying on | |
600 | non-standard copy elision in a delegating constructor. | |
601 | (_Optional_payload(bool, _Optional_payload&&)): Likewise for | |
602 | non-trivial move construction. | |
603 | (_Optional_payload): Derive from _Optional_payload_base and use it | |
604 | for everything except the non-trivial assignment operators, which are | |
605 | defined as needed. | |
606 | (_Optional_payload<false, C, M>): Derive from the specialization | |
607 | _Optional_payload<true, false, false> and add a destructor. | |
608 | (_Optional_base_impl::_M_destruct, _Optional_base_impl::_M_reset): | |
609 | Forward to corresponding members of _Optional_payload. | |
610 | (_Optional_base_impl::_M_is_engaged, _Optional_base_impl::_M_get): | |
611 | Hoist common members from _Optional_base. | |
612 | (_Optional_base): Make all members and base class public. | |
613 | (_Optional_base::_M_get, _Optional_base::_M_is_engaged): Move to | |
614 | _Optional_base_impl. | |
615 | * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Add | |
616 | support for new std::optional layout. | |
617 | * testsuite/libstdc++-prettyprinters/compat.cc: New test. | |
618 | ||
64a50f48 | 619 | PR libstdc++/88066 |
620 | * include/bits/locale_conv.h: Use <> for includes not "". | |
621 | * include/ext/random: Likewise. | |
622 | * include/ext/vstring.h: Likewise. | |
623 | ||
95b40931 | 624 | 2019-01-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
625 | ||
626 | * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten existing patterns. | |
627 | (GLIBCXX_3.4.21): Likewise. | |
628 | ||
fa00ec77 | 629 | 2019-01-08 Jonathan Wakely <jwakely@redhat.com> |
630 | ||
631 | PR libstdc++/88749 | |
632 | * src/filesystem/ops.cc (last_write_time): Fix preprocessor condition | |
633 | to match the one that controls whether utimbuf and utime are declared. | |
634 | ||
3f304b2d | 635 | 2019-01-07 Jonathan Wakely <jwakely@redhat.com> |
636 | ||
fc6ac813 | 637 | PR libstdc++/87787 |
638 | * include/bits/char_traits.h (char_traits::move): Do not pass null | |
639 | pointers to memmove. | |
640 | * include/bits/locale_facets.h | |
641 | (ctype<char>::widen(const char*, const char*, char*)): Do not | |
642 | pass null pointers to memcpy. | |
643 | (ctype<char>::narrow(const char*, const char*, char, char*)): | |
644 | Likewise. | |
645 | (ctype<char>::do_widen(const char*, const char*, char*)): | |
646 | Likewise. | |
647 | (ctype<char>::do_narrow(const char*, const char*, char, char*)): | |
648 | Likewise. | |
649 | ||
bbc66c45 | 650 | * doc/xml/manual/spine.xml: Update copyright years. |
651 | * doc/xml/manual/status_cxx2017.xml: Adjust note about -lstdc++fs. | |
652 | * doc/xml/manual/using.xml: Remove requirement to link with -lstdc++fs | |
653 | for C++17 filesystem library. | |
654 | * doc/html/*: Regenerate. | |
655 | ||
3f304b2d | 656 | * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for truncate. |
657 | * config.h.in: Regenerate. | |
658 | * config/abi/pre/gnu.ver: Order patterns for filesystem operations | |
659 | alphabetically and add missing entries for copy_symlink, | |
660 | hard_link_count, rename, and resize_file. | |
661 | * configure: Regenerate. | |
662 | * src/c++17/fs_ops.cc (resize_file): Remove #if so posix::truncate is | |
663 | used unconditionally. | |
664 | * src/filesystem/ops-common.h (__gnu_posix::truncate) | |
665 | [!_GLIBCXX_HAVE_TRUNCATE]: Provide fallback definition that only | |
666 | supports truncating to zero length. | |
667 | * testsuite/27_io/filesystem/operations/all.cc: New test. | |
668 | * testsuite/27_io/filesystem/operations/resize_file.cc: New test. | |
669 | ||
0ebb0980 | 670 | 2019-01-06 Jonathan Wakely <jwakely@redhat.com> |
671 | ||
3935f409 | 672 | PR libstdc++/86756 |
673 | * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for utime and | |
674 | lstat and define _GLIBCXX_USE_UTIME and _GLIBCXX_USE_LSTAT. | |
675 | * config.h.in: Regenerate. | |
676 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export symbols for | |
677 | remaining std::filesystem types and functions. | |
678 | * configure: Regenerate. | |
679 | * src/c++17/Makefile.am: Add C++17 filesystem sources. | |
680 | * src/c++17/Makefile.in: Regenerate. | |
681 | * src/c++17/cow-fs_dir.cc: Move src/filesystem/cow-std-dir.cc to | |
682 | here, and change name of included file. | |
683 | * src/c++17/cow-fs_ops.cc: Move src/filesystem/cow-std-ops.cc to | |
684 | here, and change name of included file. | |
685 | * src/c++17/fs_dir.cc: Move src/filesystem/std-dir.cc to here. Change | |
686 | path to dir-common.h. | |
687 | * src/c++17/fs_ops.cc: Move src/filesystem/std-ops.cc to here. Change | |
688 | path to ops-common.h. Disable -Wunused-parameter warnings. | |
689 | (internal_file_clock): Define unconditionally. | |
690 | [!_GLIBCXX_HAVE_SYS_STAT_H] (internal_file_clock::from_stat): Do not | |
691 | define. | |
692 | (do_copy_file, do_space): Move definitions to ops.common.h. | |
693 | (copy, file_size, hard_link_count, last_write_time, space): Only | |
694 | perform operation when _GLIBCXX_HAVE_SYS_STAT_H is defined, otherwise | |
695 | report an error. | |
696 | (last_write_time, read_symlink): Remove unused attributes from | |
697 | parameters. | |
698 | * src/filesystem/Makefile.am: Remove C++17 filesystem sources. | |
699 | * src/filesystem/Makefile.in: Regenerate. | |
700 | * src/filesystem/cow-std-dir.cc: Move to src/c++17/cow-fs_dir.cc. | |
701 | * src/filesystem/cow-std-ops.cc: Move to src/c++17/cow-fs_ops.cc. | |
702 | * src/filesystem/std-dir.cc: Move to src/c++17/fs_dir.cc. | |
703 | * src/filesystem/std-ops.cc: Move to src/c++17/fs_ops.cc. | |
704 | * src/filesystem/dir-common.h [!_GLIBCXX_HAVE_DIRENT_H]: Define | |
705 | dummy types and functions instead of using #error. | |
706 | * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H]: Use #error. | |
707 | * src/filesystem/ops-common.h [!_GLIBCXX_USE_LSTAT] (lstat): Define | |
708 | in terms of stat. | |
709 | [!_GLIBCXX_HAVE_UNISTD_H]: Define dummy types and functions. | |
710 | (do_copy_file, do_space): Move definitions here from std-ops.cc. | |
711 | * src/filesystem/ops.cc: Adjust calls to do_copy_file and do_space | |
712 | to account for new namespace. | |
713 | * testsuite/27_io/filesystem/directory_entry/86597.cc: Remove | |
714 | -lstdc++fs from dg-options. | |
715 | * testsuite/27_io/filesystem/directory_entry/lwg3171.cc: Likewise. | |
716 | * testsuite/27_io/filesystem/file_status/1.cc: Likewise. | |
717 | * testsuite/27_io/filesystem/filesystem_error/cons.cc: Likewise. | |
718 | * testsuite/27_io/filesystem/filesystem_error/copy.cc: Likewise. | |
719 | * testsuite/27_io/filesystem/iterators/directory_iterator.cc: | |
720 | Likewise. | |
721 | * testsuite/27_io/filesystem/iterators/pop.cc: Likewise. | |
722 | * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc: | |
723 | Likewise. | |
724 | * testsuite/27_io/filesystem/operations/absolute.cc: Likewise. | |
725 | * testsuite/27_io/filesystem/operations/canonical.cc: Likewise. | |
726 | * testsuite/27_io/filesystem/operations/copy.cc: Likewise. | |
727 | * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise. | |
728 | * testsuite/27_io/filesystem/operations/create_directories.cc: | |
729 | Likewise. | |
730 | * testsuite/27_io/filesystem/operations/create_directory.cc: Likewise. | |
731 | * testsuite/27_io/filesystem/operations/create_symlink.cc: Likewise. | |
732 | * testsuite/27_io/filesystem/operations/current_path.cc: Likewise. | |
733 | * testsuite/27_io/filesystem/operations/equivalent.cc: Likewise. | |
734 | * testsuite/27_io/filesystem/operations/exists.cc: Likewise. | |
735 | * testsuite/27_io/filesystem/operations/file_size.cc: Likewise. | |
736 | * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise. | |
737 | * testsuite/27_io/filesystem/operations/last_write_time.cc: Likewise. | |
738 | * testsuite/27_io/filesystem/operations/permissions.cc: Likewise. | |
739 | * testsuite/27_io/filesystem/operations/proximate.cc: Likewise. | |
740 | * testsuite/27_io/filesystem/operations/read_symlink.cc: Likewise. | |
741 | * testsuite/27_io/filesystem/operations/relative.cc: Likewise. | |
742 | * testsuite/27_io/filesystem/operations/remove.cc: Likewise. | |
743 | * testsuite/27_io/filesystem/operations/remove_all.cc: Likewise. | |
744 | * testsuite/27_io/filesystem/operations/space.cc: Likewise. | |
745 | * testsuite/27_io/filesystem/operations/status.cc: Likewise. | |
746 | * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise. | |
747 | * testsuite/27_io/filesystem/operations/temp_directory_path.cc: | |
748 | Likewise. | |
749 | * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Likewise. | |
750 | ||
751 | ||
c6e37a9f | 752 | PR libstdc++/86756 |
753 | * config/abi/pre/gnu.ver (GLIBCXX_3.4): Make various patterns for | |
754 | typeinfo and vtables less greedy. | |
755 | (GLIBCXX_3.4.26): Export symbols for std::filesystem::path. | |
756 | * src/c++17/Makefile.am: Add fs_path.cc and cow-fs_path.cc. | |
757 | * src/c++17/Makefile.in: Regenerate. | |
758 | * src/c++17/cow-fs_path.cc: Move src/filesystem/cow-std-path.cc to | |
759 | here, and change name of included file. | |
760 | * src/c++17/fs_path.cc: Move src/filesystem/std-path.cc to here. | |
761 | * src/filesystem/Makefile.am: Remove std-path.cc and cow-std-path.cc | |
762 | from sources. | |
763 | * src/filesystem/Makefile.in: Regenerate. | |
764 | * src/filesystem/cow-std-path.cc: Move to src/c++17/cow-fs_path.cc. | |
765 | * src/filesystem/std-path.cc: Move to src/c++17/fs_path.cc. | |
766 | * testsuite/27_io/filesystem/path/append/path.cc: Remove -lstdc++fs | |
767 | from dg-options and remove dg-require-filesystem-ts. | |
768 | * testsuite/27_io/filesystem/path/append/source.cc: Likewise. | |
769 | * testsuite/27_io/filesystem/path/assign/assign.cc: Likewise. | |
770 | * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise. | |
771 | * testsuite/27_io/filesystem/path/compare/compare.cc: Likewise. | |
772 | * testsuite/27_io/filesystem/path/compare/lwg2936.cc: Likewise. | |
773 | * testsuite/27_io/filesystem/path/compare/path.cc: Likewise. | |
774 | * testsuite/27_io/filesystem/path/compare/strings.cc: Likewise. | |
775 | * testsuite/27_io/filesystem/path/concat/path.cc: Likewise. | |
776 | * testsuite/27_io/filesystem/path/concat/strings.cc: Likewise. | |
777 | * testsuite/27_io/filesystem/path/construct/80762.cc: Likewise. | |
778 | * testsuite/27_io/filesystem/path/construct/copy.cc: Likewise. | |
779 | * testsuite/27_io/filesystem/path/construct/default.cc: Likewise. | |
780 | * testsuite/27_io/filesystem/path/construct/format.cc: Likewise. | |
781 | * testsuite/27_io/filesystem/path/construct/locale.cc: Likewise. | |
782 | * testsuite/27_io/filesystem/path/construct/range.cc: Likewise. | |
783 | * testsuite/27_io/filesystem/path/construct/string_view.cc: Likewise. | |
784 | * testsuite/27_io/filesystem/path/decompose/extension.cc: Likewise. | |
785 | * testsuite/27_io/filesystem/path/decompose/filename.cc: Likewise. | |
786 | * testsuite/27_io/filesystem/path/decompose/parent_path.cc: Likewise. | |
787 | * testsuite/27_io/filesystem/path/decompose/relative_path.cc: Likewise. | |
788 | * testsuite/27_io/filesystem/path/decompose/root_directory.cc: | |
789 | Likewise. | |
790 | * testsuite/27_io/filesystem/path/decompose/root_name.cc: Likewise. | |
791 | * testsuite/27_io/filesystem/path/decompose/root_path.cc: Likewise. | |
792 | * testsuite/27_io/filesystem/path/decompose/stem.cc: Likewise. | |
793 | * testsuite/27_io/filesystem/path/generation/normal.cc: Likewise. | |
794 | * testsuite/27_io/filesystem/path/generation/normal2.cc: Likewise. | |
795 | * testsuite/27_io/filesystem/path/generation/proximate.cc: Likewise. | |
796 | * testsuite/27_io/filesystem/path/generation/relative.cc: Likewise. | |
797 | * testsuite/27_io/filesystem/path/generic/generic_string.cc: Likewise. | |
798 | * testsuite/27_io/filesystem/path/itr/components.cc: Likewise. | |
799 | * testsuite/27_io/filesystem/path/itr/traversal.cc: Likewise. | |
800 | * testsuite/27_io/filesystem/path/modifiers/clear.cc: Likewise. | |
801 | * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc: | |
802 | Likewise. | |
803 | * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc: | |
804 | Likewise. | |
805 | * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc: | |
806 | Likewise. | |
807 | * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc: | |
808 | Likewise. | |
809 | * testsuite/27_io/filesystem/path/modifiers/swap.cc: Likewise. | |
810 | * testsuite/27_io/filesystem/path/native/string.cc: Likewise. | |
811 | * testsuite/27_io/filesystem/path/nonmember/append.cc: Likewise. | |
812 | * testsuite/27_io/filesystem/path/nonmember/hash_value.cc: Likewise. | |
813 | * testsuite/27_io/filesystem/path/query/empty.cc: Likewise. | |
814 | * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise. | |
815 | * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise. | |
816 | * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise. | |
817 | * testsuite/27_io/filesystem/path/query/has_relative_path.cc: Likewise. | |
818 | * testsuite/27_io/filesystem/path/query/has_root_directory.cc: | |
819 | Likewise. | |
820 | * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise. | |
821 | * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise. | |
822 | * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise. | |
823 | * testsuite/27_io/filesystem/path/query/is_absolute.cc: Likewise. | |
824 | * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise. | |
825 | ||
8815ac91 | 826 | PR libstdc++/87431 |
827 | * include/std/variant (_Variant_storage<true, _Types...>::_M_valid): | |
828 | Check is_trivially_copyable instead of is_scalar. | |
829 | (variant::emplace<N, Args>(Args&&...)): If construction of the new | |
830 | contained value can throw and its type is trivially copyable then | |
831 | construct into a temporary variant and move from it, to provide the | |
832 | strong exception safety guarantee. | |
833 | (variant::emplace<N, U, Args>(initializer_list<U>, Args&&...)): | |
834 | Likewise. | |
835 | * testsuite/20_util/variant/87431.cc: New test. | |
836 | * testsuite/20_util/variant/run.cc: Adjust test so that throwing | |
837 | conversion causes valueless state. | |
838 | ||
0ebb0980 | 839 | PR libstdc++/88607 |
840 | * testsuite/17_intro/headers/c++1998/charset.cc: New test. | |
841 | * testsuite/17_intro/headers/c++2011/charset.cc: New test. | |
842 | * testsuite/17_intro/headers/c++2014/charset.cc: New test. | |
843 | * testsuite/17_intro/headers/c++2017/charset.cc: New test. | |
844 | * testsuite/17_intro/headers/c++2020/charset.cc: New test. | |
845 | ||
adc6beee | 846 | 2019-01-05 Jonathan Wakely <jwakely@redhat.com> |
847 | ||
848 | * include/bits/fs_fwd.h (__file_clock): Define new clock. | |
849 | (file_time_type): Redefine in terms of __file_clock. | |
850 | * src/filesystem/ops-common.h (file_time): Add FIXME comment about | |
851 | overflow. | |
852 | * src/filesystem/std-ops.cc (is_set(perm_options, perm_options)): Give | |
853 | internal linkage. | |
854 | (internal_file_lock): New helper type for accessing __file_clock. | |
855 | (do_copy_file): Use internal_file_lock to convert system time to | |
856 | file_time_type. | |
857 | (last_write_time(const path&, error_code&)): Likewise. | |
858 | (last_write_time(const path&, file_time_type, error_code&)): Likewise. | |
859 | ||
6b4a77f2 | 860 | 2019-01-04 Jonathan Wakely <jwakely@redhat.com> |
861 | ||
98185b9f | 862 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.21): Make patterns less greedy |
863 | for const member functions of std::basic_string. | |
864 | (GLIBCXX_3.4.26): Export member functions of std::basic_string added | |
865 | in C++17. | |
866 | * include/bits/basic_string.h (basic_string(__sv_wrapper, const A&)): | |
867 | Make non-standard constructor private. | |
868 | [!_GLIBCXX_USE_CXX11_ABI] (basic_string(__sv_wrapper, const A&)): | |
869 | Likewise. | |
870 | * include/bits/basic_string.tcc (std::string, std::wstring): Declare | |
871 | explicit instantiations for C++17 as well as earlier dialects. | |
872 | * src/c++17/Makefile.am: Add new source files. | |
873 | * src/c++17/Makefile.in: Regenerate. | |
874 | * src/c++17/cow-string-inst.cc: New file defining explicit | |
875 | instantiations for basic_string member functions added in C++17. | |
876 | * src/c++17/string-inst.cc: Likewise. | |
877 | ||
859e6fed | 878 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export allocator-extended |
879 | copy/move constructors for old std::basic_string. | |
880 | * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI] | |
881 | (basic_string::reference, basic_string::const_reference): Define | |
882 | as plain references for C++11 and later. | |
883 | (basic_string::basic_string()): Put constructor body outside | |
884 | preprocessor conditional groups. | |
885 | (basic_string::basic_string(basic_string&&)): Move _Alloc_hider | |
886 | instead of copying it. | |
887 | (basic_string::basic_string(const basic_string&, const _Alloc&)): | |
888 | Define. | |
889 | (basic_string::basic_string(basic_string&&, const _Alloc&)): | |
890 | Define. | |
891 | * include/bits/fs_path.h [!_GLIBCXX_USE_CXX11_ABI]: Remove special | |
892 | cases for old basic_string. | |
893 | * testsuite/21_strings/basic_string/cons/char/8.cc: Test | |
894 | allocator-extended constructors unconditionally. Add extra members to | |
895 | allocator type when using old string ABI. | |
896 | * testsuite/21_strings/basic_string/allocator/71964.cc: Enable test | |
897 | for old string ABI. | |
898 | * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise. | |
899 | ||
e13f6a7f | 900 | * testsuite/23_containers/list/61347.cc: Avoid spurious failure when |
901 | -fno-inline added to test flags. | |
902 | ||
a18fccd0 | 903 | * testsuite/21_strings/basic_string/requirements/ |
904 | explicit_instantiation/debug.cc: Remove XFAIL for old ABI. | |
905 | ||
7f77ca07 | 906 | * testsuite/27_io/filesystem/filesystem_error/copy.cc: Fix static |
907 | assertion failures with old std::string ABI. | |
908 | ||
9346fb0e | 909 | * include/bits/fs_path.h (path::_List::erase): Replace both overloads |
910 | with ... | |
911 | (path::pop_back(), path::_M_erase_from(const_iterator)): New member | |
912 | functions that will only erase elements at the end. | |
913 | * src/filesystem/std-path.cc (path::_List::_Impl::pop_back()): Define. | |
914 | (path::_List::_Impl::_M_erase_from(const_iterator)): Define. | |
915 | (path::_List::operator=(const _List&)): Use _M_erase_from(p) instead | |
916 | of erase(p, end()). | |
917 | (path::_List::pop_back()): Define. | |
918 | (path::_List::_M_erase_from(const_iterator)): Define. | |
919 | (path::operator/=(const path&)): Use pop_back to remove last component | |
920 | and _M_erase_from to remove multiple components. | |
921 | (path::_M_append(basic_string_view<value_type>)): Likewise. | |
922 | (path::operator+=(const path&)): Likewise. | |
923 | (path::_M_concat(basic_string_view<value_type>)): Likewise. | |
924 | (path::remove_filename()): Likewise. | |
925 | (path::lexically_normal()): Use _List::_Impl iterators instead of | |
926 | path::iterator. Use pop_back to remove components from the end. Clear | |
927 | trailing filename, instead of using erase(const_iterator) to remove | |
928 | a non-final component. | |
929 | * testsuite/27_io/filesystem/path/generation/normal.cc: Test | |
930 | additional cases. | |
931 | * testsuite/27_io/filesystem/path/generation/normal2.cc: New test. | |
932 | ||
24230cab | 933 | * src/filesystem/std-path.cc (path::operator+=(const path&)): Fix |
934 | incorrect treatment of empty filename after trailing slash. | |
935 | * testsuite/27_io/filesystem/path/concat/path.cc: Test problem case. | |
936 | ||
6b4a77f2 | 937 | * testsuite/21_strings/basic_string/modifiers/assign/char/ |
938 | move_assign_optim.cc: Avoid spurious failure when -fno-inline added | |
939 | to test flags. | |
940 | * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/ | |
941 | move_assign_optim.cc: Likewise. | |
942 | ||
02df5941 | 943 | 2019-01-03 Jonathan Wakely <jwakely@redhat.com> |
944 | Jakub Jelinek <jakub@redhat.com> | |
945 | ||
946 | PR libstdc++/88607 | |
947 | * include/experimental/memory: Replace UTF-8 quote characters. | |
948 | * include/std/future: Replace UTF-8 "em dash" characters. | |
949 | ||
f8ad40d8 | 950 | 2019-01-03 Jonathan Wakely <jwakely@redhat.com> |
951 | ||
9013258b | 952 | PR libstdc++/88607 |
953 | * include/bits/forward_list.h: Replace UTF-8 "ligature fi" character. | |
954 | * include/debug/forward_list: Likewise. | |
955 | * include/experimental/bits/shared_ptr.h: Remove UTF-8 "section sign" | |
956 | character. | |
957 | * include/experimental/chrono: Likewise. | |
958 | * include/experimental/functional: Likewise. | |
959 | * include/experimental/ratio: Likewise. | |
960 | * include/experimental/system_error: Likewise. | |
961 | * include/experimental/tuple: Likewise. | |
962 | * include/experimental/type_traits: Likewise. | |
963 | * include/parallel/workstealing.h: Replace UTF-8 "en dash" character. | |
964 | * include/parallel/multiseq_selection.h: Likewise. | |
965 | ||
f8ad40d8 | 966 | PR libstdc++/88681 |
967 | * config/abi/pre/gnu.ver: Add missing exports. | |
968 | * testsuite/22_locale/collate_byname/88681.cc: New test. | |
969 | * testsuite/22_locale/time_get/get/char/88681.cc: New test. | |
970 | * testsuite/22_locale/time_get/get/wchar_t/88681.cc: New test. | |
971 | ||
138292f4 | 972 | 2019-01-02 Jonathan Wakely <jwakely@redhat.com> |
973 | ||
553d41a8 | 974 | * testsuite/23_containers/map/cons/deduction.cc: Test deduction from |
975 | initializer_list<value_type> and from input iterator ranges. | |
976 | * testsuite/23_containers/multimap/cons/deduction.cc: Likewise. | |
977 | ||
138292f4 | 978 | * testsuite/experimental/string_view/element_access/char/empty.cc: |
979 | Fix year range in copyright header. | |
980 | ||
963c0125 | 981 | 2019-01-02 Joel Brobecker <brobecker@adacore.com> |
982 | ||
983 | * testsuite/21_strings/basic_string_view/element_access/char/empty.cc: | |
984 | Fix year range in copyright header. | |
985 | ||
fbd26352 | 986 | 2019-01-01 Jakub Jelinek <jakub@redhat.com> |
d353bf18 | 987 | |
988 | Update copyright years. | |
fb96fbb3 | 989 | \f |
fbd26352 | 990 | Copyright (C) 2019 Free Software Foundation, Inc. |
fb96fbb3 | 991 | |
992 | Copying and distribution of this file, with or without modification, | |
993 | are permitted in any medium without royalty provided the copyright | |
994 | notice and this notice are preserved. |