On Fri, Jun 24, 2016 at 06:22:54PM +0200, Martin Liška wrote: > 2016-06-21 Martin Liska <mli...@suse.cz> > > * cfgloop.c (flow_loop_dump): Dump average number of loop iterations. > * cfgloop.h: Change 'struct loop' to 'const struct loop' for a > few functions. > * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new > argument to true if the expected number of iterations is > loop-based.
This broke bootstrap on i686-linux, gcov_type is not unsigned long int on all hosts. Fixed thusly, bootstrapped/regtested on i686-linux, committed to trunk as obvious. 2016-06-24 Jakub Jelinek <ja...@redhat.com> * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using PRIu64 instead of lu. --- gcc/cfgloop.c.jj 2016-06-24 19:07:02.000000000 +0200 +++ gcc/cfgloop.c 2016-06-24 20:24:29.192190032 +0200 @@ -141,7 +141,8 @@ flow_loop_dump (const struct loop *loop, 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:"); Jakub