This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] MIPS gas: Fix wrong comment
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- To: binutils at sources dot redhat dot com
- Date: Fri, 31 May 2002 03:50:47 +0200
- Subject: [PATCH] MIPS gas: Fix wrong comment
Hi All,
this fixes a wrong comment about how .cpsetup expansion works.
Thiemo
2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
/gas/ChangeLog
* config/tc-mips.c (s_cpsetup): Fix comment.
diff -BurpN source-orig/gas/config/tc-mips.c source/gas/config/tc-mips.c
--- source-orig/gas/config/tc-mips.c Fri May 31 01:49:55 2002
+++ source/gas/config/tc-mips.c Fri May 31 00:19:45 2002
@@ -11710,15 +11801,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;