Commit 92e3cac8 by Jan Hubicka Committed by Jan Hubicka

* analyze_brprob: Avoid overflows.

From-SVN: r44430
parent d69d0316
Fri Jul 27 18:01:21 CEST 2001 Jan Hubicka <jh@suse.cz>
* analyze_brprob: Avoid overflows.
2001-07-27 Richard Henderson <rth@redhat.com> 2001-07-27 Richard Henderson <rth@redhat.com>
* gcc_update: Dump timestamp in LAST_UPDATED. * gcc_update: Dump timestamp in LAST_UPDATED.
......
...@@ -116,17 +116,17 @@ BEGIN {nnames = 0} ...@@ -116,17 +116,17 @@ BEGIN {nnames = 0}
} }
counts[name]=counts[name] "+" count counts[name]=counts[name] "+" count
hits[name]=hits[name] "+" hit hits[name]=hits[name] "+" hit
if (int (hit) < (int (count) / 2)) if (float (hit) < (float (count) / 2))
hit = count - hit; hit = "("count" - "hit")";
phits[name]=phits[name] "+" hit phits[name]=phits[name] "+" hit
#BC crashes on long strings. Irritating. #BC crashes on long strings. Irritating.
if (length(counts[name]) > 4000) if (length(counts[name]) > 2000)
{ counts[name] = longeval(counts[name])
counts[name] = longeval(counts[name]) if (length(hits[name]) > 2000)
hits[name] = longeval(hits[name]) hits[name] = longeval(hits[name])
phits[name] = longeval(phits[name]) if (length(phits[name]) > 2000)
} phits[name] = longeval(phits[name])
} }
END { END {
# Heuristics called combined predicts just everything. # Heuristics called combined predicts just everything.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment