projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b326cce
)
gccrs: Add missing fn_once_output langitem
author
Philip Herron
<philip.herron@embecosm.com>
Mon, 17 Oct 2022 15:50:34 +0000
(16:50 +0100)
committer
Arthur Cohen
<arthur.cohen@embecosm.com>
Tue, 21 Feb 2023 11:36:38 +0000
(12:36 +0100)
gcc/rust/ChangeLog:
* util/rust-lang-item.h: Add handling for `fn_once_output`.
gcc/rust/util/rust-lang-item.h
patch
|
blob
|
history
diff --git
a/gcc/rust/util/rust-lang-item.h
b/gcc/rust/util/rust-lang-item.h
index c7e0e5c811d4b5fc79e770b38a0f99eb671d4353..02eeaee60df3f56d0be323f02982c3669b53eb46 100644
(file)
--- 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>";