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

gas/config/tc-ppc.c

index 5f2bc046a084c41911917df03bcd0acf23a6fd39..33f3a4c840aeb8de6f31c2f26bd1a860926f528c 100644 (file)
@@ -5038,7 +5038,7 @@ ppc_ref (int ignore ATTRIBUTE_UNUSED)
        {
          input_line_pointer++;
          SKIP_WHITESPACE ();
-         if (is_end_of_line[(unsigned char) *input_line_pointer])
+         if (is_end_of_stmt (*input_line_pointer))
            {
              as_bad (_("missing symbol name"));
              ignore_rest_of_line ();
@@ -5796,7 +5796,7 @@ ppc_tc (int ignore ATTRIBUTE_UNUSED)
        symbol_set_frag (label, symbol_get_frag (sym));
        S_SET_VALUE (label, S_GET_VALUE (sym));
 
-       while (! is_end_of_line[(unsigned char) *input_line_pointer])
+       while (! is_end_of_stmt (*input_line_pointer))
          ++input_line_pointer;
 
        return;