diff gen/asmstmt.cpp @ 1036:01544da4cdd8

Added ~{memory} clobber when a jump_target is generated in inline asm (branch out of inline asm)
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 03 Mar 2009 19:18:47 +0100
parents 125c09006ac6
children 1d8a8ecf14e1
line wrap: on
line diff
--- a/gen/asmstmt.cpp	Tue Mar 03 19:03:27 2009 +0100
+++ b/gen/asmstmt.cpp	Tue Mar 03 19:18:47 2009 +0100
@@ -594,6 +594,7 @@
             // 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);
         }