diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-26 20:14:16 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-26 20:14:16 +0000 |
commit | 2215293a6607e8777b8201cdfe22589b3001c592 (patch) | |
tree | 2cbfedf0c2b925a43bb741afd2228671c31fc12b /vm_exec.c | |
parent | c21350f902fba58ccbbbd42d004ee1731be6a4d9 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |