PR rtl-optimization/53589
commit92f67f6e28f7c71fbd7c7c6b40c04d614b5989cf
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Jun 2012 07:52:47 +0000 (12 07:52 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Jun 2012 07:52:47 +0000 (12 07:52 +0000)
treea98e47f2089f21dfa76a5978eefa408198dace25
parent4830f67040a6ee5c57c4b995c85733c26ec71f80
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188428 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cfgrtl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr53589.c [new file with mode: 0644]