]>
Commit | Line | Data |
---|---|---|
21a962b2 | 1 | 2019-01-17 Jonathan Wakely <jwakely@redhat.com> |
2 | ||
3 | PR libstdc++/88881 | |
4 | * src/c++17/fs_ops.cc (canonical(const path&, error_code&)) | |
5 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize path, to match behaviour | |
6 | of filesystem::exists. | |
7 | (create_directories(const path&, error_code&)): Add assertions. | |
8 | (status(const path&, error_code&)) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: | |
9 | Add workaround for bug in _wstat for paths with trailing slash. | |
10 | * testsuite/27_io/filesystem/operations/create_directories.cc: Adjust | |
11 | for expected behaviour on mingw. | |
12 | * testsuite/experimental/filesystem/operations/create_directories.cc: | |
13 | Likewise. | |
14 | * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Use | |
15 | "TMP" instead of "TMPDIR" and clean environment before each test. Do | |
16 | not test permissions on mingw targets. | |
17 | ||
93478c9f | 18 | 2019-01-16 Jonathan Wakely <jwakely@redhat.com> |
19 | ||
20 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add exports for fstream | |
21 | constructors and open members taking wide strings. Fix patterns for | |
22 | filesystem::path members to match wstring_view parameters. Add | |
23 | exports for shared_ptr members used by directory iterators. | |
24 | * src/c++17/fs_ops.cc (remove(const path&, error_code&)): Clear the | |
25 | error code parameter if the file doesn't exist. | |
26 | * src/filesystem/ops.cc (remove(const path&, error_code&)): | |
27 | Likewise. | |
28 | * testsuite/27_io/filesystem/operations/canonical.cc: Fix expected | |
29 | values for mingw targets, where "/" is not an absolute path. Do not | |
30 | test symlinks on mingw targets. | |
31 | * testsuite/experimental/filesystem/operations/canonical.cc: Likewise. | |
32 | * testsuite/27_io/filesystem/operations/copy.cc: Do not test symlinks | |
33 | on mingw targets. | |
34 | * testsuite/experimental/filesystem/operations/copy.cc: Likewise. | |
35 | * testsuite/27_io/filesystem/operations/create_directories.cc: Check | |
36 | that each component of the path is created. | |
37 | * testsuite/experimental/filesystem/operations/create_directories.cc: | |
38 | Likewise. | |
39 | * testsuite/27_io/filesystem/operations/exists.cc: Do not test | |
40 | permissions on mingw targets. | |
41 | * testsuite/experimental/filesystem/operations/exists.cc: Likewise. | |
42 | * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise. | |
43 | * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise. | |
44 | * testsuite/27_io/filesystem/operations/permissions.cc: XFAIL for | |
45 | mingw targets. | |
46 | * testsuite/experimental/filesystem/operations/permissions.cc: | |
47 | Likewise. | |
48 | * testsuite/27_io/filesystem/operations/remove.cc: Do not test | |
49 | symlinks or permissions on mingw targets. | |
50 | * testsuite/experimental/filesystem/operations/remove.cc: Likewise. | |
51 | * testsuite/27_io/filesystem/operations/remove_all.cc: Do not test | |
52 | symlinks on mingw targets. | |
53 | * testsuite/experimental/filesystem/operations/remove_all.cc: | |
54 | Likewise. | |
55 | * testsuite/27_io/filesystem/operations/status.cc: Do not test | |
56 | permissions on mingw targets. | |
57 | * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Do not | |
58 | test symlinks on mingw targets. | |
59 | * testsuite/experimental/filesystem/operations/space.cc: Fix test | |
60 | for mingw targets. | |
61 | ||
af93b844 | 62 | 2019-02-14 Ulrich Drepper <drepper@redhat.com> |
63 | ||
64 | PR libstdc++/88738 | |
65 | Warn about unused comparisons of shared_ptr/unique_ptr | |
66 | * include/bits/c++config [_GLIBCXX_NODISCARD]: Define. | |
67 | * include/bits/shared_ptr.h: Use it for operator ==, !=, | |
68 | <, <=, >, >= for shared_ptr. | |
69 | * include/bits/unique_ptr.h: Likewise for unique_ptr. | |
70 | ||
8793c0de | 71 | 2019-01-15 Jonathan Wakely <jwakely@redhat.com> |
72 | ||
afa61572 | 73 | * include/bits/shared_ptr_base.h (__cpp_lib_shared_ptr_arrays): Define |
74 | as 201611L, because P0497R0 changes are supported. | |
75 | * include/std/version (__cpp_lib_shared_ptr_arrays): Likewise. | |
76 | ||
feb89906 | 77 | * include/bits/erase_if.h [__cplusplus > 201703L] |
78 | (__cpp_lib_erase_if): Only define for C++2a. | |
79 | * include/std/iterator [__cplusplus >= 201402L && !_GLIBCXX_DEBUG] | |
80 | (__cpp_lib_null_iterators): Define. | |
81 | * include/std/version [__cplusplus >= 201402L && !_GLIBCXX_DEBUG] | |
82 | (__cpp_lib_null_iterators): Define. | |
83 | [__cpp_impl_destroying_delete] (__cpp_lib_destroying_delete): Define. | |
84 | ||
d253bcb1 | 85 | * doc/xml/manual/status_cxx2017.xml: Document P0032R3 and P0307R2 |
86 | status. | |
87 | * include/bits/stl_uninitialized.h (__cpp_lib_raw_memory_algorithms): | |
88 | Define. | |
89 | * include/std/any (__cpp_lib_any): Define as 201606L, because P0032R3 | |
90 | changes are supported. | |
91 | * include/std/optional (__cpp_lib_optional): Likewise. | |
92 | * include/std/variant (__cpp_lib_variant): Likewise. | |
93 | * include/std/version [!__STRICT_ANSI__] | |
94 | (__cpp_lib_uncaught_exceptions): Define as long integer. | |
95 | [__cplusplus >= 201703L] (__cpp_lib_any) | |
96 | (__cpp_lib_raw_memory_algorithms, __cpp_lib_uncaught_exceptions) | |
97 | (__cpp_lib_variant): Define for C++17. | |
98 | [__cplusplus >= 201703L] (__cpp_lib_optional): Update value and define | |
99 | as long integer. | |
100 | * libsupc++/exception (__cpp_lib_uncaught_exceptions): Define as long | |
101 | integer. | |
102 | ||
8793c0de | 103 | * doc/xml/manual/status_cxx2020.xml: Update P1123R0 status. |
104 | ||
a8cd4b2b | 105 | 2019-01-12 Jonathan Wakely <jwakely@redhat.com> |
106 | ||
107 | PR libstdc++/88811 | |
108 | PR libstdc++/83306 | |
109 | * src/filesystem/path.cc: Fix typo. If first path is empty, show [] | |
110 | before second path. | |
111 | * testsuite/experimental/filesystem/filesystem_error/cons.cc: New | |
112 | test. | |
113 | ||
a5b1332c | 114 | 2019-01-11 Jonathan Wakely <jwakely@redhat.com> |
115 | ||
656ac8b7 | 116 | * doc/xml/manual/intro.xml: Include new section. |
117 | * doc/xml/manual/status_cxx2017.xml: Document more | |
118 | implementation-defined properties of the library. | |
119 | * doc/xml/manual/status_cxx2020.xml: Document C++2a status. | |
120 | * doc/html/*: Regenerate. | |
121 | ||
f5480b8c | 122 | * include/bits/refwrap.h [__cplusplus > 201703L] |
123 | (_Refwrap_base_arg1, _Refwrap_base_arg2, _Reference_wrapper_base) | |
124 | (_Reference_wrapper_base_memfun): Do not define for C++2a. | |
125 | (reference_wrapper): Do not derive from _Reference_wrapper_base_memfun | |
126 | for C++2a. | |
127 | (reference_wrapper::operator()): Add static assertion. | |
128 | * testsuite/20_util/reference_wrapper/incomplete.cc: New test. | |
129 | ||
36496c4d | 130 | * include/std/chrono (duration_values::zero(), duration_values::min()) |
131 | (duration_values::max()): Add noexcept. | |
132 | (duration::zero(), duration::min(), duration::max()): Likewise. | |
133 | (time_point::zero(), time_point::min(), time_point::max()): Likewise. | |
134 | * testsuite/20_util/duration/requirements/noexcept.cc: New test. | |
135 | * testsuite/20_util/time_point/requirements/noexcept.cc: New test. | |
136 | ||
a5b1332c | 137 | * include/std/version (__cpp_lib_erase_if): Move to C++20 group. |
138 | ||
d9de68bc | 139 | 2019-01-11 Jakub Jelinek <jakub@redhat.com> |
140 | ||
141 | * include/std/type_traits (__cpp_lib_is_constant_evaluated): Define. | |
142 | * include/std/version (__cpp_lib_is_constant_evaluated): Define. | |
143 | ||
beb370cb | 144 | 2019-01-11 Jonathan Wakely <jwakely@redhat.com> |
145 | ||
1d628fd4 | 146 | PR libstdc++/88802 |
147 | * include/bits/functional_hash.h (hash<nullptr_t>): Define | |
148 | specialization for C++17 (P0513R0, LWG 2817). | |
149 | * testsuite/20_util/hash/nullptr.cc: New test. | |
150 | ||
a18b3766 | 151 | PR libstdc++/88125 |
152 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.6): Remove unused duplicate | |
153 | pattern for std::basic_stringbuf::str(). | |
154 | ||
beb370cb | 155 | * config/abi/pre/gnu.ver (GLIBCXX_3.4): Correct recent changes to |
156 | basic_ostream::operator<< patterns. | |
157 | ||
cbbb35ec | 158 | 2019-01-10 Jonathan Wakely <jwakely@redhat.com> |
159 | ||
1715824b | 160 | * testsuite/27_io/filesystem/operations/last_write_time.cc: Fix |
161 | test failures on targets with 32-bit time_t. | |
162 | ||
f5529091 | 163 | * include/bits/erase_if.h: Define __cpp_lib_erase_if. |
164 | * include/std/deque: Likewise. | |
165 | * include/std/forward_list: Likewise. | |
166 | * include/std/list: Likewise. | |
167 | * include/std/string: Likewise. | |
168 | * include/std/vector: Likewise. | |
169 | * include/std/version: Likewise. | |
170 | * testsuite/21_strings/basic_string/erasure.cc: Test macro. | |
171 | * testsuite/23_containers/deque/erasure.cc: Likewise. | |
172 | * testsuite/23_containers/forward_list/erasure.cc: Likewise. | |
173 | * testsuite/23_containers/list/erasure.cc: Likewise. | |
174 | * testsuite/23_containers/map/erasure.cc: Likewise. | |
175 | * testsuite/23_containers/set/erasure.cc: Likewise. | |
176 | * testsuite/23_containers/unordered_map/erasure.cc: Likewise. | |
177 | * testsuite/23_containers/unordered_set/erasure.cc: Likewise. | |
178 | * testsuite/23_containers/vector/erasure.cc: Likewise. | |
179 | ||
cbbb35ec | 180 | * include/experimental/internet [AI_NUMERICSERV] |
181 | (resolver_base::numeric_service): Define conditionally. | |
182 | * testsuite/experimental/net/internet/resolver/base.cc: Test it | |
183 | conditionally. | |
184 | * testsuite/experimental/net/internet/resolver/ops/lookup.cc: | |
185 | Likewise. | |
186 | ||
ac9a8436 | 187 | 2019-01-10 Ville Voutilainen <ville.voutilainen@gmail.com> |
188 | Jonathan Wakely <jwakely@redhat.com> | |
189 | ||
190 | Implement LWG 2221 | |
191 | * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten patterns. | |
192 | (GLIBCXX_3.4.26): Add new exports. | |
193 | * include/Makefile.am: Add ostream-inst.cc. Move string-inst.cc to | |
194 | correct list of sources. | |
195 | * include/Makefile.in: Regenerate. | |
196 | * include/std/ostream (operator<<(nullptr_t)): New member function. | |
197 | * src/c++17/ostream-inst.cc: New file. | |
198 | * testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc: New | |
199 | test. | |
200 | ||
5f027941 | 201 | 2019-01-10 Jonathan Wakely <jwakely@redhat.com> |
202 | ||
203 | * testsuite/util/testsuite_fs.h (nonexistent_path): Include name | |
204 | of the source file containing the caller. | |
205 | * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Remove | |
206 | directories created by test. | |
207 | * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc: | |
208 | Likewise. | |
209 | * testsuite/experimental/filesystem/iterators/directory_iterator.cc: | |
210 | Likewise. | |
211 | * testsuite/experimental/filesystem/iterators/ | |
212 | recursive_directory_iterator.cc: Likewise. | |
213 | ||
3273d2e6 | 214 | 2019-01-10 Jakub Jelinek <jakub@redhat.com> |
215 | ||
216 | PR tree-optimization/88775 | |
217 | * include/bits/stl_function.h (greater<_Tp*>::operator(), | |
218 | less<_Tp*>::operator(), greater_equal<_Tp*>::operator(), | |
219 | less_equal<_Tp*>::operator()): Use __builtin_is_constant_evaluated | |
220 | instead of __builtin_constant_p if available. Don't bother with | |
221 | the pointer comparison in C++11 and earlier. | |
222 | ||
f4d3c071 | 223 | 2019-01-09 Sandra Loosemore <sandra@codesourcery.com> |
224 | ||
225 | PR other/16615 | |
226 | ||
227 | * include/ext/bitmap_allocator.h: Mechanically replace "can not" | |
228 | with "cannot". | |
229 | ||
8eba10af | 230 | 2019-01-09 Jonathan Wakely <jwakely@redhat.com> |
231 | ||
6a6ade9f | 232 | * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix expected output |
233 | for filesystem::path. Give variables more distinctive names. | |
234 | ||
41cda271 | 235 | * include/std/optional (_Optional_payload_base::_M_copy_assign): New |
236 | member function to perform non-trivial assignment. | |
237 | (_Optional_payload_base::_M_move_assign): Likewise. | |
238 | (_Optional_payload<T, true, false, true>::operator=) | |
239 | (_Optional_payload<T, true, true, false>::operator=) | |
240 | (_Optional_payload<T, true, false, false>::operator=): Call | |
241 | _M_copy_assign and/or _M_move_assign to do non-trivial assignments. | |
242 | ||
8eba10af | 243 | PR libstdc++/88204 |
244 | * testsuite/26_numerics/complex/operators/more_constexpr.cc: Do not | |
245 | test std::complex<long double> if long double format is IBM128. | |
246 | * testsuite/26_numerics/complex/requirements/more_constexpr.cc: | |
247 | Likewise. | |
248 | ||
64a50f48 | 249 | 2019-01-08 Jonathan Wakely <jwakely@redhat.com> |
250 | ||
73f3ad16 | 251 | * testsuite/libstdc++-prettyprinters/compat.cc: Test printer support |
252 | for old std::unique_ptr layout. | |
253 | * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix std::variant test | |
254 | to become valueless. Add filesystem::path tests. | |
255 | ||
58e897da | 256 | PR libstdc++/87855 |
257 | * include/std/optional (_Optional_payload_base): New class template | |
258 | for common code hoisted from _Optional_payload specializations. Use | |
259 | a template for the union, to allow a partial specialization for | |
260 | types with non-trivial destructors. Add constructors for in-place | |
261 | initialization to the union. | |
262 | (_Optional_payload(bool, const _Optional_payload&)): Use _M_construct | |
263 | to perform non-trivial copy construction, instead of relying on | |
264 | non-standard copy elision in a delegating constructor. | |
265 | (_Optional_payload(bool, _Optional_payload&&)): Likewise for | |
266 | non-trivial move construction. | |
267 | (_Optional_payload): Derive from _Optional_payload_base and use it | |
268 | for everything except the non-trivial assignment operators, which are | |
269 | defined as needed. | |
270 | (_Optional_payload<false, C, M>): Derive from the specialization | |
271 | _Optional_payload<true, false, false> and add a destructor. | |
272 | (_Optional_base_impl::_M_destruct, _Optional_base_impl::_M_reset): | |
273 | Forward to corresponding members of _Optional_payload. | |
274 | (_Optional_base_impl::_M_is_engaged, _Optional_base_impl::_M_get): | |
275 | Hoist common members from _Optional_base. | |
276 | (_Optional_base): Make all members and base class public. | |
277 | (_Optional_base::_M_get, _Optional_base::_M_is_engaged): Move to | |
278 | _Optional_base_impl. | |
279 | * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Add | |
280 | support for new std::optional layout. | |
281 | * testsuite/libstdc++-prettyprinters/compat.cc: New test. | |
282 | ||
64a50f48 | 283 | PR libstdc++/88066 |
284 | * include/bits/locale_conv.h: Use <> for includes not "". | |
285 | * include/ext/random: Likewise. | |
286 | * include/ext/vstring.h: Likewise. | |
287 | ||
95b40931 | 288 | 2019-01-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
289 | ||
290 | * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten existing patterns. | |
291 | (GLIBCXX_3.4.21): Likewise. | |
292 | ||
fa00ec77 | 293 | 2019-01-08 Jonathan Wakely <jwakely@redhat.com> |
294 | ||
295 | PR libstdc++/88749 | |
296 | * src/filesystem/ops.cc (last_write_time): Fix preprocessor condition | |
297 | to match the one that controls whether utimbuf and utime are declared. | |
298 | ||
3f304b2d | 299 | 2019-01-07 Jonathan Wakely <jwakely@redhat.com> |
300 | ||
fc6ac813 | 301 | PR libstdc++/87787 |
302 | * include/bits/char_traits.h (char_traits::move): Do not pass null | |
303 | pointers to memmove. | |
304 | * include/bits/locale_facets.h | |
305 | (ctype<char>::widen(const char*, const char*, char*)): Do not | |
306 | pass null pointers to memcpy. | |
307 | (ctype<char>::narrow(const char*, const char*, char, char*)): | |
308 | Likewise. | |
309 | (ctype<char>::do_widen(const char*, const char*, char*)): | |
310 | Likewise. | |
311 | (ctype<char>::do_narrow(const char*, const char*, char, char*)): | |
312 | Likewise. | |
313 | ||
bbc66c45 | 314 | * doc/xml/manual/spine.xml: Update copyright years. |
315 | * doc/xml/manual/status_cxx2017.xml: Adjust note about -lstdc++fs. | |
316 | * doc/xml/manual/using.xml: Remove requirement to link with -lstdc++fs | |
317 | for C++17 filesystem library. | |
318 | * doc/html/*: Regenerate. | |
319 | ||
3f304b2d | 320 | * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for truncate. |
321 | * config.h.in: Regenerate. | |
322 | * config/abi/pre/gnu.ver: Order patterns for filesystem operations | |
323 | alphabetically and add missing entries for copy_symlink, | |
324 | hard_link_count, rename, and resize_file. | |
325 | * configure: Regenerate. | |
326 | * src/c++17/fs_ops.cc (resize_file): Remove #if so posix::truncate is | |
327 | used unconditionally. | |
328 | * src/filesystem/ops-common.h (__gnu_posix::truncate) | |
329 | [!_GLIBCXX_HAVE_TRUNCATE]: Provide fallback definition that only | |
330 | supports truncating to zero length. | |
331 | * testsuite/27_io/filesystem/operations/all.cc: New test. | |
332 | * testsuite/27_io/filesystem/operations/resize_file.cc: New test. | |
333 | ||
0ebb0980 | 334 | 2019-01-06 Jonathan Wakely <jwakely@redhat.com> |
335 | ||
3935f409 | 336 | PR libstdc++/86756 |
337 | * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for utime and | |
338 | lstat and define _GLIBCXX_USE_UTIME and _GLIBCXX_USE_LSTAT. | |
339 | * config.h.in: Regenerate. | |
340 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export symbols for | |
341 | remaining std::filesystem types and functions. | |
342 | * configure: Regenerate. | |
343 | * src/c++17/Makefile.am: Add C++17 filesystem sources. | |
344 | * src/c++17/Makefile.in: Regenerate. | |
345 | * src/c++17/cow-fs_dir.cc: Move src/filesystem/cow-std-dir.cc to | |
346 | here, and change name of included file. | |
347 | * src/c++17/cow-fs_ops.cc: Move src/filesystem/cow-std-ops.cc to | |
348 | here, and change name of included file. | |
349 | * src/c++17/fs_dir.cc: Move src/filesystem/std-dir.cc to here. Change | |
350 | path to dir-common.h. | |
351 | * src/c++17/fs_ops.cc: Move src/filesystem/std-ops.cc to here. Change | |
352 | path to ops-common.h. Disable -Wunused-parameter warnings. | |
353 | (internal_file_clock): Define unconditionally. | |
354 | [!_GLIBCXX_HAVE_SYS_STAT_H] (internal_file_clock::from_stat): Do not | |
355 | define. | |
356 | (do_copy_file, do_space): Move definitions to ops.common.h. | |
357 | (copy, file_size, hard_link_count, last_write_time, space): Only | |
358 | perform operation when _GLIBCXX_HAVE_SYS_STAT_H is defined, otherwise | |
359 | report an error. | |
360 | (last_write_time, read_symlink): Remove unused attributes from | |
361 | parameters. | |
362 | * src/filesystem/Makefile.am: Remove C++17 filesystem sources. | |
363 | * src/filesystem/Makefile.in: Regenerate. | |
364 | * src/filesystem/cow-std-dir.cc: Move to src/c++17/cow-fs_dir.cc. | |
365 | * src/filesystem/cow-std-ops.cc: Move to src/c++17/cow-fs_ops.cc. | |
366 | * src/filesystem/std-dir.cc: Move to src/c++17/fs_dir.cc. | |
367 | * src/filesystem/std-ops.cc: Move to src/c++17/fs_ops.cc. | |
368 | * src/filesystem/dir-common.h [!_GLIBCXX_HAVE_DIRENT_H]: Define | |
369 | dummy types and functions instead of using #error. | |
370 | * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H]: Use #error. | |
371 | * src/filesystem/ops-common.h [!_GLIBCXX_USE_LSTAT] (lstat): Define | |
372 | in terms of stat. | |
373 | [!_GLIBCXX_HAVE_UNISTD_H]: Define dummy types and functions. | |
374 | (do_copy_file, do_space): Move definitions here from std-ops.cc. | |
375 | * src/filesystem/ops.cc: Adjust calls to do_copy_file and do_space | |
376 | to account for new namespace. | |
377 | * testsuite/27_io/filesystem/directory_entry/86597.cc: Remove | |
378 | -lstdc++fs from dg-options. | |
379 | * testsuite/27_io/filesystem/directory_entry/lwg3171.cc: Likewise. | |
380 | * testsuite/27_io/filesystem/file_status/1.cc: Likewise. | |
381 | * testsuite/27_io/filesystem/filesystem_error/cons.cc: Likewise. | |
382 | * testsuite/27_io/filesystem/filesystem_error/copy.cc: Likewise. | |
383 | * testsuite/27_io/filesystem/iterators/directory_iterator.cc: | |
384 | Likewise. | |
385 | * testsuite/27_io/filesystem/iterators/pop.cc: Likewise. | |
386 | * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc: | |
387 | Likewise. | |
388 | * testsuite/27_io/filesystem/operations/absolute.cc: Likewise. | |
389 | * testsuite/27_io/filesystem/operations/canonical.cc: Likewise. | |
390 | * testsuite/27_io/filesystem/operations/copy.cc: Likewise. | |
391 | * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise. | |
392 | * testsuite/27_io/filesystem/operations/create_directories.cc: | |
393 | Likewise. | |
394 | * testsuite/27_io/filesystem/operations/create_directory.cc: Likewise. | |
395 | * testsuite/27_io/filesystem/operations/create_symlink.cc: Likewise. | |
396 | * testsuite/27_io/filesystem/operations/current_path.cc: Likewise. | |
397 | * testsuite/27_io/filesystem/operations/equivalent.cc: Likewise. | |
398 | * testsuite/27_io/filesystem/operations/exists.cc: Likewise. | |
399 | * testsuite/27_io/filesystem/operations/file_size.cc: Likewise. | |
400 | * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise. | |
401 | * testsuite/27_io/filesystem/operations/last_write_time.cc: Likewise. | |
402 | * testsuite/27_io/filesystem/operations/permissions.cc: Likewise. | |
403 | * testsuite/27_io/filesystem/operations/proximate.cc: Likewise. | |
404 | * testsuite/27_io/filesystem/operations/read_symlink.cc: Likewise. | |
405 | * testsuite/27_io/filesystem/operations/relative.cc: Likewise. | |
406 | * testsuite/27_io/filesystem/operations/remove.cc: Likewise. | |
407 | * testsuite/27_io/filesystem/operations/remove_all.cc: Likewise. | |
408 | * testsuite/27_io/filesystem/operations/space.cc: Likewise. | |
409 | * testsuite/27_io/filesystem/operations/status.cc: Likewise. | |
410 | * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise. | |
411 | * testsuite/27_io/filesystem/operations/temp_directory_path.cc: | |
412 | Likewise. | |
413 | * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Likewise. | |
414 | ||
415 | ||
c6e37a9f | 416 | PR libstdc++/86756 |
417 | * config/abi/pre/gnu.ver (GLIBCXX_3.4): Make various patterns for | |
418 | typeinfo and vtables less greedy. | |
419 | (GLIBCXX_3.4.26): Export symbols for std::filesystem::path. | |
420 | * src/c++17/Makefile.am: Add fs_path.cc and cow-fs_path.cc. | |
421 | * src/c++17/Makefile.in: Regenerate. | |
422 | * src/c++17/cow-fs_path.cc: Move src/filesystem/cow-std-path.cc to | |
423 | here, and change name of included file. | |
424 | * src/c++17/fs_path.cc: Move src/filesystem/std-path.cc to here. | |
425 | * src/filesystem/Makefile.am: Remove std-path.cc and cow-std-path.cc | |
426 | from sources. | |
427 | * src/filesystem/Makefile.in: Regenerate. | |
428 | * src/filesystem/cow-std-path.cc: Move to src/c++17/cow-fs_path.cc. | |
429 | * src/filesystem/std-path.cc: Move to src/c++17/fs_path.cc. | |
430 | * testsuite/27_io/filesystem/path/append/path.cc: Remove -lstdc++fs | |
431 | from dg-options and remove dg-require-filesystem-ts. | |
432 | * testsuite/27_io/filesystem/path/append/source.cc: Likewise. | |
433 | * testsuite/27_io/filesystem/path/assign/assign.cc: Likewise. | |
434 | * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise. | |
435 | * testsuite/27_io/filesystem/path/compare/compare.cc: Likewise. | |
436 | * testsuite/27_io/filesystem/path/compare/lwg2936.cc: Likewise. | |
437 | * testsuite/27_io/filesystem/path/compare/path.cc: Likewise. | |
438 | * testsuite/27_io/filesystem/path/compare/strings.cc: Likewise. | |
439 | * testsuite/27_io/filesystem/path/concat/path.cc: Likewise. | |
440 | * testsuite/27_io/filesystem/path/concat/strings.cc: Likewise. | |
441 | * testsuite/27_io/filesystem/path/construct/80762.cc: Likewise. | |
442 | * testsuite/27_io/filesystem/path/construct/copy.cc: Likewise. | |
443 | * testsuite/27_io/filesystem/path/construct/default.cc: Likewise. | |
444 | * testsuite/27_io/filesystem/path/construct/format.cc: Likewise. | |
445 | * testsuite/27_io/filesystem/path/construct/locale.cc: Likewise. | |
446 | * testsuite/27_io/filesystem/path/construct/range.cc: Likewise. | |
447 | * testsuite/27_io/filesystem/path/construct/string_view.cc: Likewise. | |
448 | * testsuite/27_io/filesystem/path/decompose/extension.cc: Likewise. | |
449 | * testsuite/27_io/filesystem/path/decompose/filename.cc: Likewise. | |
450 | * testsuite/27_io/filesystem/path/decompose/parent_path.cc: Likewise. | |
451 | * testsuite/27_io/filesystem/path/decompose/relative_path.cc: Likewise. | |
452 | * testsuite/27_io/filesystem/path/decompose/root_directory.cc: | |
453 | Likewise. | |
454 | * testsuite/27_io/filesystem/path/decompose/root_name.cc: Likewise. | |
455 | * testsuite/27_io/filesystem/path/decompose/root_path.cc: Likewise. | |
456 | * testsuite/27_io/filesystem/path/decompose/stem.cc: Likewise. | |
457 | * testsuite/27_io/filesystem/path/generation/normal.cc: Likewise. | |
458 | * testsuite/27_io/filesystem/path/generation/normal2.cc: Likewise. | |
459 | * testsuite/27_io/filesystem/path/generation/proximate.cc: Likewise. | |
460 | * testsuite/27_io/filesystem/path/generation/relative.cc: Likewise. | |
461 | * testsuite/27_io/filesystem/path/generic/generic_string.cc: Likewise. | |
462 | * testsuite/27_io/filesystem/path/itr/components.cc: Likewise. | |
463 | * testsuite/27_io/filesystem/path/itr/traversal.cc: Likewise. | |
464 | * testsuite/27_io/filesystem/path/modifiers/clear.cc: Likewise. | |
465 | * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc: | |
466 | Likewise. | |
467 | * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc: | |
468 | Likewise. | |
469 | * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc: | |
470 | Likewise. | |
471 | * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc: | |
472 | Likewise. | |
473 | * testsuite/27_io/filesystem/path/modifiers/swap.cc: Likewise. | |
474 | * testsuite/27_io/filesystem/path/native/string.cc: Likewise. | |
475 | * testsuite/27_io/filesystem/path/nonmember/append.cc: Likewise. | |
476 | * testsuite/27_io/filesystem/path/nonmember/hash_value.cc: Likewise. | |
477 | * testsuite/27_io/filesystem/path/query/empty.cc: Likewise. | |
478 | * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise. | |
479 | * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise. | |
480 | * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise. | |
481 | * testsuite/27_io/filesystem/path/query/has_relative_path.cc: Likewise. | |
482 | * testsuite/27_io/filesystem/path/query/has_root_directory.cc: | |
483 | Likewise. | |
484 | * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise. | |
485 | * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise. | |
486 | * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise. | |
487 | * testsuite/27_io/filesystem/path/query/is_absolute.cc: Likewise. | |
488 | * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise. | |
489 | ||
8815ac91 | 490 | PR libstdc++/87431 |
491 | * include/std/variant (_Variant_storage<true, _Types...>::_M_valid): | |
492 | Check is_trivially_copyable instead of is_scalar. | |
493 | (variant::emplace<N, Args>(Args&&...)): If construction of the new | |
494 | contained value can throw and its type is trivially copyable then | |
495 | construct into a temporary variant and move from it, to provide the | |
496 | strong exception safety guarantee. | |
497 | (variant::emplace<N, U, Args>(initializer_list<U>, Args&&...)): | |
498 | Likewise. | |
499 | * testsuite/20_util/variant/87431.cc: New test. | |
500 | * testsuite/20_util/variant/run.cc: Adjust test so that throwing | |
501 | conversion causes valueless state. | |
502 | ||
0ebb0980 | 503 | PR libstdc++/88607 |
504 | * testsuite/17_intro/headers/c++1998/charset.cc: New test. | |
505 | * testsuite/17_intro/headers/c++2011/charset.cc: New test. | |
506 | * testsuite/17_intro/headers/c++2014/charset.cc: New test. | |
507 | * testsuite/17_intro/headers/c++2017/charset.cc: New test. | |
508 | * testsuite/17_intro/headers/c++2020/charset.cc: New test. | |
509 | ||
adc6beee | 510 | 2019-01-05 Jonathan Wakely <jwakely@redhat.com> |
511 | ||
512 | * include/bits/fs_fwd.h (__file_clock): Define new clock. | |
513 | (file_time_type): Redefine in terms of __file_clock. | |
514 | * src/filesystem/ops-common.h (file_time): Add FIXME comment about | |
515 | overflow. | |
516 | * src/filesystem/std-ops.cc (is_set(perm_options, perm_options)): Give | |
517 | internal linkage. | |
518 | (internal_file_lock): New helper type for accessing __file_clock. | |
519 | (do_copy_file): Use internal_file_lock to convert system time to | |
520 | file_time_type. | |
521 | (last_write_time(const path&, error_code&)): Likewise. | |
522 | (last_write_time(const path&, file_time_type, error_code&)): Likewise. | |
523 | ||
6b4a77f2 | 524 | 2019-01-04 Jonathan Wakely <jwakely@redhat.com> |
525 | ||
98185b9f | 526 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.21): Make patterns less greedy |
527 | for const member functions of std::basic_string. | |
528 | (GLIBCXX_3.4.26): Export member functions of std::basic_string added | |
529 | in C++17. | |
530 | * include/bits/basic_string.h (basic_string(__sv_wrapper, const A&)): | |
531 | Make non-standard constructor private. | |
532 | [!_GLIBCXX_USE_CXX11_ABI] (basic_string(__sv_wrapper, const A&)): | |
533 | Likewise. | |
534 | * include/bits/basic_string.tcc (std::string, std::wstring): Declare | |
535 | explicit instantiations for C++17 as well as earlier dialects. | |
536 | * src/c++17/Makefile.am: Add new source files. | |
537 | * src/c++17/Makefile.in: Regenerate. | |
538 | * src/c++17/cow-string-inst.cc: New file defining explicit | |
539 | instantiations for basic_string member functions added in C++17. | |
540 | * src/c++17/string-inst.cc: Likewise. | |
541 | ||
859e6fed | 542 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export allocator-extended |
543 | copy/move constructors for old std::basic_string. | |
544 | * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI] | |
545 | (basic_string::reference, basic_string::const_reference): Define | |
546 | as plain references for C++11 and later. | |
547 | (basic_string::basic_string()): Put constructor body outside | |
548 | preprocessor conditional groups. | |
549 | (basic_string::basic_string(basic_string&&)): Move _Alloc_hider | |
550 | instead of copying it. | |
551 | (basic_string::basic_string(const basic_string&, const _Alloc&)): | |
552 | Define. | |
553 | (basic_string::basic_string(basic_string&&, const _Alloc&)): | |
554 | Define. | |
555 | * include/bits/fs_path.h [!_GLIBCXX_USE_CXX11_ABI]: Remove special | |
556 | cases for old basic_string. | |
557 | * testsuite/21_strings/basic_string/cons/char/8.cc: Test | |
558 | allocator-extended constructors unconditionally. Add extra members to | |
559 | allocator type when using old string ABI. | |
560 | * testsuite/21_strings/basic_string/allocator/71964.cc: Enable test | |
561 | for old string ABI. | |
562 | * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise. | |
563 | ||
e13f6a7f | 564 | * testsuite/23_containers/list/61347.cc: Avoid spurious failure when |
565 | -fno-inline added to test flags. | |
566 | ||
a18fccd0 | 567 | * testsuite/21_strings/basic_string/requirements/ |
568 | explicit_instantiation/debug.cc: Remove XFAIL for old ABI. | |
569 | ||
7f77ca07 | 570 | * testsuite/27_io/filesystem/filesystem_error/copy.cc: Fix static |
571 | assertion failures with old std::string ABI. | |
572 | ||
9346fb0e | 573 | * include/bits/fs_path.h (path::_List::erase): Replace both overloads |
574 | with ... | |
575 | (path::pop_back(), path::_M_erase_from(const_iterator)): New member | |
576 | functions that will only erase elements at the end. | |
577 | * src/filesystem/std-path.cc (path::_List::_Impl::pop_back()): Define. | |
578 | (path::_List::_Impl::_M_erase_from(const_iterator)): Define. | |
579 | (path::_List::operator=(const _List&)): Use _M_erase_from(p) instead | |
580 | of erase(p, end()). | |
581 | (path::_List::pop_back()): Define. | |
582 | (path::_List::_M_erase_from(const_iterator)): Define. | |
583 | (path::operator/=(const path&)): Use pop_back to remove last component | |
584 | and _M_erase_from to remove multiple components. | |
585 | (path::_M_append(basic_string_view<value_type>)): Likewise. | |
586 | (path::operator+=(const path&)): Likewise. | |
587 | (path::_M_concat(basic_string_view<value_type>)): Likewise. | |
588 | (path::remove_filename()): Likewise. | |
589 | (path::lexically_normal()): Use _List::_Impl iterators instead of | |
590 | path::iterator. Use pop_back to remove components from the end. Clear | |
591 | trailing filename, instead of using erase(const_iterator) to remove | |
592 | a non-final component. | |
593 | * testsuite/27_io/filesystem/path/generation/normal.cc: Test | |
594 | additional cases. | |
595 | * testsuite/27_io/filesystem/path/generation/normal2.cc: New test. | |
596 | ||
24230cab | 597 | * src/filesystem/std-path.cc (path::operator+=(const path&)): Fix |
598 | incorrect treatment of empty filename after trailing slash. | |
599 | * testsuite/27_io/filesystem/path/concat/path.cc: Test problem case. | |
600 | ||
6b4a77f2 | 601 | * testsuite/21_strings/basic_string/modifiers/assign/char/ |
602 | move_assign_optim.cc: Avoid spurious failure when -fno-inline added | |
603 | to test flags. | |
604 | * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/ | |
605 | move_assign_optim.cc: Likewise. | |
606 | ||
02df5941 | 607 | 2019-01-03 Jonathan Wakely <jwakely@redhat.com> |
608 | Jakub Jelinek <jakub@redhat.com> | |
609 | ||
610 | PR libstdc++/88607 | |
611 | * include/experimental/memory: Replace UTF-8 quote characters. | |
612 | * include/std/future: Replace UTF-8 "em dash" characters. | |
613 | ||
f8ad40d8 | 614 | 2019-01-03 Jonathan Wakely <jwakely@redhat.com> |
615 | ||
9013258b | 616 | PR libstdc++/88607 |
617 | * include/bits/forward_list.h: Replace UTF-8 "ligature fi" character. | |
618 | * include/debug/forward_list: Likewise. | |
619 | * include/experimental/bits/shared_ptr.h: Remove UTF-8 "section sign" | |
620 | character. | |
621 | * include/experimental/chrono: Likewise. | |
622 | * include/experimental/functional: Likewise. | |
623 | * include/experimental/ratio: Likewise. | |
624 | * include/experimental/system_error: Likewise. | |
625 | * include/experimental/tuple: Likewise. | |
626 | * include/experimental/type_traits: Likewise. | |
627 | * include/parallel/workstealing.h: Replace UTF-8 "en dash" character. | |
628 | * include/parallel/multiseq_selection.h: Likewise. | |
629 | ||
f8ad40d8 | 630 | PR libstdc++/88681 |
631 | * config/abi/pre/gnu.ver: Add missing exports. | |
632 | * testsuite/22_locale/collate_byname/88681.cc: New test. | |
633 | * testsuite/22_locale/time_get/get/char/88681.cc: New test. | |
634 | * testsuite/22_locale/time_get/get/wchar_t/88681.cc: New test. | |
635 | ||
138292f4 | 636 | 2019-01-02 Jonathan Wakely <jwakely@redhat.com> |
637 | ||
553d41a8 | 638 | * testsuite/23_containers/map/cons/deduction.cc: Test deduction from |
639 | initializer_list<value_type> and from input iterator ranges. | |
640 | * testsuite/23_containers/multimap/cons/deduction.cc: Likewise. | |
641 | ||
138292f4 | 642 | * testsuite/experimental/string_view/element_access/char/empty.cc: |
643 | Fix year range in copyright header. | |
644 | ||
963c0125 | 645 | 2019-01-02 Joel Brobecker <brobecker@adacore.com> |
646 | ||
647 | * testsuite/21_strings/basic_string_view/element_access/char/empty.cc: | |
648 | Fix year range in copyright header. | |
649 | ||
fbd26352 | 650 | 2019-01-01 Jakub Jelinek <jakub@redhat.com> |
d353bf18 | 651 | |
652 | Update copyright years. | |
fb96fbb3 | 653 | \f |
fbd26352 | 654 | Copyright (C) 2019 Free Software Foundation, Inc. |
fb96fbb3 | 655 | |
656 | Copying and distribution of this file, with or without modification, | |
657 | are permitted in any medium without royalty provided the copyright | |
658 | notice and this notice are preserved. |