diff options
author | tejohnson <tejohnson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-13 21:48:59 +0000 |
---|---|---|
committer | tejohnson <tejohnson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-13 21:48:59 +0000 |
commit | 4a45bef0973cb646462beeda4133628304e9b77b (patch) | |
tree | 6bf7a79b29a843b6e3f6c1b1996464f8e9205ab5 /gcc/ipa-inline.c | |
parent | 4bb79f36f65507171b6da263c91e6590334bd342 (diff) | |
download | gcc-4a45bef0973cb646462beeda4133628304e9b77b.tar.gz |
2013-11-13 Teresa Johnson <tejohnson@google.com>
PR ipa/58862
* ipa-inline.c (edge_badness): Fix overflow.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204755 138bc75d-0d04-0410-961f-82ee72b054a4
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); |