https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102577

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Yes what GCC and clang are doing is correct.  

Note GCC does do an optimization at -O3 where it splits the function bar into
two parts as it is doing recusive inlining.
I have not looked into why it is not done at -O2.

Reply via email to