[binutils-gdb] TILEPro: use is_end_of_stmt()
Jan Beulich
jbeulich@sourceware.org
Fri Mar 7 07:23:27 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=071943663a81959e789a189bd09fe1b26304f384
commit 071943663a81959e789a189bd09fe1b26304f384
Author: Jan Beulich <jbeulich@suse.com>
Date: Fri Mar 7 08:21:37 2025 +0100
TILEPro: use is_end_of_stmt()
... instead of open-coding it. Also convert a variable to plain char
(allowing to drop two casts), which is how it's actually used.
Diff:
---
gas/config/tc-tilepro.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gas/config/tc-tilepro.c b/gas/config/tc-tilepro.c
index 38666adc028..a7c599d15bb 100644
--- a/gas/config/tc-tilepro.c
+++ b/gas/config/tc-tilepro.c
@@ -1042,9 +1042,9 @@ parse_operands (const char *opcode_name,
if (i + 1 < num_operands)
{
- int separator = (unsigned char)*input_line_pointer++;
+ char separator = *input_line_pointer++;
- if (is_end_of_line[separator] || (separator == '}'))
+ if (is_end_of_stmt (separator) || (separator == '}'))
{
as_bad (_("Too few operands to '%s'."), opcode_name);
return;
@@ -1052,7 +1052,7 @@ parse_operands (const char *opcode_name,
else if (separator != ',')
{
as_bad (_("Unexpected character '%c' after operand %d to %s."),
- (char)separator, i + 1, opcode_name);
+ separator, i + 1, opcode_name);
return;
}
}
@@ -1079,7 +1079,7 @@ parse_operands (const char *opcode_name,
}
}
- if (!is_end_of_line[(unsigned char)*input_line_pointer])
+ if (!is_end_of_stmt (*input_line_pointer))
{
switch (*input_line_pointer)
{
More information about the Binutils-cvs
mailing list