[Bug c++/102577] Function frame size in relation to variables in conditional subscopes
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Oct 3 18:23:42 GMT 2021
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.
More information about the Gcc-bugs
mailing list