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/17560] [4.0 Regression] Segmentation fault compiling prdtoa.c with -Os


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-09-20 02:00 -------
Here's a reduced testcase:

================================
void foo()
{
    int i, j;

    if (i)
    {
        i++;
        goto L;
    }
    for (; i-1; )
    {
      L:
        for (j=0; j<i; j++) ;
    }
}
================================

Just compile with "gcc -Os" to see the crash.
We seem to run into an infinite loop. The compiler runs out of memory
rather quickly.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |monitored
   Last reconfirmed|0000-00-00 00:00:00         |2004-09-20 02:00:53
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17560


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