From patchwork Sat Oct 1 07:56:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Brown X-Patchwork-Id: 1628 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp146666wrs; Sat, 1 Oct 2022 00:57:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Prn3Y5XUXDIOiNIlOJqF9G+168q+R3LRSw3Dj5X4deVdGIoP+dE8Bi38GXY4ubEKT0zy4 X-Received: by 2002:a05:6402:440f:b0:435:2e63:aca9 with SMTP id y15-20020a056402440f00b004352e63aca9mr10467295eda.162.1664611063284; Sat, 01 Oct 2022 00:57:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664611063; cv=none; d=google.com; s=arc-20160816; b=sApOY4uM3Og90ndoZRx/2l2fuce7Hfgd7GxbnddI9vLQuCw15EH5A+tncpjy+FK8Sz wQZZTwBt4V9r5O0d0KsFPSLbn5RKRsh+awLbVN8bUHNKSOS6wEUaC3gBXurRs+/S745J dbG44ZehjJ4pkXWGNNMyCv7ppDxfyIQOkilDHEy+UUUle4e6UBYdSfYR687sZk5fLCKC vKu7PEo/h93T5WAhej1/Gb79/UPp7ZvNmujQZRLlmTiVYI0vrRzXEDO0tS0XJo4yFy9i FQEIoqdRIUoHYFhH5PpdNV+mECkkP7EwVm1gB9wdk3sRk/9Rt4xdiUdaYAyIRukkskeX DQsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:ironport-sdr :dmarc-filter:delivered-to; bh=6OMSqzfoSQS9mVod9kJnZOwwtzn4+FJto741tygnEWw=; b=rEzS3Fjb5gKEGqdq5milGlA/bBgPIeDMoKumEf//fjRCv+Y2XIC2Aa3tgbZ87eyCGj /K8vr8Ys676+C11/0AbzABux9m0M9DUJqEgvTgGwT2Aa0ybkCqhwA5lWL5/DBeuFdow6 u/HOeMNq0zlTBXb8MLsceVW22rV6Ii19AtydPQWOpQfxPw6/WEtfE7O9WzJpqlaNDS7g R+Ropr7ltg6GmXvDAvJIlTlogwltUcxhF7g+NhQ3insITcPRT4J+t4JGSoJSJis0Qqrz su1lc5TtSPFcL9ts6LCyl7PTe/g4Q5FxFVWzyYw0uZ5jJ2sLCEpivEsww9FYNivxpvFB 60tg== ARC-Authentication-Results: i=1; mx.google.com; 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 b5-20020aa7dc05000000b0045249bc17eesi3282833edu.589.2022.10.01.00.57.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Oct 2022 00:57:43 -0700 (PDT) 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; 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 2C6443854810 for ; Sat, 1 Oct 2022 07:57:39 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id D950D3858D1E for ; Sat, 1 Oct 2022 07:57:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D950D3858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.93,360,1654588800"; d="scan'208";a="83838348" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 30 Sep 2022 23:57:13 -0800 IronPort-SDR: PQD17uKoQsctdRaSljZo5AmUWF2Bq8fcI0BtP8adKTOsWRdamFFocmNfydpL7Wx6SNrC+n+urQ L7mlXzEIlA7i6vcCArv5VGNQEc4l5m9GLIBnUKwc/Q9yGU5Upp2VL8soSR8u3hUQx9KZ9/uynQ lakX00Dc6tXFDoZtdpWUuoGz5iNYsKQKkJuijV6GK8UuYUcBwLIau7Auk6c3MWdFKwnsq3H2B4 C7BIHvyT7DzODhx9MCuqXKfH1ZWuCN/K+wtn69qCAOqNdEJrqflzBl3IqqRII0taWTJ4adqqNq ct0= From: Julian Brown To: Subject: [PATCH] OpenACC: Fix struct-component-kind-1.c test Date: Sat, 1 Oct 2022 00:56:59 -0700 Message-ID: <20221001075659.63410-1-julian@codesourcery.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) To svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_PASS, 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: , Cc: Jakub Jelinek , tobias@codesourcery.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?1745471210254374977?= X-GMAIL-MSGID: =?utf-8?q?1745471210254374977?= This patch is a minimal fix for the recently-added struct-component-kind-1.c test (which is currently failing to emit one of the errors it expects in scan output). This fragment was erroneously omitted from the second version of the patch posted previously: https://gcc.gnu.org/pipermail/gcc-patches/2022-September/602504.html Re-tested with offloading to NVPTX. OK? Thanks, Julian 2022-10-01 Julian Brown gcc/ * gimplify.cc (omp_group_base): Fix IF_PRESENT (no_create) handling. --- gcc/gimplify.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/gimplify.cc b/gcc/gimplify.cc index 90606088128..9e0e3429958 100644 --- a/gcc/gimplify.cc +++ b/gcc/gimplify.cc @@ -9245,6 +9245,7 @@ omp_group_base (omp_mapping_group *grp, unsigned int *chained, case GOMP_MAP_RELEASE: case GOMP_MAP_DELETE: case GOMP_MAP_FORCE_ALLOC: + case GOMP_MAP_IF_PRESENT: if (node == grp->grp_end) return node; @@ -9323,7 +9324,6 @@ omp_group_base (omp_mapping_group *grp, unsigned int *chained, case GOMP_MAP_FORCE_DEVICEPTR: case GOMP_MAP_DEVICE_RESIDENT: case GOMP_MAP_LINK: - case GOMP_MAP_IF_PRESENT: case GOMP_MAP_FIRSTPRIVATE: case GOMP_MAP_FIRSTPRIVATE_INT: case GOMP_MAP_USE_DEVICE_PTR: