From: Richard Kenner Date: Sun, 29 Sep 1996 15:21:58 +0000 (-0400) Subject: (fixup_gotos): When running undefined labels, if no cleanup actions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=412c00dcfa6575dc08653a65801e68369d343444;p=gcc.git (fixup_gotos): When running undefined labels, if no cleanup actions for this block, don't clear BEFORE_JUMP. From-SVN: r12854 --- diff --git a/gcc/stmt.c b/gcc/stmt.c index 5e4edc5b32b..3b6e147db30 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -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); }