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]

Re: Using alloca (or stmt exprs) as a function call argument is bad?


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~


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