diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0497ecf70b2..e98422669bf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,15 @@ +2007-04-12 Richard Sandiford + + * 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 * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return diff --git a/gcc/config/mips/mips-protos.h b/gcc/config/mips/mips-protos.h index 91d0150dbd7..78cdc1ae669 100644 --- a/gcc/config/mips/mips-protos.h +++ b/gcc/config/mips/mips-protos.h @@ -119,7 +119,7 @@ enum mips_symbol_type { 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, diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index f782d75f1fa..9100e998c76 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -6599,14 +6599,14 @@ mips_emit_loadgp (void) 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; diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index 832b93bd05a..28fb5022eb7 100644 --- a/gcc/config/mips/mips.md +++ b/gcc/config/mips/mips.md @@ -4083,7 +4083,7 @@ ;; 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" @@ -4101,7 +4101,7 @@ [(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" "#"