This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/17682] New: ICE in find_function_data
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Sep 2004 20:12:01 -0000
- Subject: [Bug middle-end/17682] New: ICE in find_function_data
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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