This is the mail archive of the gcc-patches@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: [PATCH] variable size arrays in nested functions


On Fri, Feb 09, 2001 at 07:25:11PM -0500, Richard Kenner wrote:
> But then it's no longer an expression, but a sequence of statements.

Err, a VAR_DECL certainly is an expression.  I'm not suggesting that
its _initialization_ is part of that expression.

In fact, I'll claim that the fact that the initialization of a SAVE_EXPR
might or might not be part of the expression (being dependant on whether
or not it has been previously evaluated) that is the source of all pain
associated with this tree code.

So that a sequence of statements is needed in order to use a VAR_DECL in
this context is in fact a feature.

> I never did understand UNSAVE_EXPR.  What was the motivation for that?

To work around problems encountered with evaluating SAVE_EXPRs.
I won't pretend to know exactly which ones, or why UNSAVE_EXPR
was thought to be a "solution".


r~


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