[前][次][番号順一覧][スレッド一覧]

ruby-changes:66476

From: Samuel <ko1@a...>
Date: Mon, 14 Jun 2021 19:08:17 +0900 (JST)
Subject: [ruby-changes:66476] 25921fe1d6 (master): Revert "Suppress gcc11 clobbered warning"

https://git.ruby-lang.org/ruby.git/commit/?id=25921fe1d6

From 25921fe1d67e4bdd2370e1e9c26f1ed4533af73e Mon Sep 17 00:00:00 2001
From: Samuel Williams <samuel.williams@o...>
Date: Mon, 14 Jun 2021 20:49:43 +1200
Subject: Revert "Suppress gcc11 clobbered warning"

This reverts commit f0f9e77b65990001bd2acb42e1c6b673f6324425.
---
 load.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/load.c b/load.c
index e8deb40..fdc329c 100644
--- a/load.c
+++ b/load.c
@@ -1049,12 +1049,10 @@ require_internal(rb_execution_context_t *ec, VALUE fname, int exception) https://github.com/ruby/ruby/blob/trunk/load.c#L1049
     if ((state = EC_EXEC_TAG()) == TAG_NONE) {
 	long handle;
 	int found;
-        volatile VALUE found_path;
 
 	RUBY_DTRACE_HOOK(FIND_REQUIRE_ENTRY, RSTRING_PTR(fname));
-        found = search_required(path, &found_path, rb_feature_p);
+        found = search_required(path, &path, rb_feature_p);
 	RUBY_DTRACE_HOOK(FIND_REQUIRE_RETURN, RSTRING_PTR(fname));
-        path = found_path;
 
 	if (found) {
             if (!path || !(ftptr = load_lock(RSTRING_PTR(path)))) {
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]