]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
VAX: use is_end_of_stmt()
authorJan Beulich <jbeulich@suse.com>
Fri, 7 Mar 2025 07:23:11 +0000 (08:23 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Mar 2025 07:23:11 +0000 (08:23 +0100)
... instead of open-coding it. This also fixes two array underrun
issues, when plain char is a signed type.

gas/config/tc-vax.c

index e2f6043d543f72c936d6f9db68f4d0e32e349150..0b39d98f44a6bcd0e94e4526e8a12e65212d032c 100644 (file)
@@ -3293,7 +3293,7 @@ vax_cons (expressionS *exp, int size)
              char *end = ++input_line_pointer;
              int npar = 0;
 
-             while (! is_end_of_line[(c = *end)])
+             while (! is_end_of_stmt (c = *end))
                {
                  if (c == '(')
                    npar++;
@@ -3324,7 +3324,7 @@ vax_cons (expressionS *exp, int size)
                      input_line_pointer++;
                      SKIP_WHITESPACE ();
                      c = *input_line_pointer;
-                     if (! is_end_of_line[c] && c != ',')
+                     if (! is_end_of_stmt (c) && c != ',')
                        as_bad (_("Illegal operands: garbage after %%r_%s%d()"),
                                vax_cons_special_reloc, size * 8);
                    }