diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2016-05-13 16:51:27 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2016-05-13 09:51:27 -0700 |
commit | d8d68c5bd56c661bc13206f44c193a3360d8f042 (patch) | |
tree | 1e6ea2f8ac21636dec1d5bc6deec02d3b4eab8eb /gcc | |
parent | 72b1108c3e698b2699331ce18c46ac03b050191f (diff) | |
download | gcc-d8d68c5bd56c661bc13206f44c193a3360d8f042.zip gcc-d8d68c5bd56c661bc13206f44c193a3360d8f042.tar.gz gcc-d8d68c5bd56c661bc13206f44c193a3360d8f042.tar.bz2 |
Cast to unsigned HOST_WIDE_INT in printf format
* tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
printf format.
From-SVN: r236214
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b4110a7..17c0ea4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-05-13 H.J. Lu <hongjiu.lu@intel.com> + + * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to + unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in + printf format. + 2016-05-13 Nathan Sidwell <nathan@acm.org> * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New. diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index 2b2115f..e8953a0 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -7048,8 +7048,8 @@ create_new_ivs (struct ivopts_data *data, struct iv_ca *set) LOCATION_LINE (data->loop_loc)); fprintf (dump_file, ", " HOST_WIDE_INT_PRINT_DEC " avg niters", avg_loop_niter (data->current_loop)); - fprintf (dump_file, ", %" PRIu64 " expressions", - set->used_inv_exprs->elements ()); + fprintf (dump_file, ", " HOST_WIDE_INT_PRINT_UNSIGNED " expressions", + (unsigned HOST_WIDE_INT) set->used_inv_exprs->elements ()); fprintf (dump_file, ", %lu IVs:\n", bitmap_count_bits (set->cands)); EXECUTE_IF_SET_IN_BITMAP (set->cands, 0, i, bi) { |