Subject: Re: alloca in libc
To: None <tech-toolchain@NetBSD.org>
From: Anders Hjalmarsson <firstname.lastname@example.org>
Date: 12/01/2005 22:14:51
> If you used -std=gnu99 alloca() should still be available.
> Furthermore, we could provide our own <alloca.h> header file that
> #define alloca(x) __builtin_alloca(x)
> That would work with any -std=... option.
> -- thorpej
Do we really need a new header, can't we simply put that define in
stdlib.h (where it is currently declared)?
After all, if the protype is visible after including <stdlib.h>,
surely one would expect the function to be provided in some way without
including extra headers.