From: Jan Beulich Date: Mon, 3 Feb 2025 11:05:33 +0000 (+0100) Subject: LoongArch: use is_whitespace() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=239331e4a9e7238df754dd7e314e0cc547450bd3;p=thirdparty%2Fbinutils-gdb.git 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 --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);