Commit 51f5c118 by Teresa Johnson Committed by Teresa Johnson

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
parent bf08fb16
2013-11-13 Teresa Johnson <tejohnson@google.com>
PR ipa/58862
* ipa-inline.c (edge_badness): Fix overflow.
2013-11-13 Vladimir Makarov <vmakarov@redhat.com> 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/59036 PR rtl-optimization/59036
...@@ -909,7 +909,7 @@ edge_badness (struct cgraph_edge *edge, bool dump) ...@@ -909,7 +909,7 @@ edge_badness (struct cgraph_edge *edge, bool dump)
/* Capping edge->count to max_count. edge->count can be larger than /* Capping edge->count to max_count. edge->count can be larger than
max_count if an inline adds new edges which increase max_count max_count if an inline adds new edges which increase max_count
after max_count is computed. */ 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 (&relbenefit_real, relbenefit, 0);
sreal_init (&growth_real, growth, 0); sreal_init (&growth_real, growth, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment