]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fixed an AMD64 bug reported by Evgeniy Stepanov: the order of
authorBart Van Assche <bvanassche@acm.org>
Sun, 5 Sep 2010 12:10:25 +0000 (12:10 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sun, 5 Sep 2010 12:10:25 +0000 (12:10 +0000)
VALGRIND_CALL_NOREDIR_RAX and addq $128,%%rsp was wrong in CALL_FN_W_6W().
See also #243270.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11340

include/valgrind.h

index 85cb0746e89772c0a057848f311439f6107b7df9..2076df9995af4ea7472885ac9a5b3578cbc6bee5 100644 (file)
@@ -1366,8 +1366,8 @@ typedef
          "movq 16(%%rax), %%rsi\n\t"                              \
          "movq 8(%%rax), %%rdi\n\t"                               \
          "movq (%%rax), %%rax\n\t"  /* target->%rax */            \
-         "addq $128,%%rsp\n\t"                                    \
          VALGRIND_CALL_NOREDIR_RAX                                \
+         "addq $128,%%rsp\n\t"                                    \
          : /*out*/   "=a" (_res)                                  \
          : /*in*/    "a" (&_argvec[0])                            \
          : /*trash*/ "cc", "memory", __CALLER_SAVED_REGS          \