aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2025-02-03 12:05:33 +0100
committerJan Beulich <jbeulich@suse.com>2025-02-03 12:05:33 +0100
commit239331e4a9e7238df754dd7e314e0cc547450bd3 (patch)
treec1206bfe40a2d56b955733e0fc9e0b55423de51e
parent4d3ebda16d2baa84bcc79d5481ed8f65bfee2679 (diff)
downloadbinutils-239331e4a9e7238df754dd7e314e0cc547450bd3.zip
binutils-239331e4a9e7238df754dd7e314e0cc547450bd3.tar.gz
binutils-239331e4a9e7238df754dd7e314e0cc547450bd3.tar.bz2
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).
-rw-r--r--gas/config/tc-loongarch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-loongarch.c b/gas/config/tc-loongarch.c
index b0bcdeb..bfc8836 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);