]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
flow.c (flow_loop_dump): Do not display insn UIDs if this is not an RTL basic block.
authorDiego Novillo <dnovillo@redhat.com>
Mon, 27 Aug 2001 18:11:27 +0000 (18:11 +0000)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Mon, 27 Aug 2001 18:11:27 +0000 (14:11 -0400)
* flow.c (flow_loop_dump): Do not display insn UIDs if this is not
an RTL basic block.

From-SVN: r45201

gcc/ChangeLog
gcc/flow.c

index 2484f2fd9700d53851a89a91cda1cd836052283f..3b3c167d136013f04b087fca1472afa065eb8359 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-27  Diego Novillo  <dnovillo@redhat.com>
+
+       * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
+       an RTL basic block.
+
 2001-08-27  Richard Henderson  <rth@redhat.com>
 
        * function.c (expand_function_end): Don't init arg_pointer_save_area.
index 1360c7e9b2e44aacf295389466416104cfbca9bd..1da1ef0c65c35b1c2ba522c97bb6bae0c38feadb 100644 (file)
@@ -9176,11 +9176,17 @@ flow_loop_dump (loop, file, loop_dump_aux, verbose)
   if (! loop || ! loop->header)
     return;
 
-  fprintf (file, ";;\n;; Loop %d (%d to %d):%s%s\n",
-          loop->num, INSN_UID (loop->first->head),
-          INSN_UID (loop->last->end),
-          loop->shared ? " shared" : "",
-          loop->invalid ? " invalid" : "");
+  if (loop->first->head && loop->last->end)
+    fprintf (file, ";;\n;; Loop %d (%d to %d):%s%s\n",
+           loop->num, INSN_UID (loop->first->head),
+           INSN_UID (loop->last->end),
+           loop->shared ? " shared" : "",
+           loop->invalid ? " invalid" : "");
+  else
+    fprintf (file, ";;\n;; Loop %d:%s%s\n", loop->num,
+            loop->shared ? " shared" : "",
+            loop->invalid ? " invalid" : "");
+
   fprintf (file, ";;  header %d, latch %d, pre-header %d, first %d, last %d\n",
           loop->header->index, loop->latch->index,
           loop->pre_header ? loop->pre_header->index : -1,