From ba6e0752b02b41b24e6bc76079c0e1589e63014b Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 5 Feb 2008 15:54:33 +0000 Subject: [PATCH] * insns.def (adjuststack): never use INC_SP with minus value because some compilers cannot deal it collectly. use DEC_SP instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 35 ++++++++++++++++++++--------------- insns.def | 3 ++- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/ChangeLog b/ChangeLog index b8d99817ea..bae073b40a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,14 +1,19 @@ -Wed Feb 06 00:48:41 2008 Yusuke Endoh +Wed Feb 6 00:50:19 2008 NAKAMURA Usaku + + * insns.def (adjuststack): never use INC_SP with minus value because + some compilers cannot deal it collectly. use DEC_SP instead. + +Wed Feb 6 00:48:41 2008 Yusuke Endoh * test/ruby/test_hash.rb: add tests to achieve over 90% test coverage of hash.c. * test/ruby/test_env.rb: ditto. -Wed Feb 06 00:24:49 2008 Yusuke Endoh +Wed Feb 6 00:24:49 2008 Yusuke Endoh * hash.c (env_rassoc): remove access to free'd environment on mswin32. -Tue Feb 05 21:57:34 2008 Yusuke Endoh +Tue Feb 5 21:57:34 2008 Yusuke Endoh * vm.c (rb_call_super): pass a passed block when super is called via rb_call_super. [ruby-dev:33598] @@ -49,7 +54,7 @@ Mon Feb 4 08:59:31 2008 Yukihiro Matsumoto extend(CGI::Value). a patch from in [ruby-dev:33583]. -Sun Feb 03 21:13:13 2008 Yusuke Endoh +Sun Feb 3 21:13:13 2008 Yusuke Endoh * test/ruby/test_numeric.rb: forgot to add this (at r15360). * test/ruby/test_file_exhaustive.rb: add tests to achive over 80% test @@ -7640,7 +7645,7 @@ Sun Oct 7 17:50:14 2007 GOTOU Yuuzou * lib/open-uri.rb: ditto. -Sun Oct 07 15:48:40 2007 Koichi Sasada +Sun Oct 7 15:48:40 2007 Koichi Sasada * insns.def (opt_eq): fix to use rb_str_equal(). @@ -11808,7 +11813,7 @@ Thu Jun 7 12:48:33 2007 Koichi Sasada * test/ruby/test_fiber.rb: add a test. -Thu Jun 07 07:24:36 2007 NARUSE, Yui +Thu Jun 7 07:24:36 2007 NARUSE, Yui * lib/json/common.rb: Ponder offering parse! method. @@ -14202,7 +14207,7 @@ Wed Feb 7 03:39:32 2007 Koichi Sasada * ruby.h, proc.c: change declaration place of rb_cEnv from proc.c to ruby.c. -Tue Feb 06 22:06:45 2007 NARUSE, Yui +Tue Feb 6 22:06:45 2007 NARUSE, Yui * ext/nkf/nkf-utf8/{nkf.c,utf8tbl.c}: imported nkf 2007-01-28. @@ -14915,20 +14920,20 @@ Thu Jan 4 17:00:06 2007 GOTOU Yuuzou OpenSSL::ASN1::ASN1Data#value,#tag,#tag_class and OpenSSL::ASN1::BitString#unused_bits should be public. -Thu Jan 04 13:45:10 2007 Koichi Sasada +Thu Jan 4 13:45:10 2007 Koichi Sasada * thread_pthread.ci: fix last changes around PTHREAD_STACK_MIN. -Thu Jan 04 13:42:47 2007 Koichi Sasada +Thu Jan 4 13:42:47 2007 Koichi Sasada * common.mk: restore changes. -Thu Jan 04 10:33:54 2007 Koichi Sasada +Thu Jan 4 10:33:54 2007 Koichi Sasada * thread_pthread.ci: fix to skip using PTHREAD_STACK_MIN. [ruby-dev:30063] -Thu Jan 04 10:30:11 2007 Koichi Sasada +Thu Jan 4 10:30:11 2007 Koichi Sasada * benchmark/run_rite.rb (bm): fix to use lines. @@ -14948,13 +14953,13 @@ Tue Jan 2 10:29:54 2007 Eric Hodel * ext/zlib/zlib.c: fix to compile on YARV ruby_errinfo -> rb_errinfo() -Mon Jan 01 08:07:06 2007 Koichi Sasada +Mon Jan 1 08:07:06 2007 Koichi Sasada * ext/tk/tcltklib.c: fix to compile on YARV ruby_errinfo -> rb_errinfo(), ruby_safe_level -> rb_safe_level(). -Mon Jan 01 07:57:17 2007 Koichi Sasada +Mon Jan 1 07:57:17 2007 Koichi Sasada * test/drb/test_drbssl.rb: fix to skip drb tests. @@ -14976,7 +14981,7 @@ Mon Jan 1 06:05:55 2007 Eric Hodel * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#handle_constants): Fix whitespace handling in constant comments. -Mon Jan 01 00:00:00 2007 Koichi Sasada +Mon Jan 1 00:00:00 2007 Koichi Sasada * Merge YARV @@ -16764,7 +16769,7 @@ Wed Sep 6 13:25:04 2006 Yukihiro Matsumoto * parse.y (symbols_i): need to initialize early-created symbols. [ruby-dev:29496] -Wed Sep 06 12:05:19 2006 NARUSE, Yui +Wed Sep 6 12:05:19 2006 NARUSE, Yui * ext/nkf/lib/kconv.rb (Kconv::toeuc): remove -m0 [ruby-dev:29505] diff --git a/insns.def b/insns.def index 755a7d3fa2..a4c56159a6 100644 --- a/insns.def +++ b/insns.def @@ -306,6 +306,7 @@ putnil () (VALUE val) { +fprintf(stderr, "[DEBUG B] reg_cfp:%p reg_cfp->sp:%p\n", reg_cfp, reg_cfp->sp); val = Qnil; } @@ -707,7 +708,7 @@ adjuststack (...) (...) // inc -= n { - INC_SP(-n); + DEC_SP(n); }