[binutils-gdb] Visium: use is_whitespace()

Jan Beulich jbeulich@sourceware.org
Mon Feb 3 11:27:36 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e6efb10bd1313ac60a70840b45354df461e6acad

commit e6efb10bd1313ac60a70840b45354df461e6acad
Author: Jan Beulich <jbeulich@suse.com>
Date:   Mon Feb 3 12:26:00 2025 +0100

    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:
---
 gas/config/tc-visium.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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.  */


More information about the Binutils-cvs mailing list