diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-28 20:39:02 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-28 20:39:02 +0000 |
commit | 0dbe40e076463c44e7d824f2eb3a2c63c9e32ab8 (patch) | |
tree | 7f267a3c7b4ae53398998eb1725b84740713e58c /contrib/analyze_brprob | |
parent | b6f2ca6e6583166a0a6890a7e3c3410a2714e904 (diff) | |
download | gcc-0dbe40e076463c44e7d824f2eb3a2c63c9e32ab8.tar.gz |
* analyze_brprob: Avoid more overflows.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44438 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib/analyze_brprob')
-rwxr-xr-x | contrib/analyze_brprob | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/contrib/analyze_brprob b/contrib/analyze_brprob index 3c7e8e5712d..5166e8492b7 100755 --- a/contrib/analyze_brprob +++ b/contrib/analyze_brprob @@ -112,13 +112,11 @@ BEGIN {nnames = 0} if (int(pred) < 50.0) { - hit = count - hit; + hit = count"-"hit; } counts[name]=counts[name] "+" count hits[name]=hits[name] "+" hit - if (float (hit) < (float (count) / 2)) - hit = "("count" - "hit")"; - phits[name]=phits[name] "+" hit + phits[name]=phits[name] "+(("hit")<"count"/2)*("count"-("hit"))+(("hit")>="count"/2)*("hit")" #BC crashes on long strings. Irritating. if (length(counts[name]) > 2000) |