This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] MIPS gas: Use mips_frame_reg consistently.
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- To: binutils at sources dot redhat dot com
- Date: Wed, 11 Jun 2003 01:59:52 +0200
- Subject: [PATCH] MIPS gas: Use mips_frame_reg consistently.
Hello All,
this allows MIPS gas to use mips_frame_reg consistently.
Thiemo
2003-06-10 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
/gas/ChangeLog
* config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
(s_cprestore): Likewise.
(s_cpreturn): Likewise.
diff -urpNX /bigdisk/src/gcc-exclude source-orig/gas/config/tc-mips.c source/gas/config/tc-mips.c
--- source-orig/gas/config/tc-mips.c Tue Jun 10 17:05:26 2003
+++ source/gas/config/tc-mips.c Tue Jun 10 19:19:51 2003
@@ -12819,7 +12758,7 @@ s_cpsetup (ignore)
ex_off.X_add_number = mips_cpreturn_offset;
macro_build ((char *) NULL, &icnt, &ex_off, "sd", "t,o(b)",
- mips_gp_register, (int) BFD_RELOC_LO16, SP);
+ mips_gp_register, (int) BFD_RELOC_LO16, mips_frame_reg);
}
else
macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "daddu",
@@ -12896,7 +12835,7 @@ s_cprestore (ignore)
macro_build_ldst_constoffset ((char *) NULL, &icnt, &ex,
HAVE_32BIT_ADDRESSES ? "sw" : "sd",
- mips_gp_register, SP);
+ mips_gp_register, mips_frame_reg);
demand_empty_rest_of_line ();
}
@@ -12931,7 +12870,7 @@ s_cpreturn (ignore)
ex.X_add_number = mips_cpreturn_offset;
macro_build ((char *) NULL, &icnt, &ex, "ld", "t,o(b)",
- mips_gp_register, (int) BFD_RELOC_LO16, SP);
+ mips_gp_register, (int) BFD_RELOC_LO16, mips_frame_reg);
}
else
macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "daddu",