Message ID | 20230221120230.596966-23-arthur.cohen@embecosm.com |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1831715wrn; Tue, 21 Feb 2023 04:24:54 -0800 (PST) X-Google-Smtp-Source: AK7set99K7JAzUC0We6sBYQPS4EgVZIhPKlAXjSo4ZuYynsU/9YH3n6SgJmY0yGFADQ9KJ7dzifb X-Received: by 2002:aa7:c518:0:b0:4ad:1e35:771f with SMTP id o24-20020aa7c518000000b004ad1e35771fmr5394709edq.35.1676982294163; Tue, 21 Feb 2023 04:24:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676982294; cv=none; d=google.com; s=arc-20160816; b=Ked+iSQS7Rs0l5Aert38jEX4ISUfU5pYk+Nolyk9OzRV8rDrbHHTiPpMjAGofxtOht Y3o7JlrQw4kMYliz8xRaDvoWzZRB6rG/VwjbGguJzsTor/yUjoOoeAdVQ/C+VgcADWv3 lJ8TMff2zTa5St2vvWJt3Ojhk/jdgT5gr1JT+URbdMqwGrGMC7tcDSV0CUQbMHUSqVP4 3flbGpJ+BycpNR9u1/v9ieX4GMhM+UY1g3m8lRm45+/PCsdAj3qrxszEvcxXN4eMZnEa S5MBEZKjBHhf36yoTzluVQ75QnmoK2y2Ih6R3nAU5BmtTzkrL5vTwL90iZFYvfdbAAkq gEWA== 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=7KR4CVS6TqOuydT8CFiWtdPOh+/9CuQWBcnE+zJXDzU=; b=u46sn0cSWAWS3esP33divfngcwl8T6qGrqjAZ8eLeC0pmgs8xESM4BwKG5ZPtqWGfS fvJTZNaYv3sHyKe6KGxPMABaWj5+P/Rs0TjkapOCpmkXjPg9J7EvlO3bqoCcRsUXvXeA 9SLENjHJEeFNT/HJhmgNfiR1Tc+JLEGgtNk+CEP1HVfSek5gomCv2TCecgwZ+b62WyYf YztKDaylQ9fC6HOb96sb12MH7uQpt7xIKOlttsQ8d7xtDU0mvuSek7udH+DHX2nsbflt 8xzvCVFeE+/l9H5ir5x+K5AzSDr6vfHArM/dRdpTx/K/zO8hWJlcgCqY6+Q9dnr92CfF oW3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=RlXRYxPH; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id x4-20020aa7d6c4000000b004ad152b8f57si17712583edr.552.2023.02.21.04.24.53 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:24:54 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=RlXRYxPH; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 B7D43380E0F9 for <ouuuleilei@gmail.com>; Tue, 21 Feb 2023 12:10:03 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by sourceware.org (Postfix) with ESMTPS id 8A357384182F for <gcc-patches@gcc.gnu.org>; Tue, 21 Feb 2023 12:03:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8A357384182F 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-wm1-x32e.google.com with SMTP id p18-20020a05600c359200b003dc57ea0dfeso3355536wmq.0 for <gcc-patches@gcc.gnu.org>; 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=7KR4CVS6TqOuydT8CFiWtdPOh+/9CuQWBcnE+zJXDzU=; b=RlXRYxPHHSH4h8aJjgnKklFwoOpuJdlWMXj4Gvs8DHbV2b6TV2UndQdupT69Zsc9D2 6SiEj1IQ3zHDKC/6IdHTnEL3COb0/Un1m46Jtudgliin1Y0uD0Uno+K6TTEYCZaB/CG+ 4qGNurWApKwqn6hg4KJct08BJz9q48tN+gNKS2WsTP4ufYru/5XP5jGpu64QWU6zr80R uRDA953DYF17rtFLgVwdlggZ4WA7P4PKybkhPdrSa8d3/0p4neyiEoeFjZL2MPboBMx9 G5y4vtzgKUSgMUigIy4DAQeYu0xiFh/lOlyAlh9WAJ3Sas7WfITEVcNqviamUatxApim VceQ== 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=7KR4CVS6TqOuydT8CFiWtdPOh+/9CuQWBcnE+zJXDzU=; b=FIwIZw37DiDYVvDt36X6FPD7JVUOClIiKoFXFZMU2BH4C7UXOwqYv4b2kDIxdw07KY KYmY19dLXWC199ZL11ZrptrEu5bJAJSyeHouZtNjdbYSb8tBrwFwLVUw2BcjizsggLXq 2gbqBgvS8d/s8NpEVW18jSjFS30tgMJCfetY0ozGrM+Z3JED9pN8dlApeKMXqgSPu5GI PzNrc9SEOXdQK3dAF6nyNhR/UfPYYePjsbGSRODrKUpf2WyNe2eGCeZS2ktVva/CCtq7 nXaIKNqGQioUoyaiotbPFwlfzLt5cR3PVpZ4MTjL3EQdyWsR+veureHrFxCBY8SIu8ON qziQ== X-Gm-Message-State: AO0yUKXGnUp6r4wBxUTVo+C00tr71WSqr4O++c46czKEZdGRI+/Ag1np wUgihsIA/Kv1deHQhlz4f5s1t1ayZq1V+ioaVw== X-Received: by 2002:a05:600c:181c:b0:3e1:f8b3:6333 with SMTP id n28-20020a05600c181c00b003e1f8b36333mr2634715wmp.27.1676981022108; 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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:03:41 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Philip Herron <philip.herron@embecosm.com> Subject: [committed 022/103] gccrs: Add mappings for fn_once lang item Date: Tue, 21 Feb 2023 13:01:12 +0100 Message-Id: <20230221120230.596966-23-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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-14.4 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=unavailable 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Reply-To: arthur.cohen@embecosm.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758443386239110602?= X-GMAIL-MSGID: =?utf-8?q?1758443386239110602?= |
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-lang-item.h: Add `fn_once` lang item.
---
gcc/rust/util/rust-lang-item.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gcc/rust/util/rust-lang-item.h b/gcc/rust/util/rust-lang-item.h index 4d9dc8a3d3a..c7e0e5c811d 100644 --- a/gcc/rust/util/rust-lang-item.h +++ b/gcc/rust/util/rust-lang-item.h @@ -73,6 +73,9 @@ public: MUT_PTR, CONST_SLICE_PTR, + // functions + FN_ONCE, + UNKNOWN, }; @@ -218,6 +221,10 @@ public: { return ItemType::CONST_SLICE_PTR; } + else if (item.compare ("fn_once") == 0) + { + return ItemType::FN_ONCE; + } return ItemType::UNKNOWN; } @@ -296,6 +303,8 @@ public: return "mut_ptr"; case CONST_SLICE_PTR: return "const_slice_ptr"; + case FN_ONCE: + return "fn_once"; case UNKNOWN: return "<UNKNOWN>";