[Bug debug/105108] incomplete/incorrect DWARF information at -O1 and -Og after inlining a function returning a constant
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 31 09:20:28 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105108
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Yeah, there is nothing we can do in the debug info about this.
We really can't inline just for the purposes of debug stmts or something
similar.
Another similar case would be if l_144 is assigned b() but isn't actually used
at all, if b() is pure (explicitly or implicitly detected), the call will be
DCEd and there is no way how to express it in the debug info.
More information about the Gcc-bugs
mailing list