diff options
author | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2011-04-26 07:52:44 +0000 |
---|---|---|
committer | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2011-04-26 07:52:44 +0000 |
commit | f068f19a59fbd35d94d9c76beef1433d3d41be8e (patch) | |
tree | 662da0d510417fc48c6a39e0f985c159c3b10b45 | |
parent | 6d06b390d6ced1600acbefeea6b8cee3a51143f2 (diff) |
Fix a couple of bogus asm constraints observed when trying to build
V with clang-2.9.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11707 a5019735-40e9-0310-863c-91ae7b9d1cf9
-rw-r--r-- | coregrind/m_debuglog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coregrind/m_debuglog.c b/coregrind/m_debuglog.c index 257d9468..06322cbe 100644 --- a/coregrind/m_debuglog.c +++ b/coregrind/m_debuglog.c @@ -82,7 +82,7 @@ static UInt local_sys_write_stderr ( HChar* buf, Int n ) "movl %%eax, 0(%%ebx)\n" /* block[0] = result */ "popl %%ebx\n" /* restore ebx */ : /*wr*/ - : /*rd*/ "g" (block) + : /*rd*/ "r" (block) : /*trash*/ "eax", "edi", "ecx", "edx", "memory", "cc" ); if (block[0] < 0) @@ -125,7 +125,7 @@ static UInt local_sys_write_stderr ( HChar* buf, Int n ) "popq %%r15\n" /* restore r15 */ "addq $256, %%rsp\n" /* restore stack ptr */ : /*wr*/ - : /*rd*/ "g" (block) + : /*rd*/ "r" (block) : /*trash*/ "rax", "rdi", "rsi", "rdx", "memory", "cc" ); if (block[0] < 0) |