diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-13 03:27:51 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-13 03:27:51 +0000 |
commit | 1d920d0dce52eeda2284bbf2ec84e44be5d23433 (patch) | |
tree | 77eb0c3f5abfbb9808e8f824b8cfc565e0530b17 | |
parent | ab83abfc5eb07b82e397f4be7c5730eff647b142 (diff) | |
download | ruby-1d920d0dce52eeda2284bbf2ec84e44be5d23433.tar.gz ruby-1d920d0dce52eeda2284bbf2ec84e44be5d23433.tar.xz ruby-1d920d0dce52eeda2284bbf2ec84e44be5d23433.zip |
* re.c (rb_reg_regcomp): fix a GC problem on x86_64 with
gcc 3.3.5 (Debian 1:3.3.5-13).
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | re.c | 1 |
2 files changed, 7 insertions, 2 deletions
@@ -1,9 +1,13 @@ +Tue Dec 13 12:23:47 2005 Tanaka Akira <akr@m17n.org> + + * re.c (rb_reg_regcomp): fix a GC problem on x86_64 with + gcc 3.3.5 (Debian 1:3.3.5-13). + 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 + 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> @@ -1384,6 +1384,7 @@ static VALUE reg_cache; VALUE rb_reg_regcomp(VALUE str) { + volatile VALUE save_str = str; if (reg_cache && RREGEXP(reg_cache)->len == RSTRING(str)->len && case_cache == ruby_ignorecase && kcode_cache == reg_kcode |