Further observations regarding alloca on i586-pc-linux-gnu

Martin von Loewis martin@mira.isdn.cs.tu-berlin.de
Tue Aug 25 12:45:00 GMT 1998


> 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



More information about the Gcc mailing list