* config/mips/mips-protos.h: In comments, refer to loadgp_absolute
rather than loadgp_noshared.
* config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
instead of gen_loadgp_noshared. Use gen_loadgp_newabi instead of
gen_loadgp.
* config/mips/mips.md (loadgp): Rename to...
(loadgp_newabi): ...this.
(loadgp_noshared): Rename to...
(loadgp_absolute): ...this.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123755
138bc75d-0d04-0410-961f-
82ee72b054a4
2007-04-12 Richard Sandiford <richard@codesourcery.com>
+ * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
+ rather than loadgp_noshared.
+ * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
+ instead of gen_loadgp_noshared. Use gen_loadgp_newabi instead of
+ gen_loadgp.
+ * config/mips/mips.md (loadgp): Rename to...
+ (loadgp_newabi): ...this.
+ (loadgp_noshared): Rename to...
+ (loadgp_absolute): ...this.
+
+2007-04-12 Richard Sandiford <richard@codesourcery.com>
+
* config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
false for locally-binding symbols.
(mips_dangerous_for_la25_p): Check mips_global_symbol_p.
by .cpsetup).
LOADGP_ABSOLUTE
- The GNU absolute sequence, as generated by loadgp_noshared. */
+ The GNU absolute sequence, as generated by loadgp_absolute. */
enum mips_loadgp_style {
LOADGP_NONE,
LOADGP_OLDABI,
mips_gnu_local_gp = gen_rtx_SYMBOL_REF (Pmode, "__gnu_local_gp");
SYMBOL_REF_FLAGS (mips_gnu_local_gp) |= SYMBOL_FLAG_LOCAL;
}
- emit_insn (gen_loadgp_noshared (mips_gnu_local_gp));
+ emit_insn (gen_loadgp_absolute (mips_gnu_local_gp));
break;
case LOADGP_NEWABI:
addr = XEXP (DECL_RTL (current_function_decl), 0);
offset = mips_unspec_address (addr, SYMBOL_GOTOFF_LOADGP);
incoming_address = gen_rtx_REG (Pmode, PIC_FUNCTION_ADDR_REGNUM);
- emit_insn (gen_loadgp (offset, incoming_address));
+ emit_insn (gen_loadgp_newabi (offset, incoming_address));
if (!TARGET_EXPLICIT_RELOCS)
emit_insn (gen_loadgp_blockage ());
break;
;; Insn to initialize $gp for n32/n64 abicalls. Operand 0 is the offset
;; of _gp from the start of this function. Operand 1 is the incoming
;; function address.
-(define_insn_and_split "loadgp"
+(define_insn_and_split "loadgp_newabi"
[(unspec_volatile [(match_operand 0 "" "")
(match_operand 1 "register_operand" "")] UNSPEC_LOADGP)]
"mips_current_loadgp_style () == LOADGP_NEWABI"
[(set_attr "length" "12")])
;; Likewise, for -mno-shared code. Operand 0 is the __gnu_local_gp symbol.
-(define_insn_and_split "loadgp_noshared"
+(define_insn_and_split "loadgp_absolute"
[(unspec_volatile [(match_operand 0 "" "")] UNSPEC_LOADGP)]
"mips_current_loadgp_style () == LOADGP_ABSOLUTE"
"#"