From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulrich Drepper To: gcc2@cygnus.com, egcs@cygnus.com Subject: alloca + function call Date: Wed, 03 Dec 1997 17:03:00 -0000 Message-id: X-SW-Source: 1997-12/msg00219.html 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 `------------------------