This is the mail archive of the gcc-patches@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]

Re: Minor infrastructure change (delete_unreachable_blocks)


  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


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