public inbox for
 help / color / mirror / Atom feed
* [committed] libstdc++: Do not optimize away storing pathname if it's needed
@ 2022-06-28 11:08 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2022-06-28 11:08 UTC (permalink / raw)
  To: libstdc++, gcc-patches

Tested powerpc64le-linux, pushed to trunk.

-- >8 --


	* src/c++17/ (_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/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/src/c++17/ b/libstdc++-v3/src/c++17/
index 25b33baa875..025317b0a08 100644
--- a/libstdc++-v3/src/c++17/
+++ b/libstdc++-v3/src/c++17/
@@ -48,7 +48,7 @@ struct fs::_Dir : _Dir_base
        [[maybe_unused]] bool filename_only, error_code& ec)
   : _Dir_base(fdcwd(), p.c_str(), skip_permission_denied, nofollow, ec)
     if (filename_only)
       return; // Do not store path p when we aren't going to use it.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-28 11:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-28 11:08 [committed] libstdc++: Do not optimize away storing pathname if it's needed Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).