From b938618359ba93b7b90633cd28a1a9977db697c1 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 8 May 2008 07:46:30 +0000 Subject: * 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 1 + 1 file changed, 1 insertion(+) (limited to 'file.c') 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; } -- cgit v1.2.3