public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Thomas Schwinge <tschwinge@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc/devel/rust/master] rust-tree.cc: comment some important code instead of removing it.
Date: Mon, 29 Aug 2022 15:35:31 +0000 (GMT)	[thread overview]
Message-ID: <20220829153531.6D6863856DC0@sourceware.org> (raw)

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)

                 reply	other threads:[~2022-08-29 15:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220829153531.6D6863856DC0@sourceware.org \
    --to=tschwinge@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).