From patchwork Sun Nov 5 17:38:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 161740 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp2235895vqu; Sun, 5 Nov 2023 09:39:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IEcJgablZij+a190o+8nfzOUvSLj9ZkWtuqHGYN3beRWEcN+CYCQEFEV74TTL9NKEemyEKL X-Received: by 2002:a05:6870:11c6:b0:1e9:8d7a:fc5b with SMTP id 6-20020a05687011c600b001e98d7afc5bmr20496096oav.47.1699205944203; Sun, 05 Nov 2023 09:39:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699205944; cv=pass; d=google.com; s=arc-20160816; b=FcR+70E2u7xa3tYmowIdgJj0+HUknqFjY1HlALKhQNY4qOcXy8gyhe7vCliNPFR4hQ jLZyPQqEcbOmg6DR7Ku41ttLPoejmpH1RR52xCmYa72wcVKbe/rVT241JVYOzYxwQuSZ /U1R4ILyolhLC37GglZtJnpUBt4KRe3pnXc4TfsqmX2fLTyEPsjQIX9SxDZDpWeZsu3i JDSBDUCE4RiymT8JPK88mXwCcE0e7XgF5uKakMU4pC9kwZtsz0WTGCGX0UYMIF6Sps/U 8BlyGQ9IVhXDU3coITmTjNNb0+MJRN5nQM5r+2+HRwTYlqotoHNC5T1TuFalxBcrXEZs 8ETw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:reply-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=d8dXccT8gC412yqxWi0Ck6cwcNWP67u1o3xWzLSu8Wk=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=zjyhUSNZOKtYRSrsNBbJ6fsO9j8vZ/nMx3Jr5SyzBZ8+OBiOcMO9gdBBSGeCCZyjj/ RCZA5Bp/E9pSdoSMlojXS983jsLL+mJgqZL/CnvGSzQGriXGqnT85A5G9NqPUowiSG0o bWls7fK+XZ25ziEgXhyzgMy4Xsyum/FU8hBeju14NyX/DMbm1tkHIVhuf1bxFsbvj+EL MXfwZfO8gGWMy/BN6QumJrLv8K/57ztK5ByrZUnHk37Etii0eQzpGiDE5gY/1S1gH337 MHBVbefDyhoYW3z0FNsnEddpbuSSfxY9b60ezeQw3cNdgjYK0p/51esXZjf4K4c/nq/f TFQQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Z6ho3NAd; arc=pass (i=1); 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id o16-20020ac87c50000000b0041cc48c4959si4177204qtv.645.2023.11.05.09.39.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 09:39:04 -0800 (PST) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Z6ho3NAd; arc=pass (i=1); 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EEAAD385842A for ; Sun, 5 Nov 2023 17:39:03 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org 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 B52853858D3C for ; Sun, 5 Nov 2023 17:38:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B52853858D3C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B52853858D3C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699205921; cv=none; b=kPFqfeylq6FkoG+XrOlCn/J8mGKGAwtqQN4E7znHmeQmCnYfEvTgb0srzv7YHx4BqWJbAWcWxR5eictK1UUDF5sB+etbSxRI60h1PkfWcuzP/2eB3R9aqiB+5/oNAaqBuojgrX3HuUcFXRClmx4K2H2xF98SW7mm6Npc/tNjBu0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699205921; c=relaxed/simple; bh=on07aTSZuLVblS9zRGKqL3AYWJxjLoHp69UdFvqaDC4=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=NXrFrYjZUEHEE5Xi7mV6/yf+NJe1AR4O9nCvLs5guggZuve8QL3LBVY5fxgFvumeXnX2ZEyuTCNZANH0awqp9pNZNzTOpITy55mdUlGdTV2PbjlB72cBTZfGg9VnUGPpaOgUkmveeoIEK5vIhkrm8bMh+jrH6Q5TcUQ/TJfptiw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699205920; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type; bh=d8dXccT8gC412yqxWi0Ck6cwcNWP67u1o3xWzLSu8Wk=; b=Z6ho3NAdgDrp+dnejD0YSuX6dBXzzQTkxkNv8Tj+gVvwNzBWvEY39H0Z9OvgVGMa4TtwFb wbyxK3ErlDyFtuBYIoExKx6b3e6+fz2eZVa0JhDEbnQw600NE/1yaCcwaeAUpkLllQLMTU A1TLGhUc8nILVnBZcRKmYxIHNJlNLow= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-213-8qiWyB_iMgyL5VS95VKOkg-1; Sun, 05 Nov 2023 12:38:38 -0500 X-MC-Unique: 8qiWyB_iMgyL5VS95VKOkg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AD75880F92B for ; Sun, 5 Nov 2023 17:38:38 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.81]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 701E2502E for ; Sun, 5 Nov 2023 17:38:38 +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 3A5Hca591794243 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Sun, 5 Nov 2023 18:38:36 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 3A5HcZ5S1794242 for gcc-patches@gcc.gnu.org; Sun, 5 Nov 2023 18:38:35 +0100 Date: Sun, 5 Nov 2023 18:38:35 +0100 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [committed] openmp: Mention C attribute syntax in documentation Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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: , Reply-To: Jakub Jelinek Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781746571926052898 X-GMAIL-MSGID: 1781746571926052898 Hi! This patch mentions the C attribute syntax support in the libgomp documentation. Bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk. 2023-11-05 Jakub Jelinek * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax supported also in C. Jakub --- libgomp/libgomp.texi.jj 2023-10-16 14:24:46.408203789 +0200 +++ libgomp/libgomp.texi 2023-11-04 09:46:47.200437631 +0100 @@ -138,7 +138,7 @@ changed to GNU Offloading and Multi Proc To activate the OpenMP extensions for C/C++ and Fortran, the compile-time flag @option{-fopenmp} must be specified. For C and C++, this enables -the handling of the OpenMP directives using @code{#pragma omp} and, for C++, the +the handling of the OpenMP directives using @code{#pragma omp} and the @code{[[omp::directive(...)]]}, @code{[[omp::sequence(...)]]} and @code{[[omp::decl(...)]]} attributes. For Fortran, it enables for free source form the @code{!$omp} sentinel for directives and the