Commit d92398a2 by Kaveh R. Ghazi Committed by Kaveh Ghazi

flow.c (flow_loops_dump): Avoid ANSI string concatenation.

        * flow.c (flow_loops_dump): Avoid ANSI string concatenation.
        Cast a ptrdiff_t to long and pass it to printf with %ld.

From-SVN: r30862
parent 15a17b72
1999-12-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* flow.c (flow_loops_dump): Avoid ANSI string concatenation.
Cast a ptrdiff_t to long and pass it to printf with %ld.
1999-12-10 Geoff Keating <geoffk@cygnus.com> 1999-12-10 Geoff Keating <geoffk@cygnus.com>
* config/m68k/m68k.h (CONDITIONAL_REGISTER_USAGE): If we have no * config/m68k/m68k.h (CONDITIONAL_REGISTER_USAGE): If we have no
......
...@@ -6410,14 +6410,12 @@ flow_loops_dump (loops, file, verbose) ...@@ -6410,14 +6410,12 @@ flow_loops_dump (loops, file, verbose)
{ {
struct loop *loop = &loops->array[i]; struct loop *loop = &loops->array[i];
fprintf (file, ";; loop %d (%d to %d):\n" fprintf (file, ";; loop %d (%d to %d):\n;; header %d, latch %d, pre-header %d, depth %d, level %d, outer %ld\n",
";; header %d, latch %d, pre-header %d,"
" depth %d, level %d, outer %d\n",
i, INSN_UID (loop->header->head), INSN_UID (loop->latch->end), i, INSN_UID (loop->header->head), INSN_UID (loop->latch->end),
loop->header->index, loop->latch->index, loop->header->index, loop->latch->index,
loop->pre_header ? loop->pre_header->index : -1, loop->pre_header ? loop->pre_header->index : -1,
loop->depth, loop->level, loop->depth, loop->level,
loop->outer ? (loop->outer - loops->array) : -1); (long) (loop->outer ? (loop->outer - loops->array) : -1));
fprintf (file, ";; %d", loop->num_nodes); fprintf (file, ";; %d", loop->num_nodes);
flow_nodes_print (" nodes", loop->nodes, file); flow_nodes_print (" nodes", loop->nodes, file);
fprintf (file, ";; %d", loop->num_exits); fprintf (file, ";; %d", loop->num_exits);
...@@ -6443,8 +6441,7 @@ flow_loops_dump (loops, file, verbose) ...@@ -6443,8 +6441,7 @@ flow_loops_dump (loops, file, verbose)
must be disjoint. */ must be disjoint. */
disjoint = ! flow_loop_nested_p (smaller ? loop : oloop, disjoint = ! flow_loop_nested_p (smaller ? loop : oloop,
smaller ? oloop : loop); smaller ? oloop : loop);
fprintf (file, ";; loop header %d shared by loops %d, %d" fprintf (file, ";; loop header %d shared by loops %d, %d %s\n",
" %s\n",
loop->header->index, i, j, loop->header->index, i, j,
disjoint ? "disjoint" : "nested"); disjoint ? "disjoint" : "nested");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment