This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/22348] [4.0/4.1 Regression] Execution continues past end of for loop end condition with optimisation enabled
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jul 2005 17:39:27 -0000
- Subject: [Bug tree-optimization/22348] [4.0/4.1 Regression] Execution continues past end of for loop end condition with optimisation enabled
- References: <20050707165800.22348.matt+gccbugs@ucc.asn.au>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-07 17:39 -------
Reduced testcase:
void abort (void);
void f(int i)
{
if (i>4 + 3 * 16)
abort();
}
int main()
{
unsigned int buflen, i;
buflen = 4 + 3 * 16;
for (i = 4; i < buflen; i+= 3)
f(i);
return 0;
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-07-07 17:39:27
date| |
Summary|[4.0 Regression] Execution |[4.0/4.1 Regression]
|continues past end of for |Execution continues past end
|loop end condition with |of for loop end condition
|optimisation enabled |with optimisation enabled
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22348