aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-12-10 20:02:43 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-12-10 20:02:43 +0000
commitd92398a2034c96f1c63594b3577aa7619987d6f1 (patch)
tree477a2a445b2e37888219f23edb7314f8ab5e43de /gcc
parent15a17b722961146c81c7fca21031053f3f27db03 (diff)
downloadgcc-d92398a2034c96f1c63594b3577aa7619987d6f1.zip
gcc-d92398a2034c96f1c63594b3577aa7619987d6f1.tar.gz
gcc-d92398a2034c96f1c63594b3577aa7619987d6f1.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/flow.c9
2 files changed, 8 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bcc4137..972aef1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+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>
* config/m68k/m68k.h (CONDITIONAL_REGISTER_USAGE): If we have no
diff --git a/gcc/flow.c b/gcc/flow.c
index eb50c94..cc20485 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -6410,14 +6410,12 @@ flow_loops_dump (loops, file, verbose)
{
struct loop *loop = &loops->array[i];
- fprintf (file, ";; loop %d (%d to %d):\n"
- ";; header %d, latch %d, pre-header %d,"
- " depth %d, level %d, outer %d\n",
+ fprintf (file, ";; loop %d (%d to %d):\n;; header %d, latch %d, pre-header %d, depth %d, level %d, outer %ld\n",
i, INSN_UID (loop->header->head), INSN_UID (loop->latch->end),
loop->header->index, loop->latch->index,
loop->pre_header ? loop->pre_header->index : -1,
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);
flow_nodes_print (" nodes", loop->nodes, file);
fprintf (file, ";; %d", loop->num_exits);
@@ -6443,8 +6441,7 @@ flow_loops_dump (loops, file, verbose)
must be disjoint. */
disjoint = ! flow_loop_nested_p (smaller ? loop : oloop,
smaller ? oloop : loop);
- fprintf (file, ";; loop header %d shared by loops %d, %d"
- " %s\n",
+ fprintf (file, ";; loop header %d shared by loops %d, %d %s\n",
loop->header->index, i, j,
disjoint ? "disjoint" : "nested");
}