]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
LoongArch: use is_whitespace()
authorJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2025 11:05:33 +0000 (12:05 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2025 11:05:33 +0000 (12:05 +0100)
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

index b0bcdebdd105a314111f2fbef4a95892289015b6..bfc8836ad18673d13c11952dedb5b7db646d0960 100644 (file)
@@ -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);