diff options
author | Ian Lance Taylor <ian@airs.com> | 1993-10-25 18:08:33 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1993-10-25 18:08:33 +0000 |
commit | 9b2fd75ba1d04475909e4d4199268fe9c5fe4619 (patch) | |
tree | 2e77023ef1053a658d9302e405aa430d8f58158b /gas/config/tc-sparc.c | |
parent | 84678d16901348fb5b90c47cb8360c4ff1cf4fe9 (diff) | |
download | gdb-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/config/tc-sparc.c')
-rw-r--r-- | gas/config/tc-sparc.c | 9 |
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 { |