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]

Re: [patch] Remove unused argument in dump_bb


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


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