From 4b9664e2764caf8afa4af0538392b3e4e0f12a3e Mon Sep 17 00:00:00 2001 From: Janis Johnson Date: Wed, 11 Jul 2001 17:42:47 +0000 Subject: [PATCH] gcov.c (arcdata): Use gcov_type to fix branch percentage for large hit count. * gcov.c (arcdata): Use gcov_type to fix branch percentage for large hit count. From-SVN: r43944 --- gcc/ChangeLog | 3 +++ gcc/gcov.c | 4 ++-- 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 + * 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; }; -- 2.30.2