http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51065
Bug #: 51065
Summary: Forwarding functions can be optimized to aliases
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: tree-optimization
AssignedTo: [email protected]
ReportedBy: [email protected]
Given a couple of functions
void foo(int x, int y) { ... }
void bar(int x, int y) { foo(x, y}; }
we should take the opportunity, given target support and appropriate
binding of foo and bar, to optimize this to a same_body_alias rather
than merely a sibcall.