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

gas/config/tc-epiphany.c

index b89c8487b16b9df3fb7d7ddc5a580572066e2162..c8947c8a5f1b9147db46c36e29e792dfa52ceca5 100644 (file)
@@ -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 == '}')