From 9cab63d0c603dcfa825f9f59e261de6e1263a2a0 Mon Sep 17 00:00:00 2001 From: andreast Date: Fri, 15 Sep 2006 22:47:26 +0000 Subject: 2006-09-16 Andreas Tobler * loop-doloop.c (doloop_optimize): Change type of max_cost to int. Add forgotten parameter to the fprintf call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116982 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/loop-doloop.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gcc/loop-doloop.c') diff --git a/gcc/loop-doloop.c b/gcc/loop-doloop.c index f2bb9baf1d7..a1ec4b0f155 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; } -- cgit v1.2.1