This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
alloca + function call
- To: gcc2 at cygnus dot com, egcs at cygnus dot com
- Subject: alloca + function call
- From: Ulrich Drepper <drepper at ipd dot info dot uni-karlsruhe dot de>
- Date: 03 Dec 1997 23:44:55 +0100
- Reply-To: drepper at ipd dot info dot uni-karlsruhe dot de (Ulrich Drepper)
Hi,
Could gcc be changed in a way that code like
a = foo (alloca (42), b);
generated an error (or at least a warning)? On machines which pass
parameters on the stack a straight forward implementation (in ix86 asm)
pushl b
subl $42, %esp allocate 42 bytes on stack
pushl %esp
call foo
will fail miserable.
-- Uli
---------------. drepper at gnu.org ,-. Rubensstrasse 5
Ulrich Drepper \ ,-------------------' \ 76149 Karlsruhe/Germany
Cygnus Solutions `--' drepper at cygnus.com `------------------------