From patchwork Wed Mar 15 14:24:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tobias Burnus X-Patchwork-Id: 70249 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2359793wrd; Wed, 15 Mar 2023 07:24:44 -0700 (PDT) X-Google-Smtp-Source: AK7set8V8LX72zjG5l7B3HgDcz2AsX1X7Kn3xozUqU3LU/ZUrAEI+iG3THB/SM4apwN1hYXOF/ag X-Received: by 2002:a05:6402:151:b0:4fc:2e7c:52e8 with SMTP id s17-20020a056402015100b004fc2e7c52e8mr2885676edu.39.1678890284101; Wed, 15 Mar 2023 07:24:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678890284; cv=none; d=google.com; s=arc-20160816; b=axAenP6tQ8wt76KLsi/KbRPZFdSRDs+j6UxyKkm1Y3ul+/4+ngJ+Qp6lxFwQYEnWJu XVXCHFJmcV29M9vM7/PdlqLAlBsHjkmRi+Li48JuJP/jtA3HrkeaBPgfnXSk1waE6g4L E3iNHdguU2XzYUONEUqRHdvZnp7wL2Nopv6/nd1xCxu8A0T+9s1jHXWdKw+mk+7MA1I8 65YmRUo2AxVGOcFDHexEap92HXWXVOsH+zjPpzWgDUSZMVbDI8by0mraH7wQAy76fEAh PUu+fMq8F4+3vOQiqdSyZM2WRhp7jVon7h6hDGIp7SbNw9hdlLWiyhoiMJflQq9v/Jcz 3WGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:from:to :content-language:user-agent:mime-version:date:message-id :ironport-sdr:dmarc-filter:delivered-to; bh=q7ukOrYZk8m93R8pkKQxw/8CN2zxO/78PZu/PTjnlYs=; b=fEjop1As0zGGW1c4NcjwShAT0t5qgKh4/kXAPSw2+y5vIXA0frqaHkAZzu5LWc2RUA 7XI5Nn6arGzD72YQdLDHepGUNRhe1gTElvaE3MmYQ1y5EcN5p20Aqik1MWwMBysDIpvw RtHOwntDlWZrir+DOY37E8rqO0jAWA9SjcypR3Aclt6145qQqgSL3kvRnYdNuAHPfuU8 2fmku8ubjSHeB2lDAMwIg8ulW73Ztginqcrgaoha1vARiPDoOfd8OoZ0ZpkRqFTTqmvo WAE1kIuvKbuZD8gkOKh3lU2L9AXeJhtwmMrNELaPGKFI88bD876NHZMWUjbj60fbKyq4 XoXQ== 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 (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id u14-20020aa7d88e000000b0049fc45a6102si6004421edq.381.2023.03.15.07.24.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Mar 2023 07:24:44 -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 4FF7A3857C48 for ; Wed, 15 Mar 2023 14:24:38 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id A6D293858D39 for ; Wed, 15 Mar 2023 14:24:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A6D293858D39 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.98,262,1673942400"; d="diff'?scan'208";a="101715923" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 15 Mar 2023 06:24:10 -0800 IronPort-SDR: N7FHnLfK5euI/QjJmSsbhHvqqzmKjQ1LNpmfLLsEJjGpR8v4x9kiPdP69KQbOpE8q5BGRN704T /l5a0tdOZyiZiQHJ428SL7wirsW24BFpem7YL8296+rRc5Und6EE2IJ3VWKIb3qc8YTSsXnKn8 aXEuyBfgDsmQIBh2+FSvmFQ0QjdIlKVkhj0Js4l8Ynn6ZtYtbMTgtswWbIq5DW5fA7H1Vc6bB0 heSdmnKRckbPzSh0XoOEe39zuAXot1W6LyVdbe52F62BokT7ZFTqrJyeekA1/R9tIpiswxxwvN 64A= Message-ID: <6749cf41-bd73-4f6c-d565-67d2307164e4@codesourcery.com> Date: Wed, 15 Mar 2023 15:24:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Content-Language: en-US To: gcc-patches , Jakub Jelinek From: Tobias Burnus Subject: [Patch] OpenMP: Add omp_in_explicit_task to omp_runtime_api_call X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-13.mgc.mentorg.com (139.181.222.13) To svr-ies-mbx-12.mgc.mentorg.com (139.181.222.12) X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H2, 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: , 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?1760444058820656602?= X-GMAIL-MSGID: =?utf-8?q?1760444058820656602?= When adding a new OpenMP routine, also omp_runtime_api_call needs to be adapted - to get proper error like: error: OpenMP runtime API call ‘omp_in_explicit_task’ in a region with ‘order(concurrent)’ clause OK for mainline? Tobias PS: This routine was added in commit r13-3258-g0ec4e93fb9fa5e9d2424683c5fab1310c8ae2f76 PPS: I have not fully checked but I think it should be up to date; at least all other recent additions include updates to that omp-low.cc function and at some point I had checked it for completeness. ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955 OpenMP: Add omp_in_explicit_task to omp_runtime_api_call gcc/ * omp-low.cc (omp_runtime_api_call): Add omp_runtime_api_call. diff --git a/gcc/omp-low.cc b/gcc/omp-low.cc index 9757592c635..1818132830f 100644 --- a/gcc/omp-low.cc +++ b/gcc/omp-low.cc @@ -4082,6 +4082,7 @@ omp_runtime_api_call (const_tree fndecl) "get_thread_num", "get_wtick", "get_wtime", + "in_explicit_task", "in_final", "in_parallel", "init_lock",