aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTobias Burnus <tobias@codesourcery.com>2023-11-07 16:23:45 +0100
committerTobias Burnus <tobias@codesourcery.com>2023-11-07 16:25:19 +0100
commit75e5a467811da4237d5c43b455202c832f6e064e (patch)
treea502a13ba025d30c48578310071d555d9d92ff60 /gcc
parentf40eac535bd55192cf93daca16235efbcd91157a (diff)
downloadgcc-75e5a467811da4237d5c43b455202c832f6e064e.zip
gcc-75e5a467811da4237d5c43b455202c832f6e064e.tar.gz
gcc-75e5a467811da4237d5c43b455202c832f6e064e.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/doc/invoke.texi8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index e23ef05..2caa7ce 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