aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2024-08-23 09:23:34 +0200
committerJan Beulich <jbeulich@suse.com>2024-08-23 09:23:34 +0200
commitb67ed4587727b940e9faafa8cdb1db1c32e34846 (patch)
treedd059635f64d983c8326684fff333e8307e7d174
parentb994624fa57b3314098656e110781d4d0f77b4e4 (diff)
downloadgdb-b67ed4587727b940e9faafa8cdb1db1c32e34846.zip
gdb-b67ed4587727b940e9faafa8cdb1db1c32e34846.tar.gz
gdb-b67ed4587727b940e9faafa8cdb1db1c32e34846.tar.bz2
gas: update lex_type[] also for .mri directives
Doing this just from read_begin(), i.e. merely based on command line options, can't be sufficient (assuming it's really relevant).
-rw-r--r--gas/read.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/read.c b/gas/read.c
index 3734b2b..71915ee 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -2850,6 +2850,7 @@ s_mri (int ignore ATTRIBUTE_UNUSED)
#ifdef TC_M68K
flag_m68k_mri = 1;
#endif
+ lex_type['?'] = LEX_BEGIN_NAME | LEX_NAME;
}
else
{
@@ -2857,6 +2858,7 @@ s_mri (int ignore ATTRIBUTE_UNUSED)
#ifdef TC_M68K
flag_m68k_mri = 0;
#endif
+ lex_type['?'] = LEX_QM;
}
/* Operator precedence changes in m68k MRI mode, so we need to