This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/21332] [4.1 Regression] -ftree-vrp makes a loop doesn't execute a body
- From: "belyshev at depni dot sinp dot msu dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 May 2005 12:06:40 -0000
- Subject: [Bug tree-optimization/21332] [4.1 Regression] -ftree-vrp makes a loop doesn't execute a body
- References: <20050502102427.21332.akr@m17n.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From belyshev at depni dot sinp dot msu dot ru 2005-05-02 12:06 -------
// this testcase fails also on amd64:
extern void abort (void);
int f ()
{
return -1;
}
int main ()
{
int b, c, i;
b = 0;
c = f ();
if (c <= 0)
{
c = -c;
for (i = 0; i < c; i++)
b = 1;
if (!b)
abort ();
}
return 0;
}
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21332