https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98656
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2021-01-13
Ever confirmed|0 |1
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #1)
> Created attachment 49959 [details]
> Tentative patch
>
> Using this tentative patch, I get back the .loc for line number 5:
> ...
> foo:
> .LFB0:
> .file 1 "small.c"
> .loc 1 4 1
> .cfi_startproc
> pushq %rbp
> .cfi_def_cfa_offset 16
> .cfi_offset 6, -16
> movq %rsp, %rbp
> .cfi_def_cfa_register 6
> movl %edi, -20(%rbp)
> movl %esi, -24(%rbp)
> .loc 1 5 3
> cmpl $4, -20(%rbp)
> ja .L13
> ...
I support the patch Tom.
Thanks for looking into it.