This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
print-rtl.c buglet
- To: gcc-patches at gcc dot gnu dot org
- Subject: print-rtl.c buglet
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Fri, 14 Apr 00 18:36:40 EDT
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