From: Jakub Jelinek Date: Fri, 24 Jun 2016 19:36:58 +0000 (+0200) Subject: cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using PRIu64 instead... X-Git-Tag: basepoints/gcc-8~6014 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65e009bb74ece005a46393a8dd54080275604aef;p=thirdparty%2Fgcc.git cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using PRIu64 instead of lu. * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using PRIu64 instead of lu. From-SVN: r237772 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2bcf6b4fcdb7..bf1764ce7923 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-06-24 Jakub Jelinek + + * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using + PRIu64 instead of lu. + 2016-06-24 Eric Botcazou PR debug/71642 diff --git a/gcc/cfgloop.c b/gcc/cfgloop.c index e6174bd2191b..2087b9061a65 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:");