[binutils-gdb] IQ2000: use is_end_of_stmt()

Jan Beulich jbeulich@sourceware.org
Fri Mar 7 07:16:35 GMT 2025


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

commit 81fa16bf3a70ec7d55ed79d81405ff0f4d781edc
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Mar 7 08:13:50 2025 +0100

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

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

diff --git a/gas/config/tc-iq2000.c b/gas/config/tc-iq2000.c
index c65f264528f..1957235dfc8 100644
--- a/gas/config/tc-iq2000.c
+++ b/gas/config/tc-iq2000.c
@@ -682,7 +682,7 @@ s_iq2000_set (int x ATTRIBUTE_UNUSED)
   char *name = input_line_pointer, ch;
   char *save_ILP = input_line_pointer;
 
-  while (!is_end_of_line[(unsigned char) *input_line_pointer])
+  while (!is_end_of_stmt (*input_line_pointer))
     input_line_pointer++;
   ch = *input_line_pointer;
   *input_line_pointer = '\0';
@@ -803,7 +803,7 @@ s_iq2000_end (int x ATTRIBUTE_UNUSED)
   symbolS *p;
   int maybe_text;
 
-  if (!is_end_of_line[(unsigned char) *input_line_pointer])
+  if (!is_end_of_stmt (*input_line_pointer))
     {
       p = get_symbol ();
       demand_empty_rest_of_line ();


More information about the Binutils-cvs mailing list