This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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


> 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


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