aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-10-25 18:08:33 +0000
committerIan Lance Taylor <ian@airs.com>1993-10-25 18:08:33 +0000
commit9b2fd75ba1d04475909e4d4199268fe9c5fe4619 (patch)
tree2e77023ef1053a658d9302e405aa430d8f58158b /gas
parent84678d16901348fb5b90c47cb8360c4ff1cf4fe9 (diff)
downloadgdb-9b2fd75ba1d04475909e4d4199268fe9c5fe4619.zip
gdb-9b2fd75ba1d04475909e4d4199268fe9c5fe4619.tar.gz
gdb-9b2fd75ba1d04475909e4d4199268fe9c5fe4619.tar.bz2
* config/tc-sparc.c (sparc_ip): Use strtol to parse membar
argument, to permit hexadecimal numbers.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog.v95
-rw-r--r--gas/config/tc-sparc.c9
2 files changed, 9 insertions, 5 deletions
diff --git a/gas/ChangeLog.v9 b/gas/ChangeLog.v9
index 8686be7..113b9c7 100644
--- a/gas/ChangeLog.v9
+++ b/gas/ChangeLog.v9
@@ -1,3 +1,8 @@
+Mon Oct 25 14:06:17 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
+
+ * config/tc-sparc.c (sparc_ip): Use strtol to parse membar
+ argument, to permit hexadecimal numbers.
+
Wed Oct 20 12:26:33 1993 Ken Raeburn (raeburn@rover.cygnus.com)
* config/tc-sparc.c (sparc_ip, label "immediate"): Convert relocs
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
{