[gfortran,PATCH] alloca() is undeclared in env.c
Richard Henderson
rth@redhat.com
Thu Sep 16 01:41:00 GMT 2004
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~
More information about the Gcc-patches
mailing list