]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Visium: use is_whitespace()
authorJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2025 11:26:00 +0000 (12:26 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2025 11:26:00 +0000 (12:26 +0100)
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.

gas/config/tc-visium.c

index 975a0c848d4eb9792a4b42a9b56adc50396907c3..c00db12e38635e33ac08c810c65022cd496ee6c6 100644 (file)
@@ -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.  */