aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2025-02-03 12:26:00 +0100
committerJan Beulich <jbeulich@suse.com>2025-02-03 12:26:00 +0100
commite6efb10bd1313ac60a70840b45354df461e6acad (patch)
tree962a18e1b7c56fe01bfd6e549cc78fe7bed7503f
parent0001a731ef6824212d4b050a9524ac7da28236c7 (diff)
downloadbinutils-e6efb10bd1313ac60a70840b45354df461e6acad.zip
binutils-e6efb10bd1313ac60a70840b45354df461e6acad.tar.gz
binutils-e6efb10bd1313ac60a70840b45354df461e6acad.tar.bz2
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.
-rw-r--r--gas/config/tc-visium.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-visium.c b/gas/config/tc-visium.c
index 975a0c8..c00db12 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. */