(fixup_gotos): When running undefined labels, if no cleanup actions
authorRichard Kenner <kenner@gcc.gnu.org>
Sun, 29 Sep 1996 15:21:58 +0000 (11:21 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Sun, 29 Sep 1996 15:21:58 +0000 (11:21 -0400)
for this block, don't clear BEFORE_JUMP.

From-SVN: r12854

gcc/stmt.c

index 5e4edc5b32b901f0112b161bc71cea71c1a773e1..3b6e147db30f758f50feca6824befed4d69e1664 100644 (file)
@@ -1244,8 +1244,9 @@ fixup_gotos (thisblock, stack_level, cleanup_list, first_insn, dont_jump_in)
              cleanup_insns = get_insns ();
              poplevel (1, 0, 0);
              end_sequence ();
-             f->before_jump
-               = emit_insns_after (cleanup_insns, f->before_jump);
+             if (cleanup_insns != 0)
+               f->before_jump
+                 = emit_insns_after (cleanup_insns, f->before_jump);
 
              f->cleanup_list_list = TREE_CHAIN (lists);
            }