http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56580



Richard Biener <rguenth at gcc dot gnu.org> changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

             Status|UNCONFIRMED                 |NEW

   Last reconfirmed|                            |2013-03-11

                 CC|                            |andi-gcc at firstfloor dot

                   |                            |org, hubicka at gcc dot

                   |                            |gnu.org

          Component|c                           |tree-optimization

     Ever Confirmed|0                           |1



--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> 2013-03-11 
10:22:17 UTC ---

Andi has a patch for this IIRC.  But instead of



  /* Watch overflow that might result from insane profiles.  */

  if (time > MAX_TIME * INLINE_TIME_SCALE)

    time = MAX_TIME * INLINE_TIME_SCALE;

  gcc_assert (time >= 0);



we should "deal" with the overflow, not ICE on it.  Like by doing



  if (time < 0

      || time > MAX_TIME * INLINE_TIME_SCALE)

    time = MAX_TIME * INLINE_TIME_SCALE;

Reply via email to