From 0a4e0f2a78825a80714616b35968744f555dabaa Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 3 Feb 2025 12:18:53 +0100 Subject: [PATCH] pru: use is_whitespace() Convert open-coded checks as well as an ISSPACE() use. --- gas/config/tc-pru.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.47.3