]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR ipa/58862 (LTO profiledbootstrap failure: lto1: ICE in edge_badness, at ipa...
authorTeresa Johnson <tejohnson@google.com>
Wed, 13 Nov 2013 21:48:59 +0000 (21:48 +0000)
committerTeresa Johnson <tejohnson@gcc.gnu.org>
Wed, 13 Nov 2013 21:48:59 +0000 (21:48 +0000)
2013-11-13  Teresa Johnson  <tejohnson@google.com>

PR ipa/58862
* ipa-inline.c (edge_badness): Fix overflow.

From-SVN: r204755

gcc/ChangeLog
gcc/ipa-inline.c

index c566a85c18e9bd913d9c99446921def250a90cf5..bf8306dd58a372a1b0bf50e3a1c3f542fa227d30 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        PR rtl-optimization/59036
index f4cb72a9c2b0d0755425f5c620b3c9f2f968b2b4..85f8e5df59ff8602c04cf538a71a110fc71d5574 100644 (file)
@@ -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);