This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Oops :/
- To: Carlo Wood <carlo at runaway dot xs4all dot nl>
- Subject: Re: Oops :/
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sat, 22 Aug 1998 18:18:24 -0600
- cc: egcs at cygnus dot com (egcs at cygnus dot com), pommnitz at darmstadt dot gmd dot de
- Reply-To: law at cygnus dot com
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