Oops :/
Jeffrey A Law
law@cygnus.com
Sat Aug 22 17:48:00 GMT 1998
In message < 199808221734.TAA14297@jolan.ppro >you write:
> Hmm, always think for 5 minutes longer before sending a mail :/
>
> I am suddenly not so sure anymore that it is a bug.
>
> Its equivalent to doing:
>
> foo(alloca(20), '\n');
>
> If '\n' is put on the stack first, you have a problem.
> Can it be a requirement that alloca() occuring in parameter lists
> of function calls are pre-calculated, before putting the
> parameters on the stack?
>
> Think of
>
> foo(alloca(20), alloca(20));
>
> Please remove egcs-bugs@cygnus.com from the recipient list
> when you reply.
This is a known bug with builtin alloca on machines which push
arguments like the x86.
I've got no idea how hard this would be to fix.
jeff
More information about the Gcc
mailing list