]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Z8k: use is_end_of_stmt()
authorJan Beulich <jbeulich@suse.com>
Fri, 7 Mar 2025 07:23:37 +0000 (08:23 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Mar 2025 07:23:37 +0000 (08:23 +0100)
... instead of open-coding it.

gas/config/tc-z8k.c

index d73df4ffb1e6a2ef27ef72bfff7ade2001453fb4..4cfb302d82cbd29cf190226dac6b318e06a06f7e 100644 (file)
@@ -536,7 +536,7 @@ get_interrupt_operand (char **ptr, struct z8k_op *mode, unsigned int dst ATTRIBU
                  *ptr = src + l;
                invalid:
                  as_bad (_("unknown interrupt %s"), src);
-                 while (**ptr && ! is_end_of_line[(unsigned char) **ptr])
+                 while (! is_end_of_stmt (**ptr))
                    (*ptr)++;    /* Consume rest of line.  */
                  return;
                }
@@ -747,10 +747,10 @@ get_operands (const opcode_entry_type *opcode, char *op_end, op_type *operand)
           get_cc_operand (&ptr, operand + 0, 0);
           while (is_whitespace (*ptr))
             ptr++;
-          if (*ptr && ! is_end_of_line[(unsigned char) *ptr])
+          if (! is_end_of_stmt (*ptr))
             {
               as_bad (_("invalid condition code '%s'"), ptr);
-              while (*ptr && ! is_end_of_line[(unsigned char) *ptr])
+              while (! is_end_of_stmt (*ptr))
                 ptr++;   /* Consume rest of line.  */
             }
         }
@@ -759,10 +759,10 @@ get_operands (const opcode_entry_type *opcode, char *op_end, op_type *operand)
          get_flags_operand (&ptr, operand + 0, 0);
          while (is_whitespace (*ptr))
            ptr++;
-         if (*ptr && ! is_end_of_line[(unsigned char) *ptr])
+         if (! is_end_of_stmt (*ptr))
            {
              as_bad (_("invalid flag '%s'"), ptr);
-             while (*ptr && ! is_end_of_line[(unsigned char) *ptr])
+             while (*ptr && ! is_end_of_stmt (*ptr))
                ptr++;   /* Consume rest of line.  */
            }
        }