https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108600
--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> --- Created attachment 54371 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54371&action=edit tentative patch Tentative patch. For hello.c, for the -gas-loc-support case it gives us: ... $ gcc -g ~/hello.c -S -o- ... main: .LFB0: .file 1 "/home/vries/hello.c" .loc 1 5 1 .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 .loc 1 6 3 prologue_end movl $.LC0, %edi ... And for the -gno-as-loc-support case: ... $ gcc -g ~/hello.c -c -gno-as-loc-support $ llvm-dwarfdump --debug-line hello.o ... Address Line Column File ISA Discriminator Flags ------------------ ------ ------ ------ --- ------------- ------------- 0x0000000000000000 5 0 1 0 0 is_stmt 0x0000000000000004 6 1 1 0 0 is_stmt prologue_end 0x000000000000000e 8 3 1 0 0 is_stmt 0x0000000000000013 9 10 1 0 0 is_stmt 0x0000000000000015 9 1 1 0 0 is_stmt end_sequence ...