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] Add missing fn_once_output langitem
Date: Sat, 22 Oct 2022 10:47:30 +0000 (GMT)	[thread overview]
Message-ID: <20221022104731.0483C3858292@sourceware.org> (raw)

https://gcc.gnu.org/g:a28e7dcb463c16db545566218cff3c164c410959

commit a28e7dcb463c16db545566218cff3c164c410959
Author: Philip Herron <philip.herron@embecosm.com>
Date:   Mon Oct 17 16:50:34 2022 +0100

    Add missing fn_once_output langitem

Diff:
---
 gcc/rust/util/rust-lang-item.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gcc/rust/util/rust-lang-item.h b/gcc/rust/util/rust-lang-item.h
index a50f139b583..111a8673c44 100644
--- a/gcc/rust/util/rust-lang-item.h
+++ b/gcc/rust/util/rust-lang-item.h
@@ -75,6 +75,7 @@ public:
 
     // functions
     FN_ONCE,
+    FN_ONCE_OUTPUT,
 
     UNKNOWN,
   };
@@ -225,6 +226,10 @@ public:
       {
 	return ItemType::FN_ONCE;
       }
+    else if (item.compare ("fn_once_output") == 0)
+      {
+	return ItemType::FN_ONCE_OUTPUT;
+      }
 
     return ItemType::UNKNOWN;
   }
@@ -305,6 +310,8 @@ public:
 	return "const_slice_ptr";
       case FN_ONCE:
 	return "fn_once";
+      case FN_ONCE_OUTPUT:
+	return "fn_once_output";
 
       case UNKNOWN:
 	return "<UNKNOWN>";

                 reply	other threads:[~2022-10-22 10:47 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=20221022104731.0483C3858292@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).