summaryrefslogtreecommitdiff
path: root/vm_exec.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-27 00:29:06 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-27 00:29:06 (GMT)
commit404ed4f8d44ccd849a4d3a37450ba2f95ad317bb (patch)
treee2a1cd682a4abcb77f0c6908b17688d67cc4f270 /vm_exec.c
parent609030816bd613a4cae397227cadbfa0ae7c6c57 (diff)
* vm_exec.c (DECL_SC_REG): use __clang__.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_exec.c')
-rw-r--r--vm_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_exec.c b/vm_exec.c
index a2c3541..d7f9add 100644
--- a/vm_exec.c
+++ b/vm_exec.c
@@ -14,10 +14,10 @@
#if VMDEBUG > 0
#define DECL_SC_REG(type, r, reg) register type reg_##r
-#elif __GNUC__ && __x86_64__ && defined(__asm__)
+#elif __GNUC__ && __x86_64__ && !__clang__
#define DECL_SC_REG(type, r, reg) register type reg_##r __asm__("r" reg)
-#elif __GNUC__ && __i386__ && defined(__asm__)
+#elif __GNUC__ && __i386__ && !__clang__
#define DECL_SC_REG(type, r, reg) register type reg_##r __asm__("e" reg)
#else