[v2,42/65] pru: use is_whitespace()

Message ID 5ae523a3-afdd-48d6-b4f2-b64151e40a7d@suse.com
State New
Headers
Series gas: whitespace handling |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_binutils_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_binutils_check--master-arm success Test passed
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 success Test passed

Commit Message

Jan Beulich Jan. 27, 2025, 4:34 p.m. UTC
  Convert open-coded checks as well as an ISSPACE() use.
---
v2: New.
  

Patch

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