This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: [RFC] Extension of SIMPLE for Fortran 95


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.


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