ruby-changes:17414
From: naruse <ko1@a...>
Date: Thu, 7 Oct 2010 09:54:30 +0900 (JST)
Subject: [ruby-changes:17414] Ruby:r29419 (trunk): * vm_exec.c (vm_exec_core): Treat clang as non gcc on this
naruse 2010-10-07 09:48:03 +0900 (Thu, 07 Oct 2010) New Revision: 29419 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29419 Log: * vm_exec.c (vm_exec_core): Treat clang as non gcc on this context: It has __asm__ but doesn't works well. Modified files: trunk/ChangeLog trunk/vm_exec.c Index: ChangeLog =================================================================== --- ChangeLog (revision 29418) +++ ChangeLog (revision 29419) @@ -1,3 +1,8 @@ +Thu Oct 7 09:14:28 2010 NARUSE, Yui <naruse@r...> + + * vm_exec.c (vm_exec_core): Treat clang as non gcc on this + context: It has __asm__ but doesn't works well. + Wed Oct 6 12:28:22 2010 Tanaka Akira <akr@f...> * lib/uri/generic.rb (URI::Generic#hostname): new method. Index: vm_exec.c =================================================================== --- vm_exec.c (revision 29418) +++ vm_exec.c (revision 29419) @@ -40,7 +40,7 @@ #if OPT_STACK_CACHING #if 0 -#elif __GNUC__ && __x86_64 +#elif __GNUC__ && __x86_64 && !__clang__ DECL_SC_REG(VALUE, a, "12"); DECL_SC_REG(VALUE, b, "13"); #else @@ -49,12 +49,12 @@ #endif #endif -#if __GNUC__ && __i386__ +#if __GNUC__ && __i386__ && !__clang__ DECL_SC_REG(VALUE *, pc, "di"); DECL_SC_REG(rb_control_frame_t *, cfp, "si"); #define USE_MACHINE_REGS 1 -#elif __GNUC__ && __x86_64__ +#elif __GNUC__ && __x86_64__ && !__clang__ DECL_SC_REG(VALUE *, pc, "14"); DECL_SC_REG(rb_control_frame_t *, cfp, "15"); #define USE_MACHINE_REGS 1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/