summaryrefslogtreecommitdiff
path: root/gcc/print-rtl.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-14 22:20:38 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-14 22:20:38 +0000
commitb51fc4144b5e283f03618922cdf9acd169fac7a8 (patch)
treea03d75981a4d44d99a38383ad732a7a769606f40 /gcc/print-rtl.c
parent6702c250bd84b01b9960d48b275b2f94491ee897 (diff)
downloadgcc-b51fc4144b5e283f03618922cdf9acd169fac7a8.tar.gz
* print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK
not yet set. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33156 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r--gcc/print-rtl.c4
1 files changed, 3 insertions, 1 deletions
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
{