The following code snippet causes an ICE on mainline when compiled with
"-O -ftree-vectorize -funroll-loops":

=============================
void foo();

void bar()
{
    int i, j, k=0;

    for (i=0; i<2; ++i)
        if (j) k=2;

    if (k) foo();
}
=============================

bug.c: In function 'bar':
bug.c:4: internal compiler error: in do_jump, at dojump.c:274
Please submit a full bug report, [etc.]

Phil's regression hunter says:
: Search converges between 2004-10-01-014001-trunk (#570) and
2004-10-01-161002-trunk (#571).

-- 
           Summary: ICE in do_jump, at dojump.c:274
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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

Reply via email to