* alloca + function call
@ 1997-12-03 17:03 Ulrich Drepper
0 siblings, 0 replies; only message in thread
From: Ulrich Drepper @ 1997-12-03 17:03 UTC (permalink / raw)
To: gcc2, egcs
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 `------------------------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-12-03 17:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-03 17:03 alloca + function call Ulrich Drepper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).