diff --git a/ChangeLog b/ChangeLog index cac4186fb3..a498dd59f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Thu May 8 16:46:06 2008 Tanaka Akira + + * file.c (rb_find_file_ext): guard load_path from GC. + gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) optimizes + load_path by holding only RARRAY_LEN(load_path) and + RARRAY_PTR(load_path) in registers on IA64 GNU/Linux Etch. + Thu May 8 16:41:20 2008 Nobuyoshi Nakada * configure.in (MINIRUBY), common.mk (RUBYOPT): add purelib.rb. diff --git a/file.c b/file.c index c614a7e380..21741a63e9 100644 --- a/file.c +++ b/file.c @@ -4346,6 +4346,7 @@ rb_find_file_ext(VALUE *filep, const char *const *ext) } } } + RB_GC_GUARD(load_path); return 0; }