aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2025-02-03 12:21:29 +0100
committerJan Beulich <jbeulich@suse.com>2025-02-03 12:21:29 +0100
commitea091addb352f955393c228af5ffe5d4faad97d7 (patch)
tree7e961be1eb6ef7614d35583053ed6f4ee07efe76
parente5792f3e779ef24f595931ef756a4075773d5311 (diff)
downloadbinutils-ea091addb352f955393c228af5ffe5d4faad97d7.zip
binutils-ea091addb352f955393c228af5ffe5d4faad97d7.tar.gz
binutils-ea091addb352f955393c228af5ffe5d4faad97d7.tar.bz2
S/390: use is_whitespace()
Convert ISSPACE() uses. At the same time use is_end_of_stmt() instead of kind-of-open-coded checks in adjacent code.
-rw-r--r--gas/config/tc-s390.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/config/tc-s390.c b/gas/config/tc-s390.c
index cb3de9d..a0cfeea 100644
--- a/gas/config/tc-s390.c
+++ b/gas/config/tc-s390.c
@@ -1429,7 +1429,7 @@ md_gather_operands (char *str,
char *f;
int fc, i;
- while (ISSPACE (*str))
+ while (is_whitespace (*str))
str++;
/* Gather the operands. */
@@ -1820,7 +1820,7 @@ md_gather_operands (char *str,
}
}
- while (ISSPACE (*str))
+ while (is_whitespace (*str))
str++;
/* Check for tls instruction marker. */
@@ -1925,7 +1925,7 @@ md_assemble (char *str)
char *s;
/* Get the opcode. */
- for (s = str; *s != '\0' && ! ISSPACE (*s); s++)
+ for (s = str; ! is_end_of_stmt (*s) && ! is_whitespace (*s); s++)
;
if (*s != '\0')
*s++ = '\0';
@@ -1981,7 +1981,7 @@ s390_insn (int ignore ATTRIBUTE_UNUSED)
/* Get the opcode format. */
s = input_line_pointer;
- while (*s != '\0' && *s != ',' && ! ISSPACE (*s))
+ while (! is_end_of_stmt (*s) && *s != ',' && ! is_whitespace (*s))
s++;
if (*s != ',')
as_bad (_("Invalid .insn format\n"));