nios2: Don't disable relaxation with --gdwarf-N
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 26 Jan 2021 16:18:39 +0000 (08:18 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 26 Jan 2021 16:18:52 +0000 (08:18 -0800)
commit1f583bc2fcb1b5c4125faf8b8e815255b2b21b62
tree3edf29303405b2e9a25fc8766a08a2b68733705f
parent4ef367bffd73d50002339deba40983530ccb9d15
nios2: Don't disable relaxation with --gdwarf-N

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.

PR gas/27243
* config/tc-nios2.c (md_begin): Don't disable relaxation with
--gdwarf-N.
* testsuite/gas/nios2/relax.d: New file.
* testsuite/gas/nios2/relax.s: Likewise.
gas/ChangeLog
gas/config/tc-nios2.c
gas/testsuite/gas/nios2/relax.d [new file with mode: 0644]
gas/testsuite/gas/nios2/relax.s [new file with mode: 0644]