diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2000-04-14 22:20:38 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2000-04-14 18:20:38 -0400 |
commit | 4c1545e441c284dab059b8d6d769d4b75e9cdf96 (patch) | |
tree | a03d75981a4d44d99a38383ad732a7a769606f40 /gcc/print-rtl.c | |
parent | 3ef1eef42a55eb91fca935b621cc1d757b00d0d4 (diff) | |
download | gcc-4c1545e441c284dab059b8d6d769d4b75e9cdf96.zip gcc-4c1545e441c284dab059b8d6d769d4b75e9cdf96.tar.gz gcc-4c1545e441c284dab059b8d6d769d4b75e9cdf96.tar.bz2 |
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
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r-- | gcc/print-rtl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index 5ffc30c..ee7e64c 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 { |