On Mon, Jan 25, 2021 at 1:19 PM H.J. Lu wrote: > > After > > commit 705989f19adf20dd70c50237ec61cd708f2b0939 > Author: H.J. Lu > Date: Mon Jan 18 06:25:05 2021 -0800 > > as: Automatically enable DWARF5 support > > --gdwarf-5 is no longer needed to accept DWARF5 info generated by GCC. > > Since assembler generated debug information is incompatible with > relaxation, don't generate debug information for assembly codes with > --gdwarf-5 which is passed down by GCC. > > OK for master and 2.36 branch? > > H.J. > --- > PR gas/27243 > * config/tc-nios2.c (md_begin): Set debug_type to DEBUG_UNSPECIFIED > for --gdwarf-5. > * testsuite/gas/nios2/relax.d: New file. > * testsuite/gas/nios2/relax.s: Likewise. GCC 11 passes --gdwarf-5 to assembler to enable DWARF5 debug info. Don't disable relaxation when --gdwarf-N is specified. The assembler generated debug information will treat the sequence of the relaxed instructions as a single instruction. OK for master and 2.36 branch? -- H.J.