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

gas/config/tc-sh.c

index 850e8382b727bc0d322ea6c823dee95ff3e5360c..db11939a350fd355980d8768aa4547ebf72916dd 100644 (file)
@@ -452,7 +452,7 @@ sh_elf_cons (int nbytes)
   input_line_pointer--;                /* Put terminator back into stream.  */
   if (*input_line_pointer == '#' || *input_line_pointer == '!')
     {
-       while (! is_end_of_line[(unsigned char) *input_line_pointer++]);
+       while (! is_end_of_stmt (*input_line_pointer++));
     }
   else
     demand_empty_rest_of_line ();