From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Henderson To: "Kaveh R. Ghazi" Cc: gcc@gcc.gnu.org Subject: Re: Using alloca (or stmt exprs) as a function call argument is bad? Date: Mon, 17 Sep 2001 15:50:00 -0000 Message-id: <20010917155017.F30386@redhat.com> References: <200109171831.OAA17524@caip.rutgers.edu> X-SW-Source: 2001-09/msg00674.html On Mon, Sep 17, 2001 at 02:31:06PM -0400, Kaveh R. Ghazi wrote: > And its presumably because alloca is diddling with > the stack at the same time function parameters are being pushed there? Yes. > What about statement expressions? E.g. > > #define foo(X) ({int bar = X; bar*bar+3;}) > > baz(foo(3), foo(7)) > > Does that pose any stack problems on any target? I don't think so. r~