The inclusion of this patch:

2005-06-07  Zdenek Dvorak  <[EMAIL PROTECTED]>

        * tree-ssa-address.c: New file.
        * Makefile.in (tree-ssa-address.o): Add.
        * expr.c (expand_expr_real_1): Do not handle REF_ORIGINAL on
        INDIRECT_REFs.  Handle TARGET_MEM_REFs.
        ...

causes an ICE when compiling the following code for the ARM/Thumb instruction set:

int
foo (char *s1, char *s2, int size)
{
  while (size > 0)
    {
      char c1 = *s1++, c2 = *s2++;
      if (c1 != c2)
        return c1 - c2;
      size--;
    }
  return 0;
}

$ ../configure --target=arm-elf-linux --enable-languages=c
$ ./cc1 -quiet test.c -mthumb -O2
../../bug.c: In function ‘foo’:
../../bug.c:3: internal compiler error: in create_mem_ref, at tree-ssa-address.c:585
Please submit a full bug report,

Nick.

Reply via email to