aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2002-05-31 02:20:04 +0000
committerThiemo Seufer <ths@networkno.de>2002-05-31 02:20:04 +0000
commit8024528581c01bb27440b3b324127d5964f0ac1b (patch)
tree6307811d9087f155c52fac272eb9788deb45dad2 /gas
parentdbec3bef45b254272a19aff5358d8f6f2d19080f (diff)
downloadgdb-8024528581c01bb27440b3b324127d5964f0ac1b.zip
gdb-8024528581c01bb27440b3b324127d5964f0ac1b.tar.gz
gdb-8024528581c01bb27440b3b324127d5964f0ac1b.tar.bz2
* config/tc-mips.c (s_cpsetup): Fix initialization of
mips_cpreturn_register and mips_cpreturn_offset.
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 != ',')
{