public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/17598] New: an extra addition when comparing address of &a->b and &c->b.
@ 2004-09-22  3:52 pinskia at gcc dot gnu dot org
  2004-09-26 14:26 ` [Bug tree-optimization/17598] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-22  3:52 UTC (permalink / raw)
  To: gcc-bugs

Function g and g1 should produce the same code, this is not a regression, I noticed this when looking 
into PR 8361.
struct f
{
  int i;
  int j;
};
int g(struct f *x, struct f *y)
{
  return &x->j == &y->j;
}
int g1(struct f *x, struct f *y)
{
  return x == y;
}

-- 
           Summary: an extra addition when comparing address of &a->b and
                    &c->b.
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          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=17598


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-04-26 16:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-22  3:52 [Bug tree-optimization/17598] New: an extra addition when comparing address of &a->b and &c->b pinskia at gcc dot gnu dot org
2004-09-26 14:26 ` [Bug tree-optimization/17598] " pinskia at gcc dot gnu dot org
2005-04-25 13:42 ` rguenth at gcc dot gnu dot org
2005-04-26  9:13 ` rguenth at gcc dot gnu dot org
2005-04-26 16:36 ` cvs-commit at gcc dot gnu dot org
2005-04-26 16:37 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).