This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Pessimization in doloop
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: Bernd Schmidt <bernds_cb1 at t-online dot de>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 16 Sep 2006 00:20:52 +0200
- Subject: Re: Pessimization in doloop
- References: <450A8CB1.1080206@t-online.de>
this one broke bootstrap on ppc.
cc1: warnings being treated as errors
/Volumes/development/gcc/head/gcc/gcc/loop-doloop.c: In function
'doloop_optimize':
/Volumes/development/gcc/head/gcc/gcc/loop-doloop.c:530: warning:
comparison between signed and unsigned
/Volumes/development/gcc/head/gcc/gcc/loop-doloop.c:535: warning: too
many arguments for format
make[3]: *** [loop-doloop.o] Error 1
is the attached fix ok ?
Thanks,
Andreas
Index: gcc/loop-doloop.c
===================================================================
--- gcc/loop-doloop.c (revision 116981)
+++ gcc/loop-doloop.c (working copy)
@@ -484,7 +484,8 @@
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 @@
{
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;
}