From 239331e4a9e7238df754dd7e314e0cc547450bd3 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 3 Feb 2025 12:05:33 +0100 Subject: 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). --- 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 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); -- cgit v1.1