This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
tree-ssa-address ICE
- From: Nick Burrett <nick at sqrt dot co dot uk>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 08 Jun 2005 11:01:36 +0100
- Subject: tree-ssa-address ICE
The inclusion of this patch:
2005-06-07 Zdenek Dvorak <dvorakz@suse.cz>
* 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.