[committed,023/103] gccrs: Add ABI mappings for rust-call to map to ABI::RUST

Message ID 20230221120230.596966-24-arthur.cohen@embecosm.com
State Unresolved
Headers
Series [committed,001/103] gccrs: Fix missing dead code analysis ICE on local enum definition |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

Arthur Cohen Feb. 21, 2023, 12:01 p.m. UTC
  From: Philip Herron <philip.herron@embecosm.com>

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 | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

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)