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 | 51f4d6645ba78fdb7342c2e58e65026643b21e17 (patch) | |
tree | 77eb0c3f5abfbb9808e8f824b8cfc565e0530b17 /re.c | |
parent | 682292ea7dd6a2508e97dc2388ef3769ab16fb6b (diff) | |
download | ruby-51f4d6645ba78fdb7342c2e58e65026643b21e17.tar.gz |
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@9684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |