[CRIU] [PATCH] restorer: Add "memory" constraint into asm statement

Cyrill Gorcunov gorcunov at openvz.org
Mon Sep 24 11:23:02 EDT 2012


It seems otherwise older gcc compilers do treat this
statement as incomplete.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 restorer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/restorer.c b/restorer.c
index d516bed..df95e00 100644
--- a/restorer.c
+++ b/restorer.c
@@ -705,6 +705,6 @@ core_restore_failed:
 		"jmp *%%rax				\n"
 		:
 		: "r"(ret)
-		: );
+		: "memory");
 	return ret;
 }
-- 
1.7.7.6



More information about the CRIU mailing list