This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gfortran,PATCH] alloca() is undeclared in env.c


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]