From 682292ea7dd6a2508e97dc2388ef3769ab16fb6b Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 12 Dec 2005 16:47:17 +0000 Subject: * array.c (rb_ary_diff): fix a GC problem on IA64 with gcc 3.3.5 (Debian 1:3.3.5-13). When rb_ary_push is called, there was no register which contains `hash' but `&RHASH(hash)->tbl' instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 8 ++++++++ array.c | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2e3992d7f2..7e109e70c0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Tue Dec 13 01:44:16 2005 Tanaka Akira + + * array.c (rb_ary_diff): fix a GC problem on IA64 with + gcc 3.3.5 (Debian 1:3.3.5-13). + When rb_ary_push is called, there was no register + which contains + `hash' but `&RHASH(hash)->tbl' instead. + Tue Dec 13 00:08:09 2005 Tanaka Akira * sprintf.c (rb_str_format): fix a GC problem. diff --git a/array.c b/array.c index 68cbb6bfe3..f79a79c784 100644 --- a/array.c +++ b/array.c @@ -2510,7 +2510,8 @@ ary_make_hash(VALUE ary1, VALUE ary2) static VALUE rb_ary_diff(VALUE ary1, VALUE ary2) { - VALUE ary3, hash; + VALUE ary3; + volatile VALUE hash; long i; hash = ary_make_hash(to_ary(ary2), 0); -- cgit v1.2.3