[Bug tree-optimization/15791] New: fold misses that two ADDR_EXPR of an arrary obvious not equal
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Jun 3 00:44:00 GMT 2004
Noticed this when looking into PR 15779
int b[2];
int f()
{
return &b[0] == &b[1]; //should be zero
}
It does dect if b[1] was say c[0].
--
Summary: fold misses that two ADDR_EXPR of an arrary obvious not
equal
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Keywords: missed-optimization, TREE
Severity: enhancement
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15791
More information about the Gcc-bugs
mailing list