aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-sparc.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c
index f21c28d..068b3f2 100644
--- a/gas/config/tc-sparc.c
+++ b/gas/config/tc-sparc.c
@@ -791,16 +791,15 @@ sparc_ip (str)
}
else if (isdigit (*s))
{
- expressionS exp;
+ char *send;
- if (expression (&exp) != absolute_section
- || exp.X_op != O_constant
- || (kmask = exp.X_add_number) < 0
- || kmask > 127)
+ kmask = strtol (s, &send, 0);
+ if (kmask < 0 || kmask > 127)
{
error_message = ": invalid membar mask number";
goto error;
}
+ s = send;
}
else
{