+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
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. */
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)));
}
{
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);
}
}
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)]