[gcc r16-5403] libgomp.texi: Update MASTER/MASKED entry in the libgomp ABI section
Tobias Burnus
burnus@gcc.gnu.org
Tue Nov 18 22:12:36 GMT 2025
https://gcc.gnu.org/g:a286685f63a56d8cc22211cbefbb4680838c8226
commit r16-5403-ga286685f63a56d8cc22211cbefbb4680838c8226
Author: Tobias Burnus <tburnus@baylibre.com>
Date: Tue Nov 18 23:10:21 2025 +0100
libgomp.texi: Update MASTER/MASKED entry in the libgomp ABI section
libgomp/
* libgomp.texi (The libgomp ABI): Update MASTER section by
also covering MASKED.
Diff:
---
libgomp/libgomp.texi | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/libgomp/libgomp.texi b/libgomp/libgomp.texi
index e08df90bc547..a3b33fd5e077 100644
--- a/libgomp/libgomp.texi
+++ b/libgomp/libgomp.texi
@@ -7473,7 +7473,7 @@ The following sections present notes on the external ABI as
presented by libgomp. Only maintainers should need them.
@menu
-* Implementing MASTER construct::
+* Implementing MASKED and MASTER construct::
* Implementing CRITICAL construct::
* Implementing ATOMIC construct::
* Implementing FLUSH construct::
@@ -7491,16 +7491,19 @@ presented by libgomp. Only maintainers should need them.
@end menu
-@node Implementing MASTER construct
-@section Implementing MASTER construct
+@node Implementing MASKED and MASTER construct
+@section Implementing MASKED and MASTER construct
@smallexample
-if (omp_get_thread_num () == 0)
+if (omp_get_thread_num () == thread_num)
block
@end smallexample
+Hereby, @var{thread_num} has the value of the argument to the @code{filter}
+clause or zero if not specified.
+
Alternately, we generate two copies of the parallel subfunction
-and only include this in the version run by the primary thread.
+and only include this in the version run by the @var{thread_num} thread.
Surely this is not worthwhile though...
More information about the Gcc-cvs
mailing list