https://sourceware.org/bugzilla/show_bug.cgi?id=27195

--- Comment #4 from Nick Clifton <nickc at redhat dot com> ---
(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}}

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to