From e40a0b691b871198b495c035736f55e074542296 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Thu, 28 Jul 2011 22:47:21 +0000 Subject: [PATCH] re PR rtl-optimization/49891 (ICE in redirect_jump_1) PR rtl-optimization/49891 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for newly created returnjumps. From-SVN: r176905 --- gcc/ChangeLog | 6 ++++++ gcc/cfgrtl.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 015724c506d..c304e8245b6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-07-29 Bernd Schmidt + + PR rtl-optimization/49891 + * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for + newly created returnjumps. + 2011-07-28 DJ Delorie * expr.c (expand_expr_addr_expr_1): Detect a user request for a diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index 69377957cd6..b60041ad9c8 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -1254,6 +1254,7 @@ force_nonfallthru_and_redirect (edge e, basic_block target) { #ifdef HAVE_return emit_jump_insn_after_setloc (gen_return (), BB_END (jump_block), loc); + JUMP_LABEL (BB_END (jump_block)) = ret_rtx; #else gcc_unreachable (); #endif -- 2.30.2