aboutsummaryrefslogtreecommitdiff
path: root/gcc/unroll.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-06-22 05:32:38 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-06-22 05:32:38 +0000
commite016950d0c095ffdb36c918c7965148e344ca617 (patch)
treecad4049526361147cf85cf7b5d756642a9cf9c67 /gcc/unroll.c
parent296433e1a9e3c644fec1f1805dd595555683d9a0 (diff)
downloadgcc-e016950d0c095ffdb36c918c7965148e344ca617.zip
gcc-e016950d0c095ffdb36c918c7965148e344ca617.tar.gz
gcc-e016950d0c095ffdb36c918c7965148e344ca617.tar.bz2
Warning fixes:
* reload1.c (reload_cse_regs): Cast first arg of `bzero' to char *. * sdbout.c: Include output.h and toplev.h. (PUT_SDB_INT_VAL): Use HOST_WIDE_INT_PRINT_DEV to print argument `a'. Cast `a' to HOST_WIDE_INT to force it to always be so. (PUT_SDB_SIZE): Likewise. * sdbout.h (sdbout_mark_begin_function): Add prototype. * stmt.c (check_for_full_enumeration_handling): Cast argument of `warning' to long and use %ld specifier. * toplev.c (main): Likewise for `fprintf'. * toplev.h (output_file_directive): Add prototype. * unroll.c (unroll_loop): Use HOST_WIDE_INT_PRINT_DEC specifier in call to `fprintf'. (precondition_loop_p): Likewise. * varasm.c Include sdbout.h. (assemble_static_space): Move sometimes-unused variable `rounded' into the scope in which it is used. From-SVN: r20651
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r--gcc/unroll.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c
index 8edebda..d390110 100644
--- a/gcc/unroll.c
+++ b/gcc/unroll.c
@@ -313,8 +313,11 @@ unroll_loop (loop_end, insn_count, loop_start, end_insert_before,
loop_n_iterations = 0;
if (loop_dump_stream && loop_n_iterations > 0)
- fprintf (loop_dump_stream,
- "Loop unrolling: %d iterations.\n", loop_n_iterations);
+ {
+ fputs ("Loop unrolling: ", loop_dump_stream);
+ fprintf (loop_dump_stream, HOST_WIDE_INT_PRINT_DEC, loop_n_iterations);
+ fputs (" iterations.\n", loop_dump_stream);
+ }
/* Find and save a pointer to the last nonnote insn in the loop. */
@@ -1312,9 +1315,13 @@ precondition_loop_p (initial_value, final_value, increment, loop_start,
*final_value = GEN_INT (loop_n_iterations);
if (loop_dump_stream)
- fprintf (loop_dump_stream,
- "Preconditioning: Success, number of iterations known, %d.\n",
- loop_n_iterations);
+ {
+ fputs ("Preconditioning: Success, number of iterations known, ",
+ loop_dump_stream);
+ fprintf (loop_dump_stream, HOST_WIDE_INT_PRINT_DEC,
+ loop_n_iterations);
+ fputs (".\n", loop_dump_stream);
+ }
return 1;
}