[Bug debug/115945] DW_LNE_set_discriminator emitted right before Special Opcodes

blarsen at redhat dot com gcc-bugzilla@gcc.gnu.org
Mon Jul 15 20:26:01 GMT 2024


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

--- Comment #4 from Guinevere Larsen <blarsen at redhat dot com> ---
Sorry, I should have been more clear. This happens for the last entry of line
11, after returning from `p.get()->call()`.

> Is this a bug in binutils due to the .loc output or should the .loc output be in a different order?

I guess the first, but I'm not sure. The important thing is to not use a
special opcode, but instead to use a regular opcode for advancing the line, one
for advancing PC (if required), and then one for copy. Changing the order will
make the Discriminator change apply to the following line, so that's definitely
incorrect


More information about the Gcc-bugs mailing list