This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Computed gotos
- From: Andrew Haley <aph at redhat dot com>
- To: dewar at gnat dot com (Robert Dewar)
- Cc: gcc at gcc dot gnu dot org, paul at nowt dot org
- Date: Fri, 27 Jun 2003 21:39:33 +0100
- Subject: Re: [tree-ssa] Computed gotos
- References: <20030627195002.4CD1EF2A5D@nile.gnat.com>
Robert Dewar writes:
> > Is this kind of thing ever likely to work reliably and efficiently?
> > I could probably rearrange things so we end up with a switch statement
> > containing normal gotos. This would eliminate the need for indirect jumps
> > altogether. Maybe this is the way to go?
>
> Absolutely, computed gotos are an abomination in most cases
I use indirect jumps in a rather appalling way in the Java bytecode
compiler. I guess I'll plead that support should be retained until I
can think of a better way to do it.
Andrew.