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 06:45:05PM -0500, Richard Kenner wrote:
>     Let us all look forward to that blessed day in which SAVE_EXPR is
>     forever banished to the pit.
> 
> How could it be?  It seems to me to be semantically critical when you
> need the result of expression that have side-effects.

By using an unnamed VAR_DECL.

> Sure, you can use variables for the bounds, but SAVE_EXPR is just a
> shorthand for that and avoids the scoping issues inherent with such
> variables.

Trading scoping issues for the re-evaluation horrors we have with
SAVE_EXPR and UNSAVE_EXPR is not a win, IMO.


r~


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