alloca + function call
Ulrich Drepper
drepper@ipd.info.uni-karlsruhe.de
Wed Dec 3 17:03:00 GMT 1997
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 `------------------------
More information about the Gcc
mailing list