aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2025-02-03 12:16:01 +0100
committerJan Beulich <jbeulich@suse.com>2025-02-03 12:16:01 +0100
commit7ea01e2546e529c9c14415f6a8edb218dad5df3c (patch)
tree52f728a8330d5d4830807cde8757c644ac2d3a37
parent1ac26e9f7ac250cd63f766eae0facea3485b16e4 (diff)
downloadbinutils-7ea01e2546e529c9c14415f6a8edb218dad5df3c.zip
binutils-7ea01e2546e529c9c14415f6a8edb218dad5df3c.tar.gz
binutils-7ea01e2546e529c9c14415f6a8edb218dad5df3c.tar.bz2
NS32k: 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).
-rw-r--r--gas/config/tc-ns32k.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gas/config/tc-ns32k.c b/gas/config/tc-ns32k.c
index ba30e24..cf23c9b 100644
--- a/gas/config/tc-ns32k.c
+++ b/gas/config/tc-ns32k.c
@@ -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;