[binutils-gdb] Epiphany: use is_whitespace()

Jan Beulich jbeulich@sourceware.org
Mon Feb 3 11:01:02 GMT 2025


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

commit 6b6b9c89a4366f1119d7ce2afcbc1e50db2d8d6e
Author: Jan Beulich <jbeulich@suse.com>
Date:   Mon Feb 3 11:59:38 2025 +0100

    Epiphany: 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).

Diff:
---
 gas/config/tc-epiphany.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gas/config/tc-epiphany.c b/gas/config/tc-epiphany.c
index b89c8487b16..c8947c8a5f1 100644
--- a/gas/config/tc-epiphany.c
+++ b/gas/config/tc-epiphany.c
@@ -353,7 +353,7 @@ parse_reglist (const char * s, int * mask)
     {
       long value;
 
-      while (*s == ' ')
+      while (is_whitespace (*s))
 	++s;
 
       /* Parse a list with "," or "}" as limiters.  */
@@ -371,7 +371,7 @@ parse_reglist (const char * s, int * mask)
 	return _("register is out of order");
       *mask |= regmask;
 
-      while (*s==' ')
+      while (is_whitespace (*s))
 	++s;
 
       if (*s == '}')


More information about the Binutils-cvs mailing list