]> gcc.gnu.org Git - gcc.git/commitdiff
ia64.c (spill_restore_mem): Handle emitting the first insn in a sequence.
authorRichard Henderson <rth@cygnus.com>
Fri, 18 Aug 2000 03:03:50 +0000 (20:03 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 18 Aug 2000 03:03:50 +0000 (20:03 -0700)
        * config/ia64/ia64.c (spill_restore_mem): Handle emitting
        the first insn in a sequence.

From-SVN: r35772

gcc/ChangeLog
gcc/config/ia64/ia64.c

index e7705dc9c9306ef2d6a4fa63410cbd5299f5c0fe..9de491696b8420decacd8aed6073344edf666835 100644 (file)
@@ -1,3 +1,8 @@
+2000-08-17  Richard Henderson  <rth@cygnus.com>
+
+       * config/ia64/ia64.c (spill_restore_mem): Handle emitting
+       the first insn in a sequence.
+
 Thu Aug 17 22:40:05 EDT 2000  John Wehle  (john@feith.com)
 
        * alias.c (true_dependence, write_dependence_p): A read
index 44bc8d86dee7c555c2507ff2d5306df6cda33393..0c16cd3a100001c2e24437abab4650f97436926d 100644 (file)
@@ -1398,8 +1398,14 @@ spill_restore_mem (reg, cfa_off)
        spill_fill_data.init_after
          = emit_insn_after (seq, spill_fill_data.init_after);
       else
-       spill_fill_data.init_after
-         = emit_insn_before (seq, get_insns ());
+       {
+         rtx first = get_insns ();
+         if (first)
+           spill_fill_data.init_after
+             = emit_insn_before (seq, first);
+         else
+           spill_fill_data.init_after = emit_insn (seq);
+       }
     }
 
   mem = gen_rtx_MEM (GET_MODE (reg), spill_fill_data.iter_reg[iter]);
This page took 0.084496 seconds and 5 git commands to generate.