aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2011-07-11 09:35:35 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2011-07-11 09:35:35 +0000
commit18970372c2159a1ad63e58f1683a01d2bcf3a86f (patch)
treed4c9f1b065bdcf81f04ad003d8550bcef028ac6c
parent790f025f3437b664c6dd02a12bdc05074345ac18 (diff)
downloadgcc-18970372c2159a1ad63e58f1683a01d2bcf3a86f.zip
gcc-18970372c2159a1ad63e58f1683a01d2bcf3a86f.tar.gz
gcc-18970372c2159a1ad63e58f1683a01d2bcf3a86f.tar.bz2
sparc.md (save_register_window_1): Rename to...
* config/sparc/sparc.md (save_register_window_1): Rename to... (window_save): ...this. * config/sparc/sparc.c (emit_save_register_window): Rename to... (emit_window_save): ...this. (sparc_expand_prologue): Adjust to above renaming. From-SVN: r176138
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/sparc/sparc.c14
-rw-r--r--gcc/config/sparc/sparc.md6
3 files changed, 17 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 752e252..03eb93b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
+
+ * config/sparc/sparc.md (save_register_window_1): Rename to...
+ (window_save): ...this.
+ * config/sparc/sparc.c (emit_save_register_window): Rename to...
+ (emit_window_save): ...this.
+ (sparc_expand_prologue): Adjust to above renaming.
+
2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (ix86_trampoline_init): Use movl instead
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index 89e09d6..a65b836 100644
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -4590,14 +4590,12 @@ emit_save_or_restore_local_in_regs (rtx base, int offset, sorr_act_t action)
save_local_or_in_reg_p, action, SORR_ADVANCE);
}
-/* Generate a save_register_window insn. */
+/* Emit a window_save insn. */
static rtx
-emit_save_register_window (rtx increment)
+emit_window_save (rtx increment)
{
- rtx insn;
-
- insn = emit_insn (gen_save_register_window_1 (increment));
+ rtx insn = emit_insn (gen_window_save (increment));
RTX_FRAME_RELATED_P (insn) = 1;
/* The incoming return address (%o7) is saved in %i7. */
@@ -4716,10 +4714,10 @@ sparc_expand_prologue (void)
rtx size_int_rtx = GEN_INT (-size);
if (size <= 4096)
- emit_save_register_window (size_int_rtx);
+ emit_window_save (size_int_rtx);
else if (size <= 8192)
{
- emit_save_register_window (GEN_INT (-4096));
+ emit_window_save (GEN_INT (-4096));
/* %sp is not the CFA register anymore. */
emit_insn (gen_stack_pointer_inc (GEN_INT (4096 - size)));
}
@@ -4727,7 +4725,7 @@ sparc_expand_prologue (void)
{
rtx size_rtx = gen_rtx_REG (Pmode, 1);
emit_move_insn (size_rtx, size_int_rtx);
- emit_save_register_window (size_rtx);
+ emit_window_save (size_rtx);
}
}
diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md
index 2c8d306..7d5d6dc 100644
--- a/gcc/config/sparc/sparc.md
+++ b/gcc/config/sparc/sparc.md
@@ -6276,10 +6276,10 @@
DONE;
})
-;; The "save register window" insn is modelled as follows. The dwarf2
-;; information is manually added in emit_save_register_window in sparc.c.
+;; The "register window save" insn is modelled as follows. The dwarf2
+;; information is manually added in emit_window_save.
-(define_insn "save_register_window_1"
+(define_insn "window_save"
[(unspec_volatile
[(match_operand 0 "arith_operand" "rI")]
UNSPECV_SAVEW)]