flow.c (flow_loops_dump): Avoid ANSI string concatenation.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Fri, 10 Dec 1999 20:02:43 +0000 (20:02 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Fri, 10 Dec 1999 20:02:43 +0000 (20:02 +0000)
        * 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

gcc/ChangeLog
gcc/flow.c

index bcc4137f91648184c3d58f4cd569fb3eb3314aa0..972aef1174d02dd5cc201647e3405040dd4e5328 100644 (file)
@@ -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
index eb50c94abf59aefcf2167ede1d8fd38e2323846f..cc20485317c1dc4e26b9b5a7ce96314066d1e703 100644 (file)
@@ -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");
                }