aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-fold.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-01-17 15:31:59 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2019-01-17 15:31:59 +0000
commitdd0f7ba27314978e77aab5d8da1eb6070805ee4c (patch)
tree634a3e08bd9424e9edbddd635c8537536747bcf5 /gcc/gimple-fold.c
parenta9e48eaadab4e73c7d87ea13439dda4ba76abb2b (diff)
downloadgcc-dd0f7ba27314978e77aab5d8da1eb6070805ee4c.zip
gcc-dd0f7ba27314978e77aab5d8da1eb6070805ee4c.tar.gz
gcc-dd0f7ba27314978e77aab5d8da1eb6070805ee4c.tar.bz2
PR libstdc++/88881 adjust filesystem::status and tests for mingw semantics
On Windows stat("foo/bar/../.") will resolve to "foo" even if that is a non-directory and "foo/bar" does not exist. This is the expected behaviour and consistent with boost::filesystem, so don't try to correct it. The only unwanted behaviour is that stat("baz/") fails due to a mingw bug (fixed in mingw-w64 v6.0.0) so add a workaround. PR libstdc++/88881 * src/c++17/fs_ops.cc (canonical(const path&, error_code&)) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize path, to match behaviour of filesystem::exists. (create_directories(const path&, error_code&)): Add assertions. (status(const path&, error_code&)) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add workaround for bug in _wstat for paths with trailing slash. * testsuite/27_io/filesystem/operations/create_directories.cc: Adjust for expected behaviour on mingw. * testsuite/experimental/filesystem/operations/create_directories.cc: Likewise. * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Use "TMP" instead of "TMPDIR" and clean environment before each test. Do not test permissions on mingw targets. From-SVN: r268034
Diffstat (limited to 'gcc/gimple-fold.c')
0 files changed, 0 insertions, 0 deletions