On 3/13/07, Jeffrey Law <[EMAIL PROTECTED]> wrote:
On Tue, 2007-03-13 at 18:09 +0100, Paolo Bonzini wrote:
> > int x;
> >  {
> >      int y;
> >          {
> >              int z;
> >              ...
> >          }
> >      ...
> > }
> >
> > just happens to have three statements, all VAR_DECL,x, y, z, without
> > any reference to the starting and ending blocks. As a side question,
> > how can I get hand of where the blocks start and finish? Don't really
> > know if it's useful but If I need it later, better I know how.
>
> This is not available anymore after lowering to GIMPLE.  BIND_EXPRs
> (representing lexical scope) are removed in gimple-low.c.
Correct.  FWIW, we originally kept that BIND_EXPRs and a variety of
other higher level constructs.  But they turned out to be a major
PITA to work with in the optimizers.  It was far cleaner to flatten
the IL.


OK, thank you.

Jeff




--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK

Reply via email to