https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109485

--- Comment #9 from Dani Borg <dani.borg at outlook dot com> ---
(In reply to Andrew Pinski from comment #5)
> Note I think clang's "optimization" might get the case where a subdirectory
> is not "executable" but is readable wrong.
> 
> So this is definitely something which would need testing too.

The idea is just to check for the presence of directories and not to try to
list the contents in them. I think various permissions can be handled just
fine, but this is one of probably many corner cases that needs to be considered
and handled correctly.

Reply via email to