From: Jan Beulich Date: Mon, 3 Feb 2025 11:18:53 +0000 (+0100) Subject: pru: use is_whitespace() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a4e0f2a78825a80714616b35968744f555dabaa;p=thirdparty%2Fbinutils-gdb.git pru: use is_whitespace() Convert open-coded checks as well as an ISSPACE() use. --- diff --git a/gas/config/tc-pru.c b/gas/config/tc-pru.c index abf7870bdb0..2e9d8e5463e 100644 --- a/gas/config/tc-pru.c +++ b/gas/config/tc-pru.c @@ -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; }