re PR rtl-optimization/53589 (ICE in maybe_record_trace_start with asm goto)
commit891ca07d493c51f468710ba0f4af74bbe5e09fdd
authorJakub Jelinek <jakub@redhat.com>
Tue, 12 Jun 2012 07:52:47 +0000 (12 09:52 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 12 Jun 2012 07:52:47 +0000 (12 09:52 +0200)
treea98e47f2089f21dfa76a5978eefa408198dace25
parented6a1ff9879de13a0458ff31a3cb50db7a207881
re PR rtl-optimization/53589 (ICE in maybe_record_trace_start with asm goto)

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.

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