https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97640
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement Depends on| |119493 Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org Status|NEW |ASSIGNED --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So there are a couple of things here. One is PR 119493 (which will improve -O2 code generation slightly, changing the tail call into a tail recusion). The second thing is early inlining needs to happen slightly more. I still have to look into that. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119493 [Bug 119493] [12/13/14/15/16 Regression] missing tail call to self with struct in some cases