* config/tc-sparc.c (sparc_ip): Use strtol to parse membar
argument, to permit hexadecimal numbers.
This commit is contained in:
parent
84678d1690
commit
9b2fd75ba1
2 changed files with 9 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue