This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/69043] Trying to include a directory causes an infinite loop
- From: "andris.pavenis at iki dot fi" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 18 Mar 2016 04:28:54 +0000
- Subject: [Bug fortran/69043] Trying to include a directory causes an infinite loop
- Auto-submitted: auto-generated
- References: <bug-69043-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69043
Andris Pavenis <andris.pavenis at iki dot fi> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andris.pavenis at iki dot fi
--- Comment #6 from Andris Pavenis <andris.pavenis at iki dot fi> ---
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.