From: Philip Herron Date: Mon, 17 Oct 2022 15:50:34 +0000 (+0100) Subject: gccrs: Add missing fn_once_output langitem X-Git-Tag: basepoints/gcc-14~1011 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed75e142a7082b2f4f0a50a39939566c53b5697b;p=thirdparty%2Fgcc.git gccrs: Add missing fn_once_output langitem gcc/rust/ChangeLog: * util/rust-lang-item.h: Add handling for `fn_once_output`. --- diff --git a/gcc/rust/util/rust-lang-item.h b/gcc/rust/util/rust-lang-item.h index c7e0e5c811d4..02eeaee60df3 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 "";