summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-13 03:27:51 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-13 03:27:51 +0000
commit51f4d6645ba78fdb7342c2e58e65026643b21e17 (patch)
tree77eb0c3f5abfbb9808e8f824b8cfc565e0530b17 /re.c
parent682292ea7dd6a2508e97dc2388ef3769ab16fb6b (diff)
downloadruby-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/re.c b/re.c
index 18f74fa079..47876d3fcd 100644
--- a/re.c
+++ b/re.c
@@ -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