Re: [PATCH] Fix ICE with asm goto and shrink wrapping (PR rtl-optimization/53589)

2012-06-11 Thread Richard Henderson
On 2012-06-06 23:53, Jakub Jelinek wrote: > 2012-06-07 Jakub Jelinek > > 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'

[PATCH] Fix ICE with asm goto and shrink wrapping (PR rtl-optimization/53589)

2012-06-06 Thread Jakub Jelinek
Hi! On the following testcase we ICE, because shrink-wrapping ends up calling force_nonfallthru_and_redirect on a BB that ends with asm goto that has some labels point to the fallthru block as well (i.e. asm goto ("..." : : : : lab); lab:;). The problem was that in that case the labels weren't ad