public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6176] gccrs: Add ABI mappings for rust-call to map to ABI::RUST
@ 2023-02-21 11:57 Arthur Cohen
0 siblings, 0 replies; only message in thread
From: Arthur Cohen @ 2023-02-21 11:57 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:2d7661e76e1276b3661502022ecee2861d040026
commit r13-6176-g2d7661e76e1276b3661502022ecee2861d040026
Author: Philip Herron <philip.herron@embecosm.com>
Date: Wed Oct 12 12:26:24 2022 +0100
gccrs: Add ABI mappings for rust-call to map to ABI::RUST
gcc/rust/ChangeLog:
* util/rust-abi.cc (get_abi_from_string): Add missing "rust-call"
possibility for ABI variant.
Diff:
---
gcc/rust/util/rust-abi.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/rust/util/rust-abi.cc b/gcc/rust/util/rust-abi.cc
index 6477c3790af..36abb21520d 100644
--- a/gcc/rust/util/rust-abi.cc
+++ b/gcc/rust/util/rust-abi.cc
@@ -23,6 +23,8 @@ get_abi_from_string (const std::string &abi)
{
if (abi.compare ("rust") == 0)
return Rust::ABI::RUST;
+ else if (abi.compare ("rust-call") == 0)
+ return Rust::ABI::RUST;
else if (abi.compare ("rust-intrinsic") == 0)
return Rust::ABI::INTRINSIC;
else if (abi.compare ("C") == 0)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-21 11:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-21 11:57 [gcc r13-6176] gccrs: Add ABI mappings for rust-call to map to ABI::RUST Arthur Cohen
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).