[Bug middle-end/17682] New: ICE in find_function_data

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Sep 26 20:12:00 GMT 2004


unsigned int n = 4;
extern unsigned char a[];

static inline unsigned int
foo (unsigned int x)
{
  int i;
  unsigned char *p;
  p = (unsigned char *) &x;

  for (i = 0; i < 4; i++, p++)
    *p = a[*p];
  return x;
}

void
bar (unsigned char x[][n])
{
  int i;
  for (i = 0; i < 4; i++)
    foo (*x[4 * i]);
}

ICEs at -O2 and -O3 on x86_64-redhat-linux and i386-redhat-linux.
Works with GCC 3.3.x and on the trunk.

-- 
           Summary: ICE in find_function_data
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: x86_64-redhat-linux


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



More information about the Gcc-bugs mailing list