aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2000-04-14 22:20:38 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2000-04-14 18:20:38 -0400
commit4c1545e441c284dab059b8d6d769d4b75e9cdf96 (patch)
treea03d75981a4d44d99a38383ad732a7a769606f40 /gcc
parent3ef1eef42a55eb91fca935b621cc1d757b00d0d4 (diff)
downloadgcc-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')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/print-rtl.c4
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6c8cfb4..60fa2cc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
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.
+
* 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 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
{