gcc-12/changes.html: OpenMP 5.1 update
* htdocs/gcc-12/changes.html (Caveats): Item about Fortran and omp_lib.h.
(OpenMP): More OMP 5.1 features: masked, scope, nothing, error + primary
in proc_bind.
@@ -31,6 +31,7 @@ a work-in-progress.</p>
<h2>Caveats</h2>
<ul>
<li>
+ <strong>C++:</strong>
Two non-standard <code>std::pair</code> constructors have been deprecated.
These allowed the use of an rvalue and a literal <code>0</code> to
construct a pair containing a move-only type and a pointer.
@@ -38,7 +39,14 @@ a work-in-progress.</p>
member instead of a literal <code>0</code>, as this is portable to other
C++ implementations.
</li>
- <li>...</li>
+ <li>
+ <strong>Fortran:</strong>
+ OpenMP code using the <code>omp_lib.h</code> include file can no longer be
+ compiled with <code>-std=f95</code> but now requires at least
+ <code>-std=f2003</code>. Alternatively, use the <code>omp_lib</code> module,
+ which still supports <code>-std=f95</code> and is recommended to be used
+ instead in general.
+ </li>
</ul>
@@ -57,8 +65,12 @@ a work-in-progress.</p>
clause, <code>defaultmap</code> has been updated for OpenMP 5.0, and the
<code>loop</code> directive and combined directives
involving <code>master</code> directive have been added. Additionally,
- support for expressing OpenMP directives as C++ 11 attributes has been
- added, which is an OpenMP 5.1 feature.
+ the following OpenMP 5.1 feature have been added: support for expressing
+ OpenMP directives as C++ 11 attributes, the <code>masked</code> and
+ <code>scope</code> construct, the <code>nothing</code> and
+ <code>error</code> directives, and using <code>primary</code> with the
+ <code>proc_bind</code> clause and <code>OMP_PROC_BIND</code> environment
+ variable.
</li>
<li>The new warning flag <code>-Wopenacc-parallelism</code> was added for
OpenACC. It warns about potentially suboptimal choices related to