This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Further observations regarding alloca on i586-pc-linux-gnu
> I really think the test is valid. There are no documented
> constraints on the usage of alloca.
This is a weak point :-) There is no alloca documentation, period.
It's not an ANSI C or ISO C++ function, so you code is certainly not
valid standard C++.
> An option "-fno-inline-alloca" and the generic alloca emulation
> included in glibc would provide a useable work around.
Well, this is easy to provide. Please check out -fno-builtin. Be aware
of alloca.h, which just knows we support __builtin_alloca.
Regards,
Martin