aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-nios2.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-01-26 08:18:39 -0800
committerH.J. Lu <hjl.tools@gmail.com>2021-01-26 08:18:52 -0800
commit1f583bc2fcb1b5c4125faf8b8e815255b2b21b62 (patch)
tree3edf29303405b2e9a25fc8766a08a2b68733705f /gas/config/tc-nios2.c
parent4ef367bffd73d50002339deba40983530ccb9d15 (diff)
downloadgdb-1f583bc2fcb1b5c4125faf8b8e815255b2b21b62.zip
gdb-1f583bc2fcb1b5c4125faf8b8e815255b2b21b62.tar.gz
gdb-1f583bc2fcb1b5c4125faf8b8e815255b2b21b62.tar.bz2
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.
Diffstat (limited to 'gas/config/tc-nios2.c')
-rw-r--r--gas/config/tc-nios2.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gas/config/tc-nios2.c b/gas/config/tc-nios2.c
index eea6687..be4536c 100644
--- a/gas/config/tc-nios2.c
+++ b/gas/config/tc-nios2.c
@@ -3643,10 +3643,6 @@ md_begin (void)
nios2_as_options.noat = FALSE;
nios2_as_options.nobreak = FALSE;
- /* Debug information is incompatible with relaxation. */
- if (debug_type != DEBUG_UNSPECIFIED)
- nios2_as_options.relax = relax_none;
-
/* Initialize the alignment data. */
nios2_current_align_seg = now_seg;
nios2_last_label = NULL;