[Bug tree-optimization/17217] New: not removing removal of nested structs

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Aug 27 18:56:00 GMT 2004


gcc -O3 and you will see that the load and store to the struct is still there for j.
int h(int *a);
int f(int i, int j)
{
  int t = i;
  int t1 = j;
  int g()
  {
     return h(&t) + t1;
  }
  return g() + t1;
}

I found this when looking at facerec which uses nested functions.

-- 
           Summary: not removing removal of nested structs
           Product: gcc
           Version: 3.5.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=17217



More information about the Gcc-bugs mailing list