This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17742] [4.0 Regression] C Optimization error with -O1 on i686
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Nov 2004 23:20:38 -0000
- Subject: [Bug tree-optimization/17742] [4.0 Regression] C Optimization error with -O1 on i686
- References: <20040929223724.17742.m.calderbank@iname.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-11-08 23:20 -------
Here's a reduced testcase. It goes into an infinite loop when compiled
with optimization (-O, -O2, -O3, -Os).
=====================
int i=0;
int main()
{
int j=0;
while (++i<3)
j = 1-j;
return j;
}
=====================
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Severity|normal |critical
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |monitored
Last reconfirmed|0000-00-00 00:00:00 |2004-11-08 23:20:37
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17742