Hi,

With this simple testcase:

int buffer[256*256];
int main(void)
{
    int *dest = buffer;
    int x, y;
    for(x = 0; x < 256; x++)
        for(y = 0; y < 256; y++)
            *dest++ = 0;
    return 0;
}

We get an ICE:

% gcc-4.4 -O1 -floop-block foo.c -o foo
foo.c: In function ‘main’:
foo.c:2: internal compiler error: in expand_scalar_variables_expr, at
graphite.c:4295
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.


Thanks.


-- 
           Summary: [4.4 Regression]  ICE with -floop-block
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: arthur dot loiret at gmail dot com
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu


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

Reply via email to