projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d50c498
)
x86: slightly simplify i386_parse_name()
author
Jan Beulich
<jbeulich@suse.com>
Fri, 12 May 2023 06:56:07 +0000
(08:56 +0200)
committer
Jan Beulich
<jbeulich@suse.com>
Fri, 12 May 2023 06:56:07 +0000
(08:56 +0200)
With the switch to parse_real_register() (commit
4faaa10f3fab
) "bad_reg"
cannot come back anymore. Drop the respective check.
gas/config/tc-i386.c
patch
|
blob
|
history
diff --git
a/gas/config/tc-i386.c
b/gas/config/tc-i386.c
index 8856ccc495cc979b473bc3de9a0cb3df6dc45f7c..c0bf4fc0c4e8c3636e152f5656334c0d82231806 100644
(file)
--- a/
gas/config/tc-i386.c
+++ b/
gas/config/tc-i386.c
@@
-13875,13
+13875,8
@@
i386_parse_name (char *name, expressionS *e, char *nextcharP)
{
*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;