From 51f5c118c56940a3fdd89e301dc0d32f80bf32f6 Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Wed, 13 Nov 2013 21:48:59 +0000 Subject: [PATCH] re PR ipa/58862 (LTO profiledbootstrap failure: lto1: ICE in edge_badness, at ipa-inline.c:1008) 2013-11-13 Teresa Johnson PR ipa/58862 * ipa-inline.c (edge_badness): Fix overflow. From-SVN: r204755 --- gcc/ChangeLog | 5 +++++ gcc/ipa-inline.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c566a85..bf8306d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-11-13 Teresa Johnson + + PR ipa/58862 + * ipa-inline.c (edge_badness): Fix overflow. + 2013-11-13 Vladimir Makarov PR rtl-optimization/59036 diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index f4cb72a..85f8e5d 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); -- 2.7.4