aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-mips.c12
2 files changed, 14 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index a5a2047..d5452d0 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
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.
2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 92789e7..1b738b5 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -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 != ',')
{