* eval.c (rb_call0): make body volatile to avoid possible optimization

problem.
  [ruby-dev:26195]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2005-07-18 05:43:13 +00:00
parent 5e69b52014
commit 06f6c2d355
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Mon Jul 18 14:32:21 2005 Tanaka Akira <akr@m17n.org>
* eval.c (rb_call0): make body volatile to avoid possible optimization
problem.
[ruby-dev:26195]
Mon Jul 18 12:23:27 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> Mon Jul 18 12:23:27 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
* ext/io/wait/wait.c: wrong backport from trunk, and compile error on * ext/io/wait/wait.c: wrong backport from trunk, and compile error on
@ -11,6 +17,7 @@ Mon Jul 18 09:36:25 2005 Tanaka Akira <akr@m17n.org>
(io_fflush): split writing data by PIPE_BUF if wsplit_p is true in (io_fflush): split writing data by PIPE_BUF if wsplit_p is true in
multi-threaded mode. multi-threaded mode.
(io_fwrite): ditto. (io_fwrite): ditto.
[ruby-dev:26540]
Mon Jul 18 05:00:00 2005 NARUSE, Yui <naruse@ruby-lang.org> Mon Jul 18 05:00:00 2005 NARUSE, Yui <naruse@ruby-lang.org>

2
eval.c
View File

@ -5699,7 +5699,7 @@ rb_call0(klass, recv, id, oid, argc, argv, body, nosuper)
ID oid; ID oid;
int argc; /* OK */ int argc; /* OK */
VALUE *argv; /* OK */ VALUE *argv; /* OK */
NODE *body; /* OK */ volatile NODE *body;
int nosuper; int nosuper;
{ {
NODE *b2; /* OK */ NODE *b2; /* OK */