* config/tc-mips.c (s_cpsetup): Fix initialization of

mips_cpreturn_register and mips_cpreturn_offset.
This commit is contained in:
Thiemo Seufer 2002-05-31 02:20:04 +00:00
parent dbec3bef45
commit 8024528581
2 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
* config/tc-mips.c (s_cpsetup): Fix initialization of
mips_cpreturn_register and mips_cpreturn_offset.
2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
* config/tc-mips.c (s_cpsetup): Fix comment.

View File

@ -11876,12 +11876,18 @@ s_cpsetup (ignore)
return;
}
else
input_line_pointer++;
++input_line_pointer;
SKIP_WHITESPACE ();
if (*input_line_pointer == '$')
mips_cpreturn_register = tc_get_register (0);
{
mips_cpreturn_register = tc_get_register (0);
mips_cpreturn_offset = -1;
}
else
mips_cpreturn_offset = get_absolute_expression ();
{
mips_cpreturn_offset = get_absolute_expression ();
mips_cpreturn_register = -1;
}
SKIP_WHITESPACE ();
if (*input_line_pointer != ',')
{