diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-19 05:43:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-19 05:43:20 +0000 |
commit | c7853b4344d821667a158bea0288e1861f70047f (patch) | |
tree | 96f691eaa1d8182de45b06a6ceee5bfc9da5f17b /include/ruby | |
parent | 53054c0ff600d00b03cda11e3788db4b9a05d317 (diff) | |
download | ruby-c7853b4344d821667a158bea0288e1861f70047f.tar.gz |
* eval.c (ruby_cleanup): the order of local variables on stack is
undefined. should use outermost VALUE for ruby_init_stack.
* gc.c (ruby_get_stack_grow_direction, Init_stack): allows volatile
pointer.
* thread_*.c (ruby_init_stack): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/ruby.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 1e619da33d..7a83887545 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1021,10 +1021,10 @@ NORETURN(void rb_throw_obj(VALUE,VALUE)); VALUE rb_require(const char*); #ifdef __ia64 -void ruby_init_stack(VALUE*, void*); +void ruby_init_stack(volatile VALUE*, void*); #define ruby_init_stack(addr) ruby_init_stack(addr, rb_ia64_bsp()) #else -void ruby_init_stack(VALUE*); +void ruby_init_stack(volatile VALUE*); #endif #define RUBY_INIT_STACK \ VALUE variable_in_this_stack_frame; \ |