]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
pru: use is_whitespace()
authorJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2025 11:18:53 +0000 (12:18 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2025 11:18:53 +0000 (12:18 +0100)
Convert open-coded checks as well as an ISSPACE() use.

gas/config/tc-pru.c

index abf7870bdb012b13819148077ee9f1b6bbaa4b87..2e9d8e5463e0a5e026e68709a2142e2cd80d4446 100644 (file)
@@ -1441,7 +1441,7 @@ pru_parse_args (pru_insn_infoS *insn ATTRIBUTE_UNUSED, char *argstr,
       /* Strip trailing whitespace.  */
       len = strlen (parsed_args[i]);
       for (char *temp = parsed_args[i] + len - 1;
-          len && ISSPACE (*temp);
+          len && is_whitespace (*temp);
           temp--, len--)
        *temp = '\0';
 
@@ -1830,7 +1830,7 @@ pru_frob_label (symbolS *lab)
 static inline char *
 skip_space (char *s)
 {
-  while (*s == ' ' || *s == '\t')
+  while (is_whitespace (*s))
     ++s;
   return s;
 }