public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Add missing fn_once_output langitem
@ 2022-10-22 10:47 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-10-22 10:47 UTC (permalink / raw)
To: gcc-cvs
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>";
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-22 10:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-22 10:47 [gcc/devel/rust/master] Add missing fn_once_output langitem Thomas Schwinge
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).