[binutils-gdb] NS32k: use is_whitespace()
Jan Beulich
jbeulich@sourceware.org
Mon Feb 3 11:17:33 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7ea01e2546e529c9c14415f6a8edb218dad5df3c
commit 7ea01e2546e529c9c14415f6a8edb218dad5df3c
Author: Jan Beulich <jbeulich@suse.com>
Date: Mon Feb 3 12:16:01 2025 +0100
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).
Diff:
---
gas/config/tc-ns32k.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gas/config/tc-ns32k.c b/gas/config/tc-ns32k.c
index ba30e247dc1..cf23c9b1fcf 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;
More information about the Binutils-cvs
mailing list