[binutils-gdb] MMIX: use is_end_of_stmt()

Jan Beulich jbeulich@sourceware.org
Fri Mar 7 07:17:01 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0714ea7824e4399efc185964371f6c66ae328612

commit 0714ea7824e4399efc185964371f6c66ae328612
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Mar 7 08:14:59 2025 +0100

    MMIX: use is_end_of_stmt()
    
    ... instead of open-coding it.

Diff:
---
 gas/config/tc-mmix.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gas/config/tc-mmix.c b/gas/config/tc-mmix.c
index 3715790348c..76a06188535 100644
--- a/gas/config/tc-mmix.c
+++ b/gas/config/tc-mmix.c
@@ -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)


More information about the Binutils-cvs mailing list