This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [gfortran,PATCH] alloca() is undeclared in env.c
- From: Richard Henderson <rth at redhat dot com>
- To: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 15 Sep 2004 17:47:11 -0700
- Subject: Re: [gfortran,PATCH] alloca() is undeclared in env.c
- References: <20040915232622.GA99704@troutmask.apl.washington.edu>
On Wed, Sep 15, 2004 at 04:26:22PM -0700, Steve Kargl wrote:
> AC_STDC_HEADERS
> -AC_HAVE_HEADERS(stdlib.h stdio.h string.h stddef.h math.h unistd.h)
> +AC_HAVE_HEADERS(alloca.h stdlib.h stdio.h string.h stddef.h math.h unistd.h)
Alloca is much trickier than that. See AC_FUNC_ALLOCA.
You may want to skip all that and do
#define alloca(x) __builtin_alloca(x)
in libgfortran, since we know for a fact that we're
building with gcc, and the current version at that.
r~