aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1995-01-04 02:26:45 -0700
committerJeff Law <law@gcc.gnu.org>1995-01-04 02:26:45 -0700
commit58bbca8efb4c1c8554689f3aa527b89f7d8bd895 (patch)
tree9f1e26dffca1348f61a53bd53d9cba6925ab31d3
parent4fc7cf69bad8a143cb50bee5caa6ac536eca4c98 (diff)
downloadgcc-58bbca8efb4c1c8554689f3aa527b89f7d8bd895.zip
gcc-58bbca8efb4c1c8554689f3aa527b89f7d8bd895.tar.gz
gcc-58bbca8efb4c1c8554689f3aa527b89f7d8bd895.tar.bz2
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
-rw-r--r--gcc/config/pa/pa.md12
1 files changed, 4 insertions, 8 deletions
diff --git a/gcc/config/pa/pa.md b/gcc/config/pa/pa.md
index 43ce610..b7c187c 100644
--- a/gcc/config/pa/pa.md
+++ b/gcc/config/pa/pa.md
@@ -3195,12 +3195,10 @@
if (!hppa_save_pic_table_rtx)
{
hppa_save_pic_table_rtx = gen_reg_rtx (Pmode);
- push_topmost_sequence ();
- emit_insn_after (gen_rtx (SET, VOIDmode,
+ emit_insn_before (gen_rtx (SET, VOIDmode,
hppa_save_pic_table_rtx,
pic_offset_table_rtx),
- get_insns ());
- pop_topmost_sequence ();
+ call_insn);
}
emit_insn (gen_rtx (SET, VOIDmode, pic_offset_table_rtx,
@@ -3293,12 +3291,10 @@
if (!hppa_save_pic_table_rtx)
{
hppa_save_pic_table_rtx = gen_reg_rtx (Pmode);
- push_topmost_sequence ();
- emit_insn_after (gen_rtx (SET, VOIDmode,
+ emit_insn_before (gen_rtx (SET, VOIDmode,
hppa_save_pic_table_rtx,
pic_offset_table_rtx),
- get_insns ());
- pop_topmost_sequence ();
+ call_insn);
}
emit_insn (gen_rtx (SET, VOIDmode, pic_offset_table_rtx,