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

gas/config/tc-mmix.c

index 3715790348cf302b18f8d1ecbdc21a8f16c4794b..76a06188535c335d02be76c63dd57d94b72c3ee1 100644 (file)
@@ -725,7 +725,7 @@ static void
 mmix_discard_rest_of_line (void)
 {
   while (*input_line_pointer
-        && (! is_end_of_line[(unsigned char) *input_line_pointer]
+        && (! is_end_of_stmt (*input_line_pointer)
             || TC_EOL_IN_INSN (input_line_pointer)))
     input_line_pointer++;
 }
@@ -2065,7 +2065,7 @@ s_greg (int unused ATTRIBUTE_UNUSED)
   if (c == '"')
     c = * ++ input_line_pointer;
 
-  if (! is_end_of_line[(unsigned char) c])
+  if (! is_end_of_stmt (c))
     input_line_pointer++;
 
   if (*p)