This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Pessimization in doloop


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;
}



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]