]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Do not optimize away storing pathname if it's needed
authorJonathan Wakely <jwakely@redhat.com>
Tue, 28 Jun 2022 08:26:12 +0000 (09:26 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 28 Jun 2022 11:08:35 +0000 (12:08 +0100)
commit835b19936bf30d693783bfa39145a4ce243bbd7c
treec3fd8c98d61c49c4068e9ca4a8d64dbffba6c801
parent020b7d98589bbc928b5a66b1ed56b42af8791355
libstdc++: Do not optimize away storing pathname if it's needed

libstdc++-v3/ChangeLog:

* src/c++17/fs_dir.cc (_Dir::_Dir) [!_GLIBCXX_HAVE_OPENAT]:
Always store pathname if we don't have openat or unlinkat,
because the full path is needed to open sub-directories and
remove entries.
libstdc++-v3/src/c++17/fs_dir.cc