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

Paul Brook paul@codesourcery.com
Thu Sep 16 17:58:00 GMT 2004


> 2004-09-16  Steven G. Kargl  <kargls@comcast.net>
>
>          * intrinsics/env.c: Use __builtin_alloca(x).
>
> +#ifdef alloca
> +#undef alloca
> +#define alloca(x)  __builtin_alloca(x)
> +#endif 

Won't this break targets which don't define alloca in stdlib.h?
My suggestion would be to move the #define after the #endif

Paul



More information about the Gcc-patches mailing list