Commit 58bbca8e by Jeff Law

pa.md (call expander): Use emit_insn_before to emit an insn to save the PIC…

pa.md (call expander): Use emit_insn_before to emit an insn to save the PIC register before a function...

	* pa.md (call expander): Use emit_insn_before to emit an insn to
	save the PIC register before a function call.
	(call_value expander): Likewise.

From-SVN: r8718
parent 4fc7cf69
...@@ -3195,12 +3195,10 @@ ...@@ -3195,12 +3195,10 @@
if (!hppa_save_pic_table_rtx) if (!hppa_save_pic_table_rtx)
{ {
hppa_save_pic_table_rtx = gen_reg_rtx (Pmode); hppa_save_pic_table_rtx = gen_reg_rtx (Pmode);
push_topmost_sequence (); emit_insn_before (gen_rtx (SET, VOIDmode,
emit_insn_after (gen_rtx (SET, VOIDmode,
hppa_save_pic_table_rtx, hppa_save_pic_table_rtx,
pic_offset_table_rtx), pic_offset_table_rtx),
get_insns ()); call_insn);
pop_topmost_sequence ();
} }
emit_insn (gen_rtx (SET, VOIDmode, pic_offset_table_rtx, emit_insn (gen_rtx (SET, VOIDmode, pic_offset_table_rtx,
...@@ -3293,12 +3291,10 @@ ...@@ -3293,12 +3291,10 @@
if (!hppa_save_pic_table_rtx) if (!hppa_save_pic_table_rtx)
{ {
hppa_save_pic_table_rtx = gen_reg_rtx (Pmode); hppa_save_pic_table_rtx = gen_reg_rtx (Pmode);
push_topmost_sequence (); emit_insn_before (gen_rtx (SET, VOIDmode,
emit_insn_after (gen_rtx (SET, VOIDmode,
hppa_save_pic_table_rtx, hppa_save_pic_table_rtx,
pic_offset_table_rtx), pic_offset_table_rtx),
get_insns ()); call_insn);
pop_topmost_sequence ();
} }
emit_insn (gen_rtx (SET, VOIDmode, pic_offset_table_rtx, emit_insn (gen_rtx (SET, VOIDmode, pic_offset_table_rtx,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment