]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
cris: use is_whitespace()
authorJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2025 10:59:00 +0000 (11:59 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2025 10:59:00 +0000 (11:59 +0100)
Switch ISSPACE() uses over.

Unlike many other targets, limiting whitespace checks to just blanks is
deemed okay here: Compilers wanting to use -f / #NO_APP are apparently
required to emit only blanks (without this being written down anywhere).

gas/config/tc-cris.c

index 2c002845bcc4012b28afaf0ea87d718c509feee2..c9c16f96745c14873932fe5ff4c4f90d50609e83 100644 (file)
@@ -1682,7 +1682,7 @@ cris_process_instruction (char *insn_text, struct cris_instruction *out_insnp,
              if (modified_char == '.' && *s == '.')
                {
                  if ((s[1] != 'd' && s[1] == 'D')
-                     || ! ISSPACE (s[2]))
+                     || ! is_whitespace (s[2]))
                    break;
                  s += 2;
                  continue;
@@ -3231,7 +3231,7 @@ get_flags (char **cPP, int *flagsp)
             whitespace.  Anything else, and we consider it a failure.  */
          if (**cPP != ','
              && **cPP != 0
-             && ! ISSPACE (**cPP))
+             && ! is_whitespace (**cPP))
            return 0;
          else
            return 1;
@@ -4278,7 +4278,7 @@ cris_arch_from_string (const char **str)
       int len = strlen (ap->name);
 
       if (strncmp (*str, ap->name, len) == 0
-         && (str[0][len] == 0 || ISSPACE (str[0][len])))
+         && (is_end_of_stmt (str[0][len]) || is_whitespace (str[0][len])))
        {
          *str += strlen (ap->name);
          return ap->arch;