This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]