(expand_elseif): New function.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 15 Aug 1994 21:56:27 +0000 (17:56 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 15 Aug 1994 21:56:27 +0000 (17:56 -0400)
From-SVN: r7931

gcc/stmt.c

index 01228734d692f451adb9bfc9afb5ee84d6317ab9..e65b9fc7bc93220c5aac52137862fd1812772a16 100644 (file)
@@ -1932,6 +1932,17 @@ expand_start_else ()
   cond_stack->data.cond.next_label = 0;  /* No more _else or _elseif calls. */
 }
 
+/* After calling expand_start_else, turn this "else" into an "else if"
+   by providing another condition.  */
+
+void
+expand_elseif (cond)
+     tree cond;
+{
+  cond_stack->data.cond.next_label = gen_label_rtx ();
+  do_jump (cond, cond_stack->data.cond.next_label, NULL_RTX);
+}
+
 /* Generate RTL for the end of an if-then.
    Pop the record for it off of cond_stack.  */