public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] OpenMP: invoke.texi - mention C attribute syntax for -fopenmp(-simd)
@ 2023-11-07 15:30 Tobias Burnus
  0 siblings, 0 replies; only message in thread
From: Tobias Burnus @ 2023-11-07 15:30 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 909 bytes --]

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

[-- Attachment #2: committed.diff --]
[-- Type: text/x-patch, Size: 2010 bytes --]

commit 75e5a467811da4237d5c43b455202c832f6e064e
Author: Tobias Burnus <tobias@codesourcery.com>
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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-07 15:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-07 15:30 [committed] OpenMP: invoke.texi - mention C attribute syntax for -fopenmp(-simd) Tobias Burnus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).