[Bug tree-optimization/83142] New: Missed tail-call opportunity
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Nov 24 12:47:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83142
Bug ID: 83142
Summary: Missed tail-call opportunity
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: rguenth at gcc dot gnu.org
Target Milestone: ---
The following is not tail-called even though memmove returns dest (and the
compiler knows that):
struct A { int i; int j; int k; };
void *bar (struct A *dest, struct A *src)
{
__builtin_memmove (dest, src, sizeof (struct A));
return dest;
}
More information about the Gcc-bugs
mailing list