This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix problems/warnings in combine.c, libgcc2.c and gcov.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: Re: Fix problems/warnings in combine.c, libgcc2.c and gcov.c
- From: Andreas Jaeger <aj at suse dot de>
- Date: Sat, 14 Jul 2001 11:13:51 +0200
- References: <u8zoa7c1sl.fsf@gromit.moeb>
I forgot to attach the patch for gcov.c, here it is.
============================================================
Index: gcc/gcov.c
--- gcc/gcov.c 2001/07/11 17:42:47 1.31
+++ gcc/gcov.c 2001/07/14 09:13:06
@@ -1,7 +1,7 @@
/* Gcov.c: prepend line execution counts and branch probabilities to a
source file.
Copyright (C) 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998,
- 1999, 2000 Free Software Foundation, Inc.
+ 1999, 2000, 2001 Free Software Foundation, Inc.
Contributed by James E. Wilson of Cygnus Support.
Mangled by Bob Manson of Cygnus Support.
@@ -1361,11 +1361,11 @@
{
if (output_branch_counts)
fnotice (gcov_file,
- "call %d returns = %d\n",
+ "call %d returns = " HOST_WIDEST_INT_PRINT_DEC "\n",
i, a_ptr->total - a_ptr->hits);
else
fnotice (gcov_file,
- "call %d returns = %d%%\n",
+ "call %d returns = " HOST_WIDEST_INT_PRINT_DEC "%%\n",
i, 100 - ((a_ptr->hits * 100) +
(a_ptr->total >> 1))/a_ptr->total);
}
@@ -1379,11 +1379,11 @@
{
if (output_branch_counts)
fnotice (gcov_file,
- "branch %d taken = %d\n",
+ "branch %d taken = " HOST_WIDEST_INT_PRINT_DEC "\n",
i, a_ptr->hits);
else
fnotice (gcov_file,
- "branch %d taken = %d%%\n", i,
+ "branch %d taken = " HOST_WIDEST_INT_PRINT_DEC "%%\n", i,
((a_ptr->hits * 100) +
(a_ptr->total >> 1))/
a_ptr->total);
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj