This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/46675] [4.6 Regression] profiledbootstrap failed
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 28 Nov 2010 16:10:23 +0000
- Subject: [Bug tree-optimization/46675] [4.6 Regression] profiledbootstrap failed
- Auto-submitted: auto-generated
- References: <bug-46675-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46675
--- Comment #16 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-28 16:10:08 UTC ---
--
void
foo (int n)
{
int npairs, i;
npairs = n - (-__INT_MAX__ - 1);
if (npairs > 0)
for (i = 0; i < npairs; i++)
j++;
}
--
is miscompiled. But
--
void
foo (int n)
{
int npairs, i;
npairs = n - -2147483648;
if (npairs > 0)
for (i = 0; i < npairs; i++)
j++;
}
--
isn't.