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/13796] New: [tree-ssa] consecutive stores to globals not removed


int glob1, glob2;

int foo1 (void)
{
  glob1 = 0;
  glob2 = 1;
  glob1 = 2;
  glob2 = 3;
  return glob1 + glob2;
}

There should be 1 store to glob1 and glob2


the .optimized dump:

foo1 ()
{
<bb 0>:
  glob1 = 0;
  glob2 = 1;
  glob1 = 2;
  glob2 = 3;
  return 5;

}

-- 
           Summary: [tree-ssa] consecutive stores to globals not removed
           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=13796


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