OSDN Git Service

* print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK
[pf3gnuchains/gcc-fork.git] / gcc / print-rtl.c
index 5ffc30c..ee7e64c 100644 (file)
@@ -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
              {