http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53589
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-06-14 17:49:54 UTC --- Author: jakub Date: Thu Jun 14 17:49:49 2012 New Revision: 188626 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188626 Log: Backported from mainline 2012-06-12 Jakub Jelinek <ja...@redhat.com> PR rtl-optimization/53589 * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge discovery even when e->dest != target. If any LABEL_REF points to e->dest label, redirect it to target's label. * gcc.dg/torture/pr53589.c: New test. Added: branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/torture/pr53589.c Modified: branches/gcc-4_7-branch/gcc/ChangeLog branches/gcc-4_7-branch/gcc/cfgrtl.c branches/gcc-4_7-branch/gcc/testsuite/ChangeLog