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: Fix implicit declaration warnings for alloca in target files


On Thu, Sep 16, 2004 at 08:55:50AM -0400, Kaveh R. Ghazi wrote:
> +/* GCC always provides __builtin_alloca(x).  */
> +#ifndef alloca
> +#define alloca(x) __builtin_alloca(x)
> +#endif

Should be #undef, not #ifndef.


r~


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