]> 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>
Wed, 4 Oct 2023 11:10:05 +0000 (12:10 +0100)
commit89ab38bfc813703d6b98579e3675f253c7fd29b4
tree280c6b97b81da1d6a8e9d184c175baa5f01de00d
parentb0ad298471a2a6bdd6a9d8eb78a692f2c8b9de0f
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.

(cherry picked from commit 835b19936bf30d693783bfa39145a4ce243bbd7c)
libstdc++-v3/src/c++17/fs_dir.cc