aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2025-02-03 12:07:09 +0100
committerJan Beulich <jbeulich@suse.com>2025-02-03 12:07:09 +0100
commit49bf8777038702dd45d9080c5d63bf04bc5328fe (patch)
treec5fbabb93b8b04e080b2794a2ac9b2c5f4ad509c
parentd274b29e92be655cd2677a8ce1980343480c8370 (diff)
downloadbinutils-49bf8777038702dd45d9080c5d63bf04bc5328fe.zip
binutils-49bf8777038702dd45d9080c5d63bf04bc5328fe.tar.gz
binutils-49bf8777038702dd45d9080c5d63bf04bc5328fe.tar.bz2
MicroBlaze: use is_whitespace()
Wherever blanks are permissible in input, tabs ought to be permissible, too. This is particularly relevant when -f is passed to gas (alongside appropriate input). Also convert ISSPACE() uses. At the same time use is_end_of_stmt() instead of an open-coded check in adjacent code.
-rw-r--r--gas/config/tc-microblaze.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c
index 5774eea..7e1b167 100644
--- a/gas/config/tc-microblaze.c
+++ b/gas/config/tc-microblaze.c
@@ -400,7 +400,7 @@ parse_reg (char * s, unsigned * reg)
unsigned tmpreg = 0;
/* Strip leading whitespace. */
- while (ISSPACE (* s))
+ while (is_whitespace (* s))
++ s;
if (strncasecmp (s, "rpc", 3) == 0)
@@ -573,7 +573,7 @@ parse_exp (char *s, expressionS *e)
char *new_pointer;
/* Skip whitespace. */
- while (ISSPACE (* s))
+ while (is_whitespace (* s))
++ s;
save = input_line_pointer;
@@ -892,12 +892,12 @@ md_assemble (char * str)
char name[20];
/* Drop leading whitespace. */
- while (ISSPACE (* str))
+ while (is_whitespace (* str))
str ++;
/* Find the op code end. */
for (op_start = op_end = str;
- *op_end && !is_end_of_line[(unsigned char) *op_end] && *op_end != ' ';
+ !is_end_of_stmt (*op_end) && !is_whitespace (*op_end);
op_end++)
{
name[nlen] = op_start[nlen];
@@ -1808,7 +1808,7 @@ md_assemble (char * str)
}
/* Drop whitespace after all the operands have been parsed. */
- while (ISSPACE (* op_end))
+ while (is_whitespace (* op_end))
op_end ++;
/* Give warning message if the insn has more operands than required. */