This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/13760] New: [tree-ssa] component refs to the same aggregate should not alias


struct s
{
  int s;

  char p;
  int arr[10];
};

int foo0 (struct s * f)
{
  f->s = 1;
  f->s = 2;
}

the .optimized dump when compiling with -O2 is: 

foo0 (f)
{
<bb 0>:
  f->s = 1; /* This should be eliminated*/
  f->s = 2;
  return;

}

-- 
           Summary: [tree-ssa] component refs to the same aggregate should
                    not alias
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dann at godzilla dot ics dot uci dot edu
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13760


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]