pa.md (call expander): Use emit_insn_before to emit an insn to save the PIC register...
authorJeff Law <law@gcc.gnu.org>
Wed, 4 Jan 1995 09:26:45 +0000 (02:26 -0700)
committerJeff Law <law@gcc.gnu.org>
Wed, 4 Jan 1995 09:26:45 +0000 (02:26 -0700)
* 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

gcc/config/pa/pa.md

index 43ce61090a37cce22ef219f6663ad1e24055e3ff..b7c187c19a9b427a62727a732ba7e170e4dc18a1 100644 (file)
       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,
       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,