This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
analyze_brprob fix
- To: gcc at gcc dot gnu dot org, patches at x86-64 dot org
- Subject: analyze_brprob fix
- From: Jan Hubicka <jh at suse dot cz>
- Date: Fri, 27 Jul 2001 17:56:53 +0200
Hi
I am about to commot following.
Thu Jul 26 16:24:29 CEST 2001 Jan Hubicka <jh@suse.cz>
* analyze_brprob: Avoid overflows.
*** ../contrib/analyze_brprob Thu Jul 26 02:44:34 2001
--- ../contrib/analyze_brprob.p Thu Jul 26 14:04:44 2001
*************** BEGIN {nnames = 0}
*** 116,132 ****
}
counts[name]=counts[name] "+" count
hits[name]=hits[name] "+" hit
! if (int (hit) < (int (count) / 2))
! hit = count - hit;
phits[name]=phits[name] "+" hit
#BC crashes on long strings. Irritating.
! if (length(counts[name]) > 4000)
! {
! counts[name] = longeval(counts[name])
! hits[name] = longeval(hits[name])
! phits[name] = longeval(phits[name])
! }
}
END {
# Heuristics called combined predicts just everything.
--- 116,132 ----
}
counts[name]=counts[name] "+" count
hits[name]=hits[name] "+" hit
! if (float (hit) < (float (count) / 2))
! hit = "("count" - "hit")";
phits[name]=phits[name] "+" hit
#BC crashes on long strings. Irritating.
! if (length(counts[name]) > 2000)
! counts[name] = longeval(counts[name])
! if (length(hits[name]) > 2000)
! hits[name] = longeval(hits[name])
! if (length(phits[name]) > 2000)
! phits[name] = longeval(phits[name])
}
END {
# Heuristics called combined predicts just everything.