@@ -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
new file mode 100644
@@ -0,0 +1,19 @@
+/* { dg-options "-w" } */
+/* { dg-prune-output "impossible constraint" } */
+int
+foo (int x)
+{
+ asm goto ("" : : "i" (x) : : lab);
+ return 1;
+lab:
+ return 0;
+}
+
+int
+bar (int x)
+{
+ asm goto ("" : : "i" (x) : : lab);
+ __builtin_unreachable ();
+lab:
+ return 0;
+}