Re: [PATCH] Fix asm goto miscompilation of Linux kernel (PR middle-end/58670)

2013-10-10 Thread Richard Henderson
On 10/10/2013 03:22 AM, Jakub Jelinek wrote: > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk and 4.8? > > 2013-10-10 Jakub Jelinek > > PR middle-end/58670 > * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument, > if any labels are in FALLTHRU_BB, use

[PATCH] Fix asm goto miscompilation of Linux kernel (PR middle-end/58670)

2013-10-10 Thread Jakub Jelinek
Hi! The following testcase distilled from Linux kernel is miscompiled, in *.optimized we end up with asm goto whose only label points to the fallthru basic block. During expansion, we unfortunately put further instructions after it into the same basic block (one in expand_gimple_block: /* Expan