re PR rtl-optimization/54127 (ICE in maybe_record_trace_start with asm goto, --target...
authorJakub Jelinek <jakub@gcc.gnu.org>
Tue, 13 Nov 2012 07:23:51 +0000 (08:23 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 13 Nov 2012 07:23:51 +0000 (08:23 +0100)
commit5d68b7e60b0b2f26624477ff0b7ef9f2595c9325
treeeda1ced99836a0df02e841aa54853a4b335cfb58
parent42b04d70a11b1987f5c04eff067de7e4fa345d7c
re PR rtl-optimization/54127 (ICE in maybe_record_trace_start with asm goto, --target=powerpc-unknown-linux-gnu)

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.

From-SVN: r193470
gcc/ChangeLog
gcc/cfgrtl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr54127.c [new file with mode: 0644]