summaryrefslogtreecommitdiff
path: root/vm_exec.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-31 02:08:58 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-31 02:08:58 (GMT)
commit70c97ec80522630a184ae8f541d71165cbb68d22 (patch)
treec1955a69cb1b39fd57142cb3b6ca7f8fcb35b5ab /vm_exec.c
parentb4bc82392d479d58da3fba053e55e06398102fec (diff)
* vm_exec.c: remove conditions for clang
because clang version 3.0 (trunk 132165) doesn't need them. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_exec.c')
-rw-r--r--vm_exec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vm_exec.c b/vm_exec.c
index 82a4267..fdfaa29 100644
--- a/vm_exec.c
+++ b/vm_exec.c
@@ -11,7 +11,7 @@
#include <math.h>
-#if (VMDEBUG > 0) || defined(__clang)
+#if VMDEBUG > 0
#define DECL_SC_REG(type, r, reg) register type reg_##r
#elif __GNUC__ && __x86_64__
@@ -40,7 +40,7 @@ vm_exec_core(rb_thread_t *th, VALUE initial)
#if OPT_STACK_CACHING
#if 0
-#elif __GNUC__ && __x86_64 && !__clang__
+#elif __GNUC__ && __x86_64__
DECL_SC_REG(VALUE, a, "12");
DECL_SC_REG(VALUE, b, "13");
#else
@@ -49,12 +49,12 @@ vm_exec_core(rb_thread_t *th, VALUE initial)
#endif
#endif
-#if __GNUC__ && __i386__ && !__clang__
+#if __GNUC__ && __i386__
DECL_SC_REG(VALUE *, pc, "di");
DECL_SC_REG(rb_control_frame_t *, cfp, "si");
#define USE_MACHINE_REGS 1
-#elif __GNUC__ && __x86_64__ && !__clang__
+#elif __GNUC__ && __x86_64__
DECL_SC_REG(VALUE *, pc, "14");
DECL_SC_REG(rb_control_frame_t *, cfp, "15");
#define USE_MACHINE_REGS 1