Permalink
Browse files

* vm_insnhelper.c (vm_call_cfunc): added volatile for a workaround

  of cfp consistency error problem on OS X 10.7 (Lion). It's
  suspected llvm optimization bug.
  [Bug #5076] [ruby-dev:44185]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent b5f91de commit 5975e9e008111d82885946b104fbe3f8fb800160 @kosaki kosaki committed Jul 22, 2011
Showing with 8 additions and 1 deletion.
  1. +7 −0 ChangeLog
  2. +1 −1 vm_insnhelper.c
View
@@ -1,3 +1,10 @@
+Fri Jul 22 21:46:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+
+ * vm_insnhelper.c (vm_call_cfunc): added volatile for a workaround
+ of cfp consistency error problem on OS X 10.7 (Lion). It's
+ suspected llvm optimization bug.
+ [Bug #5076] [ruby-dev:44185]
+
Fri Jul 22 21:18:20 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/uri/generic.rb (WFKV_): unroll the loop of regexp.
View
@@ -387,7 +387,7 @@ call_cfunc(VALUE (*func)(), VALUE recv,
static inline VALUE
vm_call_cfunc(rb_thread_t *th, volatile rb_control_frame_t *reg_cfp,
- int num, VALUE recv, const rb_block_t *blockptr,
+ int num, volatile VALUE recv, const rb_block_t *blockptr,
const rb_method_entry_t *me)
{
volatile VALUE val = 0;

0 comments on commit 5975e9e

Please sign in to comment.