Added ~{memory} clobber when a jump_target is generated in inline asm (branch out of inline asm)

This commit is contained in:
Tomas Lindquist Olsen
2009-03-03 19:18:47 +01:00
parent f0d33b1b20
commit ae214b18e7
2 changed files with 9 additions and 3 deletions

View File

@@ -594,6 +594,7 @@ void AsmBlockStatement::toIR(IRState* p)
// setup variable for output from asm
outSetterStmt->out_c = "=*m,";
outSetterStmt->out.push_back(jump_target);
asmblock->clobs.insert("~{memory},");
asmblock->s.push_back(outSetterStmt);
}