]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas: update lex_type[] also for .mri directives
authorJan Beulich <jbeulich@suse.com>
Fri, 23 Aug 2024 07:23:34 +0000 (09:23 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 23 Aug 2024 07:23:34 +0000 (09:23 +0200)
Doing this just from read_begin(), i.e. merely based on command line
options, can't be sufficient (assuming it's really relevant).

gas/read.c

index 3734b2b0ca80995ce930d8b1dca33428d1049441..71915eebd19562374f5ee8e8a3af26080f08dda4 100644 (file)
@@ -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