mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_exec.h (END_INSN): revert r39517 because the segv seems fixed by
r39806. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9b113a0d6b
commit
f8eaf3c625
2 changed files with 5 additions and 12 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Mar 18 11:03:23 2013 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* vm_exec.h (END_INSN): revert r39517 because the segv seems fixed by
|
||||||
|
r39806.
|
||||||
|
|
||||||
Mon Mar 18 10:41:06 2013 NARUSE, Yui <naruse@ruby-lang.org>
|
Mon Mar 18 10:41:06 2013 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* vm_exec.c: Correct predefined macro name. This typo is introduced by
|
* vm_exec.c: Correct predefined macro name. This typo is introduced by
|
||||||
|
|
12
vm_exec.h
12
vm_exec.h
|
@ -116,21 +116,9 @@ error !
|
||||||
|
|
||||||
#endif /* DISPATCH_DIRECT_THREADED_CODE */
|
#endif /* DISPATCH_DIRECT_THREADED_CODE */
|
||||||
|
|
||||||
#if defined(__llvm__) && !defined(__clang__)
|
|
||||||
/* llvm-gcc may optimize out reg_cfp and cause Stack/cfp consistency error
|
|
||||||
* when the instruction doesn't use reg_cfp.
|
|
||||||
* Usually instructions use PUSH() but for example trace doesn't.
|
|
||||||
* This hack cause speed down but you shouldn't use llvm-gcc, use clang.
|
|
||||||
*/
|
|
||||||
#define END_INSN(insn) \
|
|
||||||
{ rb_control_frame_t *volatile RB_UNUSED_VAR(tmpcfp) = reg_cfp; } \
|
|
||||||
DEBUG_END_INSN(); \
|
|
||||||
TC_DISPATCH(insn);
|
|
||||||
#else
|
|
||||||
#define END_INSN(insn) \
|
#define END_INSN(insn) \
|
||||||
DEBUG_END_INSN(); \
|
DEBUG_END_INSN(); \
|
||||||
TC_DISPATCH(insn);
|
TC_DISPATCH(insn);
|
||||||
#endif
|
|
||||||
|
|
||||||
#define INSN_DISPATCH() \
|
#define INSN_DISPATCH() \
|
||||||
TC_DISPATCH(__START__) \
|
TC_DISPATCH(__START__) \
|
||||||
|
|
Loading…
Reference in a new issue