[Bug fortran/69043] Trying to include a directory causes an infinite loop
jvdelisle at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 18 22:12:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69043
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #7 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Andris Pavenis from comment #6)
> Breaks include support for DJGPP native compiler as S_ISREG is 0 for it. One
> should use S_ISREG(st.st_mode) instead. gcc/system.h ensures that S_ISREG is
> defined, so there should be no problems with it.
>
> Verified that replacing '(st.st_mode & S_IFREG)' with S_ISREG(st.st_mode)
> fixes libgfortran native build for DJGPP.
OK, thanks for the feedback, will fix and make sure this works on Linux as
well.
More information about the Gcc-bugs
mailing list