This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR 11350
On Sun, Jan 11, 2004 at 12:38:50AM +0100, Jan Hubicka wrote:
> One alternate scheme is to allow changing tablejumps into directjumps
> (ie keep flow2_completted check in try_redirect_by_replacing_jump) and
> rely on flow2 to elliminate dead jumptables if they are dead and keep it
> around if they are still referenced for no good reason and try to
> preserve it in the code. But that scheme had problems too (losing the
> branch destinations as the edges were missing).
Another possibility is to turn a tablejump label into a
NOTE_INSN_DELETED_LABEL after reload. Thus we'd never keep the
problematic destination labels, nor would we get undefined symbols
from stray references that still exist.
r~