[binutils-gdb] C30: use is_end_of_stmt()

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


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

commit 0ebc27d15d36c42a2b866c806022acb52677cf11
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Mar 7 08:20:17 2025 +0100

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

Diff:
---
 gas/config/tc-tic30.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gas/config/tc-tic30.c b/gas/config/tc-tic30.c
index 6aad8f891cb..1da1618ee30 100644
--- a/gas/config/tc-tic30.c
+++ b/gas/config/tc-tic30.c
@@ -287,7 +287,7 @@ tic30_find_parallel_insn (char *current_line, char *next_line)
   char *parallel_insn;
 
   debug ("In tic30_find_parallel_insn()\n");
-  while (!is_end_of_line[(unsigned char) *next_line])
+  while (!is_end_of_stmt (*next_line))
     {
       if (*next_line == PARALLEL_SEPARATOR
 	  && *(next_line + 1) == PARALLEL_SEPARATOR)
@@ -326,7 +326,7 @@ tic30_find_parallel_insn (char *current_line, char *next_line)
 	  int char_ptr = 0;
 	  char c;
 
-	  while (!is_end_of_line[(unsigned char) (c = *line)])
+	  while (!is_end_of_stmt (c = *line))
 	    {
 	      if (is_opcode_char (c) && search_status == NONE)
 		{
@@ -1206,7 +1206,7 @@ md_atof (int what_statement_type,
   debug ("literal = %s\n", literalP);
   debug ("line = ");
   token = input_line_pointer;
-  while (!is_end_of_line[(unsigned char) *input_line_pointer]
+  while (!is_end_of_stmt (*input_line_pointer)
 	 && (*input_line_pointer != ','))
     {
       debug ("%c", *input_line_pointer);


More information about the Binutils-cvs mailing list