From patchwork Tue Feb 21 12:01:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 59981 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1830113wrn; Tue, 21 Feb 2023 04:20:29 -0800 (PST) X-Google-Smtp-Source: AK7set9YTCWLocVDwMxeBiVa97gUHGl2a1a9VVbHxxTu2tA384XIl5HLvTXe4gUhDWRb7I6fAP0E X-Received: by 2002:aa7:d88f:0:b0:4af:59c0:744a with SMTP id u15-20020aa7d88f000000b004af59c0744amr338188edq.24.1676982028932; Tue, 21 Feb 2023 04:20:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676982028; cv=none; d=google.com; s=arc-20160816; b=vNwLUfS88ffbzyweNoeE1Cp1ixN6FaaeJAktpXxzpty1KjUx3NVqYJ6ivU7cR78F6t 8blOBEx933us38TkEwz4U7AIjrqBTaU2xKKhY3QO1HJdZI8c1bwK48+c8IpD3zDmPGv6 zbDtf4RDGrR+nTwBugzk2tK1m+Cs3MlHo9UhiEhkCS7ySct06J64qLKed6MayrfAXJxQ KXM1NwOUmH9L7dQV2R78qZgDByuJXAc5ybhQLMuTcfQTbvnwMf05lSSFXv2XKiqSPws8 DOrrNXQosGy+9ZyeZdmHK2JAgPvvXgtqc8FXSKGFfH/snJ87c49iP4wjcqrNN13Pfkew Ft0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dmarc-filter :delivered-to; bh=srSagA01ccZ68G2aMDpa/IU9PN7iqhFdTZ/jo0frXcc=; b=FQd3c75xhK3zO3iafsUtTBnUUSADyeI+g0SA+6vbMruH9x9MuspfDr+QrY/8Upmn0q 9PlN/2/ZUqV7sDbGAIWIWe4Po7CwKrj4jiCXoH3gUwPoUoLBD0Iae/RPa630rH6Frn5z riGb+uGmFyNEgqZRDqK30R2yutWcJsHO++N2x1cFXyJycJ7A9kat37BfobVlBymWLRKZ zMsbQVGNXohdWq3/R+vPp4wQuop7N788ix0WRriON70623OGQhZqdcY1XQq8T7b2nhHb nFSyDmDTM1lszg5r0f7jGIfG+0Y5g00gl3Kq1f60+EZh5eq48KzfO7gv/5FTQ7vXlpdH R2mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=ajUON463; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d15-20020aa7ce0f000000b004ad05f8a5cbsi18146852edv.266.2023.02.21.04.20.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:20:28 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=ajUON463; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2BE0A381BB89 for ; Tue, 21 Feb 2023 12:08:57 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by sourceware.org (Postfix) with ESMTPS id 6920F384DD30 for ; Tue, 21 Feb 2023 12:03:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6920F384DD30 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-wr1-x431.google.com with SMTP id l1so3885226wry.10 for ; Tue, 21 Feb 2023 04:03:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=srSagA01ccZ68G2aMDpa/IU9PN7iqhFdTZ/jo0frXcc=; b=ajUON463a4s8hQtEFxoq72CGEN00nVouaNrORTq+BkOQUfw1hDep5TJJOHizorrUHn WDwSlUuj82X57r+C6fF5+S+0NDRNcvfrxTokZWzanh4sBL/dBJfgHOninfOKLBaLoRfg UnrHxUpAGmTiQ0ivS/h27jOhFVSxvpiEzAGQnUEoSolUvUB117gFAPh5r+YAlBt0CnAT qdY+JAqt/lUtGrsr0y5mF4DQ/6Q15DD4qTI1XLj2lgJvHrs7dBTDxS3UUpJaUmbcopAK HtCopIvfUwmMVpWhv689kmp/1o1qsObMhTALcnbhwgKpbAfCA3pcqhgm7XbPrcGLzaFJ QaJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=srSagA01ccZ68G2aMDpa/IU9PN7iqhFdTZ/jo0frXcc=; b=VppxEaxF8qXml4OUVoKtPZBgfNlU6nYNdFmUhjEArqSeW6NjhW0ivmxEqywik4KfY9 hW9z4mgbb3we/nlmVvuBA+6kgHMAV51hnIQZeX5TmirCLfp0mZrF79EKK8SsSx2EUtsn dk/SSPOMsuOY3p+d7z//srSnjxvHGAKkTiXow/kQugoUlEcCBi3pwcCuiCe8BZmqC/NH ex3vmFaW+FiNY/RlqX4fdPGJgL7nm/zaoqU7JITfWNEaYFUPFIru3BBOrIotSnuZ9mzc 01wO3gFfJr/DBOcJ2r7BB2+x1FKmZn3XeLjWZa/LJoXtrRsiDNkbkOO3f0+YjCK8GZem ufmg== X-Gm-Message-State: AO0yUKU6+gfeDhRzCJKAg3wCzMszkxVj/5NBg2I94a0FcbVh8IATSggp shF2axAcPKdaFuu1ikFB+BljNxXOkwKRnJra+A== X-Received: by 2002:a05:6000:114e:b0:2c4:9d7:c7da with SMTP id d14-20020a056000114e00b002c409d7c7damr3303047wrx.65.1676981022702; Tue, 21 Feb 2023 04:03:42 -0800 (PST) Received: from platypus.localdomain ([62.23.166.218]) by smtp.gmail.com with ESMTPSA id c15-20020adffb4f000000b002c55b0e6ef1sm5013811wrs.4.2023.02.21.04.03.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:03:42 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Philip Herron Subject: [committed 023/103] gccrs: Add ABI mappings for rust-call to map to ABI::RUST Date: Tue, 21 Feb 2023 13:01:13 +0100 Message-Id: <20230221120230.596966-24-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230221120230.596966-1-arthur.cohen@embecosm.com> References: <20230221120230.596966-1-arthur.cohen@embecosm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-14.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: arthur.cohen@embecosm.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758443108290961686?= X-GMAIL-MSGID: =?utf-8?q?1758443108290961686?= From: Philip Herron 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(+) 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)