summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2001-07-28 22:39:02 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2001-07-28 20:39:02 +0000
commitffd1553440265622ceef4a5fa31d7fa706adb7ca (patch)
tree7f267a3c7b4ae53398998eb1725b84740713e58c /contrib
parent7b6a93997d632f0469548b40f0a7129cae21403f (diff)
downloadgcc-ffd1553440265622ceef4a5fa31d7fa706adb7ca.tar.gz
* analyze_brprob: Avoid more overflows.
From-SVN: r44438
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog4
-rwxr-xr-xcontrib/analyze_brprob6
2 files changed, 6 insertions, 4 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index d1777d585a0..72b85396260 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,7 @@
+Sat Jul 28 22:37:49 CEST 2001 Jan Hubicka <jh@suse.cz>
+
+ * analyze_brprob: Avoid more overflows.
+
2001-07-27 Richard Henderson <rth@redhat.com>
* test_summary: Copy LAST_UPDATED UTC time to head of summary.
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)