aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2025-03-07 08:23:11 +0100
committerJan Beulich <jbeulich@suse.com>2025-03-07 08:23:11 +0100
commit4a338b4f8d4d408a09b3677340beadbc8ad50a74 (patch)
treee3a81189c62aba3350127f1fd4425dd58ef0cbde /gas
parent071943663a81959e789a189bd09fe1b26304f384 (diff)
downloadbinutils-4a338b4f8d4d408a09b3677340beadbc8ad50a74.zip
binutils-4a338b4f8d4d408a09b3677340beadbc8ad50a74.tar.gz
binutils-4a338b4f8d4d408a09b3677340beadbc8ad50a74.tar.bz2
VAX: use is_end_of_stmt()
... instead of open-coding it. This also fixes two array underrun issues, when plain char is a signed type.
Diffstat (limited to 'gas')
-rw-r--r--gas/config/tc-vax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-vax.c b/gas/config/tc-vax.c
index e2f6043..0b39d98 100644
--- a/gas/config/tc-vax.c
+++ b/gas/config/tc-vax.c
@@ -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);
}