This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/17742] [4.0 Regression] C Optimization error with -O1 on i686


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]