https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81206
Bug ID: 81206 Summary: missed tail recursion 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: --- We do not handle the tail-recursion in gcc.dg/torture/pr81203.c because there's a stmt in the way (see PR81203). A proper fix is to re-do tail-recursion elimination isolating the individual paths to the return I think.