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/14135] New: No sibcalling for some obvious places (happens in java's front-end)


The function, f, should just have a sibcalling to t and should be the same as function, g.
This is derived from the java front-end (java_tree_inlining_walk_subtrees, case BLOCK).

int t(int);
int f(int i)
{
  int result;
  result = t(i);
  if (result)
    return result;
  return 0;
}
int g(int i)
{
  return t(i);
}

-- 
           Summary: No sibcalling for some obvious places (happens in java's
                    front-end)
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: pessimizes-code
          Severity: normal
          Priority: P2
         Component: 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=14135


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