This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch] Don't provide lstat gfortran intrinsic if target doesn't support lstat.
- From: FX Coudert <fxcoudert at gmail dot com>
- To: Danny Smith <dannysmith at clear dot net dot nz>
- Cc: 'GFORTRAN' <fortran at gcc dot gnu dot org>, 'GCC-patches' <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 22 Oct 2006 13:26:48 +0200
- Subject: Re: [Patch] Don't provide lstat gfortran intrinsic if target doesn't support lstat.
- References: <000201c6f5c0$e2932d60$816d65da@anykey>
Sure that could be done. However, I think it is simpler just to test
for existence of of lstat without presuming that "LSTAT is formally
the
same as STAT" on windows. gfortran should not be making such
decisions
for any target.
I know that it's easier to test for the existence of lstat, and if
lstat is not available, make the libgfortran LSTAT internally call
stat instead.
FX