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: 1757373 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PcCMN1Gvtz246q for ; Thu, 16 Mar 2023 01:24:28 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F236D3858421 for ; Wed, 15 Mar 2023 14:24:25 +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+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" 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",