From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 6D6863856DC0; Mon, 29 Aug 2022 15:35:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D6863856DC0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661787331; bh=wcaOFBlrVGG3d8Z/isFzoj36b0G8oKAi1z+Vx6XdCI0=; h=From:To:Subject:Date:From; b=bh1+6hSDmqGcjbeS+XCXosf8w8pAwLGpfnQeEFcJ6qWSYBpLgTI6WYxaupiWqOPiq e5yBCHud92l/PYw/hUB8hR7r2RqjWc+f8EnQkWLMaxt9z8YDA78Greofk7VoAZwpGQ jgvb/y8Z8NCRsQywOpfT14QYoCB4qR8/S1Klh0IA= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] rust-tree.cc: comment some important code instead of removing it. X-Act-Checkin: gcc X-Git-Author: Faisal Abbas <90.abbasfaisal@gmail.com> X-Git-Refname: refs/heads/devel/rust/master X-Git-Oldrev: 4ca228d2f32e5eb6e9516f487be85383225d5a00 X-Git-Newrev: 0f8e2c1e2f5f0ed55d807703e45f598d9f00aca1 Message-Id: <20220829153531.6D6863856DC0@sourceware.org> Date: Mon, 29 Aug 2022 15:35:31 +0000 (GMT) List-Id: https://gcc.gnu.org/g:0f8e2c1e2f5f0ed55d807703e45f598d9f00aca1 commit 0f8e2c1e2f5f0ed55d807703e45f598d9f00aca1 Author: Faisal Abbas <90.abbasfaisal@gmail.com> Date: Tue Aug 16 22:03:23 2022 +0100 rust-tree.cc: comment some important code instead of removing it. Diff: --- gcc/rust/backend/rust-tree.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/rust/backend/rust-tree.cc b/gcc/rust/backend/rust-tree.cc index ce820f08eaa..996ade5783a 100644 --- a/gcc/rust/backend/rust-tree.cc +++ b/gcc/rust/backend/rust-tree.cc @@ -4805,6 +4805,13 @@ build_address (tree t) tree fold_builtin_source_location (location_t loc) { + // if (source_location_impl == NULL_TREE) + // { + // auto_diagnostic_group d; + // source_location_impl = get_source_location_impl_type (loc); + // if (source_location_impl == error_mark_node) + // inform (loc, "evaluating %qs", "__builtin_source_location"); + // } if (source_location_impl == error_mark_node) return build_zero_cst (const_ptr_type_node); if (source_location_table == NULL)