]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Tile-Gx: use is_end_of_stmt()
authorJan Beulich <jbeulich@suse.com>
Fri, 7 Mar 2025 07:21:25 +0000 (08:21 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Mar 2025 07:21:25 +0000 (08:21 +0100)
... instead of open-coding it. Also convert a variable to plain char
(allowing to drop two casts), which is how it's actually used.

gas/config/tc-tilegx.c

index b63567ba0f7845ca87c426fcbe8ec2168d2efa29..26612acfd156a1970b8d43a4d22f10b86f5b57a1 100644 (file)
@@ -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)
        {