]> gcc.gnu.org Git - gcc.git/commitdiff
(add_insn_{before,after}): Abort if insertion point is a deleted insn.
authorRichard Kenner <kenner@gcc.gnu.org>
Sun, 2 Oct 1994 00:34:45 +0000 (20:34 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Sun, 2 Oct 1994 00:34:45 +0000 (20:34 -0400)
From-SVN: r8193

gcc/emit-rtl.c

index 8a00d6b0498b35008dcb1450b69f93539aeb595b..490598cd94e7c0db0127bccb054732b8092ab07b 100644 (file)
@@ -2132,7 +2132,7 @@ add_insn (insn)
 
 /* Add INSN into the doubly-linked list after insn AFTER.  This and
    the next should be the only functions called to insert an insn once
-   delay slots have been filled since only they knows how to update a
+   delay slots have been filled since only they know how to update a
    SEQUENCE.  */
 
 void
@@ -2141,6 +2141,9 @@ add_insn_after (insn, after)
 {
   rtx next = NEXT_INSN (after);
 
+  if (INSN_DELETED_P (after))
+    abort ();
+
   NEXT_INSN (insn) = next;
   PREV_INSN (insn) = after;
 
@@ -2174,7 +2177,7 @@ add_insn_after (insn, after)
 
 /* Add INSN into the doubly-linked list before insn BEFORE.  This and
    the previous should be the only functions called to insert an insn once
-   delay slots have been filled since only they knows how to update a
+   delay slots have been filled since only they know how to update a
    SEQUENCE.  */
 
 void
@@ -2183,6 +2186,9 @@ add_insn_before (insn, before)
 {
   rtx prev = PREV_INSN (before);
 
+  if (INSN_DELETED_P (before))
+    abort ();
+
   PREV_INSN (insn) = prev;
   NEXT_INSN (insn) = before;
 
This page took 0.073507 seconds and 5 git commands to generate.