This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Minor infrastructure change (delete_unreachable_blocks)
- To: Lars Brinkhoff <lars at nocrew dot org>
- Subject: Re: Minor infrastructure change (delete_unreachable_blocks)
- From: law at redhat dot com
- Date: Tue, 19 Jun 2001 12:18:36 -0700
- cc: gcc-patches at gcc dot gnu dot org
- Reply-To: law at redhat dot com
In message <85hexca9uc.fsf@junk.nocrew.org>you write:
> Jeffrey A Law writes:
> > It would be nice to have a routine to identify, but not remove unreachabl
> e
> > blocks in the CFG for some stuff I'm working on right now.
> >
> > While I could simply copy what I need from flow.c it seems rather silly
> > to have that kind of code duplication.
> >
> > So instead I just broke out the code to detect unreachable blocks from
> > delete_unreachable_blocks. The new routine (find_unreachable_blocks) is
> > externally visible.
> >
> > * flow.c (find_unreachable_blocks): New function.
> > (delete_unreachable_blocks): Use find_unreachable_blocks.
> > * basic-block.h (find_unreachable_blocks): Declare.
>
> Did you forget to insert a call to find_unreachable_blocks? With your
> change, GCC crashes trying to compile this on powerpc-unknown-linux-gnu:
>
> void foo (void) { loop: goto loop; }
>
> This was bootstrapped on powerpc-linux-unknown-gnu:
I fixed it this morning.
jeff