aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2025-02-03 11:59:22 +0100
committerJan Beulich <jbeulich@suse.com>2025-02-03 11:59:22 +0100
commitf96763060e67efffbf177ddb1aa01fc735dc827f (patch)
treecfd4b0dc9aaca1ae2a2680099794596ecfcde5de
parent592d1039565ea691a864744dad385eb38c96e716 (diff)
downloadbinutils-f96763060e67efffbf177ddb1aa01fc735dc827f.zip
binutils-f96763060e67efffbf177ddb1aa01fc735dc827f.tar.gz
binutils-f96763060e67efffbf177ddb1aa01fc735dc827f.tar.bz2
CRx: 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 switch ISSPACE() uses over.
-rw-r--r--gas/config/tc-crx.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gas/config/tc-crx.c b/gas/config/tc-crx.c
index 7a8db73..f62424b 100644
--- a/gas/config/tc-crx.c
+++ b/gas/config/tc-crx.c
@@ -721,7 +721,7 @@ set_operand (char *operand, ins * crx_ins)
operandS = ++operandE;
/* Set register base. */
- while ((*operandE != ',') && (! ISSPACE (*operandE)))
+ while ((*operandE != ',') && (! is_whitespace (*operandE)))
operandE++;
*operandE++ = '\0';
if ((cur_arg->r = get_register (operandS)) == nullregister)
@@ -729,7 +729,7 @@ set_operand (char *operand, ins * crx_ins)
operandS, ins_parse);
/* Skip leading white space. */
- while (ISSPACE (*operandE))
+ while (is_whitespace (*operandE))
operandE++;
operandS = operandE;
@@ -744,7 +744,7 @@ set_operand (char *operand, ins * crx_ins)
operandS, ins_parse);
/* Skip leading white space. */
- while (ISSPACE (*operandE))
+ while (is_whitespace (*operandE))
operandE++;
operandS = operandE;
@@ -883,7 +883,7 @@ parse_operands (ins * crx_ins, char *operands)
continue;
}
- if (*operandT == ' ')
+ if (is_whitespace (*operandT))
as_bad (_("Illegal operands (whitespace): `%s'"), ins_parse);
if (*operandT == '(')
@@ -1030,7 +1030,7 @@ get_cinv_parameters (const char *operand)
while (*++p != ']')
{
- if (*p == ',' || *p == ' ')
+ if (*p == ',' || is_whitespace (*p))
continue;
if (*p == 'd')
@@ -1927,7 +1927,7 @@ md_assemble (char *op)
reset_vars (op);
/* Strip the mnemonic. */
- for (param = op; *param != 0 && !ISSPACE (*param); param++)
+ for (param = op; *param != 0 && !is_whitespace (*param); param++)
;
c = *param;
*param++ = '\0';