This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Computed gotos
- From: Paul Brook <paul at nowt dot org>
- To: Luca Saiu <positrone at freemail dot it>, Robert Dewar <dewar at gnat dot com>
- Cc: aph at redhat dot com, positrone at freemail dot it, gcc at gcc dot gnu dot org
- Date: Mon, 30 Jun 2003 23:13:18 +0100
- Subject: Re: [tree-ssa] Computed gotos
- References: <20030630213245.CD988F2CEB@nile.gnat.com> <3F00B20B.6070200@freemail.it>
On Monday 30 June 2003 10:56 pm, Luca Saiu wrote:
> Robert Dewar wrote:
> > I wonder if we are all on the same page here with terminology. What
> > exactly do people mean by a computed goto? I had assumed that they
> > meant the computed goto of Fortran
>
> And I was talking about the C 'computed goto' GCC extension, as you
> have already understood.
> I might try to defend myself saying that Fortran has a similar
> construct, but I would just further demonstrate my idiocy :-))).
Yes, me too. The fortran version is called an assigned goto. Some confusion
is inevitable as Fortran also has a "computed goto", but that's different,
and trivially translatable into a select statement.
Paul