gccrs: Add ABI mappings for rust-call to map to ABI::RUST
authorPhilip Herron <philip.herron@embecosm.com>
Wed, 12 Oct 2022 11:26:24 +0000 (12:26 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 21 Feb 2023 11:36:33 +0000 (12:36 +0100)
gcc/rust/ChangeLog:

* util/rust-abi.cc (get_abi_from_string): Add missing "rust-call"
possibility for ABI variant.

gcc/rust/util/rust-abi.cc

index 6477c37..36abb21 100644 (file)
@@ -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)