summaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorabel <abel@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-20 06:22:24 +0000
committerabel <abel@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-20 06:22:24 +0000
commitfb10e416832420e5b54b445994e964687a62fbba (patch)
treebb65cfd4f121aa6987a4d05b2a5c8a06029f4d05 /gcc/function.c
parent455cbff29d860eb0a14538d676b6b0311bf8f01f (diff)
downloadgcc-fb10e416832420e5b54b445994e964687a62fbba.tar.gz
gcc:/
2012-01-20 Andrey Belevantsev <abel@ispras.ru> PR target/51106 * function.c (instantiate_virtual_regs_in_insn): Use delete_insn_and_edges when removing a wrong asm insn. testsuite:/ 2012-01-20 Jakub Jelinek <jakub@redhat.com> PR target/51106 * gcc.dg/torture/pr51106-1.c: New test. * gcc.dg/torture/pr51106-2.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183325 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c
index fcb79f5d1b8..94e51f401c3 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -1737,7 +1737,7 @@ instantiate_virtual_regs_in_insn (rtx insn)
if (!check_asm_operands (PATTERN (insn)))
{
error_for_asm (insn, "impossible constraint in %<asm%>");
- delete_insn (insn);
+ delete_insn_and_edges (insn);
}
}
else