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

gas/config/tc-iq2000.c

index c65f264528fbd14406d30e5e816884af902826fe..1957235dfc8093328d4a1a57e539c3850f486e1d 100644 (file)
@@ -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 ();