This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [libgfortran,patch] Protect uses of {f,l,}stat with autoconf macros
- From: "François-Xavier Coudert" <fxcoudert at gmail dot com>
- To: "fortran at gcc dot gnu dot org List" <fortran at gcc dot gnu dot org>
- Cc: "gcc-patches List" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 30 Mar 2007 09:23:58 +0200
- Subject: Re: [libgfortran,patch] Protect uses of {f,l,}stat with autoconf macros
- References: <82C09F13-A1EF-41C0-B608-2B5F1906EA1A@gmail.com>
2007-03-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR libfortran/31335
* intrinsics/stat.c: Only provide STAT and FSTAT library routines
if stat() and fstat() library functions are available. When lstat()
is not available, use stat() instead.
* configure.ac: Add checks for stat, fstat and lstat.
* configure: Regenerate.
On second thought, it's pretty obvious and I'm the only gfortran
developer who uses mingw32. Since it tested fine there, and regtested
on i686-linux, I'll commit it as obvious in the next few days unless
someone objects.
FX