* 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
This commit is contained in:
kosaki 2011-07-22 12:52:25 +00:00
Родитель b5f91deee0
Коммит 5975e9e008
2 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -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.

Просмотреть файл

@ -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;