https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109485
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- 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.