This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Extension of SIMPLE for Fortran 95
On Tue, 2002-06-11 at 00:10, Richard Henderson wrote:
> > On Monday 10 June 2002 02:14, S. Bosscher wrote:
> > > So I would like to propose an extension to the SIMPLE grammar:
> > > How about adding an integer argument to the 'continue' and 'break'
> > > statements, that gives how many loops to break or continue from. 'continue'
> > > without argument would be the "normal" continue statement, 'continue 1'
> > > would contine the second-innermost loop, etc.
>
> Supposing that Diego doesn't decide to remove break entirely,
> I suggest not using a number, but rather have the break/continue
> reference the tree node for the loop directly.
>
Well, the breaking block has the exit edge pointing to the proper exit
node. Also, basic blocks know who their control parent is. That should
be enough info for the analysis routines.
Continue blocks are similarly handled, they point back to their loop
parent. There are also routines to query control parents and
continue/exit points.
Diego.