This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Remove unused argument in dump_bb
- To: Jan van Male <jan dot vanmale at fenk dot wau dot nl>
- Subject: Re: [patch] Remove unused argument in dump_bb
- From: Diego Novillo <dnovillo at redhat dot com>
- Date: Fri, 29 Jun 2001 00:46:20 -0400
- Cc: gcc-patches at gcc dot gnu dot org
- Organization: Red Hat Canada
- References: <01062822305505.25793@shaolin>
On Thu, 28 Jun 2001, Jan van Male wrote:
> http://gcc.gnu.org/ml/gcc-patches/2001-06/msg01528.html
>
> Note that a similar situation is present in libgcc2.c.
>
Thanks. I had missed that one. I applied the second half of
your patch and bootstrapped on i686.
Diego.
2001-06-28 Jan van Male <jan.vanmale@fenk.wau.nl>
* predict.c (dump_prediction): Eliminate fprintf warning.
Index: predict.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/predict.c,v
retrieving revision 1.25
diff -d -p -d -c -p -r1.25 predict.c
*** predict.c 2001/06/22 23:19:21 1.25
--- predict.c 2001/06/29 04:28:47
*************** dump_prediction (predictor, probability,
*** 188,203 ****
if (bb->count)
{
! fprintf (rtl_dump_file, " exec ",
! bb->count, e->count, e->count * 100.0 / bb->count);
fprintf (rtl_dump_file, HOST_WIDEST_INT_PRINT_DEC,
(HOST_WIDEST_INT) bb->count);
! fprintf (rtl_dump_file, " hit ",
! e->count, e->count * 100.0 / bb->count);
fprintf (rtl_dump_file, HOST_WIDEST_INT_PRINT_DEC,
(HOST_WIDEST_INT) e->count);
fprintf (rtl_dump_file, " (%.1f%%)",
! e->count, e->count * 100.0 / bb->count);
}
fprintf (rtl_dump_file, "\n");
}
--- 188,201 ----
if (bb->count)
{
! fprintf (rtl_dump_file, " exec ");
fprintf (rtl_dump_file, HOST_WIDEST_INT_PRINT_DEC,
(HOST_WIDEST_INT) bb->count);
! fprintf (rtl_dump_file, " hit ");
fprintf (rtl_dump_file, HOST_WIDEST_INT_PRINT_DEC,
(HOST_WIDEST_INT) e->count);
fprintf (rtl_dump_file, " (%.1f%%)",
! e->count * 100.0 / bb->count);
}
fprintf (rtl_dump_file, "\n");
}