aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop-doloop.c
diff options
context:
space:
mode:
authorAndreas Tobler <a.tobler@schweiz.org>2006-09-15 22:47:26 +0000
committerAndreas Tobler <andreast@gcc.gnu.org>2006-09-16 00:47:26 +0200
commit7607bddac94682324231ca76f26d5a51dc2fdc78 (patch)
treef9596b8b4f5c80000a2fbcf5b7b5d2f3234dd366 /gcc/loop-doloop.c
parent41d9adc7fac0487106d15207d2707fa5b53c5bbd (diff)
downloadgcc-7607bddac94682324231ca76f26d5a51dc2fdc78.zip
gcc-7607bddac94682324231ca76f26d5a51dc2fdc78.tar.gz
gcc-7607bddac94682324231ca76f26d5a51dc2fdc78.tar.bz2
loop-doloop.c (doloop_optimize): Change type of max_cost to int.
2006-09-16 Andreas Tobler <a.tobler@schweiz.org> * loop-doloop.c (doloop_optimize): Change type of max_cost to int. Add forgotten parameter to the fprintf call. From-SVN: r116982
Diffstat (limited to 'gcc/loop-doloop.c')
-rw-r--r--gcc/loop-doloop.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/loop-doloop.c b/gcc/loop-doloop.c
index f2bb9ba..a1ec4b0 100644
--- a/gcc/loop-doloop.c
+++ b/gcc/loop-doloop.c
@@ -1,5 +1,5 @@
/* Perform doloop optimizations
- Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
Based on code by Michael P. Hayes (m.hayes@elec.canterbury.ac.nz)
This file is part of GCC.
@@ -484,7 +484,8 @@ doloop_optimize (struct loop *loop)
rtx iterations_max;
rtx start_label;
rtx condition;
- unsigned level, est_niter, max_cost;
+ unsigned level, est_niter;
+ int max_cost;
struct niter_desc *desc;
unsigned word_mode_size;
unsigned HOST_WIDE_INT word_mode_max;
@@ -531,7 +532,7 @@ doloop_optimize (struct loop *loop)
{
if (dump_file)
fprintf (dump_file,
- "Doloop: number of iterations too costly to compute.\n",
+ "Doloop: number of iterations (%u) too costly to compute.\n",
est_niter);
return false;
}