[binutils-gdb] LoongArch: use is_whitespace()
Jan Beulich
jbeulich@sourceware.org
Mon Feb 3 11:08:30 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=239331e4a9e7238df754dd7e314e0cc547450bd3
commit 239331e4a9e7238df754dd7e314e0cc547450bd3
Author: Jan Beulich <jbeulich@suse.com>
Date: Mon Feb 3 12:05:33 2025 +0100
LoongArch: 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-loongarch.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gas/config/tc-loongarch.c b/gas/config/tc-loongarch.c
index b0bcdebdd10..bfc8836ad18 100644
--- a/gas/config/tc-loongarch.c
+++ b/gas/config/tc-loongarch.c
@@ -1424,9 +1424,9 @@ loongarch_assemble_INSNs (char *str, unsigned int expand_from_macro)
the_one.name = str;
the_one.expand_from_macro = expand_from_macro;
- for (; *str && *str != ' '; str++)
+ for (; *str && !is_whitespace (*str); str++)
;
- if (*str == ' ')
+ if (is_whitespace (*str))
*str++ = '\0';
loongarch_split_args_by_comma (str, the_one.arg_strs);
More information about the Binutils-cvs
mailing list