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
commit6a84d4430898a12671402201874e346a6276930d (patch)
tree14ab5fad8b88b9f74495c4961587c92f9954016a /re.c
parent205f93b5678463b02a70ba3d656962df0ec62446 (diff)
* 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/branches/ruby_1_8@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 ed51ee4..66d9971 100644
--- a/re.c
+++ b/re.c
@@ -1408,6 +1408,7 @@ VALUE
rb_reg_regcomp(str)
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