summaryrefslogtreecommitdiff
path: root/vm_exec.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-23 17:34:58 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-23 17:34:58 +0000
commit60aa9c809b58b214cba304b28f5813c8a7399a92 (patch)
tree36cb850b95f9d84d00bd98666e00b8232c2c0146 /vm_exec.c
parentc34db589139980914f0b05d27b2499ac5bec615a (diff)
* include/ruby/intern.h: pcc can't use __builtin_constant_p.
* vm_exec.c: change condition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_exec.c')
-rw-r--r--vm_exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_exec.c b/vm_exec.c
index 15003c4e56..82a42679a4 100644
--- a/vm_exec.c
+++ b/vm_exec.c
@@ -11,13 +11,13 @@
#include <math.h>
-#if VMDEBUG > 0
+#if (VMDEBUG > 0) || defined(__clang)
#define DECL_SC_REG(type, r, reg) register type reg_##r
-#elif __GNUC__ && __x86_64__ && !__clang__
+#elif __GNUC__ && __x86_64__
#define DECL_SC_REG(type, r, reg) register type reg_##r __asm__("r" reg)
-#elif __GNUC__ && __i386__ && !__clang__
+#elif __GNUC__ && __i386__
#define DECL_SC_REG(type, r, reg) register type reg_##r __asm__("e" reg)
#else