summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--re.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 7515897e09..e87c0c5e4e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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
diff --git a/re.c b/re.c
index ed51ee4838..66d9971854 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