https://sourceware.org/bugzilla/show_bug.cgi?id=27195
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Nick Clifton from comment #4) > (In reply to H.J. Lu from comment #2) > > I think it is very bad that > > > > $ as -o x.o x.s > > > > fails when x.s contains DWARF5 info generated by GCC 11. Assembler > > shouldn't > > require --gdwarf-5 to accept DWARF5 info. GCC 11 should emit an assembly > > directive to enable DWARF5 info in assembler. > > Wouldn't it just be easier to update gcc's spec file to add the --gdwarf-5 > directive ? Eg by changing this part of asm_debug: > > %{!gstabs*:%{g*:--gdwarf2}} > > into: > > %{!gstabs*:%{g*:--gdwarf-%*}%{!g:--gdwarf-5}} It is done in GCC. But it doesn't always work. If assembly codes have DWARF5 ".file 0" or ".loc 0" directives, assembler should turn on DWARF5 and accept them. -- You are receiving this mail because: You are on the CC list for the bug.