http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54127
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-01 13:57:51 UTC --- Author: jakub Date: Fri Feb 1 13:57:46 2013 New Revision: 195648 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195648 Log: Backported from mainline 2012-11-13 Jakub Jelinek <ja...@redhat.com> PR rtl-optimization/54127 * cfgrtl.c (force_nonfallthru_and_redirect): When redirecting asm goto labels from BB_HEAD (e->dest) to target bb, decrement LABEL_NUSES of BB_HEAD (e->dest) and increment LABEL_NUSES of BB_HEAD (target) appropriately and adjust JUMP_LABEL and/or REG_LABEL_TARGET and REG_LABEL_OPERAND. * gcc.dg/torture/pr54127.c: New test. Added: branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/torture/pr54127.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