aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@redhat.com>2001-08-27 18:11:27 +0000
committerDiego Novillo <dnovillo@gcc.gnu.org>2001-08-27 14:11:27 -0400
commit95005c210a14c56a0d86abaae40f61b723ebf5dc (patch)
treeea896866898009fbc056efc76968728e2f6f46ad
parent278ed2183f3ebbcf4e8f1bde74ae7e7f77396401 (diff)
downloadgcc-95005c210a14c56a0d86abaae40f61b723ebf5dc.zip
gcc-95005c210a14c56a0d86abaae40f61b723ebf5dc.tar.gz
gcc-95005c210a14c56a0d86abaae40f61b723ebf5dc.tar.bz2
flow.c (flow_loop_dump): Do not display insn UIDs if this is not an RTL basic block.
* flow.c (flow_loop_dump): Do not display insn UIDs if this is not an RTL basic block. From-SVN: r45201
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/flow.c16
2 files changed, 16 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2484f2f..3b3c167 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/flow.c b/gcc/flow.c
index 1360c7e..1da1ef0 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -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,