From: Steven Bosscher Date: Thu, 13 Mar 2014 18:01:48 +0000 (+0000) Subject: re PR rtl-optimization/57320 (Shrink-wrapping leaves unreachable blocks in the CFG) X-Git-Tag: releases/gcc-4.9.0~464 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bdc6e1ae29dbca4e3a51f6c06373f0425c239814;p=thirdparty%2Fgcc.git re PR rtl-optimization/57320 (Shrink-wrapping leaves unreachable blocks in the CFG) PR rtl-optimization/57320 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup the CFG after thread_prologue_and_epilogue_insns. From-SVN: r208551 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 91b1e41559ef..7591cae271bc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-03-13 Steven Bosscher + + PR rtl-optimization/57320 + * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup + the CFG after thread_prologue_and_epilogue_insns. + 2014-03-13 Vladimir Makarov PR rtl-optimization/57189 diff --git a/gcc/function.c b/gcc/function.c index e67d3c1553f8..a61e4757c7a2 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -6991,6 +6991,10 @@ rest_of_handle_thread_prologue_and_epilogue (void) scheduling to operate in the epilogue. */ thread_prologue_and_epilogue_insns (); + /* Shrink-wrapping can result in unreachable edges in the epilogue, + see PR57320. */ + cleanup_cfg (0); + /* The stack usage info is finalized during prologue expansion. */ if (flag_stack_usage_info) output_stack_usage ();