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

index ba30e247dc1080c699d560ddd75befc1f5566788..cf23c9b1fcfb9ea713a264a6d11711056f2080a6 100644 (file)
@@ -1097,7 +1097,9 @@ parse (const char *line, int recursive_level)
   if (recursive_level <= 0)
     {
       /* Called from md_assemble.  */
-      for (lineptr = line; (*lineptr) != '\0' && (*lineptr) != ' '; lineptr++)
+      for (lineptr = line;
+          (*lineptr) != '\0' && !is_whitespace (*lineptr);
+          lineptr++)
        continue;
 
       c = *lineptr;