aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sandiford <richard@codesourcery.com>2007-04-12 17:39:58 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2007-04-12 17:39:58 +0000
commitdc7750b1a9b7e961354334a4a34f4b384c2240c0 (patch)
tree393ca3ed1cdf4988b569fa9e98483982b1f2969f
parent006257dc5b471f56079fb172410b177d28cbc7fb (diff)
downloadgcc-dc7750b1a9b7e961354334a4a34f4b384c2240c0.zip
gcc-dc7750b1a9b7e961354334a4a34f4b384c2240c0.tar.gz
gcc-dc7750b1a9b7e961354334a4a34f4b384c2240c0.tar.bz2
mips-protos.h: In comments, refer to loadgp_absolute rather than loadgp_noshared.
gcc/ * 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. From-SVN: r123755
-rw-r--r--gcc/ChangeLog12
-rw-r--r--gcc/config/mips/mips-protos.h2
-rw-r--r--gcc/config/mips/mips.c4
-rw-r--r--gcc/config/mips/mips.md4
4 files changed, 17 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0497ecf..e984226 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,17 @@
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.
diff --git a/gcc/config/mips/mips-protos.h b/gcc/config/mips/mips-protos.h
index 91d0150..78cdc1a 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 f782d75..9100e99 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 832b93b..28fb502 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"
"#"