[binutils-gdb] pru: use is_whitespace()

Jan Beulich jbeulich@sourceware.org
Mon Feb 3 11:20:46 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0a4e0f2a78825a80714616b35968744f555dabaa

commit 0a4e0f2a78825a80714616b35968744f555dabaa
Author: Jan Beulich <jbeulich@suse.com>
Date:   Mon Feb 3 12:18:53 2025 +0100

    pru: use is_whitespace()
    
    Convert open-coded checks as well as an ISSPACE() use.

Diff:
---
 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;
 }


More information about the Binutils-cvs mailing list