From: Philip Herron Date: Wed, 12 Oct 2022 11:26:24 +0000 (+0100) Subject: gccrs: Add ABI mappings for rust-call to map to ABI::RUST X-Git-Tag: basepoints/gcc-14~1031 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d7661e76e1276b3661502022ecee2861d040026;p=thirdparty%2Fgcc.git 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 --git a/gcc/rust/util/rust-abi.cc b/gcc/rust/util/rust-abi.cc index 6477c3790af8..36abb21520d2 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)