diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-12 16:47:17 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-12 16:47:17 +0000 |
commit | ab83abfc5eb07b82e397f4be7c5730eff647b142 (patch) | |
tree | 9d9dc514de8f9fe6fbd290d3dfbc9c568d753ce5 | |
parent | c87d31202d1a4b0c1f86465c2f5d237ea2e0e3de (diff) | |
download | ruby-ab83abfc5eb07b82e397f4be7c5730eff647b142.tar.gz ruby-ab83abfc5eb07b82e397f4be7c5730eff647b142.tar.xz ruby-ab83abfc5eb07b82e397f4be7c5730eff647b142.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@9683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | array.c | 3 |
2 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,11 @@ +Tue Dec 13 01:44:16 2005 Tanaka Akira <akr@m17n.org> + + * 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 <akr@m17n.org> * sprintf.c (rb_str_format): fix a GC problem. @@ -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); |