aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-06-24 19:36:58 +0000
committerJakub Jelinek <jakub@redhat.com>2016-06-24 19:36:58 +0000
commitbbf9220467ecfe6ec6de693463a063de4b19a83c (patch)
tree158cfce090ef5a325683f6f43564eeaf4097d983
parent907c58406d1ddf21f9ba8e42c6c953302905a67f (diff)
* cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
PRIu64 instead of lu. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@237772 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cfgloop.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2bcf6b4fcdb..bf1764ce792 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2016-06-24 Jakub Jelinek <jakub@redhat.com>
+
+ * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
+ PRIu64 instead of lu.
+
2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
PR debug/71642
diff --git a/gcc/cfgloop.c b/gcc/cfgloop.c
index e6174bd2191..2087b9061a6 100644
--- a/gcc/cfgloop.c
+++ b/gcc/cfgloop.c
@@ -141,7 +141,8 @@ flow_loop_dump (const struct loop *loop, FILE *file,
bool read_profile_p;
gcov_type nit = expected_loop_iterations_unbounded (loop, &read_profile_p);
if (read_profile_p && !loop->any_estimate)
- fprintf (file, ";; profile-based iteration count: %lu\n", nit);
+ fprintf (file, ";; profile-based iteration count: %" PRIu64 "\n",
+ (uint64_t) nit);
}
fprintf (file, ";; nodes:");