[CRIU] [PATCH] restorer: Add "memory" constraint into asm
statement
Glauber Costa
glommer at parallels.com
Tue Sep 25 05:39:23 EDT 2012
On 09/24/2012 07:23 PM, Cyrill Gorcunov wrote:
> 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;
> }
>
You can just add "" if you don't want to actually clobber memory, IIRC.
More information about the CRIU
mailing list