[PATCH] MIPS gas: Use mips_frame_reg consistently.
Thiemo Seufer
ica2_ts@csv.ica.uni-stuttgart.de
Tue Jun 10 23:59:00 GMT 2003
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",
More information about the Binutils
mailing list