print-rtl.c buglet

Richard Kenner kenner@vlsi1.ultra.nyu.edu
Fri Apr 14 15:25:00 GMT 2000


If printing a NOTE and NOTE_BASIC_BLOCK hasn't yet been set, we
blow up.  This fixes it:

Fri Apr 14 18:07:30 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK
	not yet set.

*** print-rtl.c	2000/04/12 12:59:56	1.47
--- print-rtl.c	2000/04/14 17:02:02
*************** print_rtx (in_rtx)
*** 196,200 ****
  	      {
  		basic_block bb = NOTE_BASIC_BLOCK (in_rtx);
! 		fprintf (outfile, " [bb %d]", bb->index);
  	      }
  	    else
--- 196,202 ----
  	      {
  		basic_block bb = NOTE_BASIC_BLOCK (in_rtx);
! 
! 		if (bb != 0)
! 		  fprintf (outfile, " [bb %d]", bb->index);
  	      }
  	    else


More information about the Gcc-patches mailing list