re PR middle-end/58670 (asm goto miscompilation)
authorJakub Jelinek <jakub@redhat.com>
Thu, 10 Oct 2013 16:29:50 +0000 (18:29 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 10 Oct 2013 16:29:50 +0000 (18:29 +0200)
commita1d5038607b04afa011d77552c0193d2cd8e1251
tree8c578f08248bdbe39d7433a888f50d829017121e
parente2c2fde2105b83ec8c4fcc664969df2437467c36
re PR middle-end/58670 (asm goto miscompilation)

PR middle-end/58670
* stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
if any labels are in FALLTHRU_BB, use a special label emitted
immediately after the asm goto insn rather than label_rtx
of the LABEL_DECL.
(expand_asm_stmt): Adjust caller.
* cfgrtl.c (commit_one_edge_insertion): Force splitting of
edge if the last insn in predecessor is a jump with single successor,
but it isn't simplejump_p.

* gcc.dg/torture/pr58670.c: New test.

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