2019-01-07 13:38:51 +01:00
|
|
|
|
2019-01-07 Jonathan Wakely <jwakely@redhat.com>
|
|
|
|
|
|
2019-01-07 13:46:40 +01:00
|
|
|
|
* doc/xml/manual/spine.xml: Update copyright years.
|
|
|
|
|
* doc/xml/manual/status_cxx2017.xml: Adjust note about -lstdc++fs.
|
|
|
|
|
* doc/xml/manual/using.xml: Remove requirement to link with -lstdc++fs
|
|
|
|
|
for C++17 filesystem library.
|
|
|
|
|
* doc/html/*: Regenerate.
|
|
|
|
|
|
2019-01-07 13:38:51 +01:00
|
|
|
|
* acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for truncate.
|
|
|
|
|
* config.h.in: Regenerate.
|
|
|
|
|
* config/abi/pre/gnu.ver: Order patterns for filesystem operations
|
|
|
|
|
alphabetically and add missing entries for copy_symlink,
|
|
|
|
|
hard_link_count, rename, and resize_file.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
* src/c++17/fs_ops.cc (resize_file): Remove #if so posix::truncate is
|
|
|
|
|
used unconditionally.
|
|
|
|
|
* src/filesystem/ops-common.h (__gnu_posix::truncate)
|
|
|
|
|
[!_GLIBCXX_HAVE_TRUNCATE]: Provide fallback definition that only
|
|
|
|
|
supports truncating to zero length.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/all.cc: New test.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/resize_file.cc: New test.
|
|
|
|
|
|
2019-01-06 01:49:11 +01:00
|
|
|
|
2019-01-06 Jonathan Wakely <jwakely@redhat.com>
|
|
|
|
|
|
PR libstdc++/86756 Move rest of std::filesystem to libstdc++.so
Move std::filesystem directory iterators and operations from
libstdc++fs.a to main libstdc++ library. These components have many
dependencies on OS support, which is not available on all targets. Some
additional autoconf checks and conditional compilation is needed to
ensure the files will build for all targets. Previously this code was
not compiled without --enable-libstdcxx-filesystem-ts but the C++17
components should be available for all hosted builds.
The tests for these components no longer need to link to libstdc++fs.a,
but are not expected to pass on all targets. To avoid numerous failures
on targets which are not expected to pass the tests (due to missing OS
functionality) leave the dg-require-filesystem-ts directives in place
for now. This will ensure the tests only run for builds where the
filesystem-ts library is built, which presumably means some level of OS
support is present.
PR libstdc++/86756
* acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for utime and
lstat and define _GLIBCXX_USE_UTIME and _GLIBCXX_USE_LSTAT.
* config.h.in: Regenerate.
* config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export symbols for
remaining std::filesystem types and functions.
* configure: Regenerate.
* src/c++17/Makefile.am: Add C++17 filesystem sources.
* src/c++17/Makefile.in: Regenerate.
* src/c++17/cow-fs_dir.cc: Move src/filesystem/cow-std-dir.cc to
here, and change name of included file.
* src/c++17/cow-fs_ops.cc: Move src/filesystem/cow-std-ops.cc to
here, and change name of included file.
* src/c++17/fs_dir.cc: Move src/filesystem/std-dir.cc to here. Change
path to dir-common.h.
* src/c++17/fs_ops.cc: Move src/filesystem/std-ops.cc to here. Change
path to ops-common.h. Disable -Wunused-parameter warnings.
(internal_file_clock): Define unconditionally.
[!_GLIBCXX_HAVE_SYS_STAT_H] (internal_file_clock::from_stat): Do not
define.
(do_copy_file, do_space): Move definitions to ops.common.h.
(copy, file_size, hard_link_count, last_write_time, space): Only
perform operation when _GLIBCXX_HAVE_SYS_STAT_H is defined, otherwise
report an error.
(last_write_time, read_symlink): Remove unused attributes from
parameters.
* src/filesystem/Makefile.am: Remove C++17 filesystem sources.
* src/filesystem/Makefile.in: Regenerate.
* src/filesystem/cow-std-dir.cc: Move to src/c++17/cow-fs_dir.cc.
* src/filesystem/cow-std-ops.cc: Move to src/c++17/cow-fs_ops.cc.
* src/filesystem/std-dir.cc: Move to src/c++17/fs_dir.cc.
* src/filesystem/std-ops.cc: Move to src/c++17/fs_ops.cc.
* src/filesystem/dir-common.h [!_GLIBCXX_HAVE_DIRENT_H]: Define
dummy types and functions instead of using #error.
* src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H]: Use #error.
* src/filesystem/ops-common.h [!_GLIBCXX_USE_LSTAT] (lstat): Define
in terms of stat.
[!_GLIBCXX_HAVE_UNISTD_H]: Define dummy types and functions.
(do_copy_file, do_space): Move definitions here from std-ops.cc.
* src/filesystem/ops.cc: Adjust calls to do_copy_file and do_space
to account for new namespace.
* testsuite/27_io/filesystem/directory_entry/86597.cc: Remove
-lstdc++fs from dg-options.
* testsuite/27_io/filesystem/directory_entry/lwg3171.cc: Likewise.
* testsuite/27_io/filesystem/file_status/1.cc: Likewise.
* testsuite/27_io/filesystem/filesystem_error/cons.cc: Likewise.
* testsuite/27_io/filesystem/filesystem_error/copy.cc: Likewise.
* testsuite/27_io/filesystem/iterators/directory_iterator.cc:
Likewise.
* testsuite/27_io/filesystem/iterators/pop.cc: Likewise.
* testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
Likewise.
* testsuite/27_io/filesystem/operations/absolute.cc: Likewise.
* testsuite/27_io/filesystem/operations/canonical.cc: Likewise.
* testsuite/27_io/filesystem/operations/copy.cc: Likewise.
* testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
* testsuite/27_io/filesystem/operations/create_directories.cc:
Likewise.
* testsuite/27_io/filesystem/operations/create_directory.cc: Likewise.
* testsuite/27_io/filesystem/operations/create_symlink.cc: Likewise.
* testsuite/27_io/filesystem/operations/current_path.cc: Likewise.
* testsuite/27_io/filesystem/operations/equivalent.cc: Likewise.
* testsuite/27_io/filesystem/operations/exists.cc: Likewise.
* testsuite/27_io/filesystem/operations/file_size.cc: Likewise.
* testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
* testsuite/27_io/filesystem/operations/last_write_time.cc: Likewise.
* testsuite/27_io/filesystem/operations/permissions.cc: Likewise.
* testsuite/27_io/filesystem/operations/proximate.cc: Likewise.
* testsuite/27_io/filesystem/operations/read_symlink.cc: Likewise.
* testsuite/27_io/filesystem/operations/relative.cc: Likewise.
* testsuite/27_io/filesystem/operations/remove.cc: Likewise.
* testsuite/27_io/filesystem/operations/remove_all.cc: Likewise.
* testsuite/27_io/filesystem/operations/space.cc: Likewise.
* testsuite/27_io/filesystem/operations/status.cc: Likewise.
* testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
* testsuite/27_io/filesystem/operations/temp_directory_path.cc:
Likewise.
* testsuite/27_io/filesystem/operations/weakly_canonical.cc: Likewise.
From-SVN: r267616
2019-01-06 23:34:37 +01:00
|
|
|
|
PR libstdc++/86756
|
|
|
|
|
* acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for utime and
|
|
|
|
|
lstat and define _GLIBCXX_USE_UTIME and _GLIBCXX_USE_LSTAT.
|
|
|
|
|
* config.h.in: Regenerate.
|
|
|
|
|
* config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export symbols for
|
|
|
|
|
remaining std::filesystem types and functions.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
* src/c++17/Makefile.am: Add C++17 filesystem sources.
|
|
|
|
|
* src/c++17/Makefile.in: Regenerate.
|
|
|
|
|
* src/c++17/cow-fs_dir.cc: Move src/filesystem/cow-std-dir.cc to
|
|
|
|
|
here, and change name of included file.
|
|
|
|
|
* src/c++17/cow-fs_ops.cc: Move src/filesystem/cow-std-ops.cc to
|
|
|
|
|
here, and change name of included file.
|
|
|
|
|
* src/c++17/fs_dir.cc: Move src/filesystem/std-dir.cc to here. Change
|
|
|
|
|
path to dir-common.h.
|
|
|
|
|
* src/c++17/fs_ops.cc: Move src/filesystem/std-ops.cc to here. Change
|
|
|
|
|
path to ops-common.h. Disable -Wunused-parameter warnings.
|
|
|
|
|
(internal_file_clock): Define unconditionally.
|
|
|
|
|
[!_GLIBCXX_HAVE_SYS_STAT_H] (internal_file_clock::from_stat): Do not
|
|
|
|
|
define.
|
|
|
|
|
(do_copy_file, do_space): Move definitions to ops.common.h.
|
|
|
|
|
(copy, file_size, hard_link_count, last_write_time, space): Only
|
|
|
|
|
perform operation when _GLIBCXX_HAVE_SYS_STAT_H is defined, otherwise
|
|
|
|
|
report an error.
|
|
|
|
|
(last_write_time, read_symlink): Remove unused attributes from
|
|
|
|
|
parameters.
|
|
|
|
|
* src/filesystem/Makefile.am: Remove C++17 filesystem sources.
|
|
|
|
|
* src/filesystem/Makefile.in: Regenerate.
|
|
|
|
|
* src/filesystem/cow-std-dir.cc: Move to src/c++17/cow-fs_dir.cc.
|
|
|
|
|
* src/filesystem/cow-std-ops.cc: Move to src/c++17/cow-fs_ops.cc.
|
|
|
|
|
* src/filesystem/std-dir.cc: Move to src/c++17/fs_dir.cc.
|
|
|
|
|
* src/filesystem/std-ops.cc: Move to src/c++17/fs_ops.cc.
|
|
|
|
|
* src/filesystem/dir-common.h [!_GLIBCXX_HAVE_DIRENT_H]: Define
|
|
|
|
|
dummy types and functions instead of using #error.
|
|
|
|
|
* src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H]: Use #error.
|
|
|
|
|
* src/filesystem/ops-common.h [!_GLIBCXX_USE_LSTAT] (lstat): Define
|
|
|
|
|
in terms of stat.
|
|
|
|
|
[!_GLIBCXX_HAVE_UNISTD_H]: Define dummy types and functions.
|
|
|
|
|
(do_copy_file, do_space): Move definitions here from std-ops.cc.
|
|
|
|
|
* src/filesystem/ops.cc: Adjust calls to do_copy_file and do_space
|
|
|
|
|
to account for new namespace.
|
|
|
|
|
* testsuite/27_io/filesystem/directory_entry/86597.cc: Remove
|
|
|
|
|
-lstdc++fs from dg-options.
|
|
|
|
|
* testsuite/27_io/filesystem/directory_entry/lwg3171.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/file_status/1.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/filesystem_error/cons.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/filesystem_error/copy.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/iterators/directory_iterator.cc:
|
|
|
|
|
Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/iterators/pop.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
|
|
|
|
|
Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/absolute.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/canonical.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/copy.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/create_directories.cc:
|
|
|
|
|
Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/create_directory.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/create_symlink.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/current_path.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/equivalent.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/exists.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/file_size.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/last_write_time.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/permissions.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/proximate.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/read_symlink.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/relative.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/remove.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/remove_all.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/space.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/status.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/temp_directory_path.cc:
|
|
|
|
|
Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/operations/weakly_canonical.cc: Likewise.
|
|
|
|
|
|
|
|
|
|
|
2019-01-06 23:34:29 +01:00
|
|
|
|
PR libstdc++/86756
|
|
|
|
|
* config/abi/pre/gnu.ver (GLIBCXX_3.4): Make various patterns for
|
|
|
|
|
typeinfo and vtables less greedy.
|
|
|
|
|
(GLIBCXX_3.4.26): Export symbols for std::filesystem::path.
|
|
|
|
|
* src/c++17/Makefile.am: Add fs_path.cc and cow-fs_path.cc.
|
|
|
|
|
* src/c++17/Makefile.in: Regenerate.
|
|
|
|
|
* src/c++17/cow-fs_path.cc: Move src/filesystem/cow-std-path.cc to
|
|
|
|
|
here, and change name of included file.
|
|
|
|
|
* src/c++17/fs_path.cc: Move src/filesystem/std-path.cc to here.
|
|
|
|
|
* src/filesystem/Makefile.am: Remove std-path.cc and cow-std-path.cc
|
|
|
|
|
from sources.
|
|
|
|
|
* src/filesystem/Makefile.in: Regenerate.
|
|
|
|
|
* src/filesystem/cow-std-path.cc: Move to src/c++17/cow-fs_path.cc.
|
|
|
|
|
* src/filesystem/std-path.cc: Move to src/c++17/fs_path.cc.
|
|
|
|
|
* testsuite/27_io/filesystem/path/append/path.cc: Remove -lstdc++fs
|
|
|
|
|
from dg-options and remove dg-require-filesystem-ts.
|
|
|
|
|
* testsuite/27_io/filesystem/path/append/source.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/assign/assign.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/assign/copy.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/compare/compare.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/compare/lwg2936.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/compare/path.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/compare/strings.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/concat/path.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/concat/strings.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/construct/80762.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/construct/copy.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/construct/default.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/construct/format.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/construct/locale.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/construct/range.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/construct/string_view.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/decompose/extension.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/decompose/filename.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/decompose/parent_path.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/decompose/relative_path.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/decompose/root_directory.cc:
|
|
|
|
|
Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/decompose/root_name.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/decompose/root_path.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/decompose/stem.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/generation/normal.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/generation/normal2.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/generation/proximate.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/generation/relative.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/generic/generic_string.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/itr/components.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/itr/traversal.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/modifiers/clear.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/modifiers/make_preferred.cc:
|
|
|
|
|
Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/modifiers/remove_filename.cc:
|
|
|
|
|
Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
|
|
|
|
|
Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/modifiers/replace_filename.cc:
|
|
|
|
|
Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/modifiers/swap.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/native/string.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/nonmember/append.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/nonmember/hash_value.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/query/has_relative_path.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/query/has_root_directory.cc:
|
|
|
|
|
Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/query/is_absolute.cc: Likewise.
|
|
|
|
|
* testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
|
|
|
|
|
|
PR libstdc++/87431 fix regression introduced by r264574
The previous patch for PR 87431 assumed that initialing a scalar type
could not throw, but it can obtain its value via a conversion operator,
which could throw. This meant the variant could get into a valueless
state, but the valueless_by_exception() member function would always
return false.
This patch fixes it by changing the emplace members to have strong
exception safety when initializing a contained value of trivially
copyable type. The _M_valid() member gets a corresponding change to
always return true for trivially copyable types, not just scalar types.
Strong exception safety (i.e. never becoming valueless) is achieved by
only replacing the current contained value once any potentially throwing
operations have completed. If constructing the new contained value can
throw then a new std::variant object is constructed to hold it, and then
move-assigned to *this (which won't throw).
PR libstdc++/87431
* include/std/variant (_Variant_storage<true, _Types...>::_M_valid):
Check is_trivially_copyable instead of is_scalar.
(variant::emplace<N, Args>(Args&&...)): If construction of the new
contained value can throw and its type is trivially copyable then
construct into a temporary variant and move from it, to provide the
strong exception safety guarantee.
(variant::emplace<N, U, Args>(initializer_list<U>, Args&&...)):
Likewise.
* testsuite/20_util/variant/87431.cc: New test.
* testsuite/20_util/variant/run.cc: Adjust test so that throwing
conversion causes valueless state.
From-SVN: r267614
2019-01-06 21:52:34 +01:00
|
|
|
|
PR libstdc++/87431
|
|
|
|
|
* include/std/variant (_Variant_storage<true, _Types...>::_M_valid):
|
|
|
|
|
Check is_trivially_copyable instead of is_scalar.
|
|
|
|
|
(variant::emplace<N, Args>(Args&&...)): If construction of the new
|
|
|
|
|
contained value can throw and its type is trivially copyable then
|
|
|
|
|
construct into a temporary variant and move from it, to provide the
|
|
|
|
|
strong exception safety guarantee.
|
|
|
|
|
(variant::emplace<N, U, Args>(initializer_list<U>, Args&&...)):
|
|
|
|
|
Likewise.
|
|
|
|
|
* testsuite/20_util/variant/87431.cc: New test.
|
|
|
|
|
* testsuite/20_util/variant/run.cc: Adjust test so that throwing
|
|
|
|
|
conversion causes valueless state.
|
|
|
|
|
|
2019-01-06 01:49:11 +01:00
|
|
|
|
PR libstdc++/88607
|
|
|
|
|
* testsuite/17_intro/headers/c++1998/charset.cc: New test.
|
|
|
|
|
* testsuite/17_intro/headers/c++2011/charset.cc: New test.
|
|
|
|
|
* testsuite/17_intro/headers/c++2014/charset.cc: New test.
|
|
|
|
|
* testsuite/17_intro/headers/c++2017/charset.cc: New test.
|
|
|
|
|
* testsuite/17_intro/headers/c++2020/charset.cc: New test.
|
|
|
|
|
|
2019-01-05 21:03:22 +01:00
|
|
|
|
2019-01-05 Jonathan Wakely <jwakely@redhat.com>
|
|
|
|
|
|
|
|
|
|
* include/bits/fs_fwd.h (__file_clock): Define new clock.
|
|
|
|
|
(file_time_type): Redefine in terms of __file_clock.
|
|
|
|
|
* src/filesystem/ops-common.h (file_time): Add FIXME comment about
|
|
|
|
|
overflow.
|
|
|
|
|
* src/filesystem/std-ops.cc (is_set(perm_options, perm_options)): Give
|
|
|
|
|
internal linkage.
|
|
|
|
|
(internal_file_lock): New helper type for accessing __file_clock.
|
|
|
|
|
(do_copy_file): Use internal_file_lock to convert system time to
|
|
|
|
|
file_time_type.
|
|
|
|
|
(last_write_time(const path&, error_code&)): Likewise.
|
|
|
|
|
(last_write_time(const path&, file_time_type, error_code&)): Likewise.
|
|
|
|
|
|
2019-01-04 12:06:49 +01:00
|
|
|
|
2019-01-04 Jonathan Wakely <jwakely@redhat.com>
|
|
|
|
|
|
2019-01-05 00:23:22 +01:00
|
|
|
|
* config/abi/pre/gnu.ver (GLIBCXX_3.4.21): Make patterns less greedy
|
|
|
|
|
for const member functions of std::basic_string.
|
|
|
|
|
(GLIBCXX_3.4.26): Export member functions of std::basic_string added
|
|
|
|
|
in C++17.
|
|
|
|
|
* include/bits/basic_string.h (basic_string(__sv_wrapper, const A&)):
|
|
|
|
|
Make non-standard constructor private.
|
|
|
|
|
[!_GLIBCXX_USE_CXX11_ABI] (basic_string(__sv_wrapper, const A&)):
|
|
|
|
|
Likewise.
|
|
|
|
|
* include/bits/basic_string.tcc (std::string, std::wstring): Declare
|
|
|
|
|
explicit instantiations for C++17 as well as earlier dialects.
|
|
|
|
|
* src/c++17/Makefile.am: Add new source files.
|
|
|
|
|
* src/c++17/Makefile.in: Regenerate.
|
|
|
|
|
* src/c++17/cow-string-inst.cc: New file defining explicit
|
|
|
|
|
instantiations for basic_string member functions added in C++17.
|
|
|
|
|
* src/c++17/string-inst.cc: Likewise.
|
|
|
|
|
|
2019-01-05 00:23:17 +01:00
|
|
|
|
* config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export allocator-extended
|
|
|
|
|
copy/move constructors for old std::basic_string.
|
|
|
|
|
* include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
|
|
|
|
|
(basic_string::reference, basic_string::const_reference): Define
|
|
|
|
|
as plain references for C++11 and later.
|
|
|
|
|
(basic_string::basic_string()): Put constructor body outside
|
|
|
|
|
preprocessor conditional groups.
|
|
|
|
|
(basic_string::basic_string(basic_string&&)): Move _Alloc_hider
|
|
|
|
|
instead of copying it.
|
|
|
|
|
(basic_string::basic_string(const basic_string&, const _Alloc&)):
|
|
|
|
|
Define.
|
|
|
|
|
(basic_string::basic_string(basic_string&&, const _Alloc&)):
|
|
|
|
|
Define.
|
|
|
|
|
* include/bits/fs_path.h [!_GLIBCXX_USE_CXX11_ABI]: Remove special
|
|
|
|
|
cases for old basic_string.
|
|
|
|
|
* testsuite/21_strings/basic_string/cons/char/8.cc: Test
|
|
|
|
|
allocator-extended constructors unconditionally. Add extra members to
|
|
|
|
|
allocator type when using old string ABI.
|
|
|
|
|
* testsuite/21_strings/basic_string/allocator/71964.cc: Enable test
|
|
|
|
|
for old string ABI.
|
|
|
|
|
* testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
|
|
|
|
|
|
2019-01-04 19:56:26 +01:00
|
|
|
|
* testsuite/23_containers/list/61347.cc: Avoid spurious failure when
|
|
|
|
|
-fno-inline added to test flags.
|
|
|
|
|
|
2019-01-04 17:07:06 +01:00
|
|
|
|
* testsuite/21_strings/basic_string/requirements/
|
|
|
|
|
explicit_instantiation/debug.cc: Remove XFAIL for old ABI.
|
|
|
|
|
|
2019-01-04 16:42:33 +01:00
|
|
|
|
* testsuite/27_io/filesystem/filesystem_error/copy.cc: Fix static
|
|
|
|
|
assertion failures with old std::string ABI.
|
|
|
|
|
|
2019-01-04 15:03:59 +01:00
|
|
|
|
* include/bits/fs_path.h (path::_List::erase): Replace both overloads
|
|
|
|
|
with ...
|
|
|
|
|
(path::pop_back(), path::_M_erase_from(const_iterator)): New member
|
|
|
|
|
functions that will only erase elements at the end.
|
|
|
|
|
* src/filesystem/std-path.cc (path::_List::_Impl::pop_back()): Define.
|
|
|
|
|
(path::_List::_Impl::_M_erase_from(const_iterator)): Define.
|
|
|
|
|
(path::_List::operator=(const _List&)): Use _M_erase_from(p) instead
|
|
|
|
|
of erase(p, end()).
|
|
|
|
|
(path::_List::pop_back()): Define.
|
|
|
|
|
(path::_List::_M_erase_from(const_iterator)): Define.
|
|
|
|
|
(path::operator/=(const path&)): Use pop_back to remove last component
|
|
|
|
|
and _M_erase_from to remove multiple components.
|
|
|
|
|
(path::_M_append(basic_string_view<value_type>)): Likewise.
|
|
|
|
|
(path::operator+=(const path&)): Likewise.
|
|
|
|
|
(path::_M_concat(basic_string_view<value_type>)): Likewise.
|
|
|
|
|
(path::remove_filename()): Likewise.
|
|
|
|
|
(path::lexically_normal()): Use _List::_Impl iterators instead of
|
|
|
|
|
path::iterator. Use pop_back to remove components from the end. Clear
|
|
|
|
|
trailing filename, instead of using erase(const_iterator) to remove
|
|
|
|
|
a non-final component.
|
|
|
|
|
* testsuite/27_io/filesystem/path/generation/normal.cc: Test
|
|
|
|
|
additional cases.
|
|
|
|
|
* testsuite/27_io/filesystem/path/generation/normal2.cc: New test.
|
|
|
|
|
|
2019-01-04 12:43:09 +01:00
|
|
|
|
* src/filesystem/std-path.cc (path::operator+=(const path&)): Fix
|
|
|
|
|
incorrect treatment of empty filename after trailing slash.
|
|
|
|
|
* testsuite/27_io/filesystem/path/concat/path.cc: Test problem case.
|
|
|
|
|
|
2019-01-04 12:06:49 +01:00
|
|
|
|
* testsuite/21_strings/basic_string/modifiers/assign/char/
|
|
|
|
|
move_assign_optim.cc: Avoid spurious failure when -fno-inline added
|
|
|
|
|
to test flags.
|
|
|
|
|
* testsuite/21_strings/basic_string/modifiers/assign/wchar_t/
|
|
|
|
|
move_assign_optim.cc: Likewise.
|
|
|
|
|
|
2019-01-03 23:07:52 +01:00
|
|
|
|
2019-01-03 Jonathan Wakely <jwakely@redhat.com>
|
|
|
|
|
Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR libstdc++/88607
|
|
|
|
|
* include/experimental/memory: Replace UTF-8 quote characters.
|
|
|
|
|
* include/std/future: Replace UTF-8 "em dash" characters.
|
|
|
|
|
|
2019-01-03 21:38:04 +01:00
|
|
|
|
2019-01-03 Jonathan Wakely <jwakely@redhat.com>
|
|
|
|
|
|
2019-01-03 21:38:11 +01:00
|
|
|
|
PR libstdc++/88607
|
|
|
|
|
* include/bits/forward_list.h: Replace UTF-8 "ligature fi" character.
|
|
|
|
|
* include/debug/forward_list: Likewise.
|
|
|
|
|
* include/experimental/bits/shared_ptr.h: Remove UTF-8 "section sign"
|
|
|
|
|
character.
|
|
|
|
|
* include/experimental/chrono: Likewise.
|
|
|
|
|
* include/experimental/functional: Likewise.
|
|
|
|
|
* include/experimental/ratio: Likewise.
|
|
|
|
|
* include/experimental/system_error: Likewise.
|
|
|
|
|
* include/experimental/tuple: Likewise.
|
|
|
|
|
* include/experimental/type_traits: Likewise.
|
|
|
|
|
* include/parallel/workstealing.h: Replace UTF-8 "en dash" character.
|
|
|
|
|
* include/parallel/multiseq_selection.h: Likewise.
|
|
|
|
|
|
2019-01-03 21:38:04 +01:00
|
|
|
|
PR libstdc++/88681
|
|
|
|
|
* config/abi/pre/gnu.ver: Add missing exports.
|
|
|
|
|
* testsuite/22_locale/collate_byname/88681.cc: New test.
|
|
|
|
|
* testsuite/22_locale/time_get/get/char/88681.cc: New test.
|
|
|
|
|
* testsuite/22_locale/time_get/get/wchar_t/88681.cc: New test.
|
|
|
|
|
|
2019-01-02 11:44:35 +01:00
|
|
|
|
2019-01-02 Jonathan Wakely <jwakely@redhat.com>
|
|
|
|
|
|
2019-01-02 17:30:49 +01:00
|
|
|
|
* testsuite/23_containers/map/cons/deduction.cc: Test deduction from
|
|
|
|
|
initializer_list<value_type> and from input iterator ranges.
|
|
|
|
|
* testsuite/23_containers/multimap/cons/deduction.cc: Likewise.
|
|
|
|
|
|
2019-01-02 11:44:35 +01:00
|
|
|
|
* testsuite/experimental/string_view/element_access/char/empty.cc:
|
|
|
|
|
Fix year range in copyright header.
|
|
|
|
|
|
2019-01-02 07:04:51 +01:00
|
|
|
|
2019-01-02 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* testsuite/21_strings/basic_string_view/element_access/char/empty.cc:
|
|
|
|
|
Fix year range in copyright header.
|
|
|
|
|
|
2019-01-01 13:31:55 +01:00
|
|
|
|
2019-01-01 Jakub Jelinek <jakub@redhat.com>
|
2015-01-05 13:33:28 +01:00
|
|
|
|
|
|
|
|
|
Update copyright years.
|
2015-01-02 17:50:45 +01:00
|
|
|
|
|
2019-01-01 13:31:55 +01:00
|
|
|
|
Copyright (C) 2019 Free Software Foundation, Inc.
|
2015-01-02 17:50:45 +01:00
|
|
|
|
|
|
|
|
|
Copying and distribution of this file, with or without modification,
|
|
|
|
|
are permitted in any medium without royalty provided the copyright
|
|
|
|
|
notice and this notice are preserved.
|