This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/56580] Internal compiler error when trying to compile a sequence of NOPs inside a loop
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 11 Mar 2013 10:22:17 +0000
- Subject: [Bug tree-optimization/56580] Internal compiler error when trying to compile a sequence of NOPs inside a loop
- Auto-submitted: auto-generated
- References: <bug-56580-4@http.gcc.gnu.org/bugzilla/>
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;