From: Tobias Burnus Date: Tue, 18 Nov 2025 22:10:21 +0000 (+0100) Subject: libgomp.texi: Update MASTER/MASKED entry in the libgomp ABI section X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a286685f63a56d8cc22211cbefbb4680838c8226;p=thirdparty%2Fgcc.git 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 --git a/libgomp/libgomp.texi b/libgomp/libgomp.texi index e08df90bc54..a3b33fd5e07 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...