aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2002-05-31 02:04:55 +0000
committerThiemo Seufer <ths@networkno.de>2002-05-31 02:04:55 +0000
commit698b7d9d765a7bb6c3ab3832d5a952fd2c24fee4 (patch)
tree60ae8d062204eb5f7da48faf624f4d404a109a35
parent76db943db2364bb439e86bdf13d4957a6de96efc (diff)
downloadgdb-698b7d9d765a7bb6c3ab3832d5a952fd2c24fee4.zip
gdb-698b7d9d765a7bb6c3ab3832d5a952fd2c24fee4.tar.gz
gdb-698b7d9d765a7bb6c3ab3832d5a952fd2c24fee4.tar.bz2
* config/tc-mips.c (s_cpsetup): Fix comment.
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-mips.c10
2 files changed, 9 insertions, 5 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 7866b0c..a5a2047 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,9 @@
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>
+
* config/tc-mips.c (md_begin): Add $ra as alias name for $31.
(mips_ip): Likewise.
(mips16_ip): Likewise.
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 8c6a219..92789e7 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -11841,15 +11841,15 @@ s_cpload (ignore)
If offset is given, this results in:
sd $gp, offset($sp)
lui $gp, %hi(%neg(%gp_rel(label)))
- daddiu $gp, $gp, %lo(%neg(%gp_rel(label)))
- addu $gp, $gp, $reg1
+ addiu $gp, $gp, %lo(%neg(%gp_rel(label)))
+ daddu $gp, $gp, $reg1
If $reg2 is given, this results in:
daddu $reg2, $gp, $0
lui $gp, %hi(%neg(%gp_rel(label)))
- daddiu $gp, $gp, %lo(%neg(%gp_rel(label)))
- addu $gp, $gp, $reg1
- */
+ addiu $gp, $gp, %lo(%neg(%gp_rel(label)))
+ daddu $gp, $gp, $reg1
+ $reg1 is normally $25 == $t9. */
static void
s_cpsetup (ignore)
int ignore ATTRIBUTE_UNUSED;