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 tree-optimization/21093] New: missed tail call optimization when local address could escape


Missed tail call optimization when local address could escape but not on the condition:
void f(void);
void f1(int *);

void g(int i, int j)
{
  if (j)
    return f();
  return f1(&i);
}

This might be a reduced testcase from fold_binary to fold_build2 where we have this issue, but I have 
not looked through all of the conditionals to see if this is true.

-- 
           Summary: missed tail call optimization when local address could
                    escape
           Product: gcc
           Version: 4.1.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=21093


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