summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-11 17:42:47 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-11 17:42:47 +0000
commit3f83cb00db6157e4d382be3ed2ae90dfc466fada (patch)
treefc583eefb58f7e41be7cbfd1d5cae11a02d38ffc
parent6c070c7d5f3d7d3c964af58f6d26611bd25ee95a (diff)
downloadppe42-gcc-3f83cb00db6157e4d382be3ed2ae90dfc466fada.tar.gz
ppe42-gcc-3f83cb00db6157e4d382be3ed2ae90dfc466fada.zip
* gcov.c (arcdata): Use gcov_type to fix branch percentage
for large hit count. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43944 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/gcov.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f46d051a334..86549cd01f9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2001-07-11 Janis Johnson <janis@us.ibm.com>
+ * gcov.c (arcdata): Use gcov_type to fix branch percentage
+ for large hit count.
+
* profile.c (branch_prob): Fix .bbg info for computed gotos
and C++ EH code.
diff --git a/gcc/gcov.c b/gcc/gcov.c
index 91cbbd64109..fa1e9d9937a 100644
--- a/gcc/gcov.c
+++ b/gcc/gcov.c
@@ -140,8 +140,8 @@ struct bb_info {
struct arcdata
{
- int hits;
- int total;
+ gcov_type hits;
+ gcov_type total;
int call_insn;
struct arcdata *next;
};
OpenPOWER on IntegriCloud