[Bug debug/78685] -Og generates too many "<optimized out>"s (it should generate artificial uses for variables at end of scope to avoid this)
arsen at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 11 18:51:38 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78685
--- Comment #39 from Arsen Arsenović <arsen at gcc dot gnu.org> ---
(In reply to Lukas Grätz from comment #38)
> I still think the best way to resolve the present issue is to deprecate the -Og option.
such a resolution means that people will frequently end up using -O0 for
debugging, and O0 is far more expensive than it needs to be for viable
debugging.
there's plenty of value in a well-implemented -Og
More information about the Gcc-bugs
mailing list