------- Comment #3 from rguenth at gcc dot gnu dot org 2008-05-07 20:04 -------
Reduced testcase, fails at -O:
struct eth_test_pkt {
unsigned short len;
unsigned short ctr;
unsigned char packet[];
} __attribute__ ((packed));
struct eth_test_pkt pkt_unaligned = { .packet = { 0xFC } };
int cmd_unaligned(const void *p)
{
return memcmp(p, pkt_unaligned.packet, 1);
}
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
GCC build triplet|x86_64-unknown-linux-gnu |
GCC host triplet|x86_64-unknown-linux-gnu |
GCC target triplet|powerpc-eabispe |
Keywords| |ice-on-valid-code
Known to fail| |4.3.0
Known to work| |4.2.3 4.4.0
Last reconfirmed|0000-00-00 00:00:00 |2008-05-07 20:04:30
date| |
Summary|internal compiler error: in |[4.3 Regression] internal
|get_constraint_for_component|compiler error: in
|_ref, at tree-ssa- |get_constraint_for_component
|structalias.c:2727 |_ref, at tree-ssa-
| |structalias.c:2727
Target Milestone|--- |4.3.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36154