From: Jan Beulich Date: Mon, 3 Feb 2025 11:26:00 +0000 (+0100) Subject: Visium: use is_whitespace() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e6efb10bd1313ac60a70840b45354df461e6acad;p=thirdparty%2Fbinutils-gdb.git Visium: use is_whitespace() Wherever blanks are permissible in input, tabs ought to be permissible, too. This is particularly relevant when -f is passed to gas (alongside appropriate input). Also convert an open-coded check. --- diff --git a/gas/config/tc-visium.c b/gas/config/tc-visium.c index 975a0c848d4..c00db12e386 100644 --- a/gas/config/tc-visium.c +++ b/gas/config/tc-visium.c @@ -866,7 +866,7 @@ md_atof (int type, char *litP, int *sizeP) static inline char * skip_space (char *s) { - while (*s == ' ' || *s == '\t') + while (is_whitespace (*s)) ++s; return s; @@ -1029,7 +1029,7 @@ md_assemble (char *str0) this_dest = 0; /* Drop leading whitespace (probably not required). */ - while (*str == ' ') + while (is_whitespace (*str)) str++; /* Get opcode mnemonic and make sure it's in lower case. */