[RFC] Extension of SIMPLE for Fortran 95

Diego Novillo dnovillo@redhat.com
Mon Jun 10 09:36:00 GMT 2002


On Mon, 2002-06-10 at 12:03, Tom Tromey wrote:
> >>>>> "Diego" == Diego Novillo <dnovillo@redhat.com> writes:
> 
> >> We want to lower our parse tree to SIMPLE, but we can't represent this kind
> >> of CYCLE and EXIT statements in SIMPLE.
> 
> Diego> Maybe we shouldn't have to.  Couldn't the above be modelled
> Diego> with GOTOs?  The way I'd rather handle it is to have the g95
> Diego> simplifier deal with things like this.
> 
> FWIW, Java also has this feature.  I'm curious to know why it is you'd
> prefer this be handled using GOTO.
> 
I want to minimize implicit behaviour.  They only create problems when
doing language-independent transformations.


> Or to put it another way, why not handle all continue/break using GOTO?
>
I can only give you one pretty weak reason: the original SIMPLE grammar
allows them.  I wouldn't mind handling them using GOTO statements.


Diego.



More information about the Gcc mailing list