This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/26763] [4.1 Regression] wrong final value of induction variable calculated
- From: "rakdver at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Mar 2006 12:08:25 -0000
- Subject: [Bug tree-optimization/26763] [4.1 Regression] wrong final value of induction variable calculated
- References: <bug-26763-5724@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from rakdver at gcc dot gnu dot org 2006-03-28 12:08 -------
With this testcase, problem reproduces both in 4.1 and in mainline:
int try (int *a)
{
return a + -1 > a;
}
int main(void)
{
int bla[100];
if (try (bla + 50))
abort ();
return 0;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763