[PATCH] x86: slightly simplify i386_parse_name()
Jan Beulich
jbeulich@suse.com
Fri May 5 11:10:21 GMT 2023
With the switch to parse_real_register() (commit 4faaa10f3fab) "bad_reg"
cannot come back anymore. Drop the respective check.
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -13875,13 +13875,8 @@ i386_parse_name (char *name, expressionS
{
*nextcharP = *input_line_pointer;
*input_line_pointer = 0;
- if (r != &bad_reg)
- {
- e->X_op = O_register;
- e->X_add_number = r - i386_regtab;
- }
- else
- e->X_op = O_illegal;
+ e->X_op = O_register;
+ e->X_add_number = r - i386_regtab;
return 1;
}
input_line_pointer = end;
More information about the Binutils
mailing list