diff options
author | Teresa Johnson <tejohnson@google.com> | 2013-11-13 21:48:59 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@gcc.gnu.org> | 2013-11-13 21:48:59 +0000 |
commit | 51f5c118c56940a3fdd89e301dc0d32f80bf32f6 (patch) | |
tree | 6bf7a79b29a843b6e3f6c1b1996464f8e9205ab5 /gcc/ipa-inline.c | |
parent | bf08fb1644d49b10c81c0598f0581de9e974b2cc (diff) | |
download | gcc-51f5c118c56940a3fdd89e301dc0d32f80bf32f6.tar.gz |
re PR ipa/58862 (LTO profiledbootstrap failure: lto1: ICE in edge_badness, at ipa-inline.c:1008)
2013-11-13 Teresa Johnson <tejohnson@google.com>
PR ipa/58862
* ipa-inline.c (edge_badness): Fix overflow.
From-SVN: r204755
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r-- | gcc/ipa-inline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index f4cb72a9c2b..85f8e5df59f 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -909,7 +909,7 @@ edge_badness (struct cgraph_edge *edge, bool dump) /* Capping edge->count to max_count. edge->count can be larger than max_count if an inline adds new edges which increase max_count after max_count is computed. */ - int edge_count = edge->count > max_count ? max_count : edge->count; + gcov_type edge_count = edge->count > max_count ? max_count : edge->count; sreal_init (&relbenefit_real, relbenefit, 0); sreal_init (&growth_real, growth, 0); |