[Bug debug/94474] Incorrect DWARF range information for inlined function

bernd.edlinger at hotmail dot de gcc-bugzilla@gcc.gnu.org
Sun May 17 09:05:41 GMT 2020


--- Comment #13 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
Hi Andrew,

You are right about the instruction re-ordering, that is done in
a compiler pass, which simply re-orders RTL instruction lists.
But I think when the code motion happens, we just
have no easy access to the range markers.
And it may be the case that this is-stmt location
mentions a register value that is indeed the parameter
of the inline function, so it may be no instruction but only
a side note, to the debugger, that a certain value would
be already here available in a certain register.
Also that is only a vague guess, since although I did already
a number of gcc patches, I learn new things each time :-)


More information about the Gcc-bugs mailing list