[PATCH v2 58/65] Visium: use is_whitespace()
Jan Beulich
jbeulich@suse.com
Mon Jan 27 16:43:26 GMT 2025
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.
---
v2: New.
--- a/gas/config/tc-visium.c
+++ b/gas/config/tc-visium.c
@@ -866,7 +866,7 @@ md_atof (int type, char *litP, int *size
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. */
More information about the Binutils
mailing list