diff options
author | Jan Beulich <jbeulich@suse.com> | 2025-02-03 11:59:00 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2025-02-03 11:59:00 +0100 |
commit | 592d1039565ea691a864744dad385eb38c96e716 (patch) | |
tree | 10b684c4a2122f9f1df260596d92496c2026b02e | |
parent | 8ea323741197db6eb8f69e19dbd7127f217f918b (diff) | |
download | binutils-592d1039565ea691a864744dad385eb38c96e716.zip binutils-592d1039565ea691a864744dad385eb38c96e716.tar.gz binutils-592d1039565ea691a864744dad385eb38c96e716.tar.bz2 |
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).
-rw-r--r-- | gas/config/tc-cris.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-cris.c b/gas/config/tc-cris.c index 2c00284..c9c16f9 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; |