This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/15791] New: fold misses that two ADDR_EXPR of an arrary obvious not equal
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jun 2004 00:44:01 -0000
- Subject: [Bug tree-optimization/15791] New: fold misses that two ADDR_EXPR of an arrary obvious not equal
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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