PATCH: PR gas/3826: Wrong register name used in x86 assembler error message

Jan Beulich jbeulich@novell.com
Fri Jan 5 07:31:00 GMT 2007


>>> "H. J. Lu" <hjl@lucon.org> 04.01.07 18:59 >>>
>I am checking this patch to fix PR gas/3826.

Could you at least give a day's time to look at your patches before you commit
them?

This

>@@ -1102,7 +1105,13 @@ set_intel_syntax (int syntax_flag)
>   else
>     allow_naked_reg = (ask_naked_reg < 0);
> 
>-  identifier_chars['%'] = intel_syntax && allow_naked_reg ? '%' : 0;
>+  if (intel_syntax && allow_naked_reg)
>+    {
>+      identifier_chars['%'] = '%';
>+      register_prefix = "";
>+    }
>+  else
>+    identifier_chars['%'] = 0;
>   identifier_chars['$'] = intel_syntax ? '$' : 0;
> }
 
seems wrong to me: You never restore register_prefix if subsequently .att_syntax
is being used. And even more, the setting of this variable should exclusively depend
on allow_naked_reg (i.e. be independent on AT&T or Intel mode).

Jan



More information about the Binutils mailing list