------- Comment #5 from reichelt at gcc dot gnu dot org  2008-12-29 20:20 
-------
Confirmed. Shorter testcase (crashes with "-O -ftree-loop-distribution"):

=====================================
int foo();

void bar()
{
  int i, j, x[2], y[2], z[2];

  for (i = 0; i < 2; ++i)
    if (foo())
    {
      for (j = 0; j < 2; ++j)
        if (z[j])
          z[j] = 0;

      for (j = 0; j < 2; ++j)
      {
        x[j] = 0;
        y[j] = 0;
      }
    }

  if (x[0] && y[0])
    foo();
}
=====================================


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
          Component|middle-end                  |tree-optimization
     Ever Confirmed|0                           |1
           Keywords|                            |monitored
   Last reconfirmed|0000-00-00 00:00:00         |2008-12-29 20:20:47
               date|                            |


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

Reply via email to