This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

alloca + function call


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   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]