From 4c1545e441c284dab059b8d6d769d4b75e9cdf96 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 14 Apr 2000 22:20:38 +0000 Subject: [PATCH] print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK not yet set. * print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK not yet set. From-SVN: r33156 --- gcc/ChangeLog | 3 +++ gcc/print-rtl.c | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6c8cfb4e8b6..60fa2cc9798 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ Fri Apr 14 18:07:30 2000 Richard Kenner + * print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK + not yet set. + * expr.c (reload.h): Now included. (emit_block_move): Set volatile_ok when checking for movstr. (emit_move_1): Check for replacements in addresses in multi-word case. diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index 5ffc30c9925..ee7e64cebb5 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -195,7 +195,9 @@ print_rtx (in_rtx) else if (NOTE_LINE_NUMBER (in_rtx) == NOTE_INSN_BASIC_BLOCK) { basic_block bb = NOTE_BASIC_BLOCK (in_rtx); - fprintf (outfile, " [bb %d]", bb->index); + + if (bb != 0) + fprintf (outfile, " [bb %d]", bb->index); } else {