From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 3813D3858D39 for ; Wed, 15 Mar 2023 14:27:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3813D3858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678890450; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NqkFV0QVzUyYUgUd+hyYNLa8x7cqD54WvxzFjM8ZgxI=; b=KOoDI6JtSboadt2SWjL8nifOYzsLNB+vq5sjdn6JM1AY9KLJeZgW9HSOFmoGr8eYK6LSiE Pu418U5rP0/aS8ex6gAHsU4YndHBd1xsUXyh9RZu32TYDVcMx4RefLiFIhYVUMGXSy94H2 PXtEQ5B8R/P2K1/ERk14dnhCLI9w6Bs= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-447-1eLEQC47PeuD90748TMwXA-1; Wed, 15 Mar 2023 10:27:29 -0400 X-MC-Unique: 1eLEQC47PeuD90748TMwXA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CA5A61C087A9; Wed, 15 Mar 2023 14:27:28 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 86A3644037; Wed, 15 Mar 2023 14:27:28 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 32FERPi22860950 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 15 Mar 2023 15:27:26 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 32FEROjw2860949; Wed, 15 Mar 2023 15:27:24 +0100 Date: Wed, 15 Mar 2023 15:27:24 +0100 From: Jakub Jelinek To: Tobias Burnus Cc: gcc-patches Subject: Re: [Patch] OpenMP: Add omp_in_explicit_task to omp_runtime_api_call Message-ID: Reply-To: Jakub Jelinek References: <6749cf41-bd73-4f6c-d565-67d2307164e4@codesourcery.com> MIME-Version: 1.0 In-Reply-To: <6749cf41-bd73-4f6c-d565-67d2307164e4@codesourcery.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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 List-Id: On Wed, Mar 15, 2023 at 03:24:04PM +0100, Tobias Burnus wrote: > 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? Yes, thanks. > 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", Jakub