summaryrefslogtreecommitdiff
path: root/vm_exec.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-26 20:14:16 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-26 20:14:16 +0000
commit2215293a6607e8777b8201cdfe22589b3001c592 (patch)
tree2cbfedf0c2b925a43bb741afd2228671c31fc12b /vm_exec.c
parentc21350f902fba58ccbbbd42d004ee1731be6a4d9 (diff)
* vm_exec.c (DECL_SC_REG): check defined(__asm__) before use it.
LLVM/clang defines __GNUC__ but doesn't have __asm__.. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25493 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 51b8a0f142..a2c3541727 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__
+#elif __GNUC__ && __x86_64__ && defined(__asm__)
#define DECL_SC_REG(type, r, reg) register type reg_##r __asm__("r" reg)
-#elif __GNUC__ && __i386__
+#elif __GNUC__ && __i386__ && defined(__asm__)
#define DECL_SC_REG(type, r, reg) register type reg_##r __asm__("e" reg)
#else