[pypy-svn] pypy default: Try to improve the nonsense we get from gcc
fijal
commits-noreply at bitbucket.org
Tue Jan 18 13:30:12 CET 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r40843:8334b87e7aa8
Date: 2011-01-18 14:12 +0200
http://bitbucket.org/pypy/pypy/changeset/8334b87e7aa8/
Log: Try to improve the nonsense we get from gcc
diff --git a/pypy/translator/c/src/asm_gcc_x86_64.h b/pypy/translator/c/src/asm_gcc_x86_64.h
--- a/pypy/translator/c/src/asm_gcc_x86_64.h
+++ b/pypy/translator/c/src/asm_gcc_x86_64.h
@@ -3,6 +3,6 @@
#define READ_TIMESTAMP(val) do { \
unsigned long _rax, _rdx; \
- asm volatile("rdtsc" : "=rax"(_rax), "=rdx"(_rdx)); \
+ asm volatile("rdtsc" : "=a"(_rax), "=d"(_rdx)); \
val = (_rdx << 32) | _rax; \
} while (0)
More information about the Pypy-commit
mailing list