gcov.c (arcdata): Use gcov_type to fix branch percentage for large hit count.
authorJanis Johnson <janis@us.ibm.com>
Wed, 11 Jul 2001 17:42:47 +0000 (17:42 +0000)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 11 Jul 2001 17:42:47 +0000 (10:42 -0700)
        * gcov.c (arcdata): Use gcov_type to fix branch percentage
        for large hit count.

From-SVN: r43944

gcc/ChangeLog
gcc/gcov.c

index f46d051a334bc6ea823609758585f224f02b4c2e..86549cd01f994de7fa2cd0460a6f726c9cb0e8d5 100644 (file)
@@ -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.
 
index 91cbbd64109f74442a8a1379cd9c3b1de8a19c94..fa1e9d9937a294c549783fc9e8b11a2b9f82caf0 100644 (file)
@@ -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;
 };