]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/gcc-tumbl.git/commit
Backported from mainline
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Jun 2012 17:49:49 +0000 (17:49 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Jun 2012 17:49:49 +0000 (17:49 +0000)
commit2d8098311f7ecca4621d83af2b7aba09431e6e6b
tree4391ab8c63652b4c7fba2ce2012e09656cb3498d
parentf4046ef287ebc34ebe9becf8727cddf0fa24b9b8
Backported from mainline
2012-06-12  Jakub Jelinek  <jakub@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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@188626 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]