[PATCH v2 42/65] pru: use is_whitespace()
Jan Beulich
jbeulich@suse.com
Mon Jan 27 16:34:09 GMT 2025
Convert open-coded checks as well as an ISSPACE() use.
---
v2: New.
--- a/gas/config/tc-pru.c
+++ b/gas/config/tc-pru.c
@@ -1441,7 +1441,7 @@ pru_parse_args (pru_insn_infoS *insn ATT
/* 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;
}
More information about the Binutils
mailing list