* [binutils-gdb] x86: slightly simplify i386_parse_name()
@ 2023-05-12 6:56 Jan Beulich
0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2023-05-12 6:56 UTC (permalink / raw)
To: bfd-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f847749a74a74b4024bac247c51838ebac49d1a6
commit f847749a74a74b4024bac247c51838ebac49d1a6
Author: Jan Beulich <jbeulich@suse.com>
Date: Fri May 12 08:56:07 2023 +0200
x86: slightly simplify i386_parse_name()
With the switch to parse_real_register() (commit 4faaa10f3fab) "bad_reg"
cannot come back anymore. Drop the respective check.
Diff:
---
gas/config/tc-i386.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 8856ccc495c..c0bf4fc0c4e 100644
--- 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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-12 6:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-12 6:56 [binutils-gdb] x86: slightly simplify i386_parse_name() Jan Beulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).