From patchwork Tue Nov 7 15:30:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tobias Burnus X-Patchwork-Id: 162642 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:aa0b:0:b0:403:3b70:6f57 with SMTP id k11csp312409vqo; Tue, 7 Nov 2023 07:31:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpdJ8PHbDZgSGLPLEyiB5BDxKl3mn7CeSG2x8U3hhUzMR8Rrz3/XM7PuylYEK/ZVqMvJxS X-Received: by 2002:a67:e0c5:0:b0:45d:b6af:99ae with SMTP id m5-20020a67e0c5000000b0045db6af99aemr6081302vsl.35.1699371062097; Tue, 07 Nov 2023 07:31:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699371062; cv=pass; d=google.com; s=arc-20160816; b=LdUiazWdvILxhJj9GEW+qhLFa3ZjNqksjV4B7r02FTQDFnRBRAXXJM+Uodp4SAieEF SJprd+uek1Xkj8iOxbrV90fySMUUWnmVuBUuZlMiOlK4epwF0XkVl8P8AmcFbDJZuFJ1 NAjagBiIlxr1PRJS1ytWgs1X2BR7S9wT1PMod/K+NUPCG9Xwh4/UTD94m7CzfWXve874 UdpjJYYkgeRqz2cYF6KrhLUi5DrEXrjjDeHZZpbsoiDjHURo/klZrHQMS+q7LH7d9Cho /zCh4iHi2l1N26KJRLrntJyNwEHoClgY1UOqh3bUV7bEn2JxYv3DFjwPeN1ZheEZjuAM hZVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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:arc-filter:dmarc-filter:delivered-to; bh=z0ibkf2GhCpG3ntoRdXvTiJho0bVE9pSpCXaapKJ0KQ=; fh=8G0fvw9kezX2+yjwifXgHvTII1omy92vRpR1R+rFCOA=; b=ohy7IYvdByLzrt2yPF3Aa7KCLOdpO23XT/Pkdf84/AC7QA6CFfYV3Vwzttlcfxw77g XgfB3uh7dwj0sgap9Jv85iY1hut9mRs3EQMFxW+BfJq4j/gzLuhsSDNr28Zb+pmU28N0 V6hn9rt1J9rdaqi/fVFKW1irEHlc/WlGq4vi3blfgFuk5cNSER8Rp/bWeMUyo3n5r89s vWVQhWSYOtlrXmsP/fch00PDgEoK/SBSiFutc7r5E/afHCA4pmOoJF9BAf1z9NrhgBOu eRMSnBVxr6eqAUOxbEl4zM/kkAYdwZ3804PbS7wJbatFTdk3CIyggXmqqXDQsKY/oWxj Spfw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id s18-20020a05620a081200b00778a6cdeefdsi7085390qks.182.2023.11.07.07.31.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 07:31:02 -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; arc=pass (i=1); 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 BCC693857711 for ; Tue, 7 Nov 2023 15:31:01 +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 E311F3858C41 for ; Tue, 7 Nov 2023 15:30:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E311F3858C41 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E311F3858C41 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=68.232.141.98 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699371038; cv=none; b=LrlWcj/1rPxZkRLEwIh1cAx/SiqxzZjkAG1v9ze6S1PzMmW+lJ3d+SoHQ38c8FfIOhEaAiBDv5VXR0PumSP4AfvhVN25OQjJlxkSa0bPQ3k4et9H8SuOXZMRBQ2cxIqmdXU7xeqD9OA74+qEIyOk6FJ5sUZ6lzRy4G5nKB3LiBY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699371038; c=relaxed/simple; bh=z0ibkf2GhCpG3ntoRdXvTiJho0bVE9pSpCXaapKJ0KQ=; h=Message-ID:Date:MIME-Version:To:From:Subject; b=C4tgOkNzzonGJUWn9HrzCUu89J2RFwHFHKIBinReBf8hdVO7IIMI17GRA179qItExfP7SmjzUs5stEBk3U10rzIwJS9P/2Xo6TLq4zp/ezcHzyMaI8/nGkTiFDnoOXLwHQOzmoKKzBTAt/trhrE7L/esShaCXzolTlso4moP3JA= ARC-Authentication-Results: i=1; server2.sourceware.org X-CSE-ConnectionGUID: B9OUkno3RNO2yx58jXebaA== X-CSE-MsgGUID: HhMIcHP3SyWjBOtVphkGAA== X-IronPort-AV: E=Sophos;i="6.03,284,1694764800"; d="diff'?scan'208";a="24808424" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 07 Nov 2023 07:30:35 -0800 IronPort-SDR: mmqtmX555VFiTYq2rtJvJfLnzCwPTt7e8oOJsQjaTHDObohfYipxWK4szAs+iBkN5bEx0wX1Ck j5LZ4sZNIjJe3qcQanOT8+AYEkyjIxpDtxqcNm5RfVXs1gKYnOTh6vT0CkXpmwhwHz1Nc7gnVp Q6AVm4q29lGmul0fkaoBORYfmOKn4/3MHEJyD4IDlAgwVce1tNzsvqyDgXeCAQLyG1BUu3rraZ vFv5hNTnbqHoEmNcMlP5WR6gwmC7ZeOEUT5ToTDsRUHPlMPvD+ZqSr+OAeSxkSAaZ8sJHBPTBt 23U= Message-ID: <483351d9-71e7-4476-9b35-5f86333a0b25@codesourcery.com> Date: Tue, 7 Nov 2023 16:30:27 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: gcc-patches From: Tobias Burnus Subject: [committed] OpenMP: invoke.texi - mention C attribute syntax for -fopenmp(-simd) X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-15.mgc.mentorg.com (139.181.222.15) 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, KAM_SHORT, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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.30 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781919710764771044 X-GMAIL-MSGID: 1781919710764771044 This is a followup to Jakub's commits that add OpenMP [[omp::...]] C23 attribute support; namely, this updates invoke.texi's -fopenmp/-fopenmp-simd entries. Cf. https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html#index-fopenmp Committed as r14-5224-g75e5a467811da4 as obvious. Tobias PS: Jakub's related commits: 5648446cdaa openmp: Mention C attribute syntax in documentation 26cf0694163 openmp: Adjust handling of __has_attribute (omp::directive)/sequence and add omp::decl 8067caa85d0 openmp: Add omp::decl support for C2X 40b9af020fc openmp: Add support for omp::directive and omp::sequence attributes in C2X ----------------- 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 commit 75e5a467811da4237d5c43b455202c832f6e064e Author: Tobias Burnus Date: Tue Nov 7 16:23:45 2023 +0100 OpenMP: invoke.texi - mention C attribute syntax for -fopenmp(-simd) gcc/ChangeLog: * doc/invoke.texi (-fopenmp, -fopenmp-simd): Adjust wording for attribute syntax supported also in C. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index e23ef05f5c1..2caa7ceec40 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -2776,9 +2776,9 @@ can be omitted, to use a target-specific default value. @opindex fopenmp @cindex OpenMP parallel @item -fopenmp -Enable handling of OpenMP directives @samp{#pragma omp} in C/C++, +Enable handling of OpenMP directives @samp{#pragma omp}, @samp{[[omp::directive(...)]]}, @samp{[[omp::sequence(...)]]} and -@samp{[[omp::decl(...)]]} in C++ and @samp{!$omp} in Fortran. It +@samp{[[omp::decl(...)]]} in C/C++ and @samp{!$omp} in Fortran. It additionally enables the conditional compilation sentinel @samp{!$} in Fortran. In fixed source form Fortran, the sentinels can also start with @samp{c} or @samp{*}. When @option{-fopenmp} is specified, the @@ -2795,9 +2795,9 @@ have support for @option{-pthread}. @option{-fopenmp} implies Enable handling of OpenMP's @code{simd}, @code{declare simd}, @code{declare reduction}, @code{assume}, @code{ordered}, @code{scan} and @code{loop} directive, and of combined or composite directives with -@code{simd} as constituent with @code{#pragma omp} in C/C++, +@code{simd} as constituent with @code{#pragma omp}, @code{[[omp::directive(...)]]}, @code{[[omp::sequence(...)]]} and -@code{[[omp::decl(...)]]} in C++ and @code{!$omp} in Fortran. It +@code{[[omp::decl(...)]]} in C/C++ and @code{!$omp} in Fortran. It additionally enables the conditional compilation sentinel @samp{!$} in Fortran. In fixed source form Fortran, the sentinels can also start with @samp{c} or @samp{*}. Other OpenMP directives are ignored. Unless