diff options
author | Jan Beulich <jbeulich@suse.com> | 2025-03-07 08:21:25 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2025-03-07 08:21:25 +0100 |
commit | ee03c16d906d56dbdff538ee9f91cb867c0c39cb (patch) | |
tree | e7b421ea8a9aa5bbde4cf2258f6cfe8528d5755f /gas | |
parent | 18dd3a91ff331a8ffaeeeceae81f7a1f7a867e94 (diff) | |
download | binutils-ee03c16d906d56dbdff538ee9f91cb867c0c39cb.zip binutils-ee03c16d906d56dbdff538ee9f91cb867c0c39cb.tar.gz binutils-ee03c16d906d56dbdff538ee9f91cb867c0c39cb.tar.bz2 |
Tile-Gx: 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.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/config/tc-tilegx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/config/tc-tilegx.c b/gas/config/tc-tilegx.c index b63567b..26612ac 100644 --- a/gas/config/tc-tilegx.c +++ b/gas/config/tc-tilegx.c @@ -1159,9 +1159,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; @@ -1169,7 +1169,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; } } @@ -1196,7 +1196,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) { |