[RFC] Extension of SIMPLE for Fortran 95
Diego Novillo
dnovillo@redhat.com
Mon Jun 10 07:58:00 GMT 2002
On Mon, 10 Jun 2002, S. Bosscher wrote:
> OUTER: DO I=...
> ...
> INNER: DO J=...
> ...
> IF (something) THEN
> CYCLE OUTER
> ELSE IF (something else) THEN
> EXIT OUTER
> ENDIF
> ...
> END DO INNER
> ...
>
> END DO OUTER
>
> We want to lower our parse tree to SIMPLE, but we can't represent this kind
> of CYCLE and EXIT statements in SIMPLE.
>
Maybe we shouldn't have to. Couldn't the above be modelled with
GOTOs? The way I'd rather handle it is to have the g95
simplifier deal with things like this.
The way to approach this is to think about converting the above
to RTL. If you can convert to RTL, then you can convert to
SIMPLE. You merely need to expose all the language-dependent
semantics.
Diego.
More information about the Gcc
mailing list