From: Jan Beulich Date: Mon, 3 Feb 2025 10:59:00 +0000 (+0100) Subject: cris: use is_whitespace() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=592d1039565ea691a864744dad385eb38c96e716;p=thirdparty%2Fbinutils-gdb.git cris: use is_whitespace() 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). --- diff --git a/gas/config/tc-cris.c b/gas/config/tc-cris.c index 2c002845bcc..c9c16f96745 100644 --- a/gas/config/tc-cris.c +++ b/gas/config/tc-cris.c @@ -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;