https://gcc.gnu.org/g:b95290e8562168e118b646b09b65aee7899170d6
commit r16-6215-gb95290e8562168e118b646b09b65aee7899170d6 Author: Rainer Orth <[email protected]> Date: Wed Dec 17 15:39:20 2025 +0100 libgomp: Fix libgomp.c/affinity-1.c on non-Linux The new libgomp.c/affinity-1.c test FAILs on Solaris and Darwin: FAIL: libgomp.c/affinity-1.c (test for excess errors) Excess errors: libgomp.c/affinity-1.c:194:3: warning: 'omp_proc_bind_master' is deprecated [-Wdeprecated-declarations] libgomp.c/affinity-1.c:267:3: warning: 'omp_set_nested' is deprecated [-Wdeprecated-declarations] libgomp.c/affinity-1.c:272:5: warning: 'omp_proc_bind_master' is deprecated [-Wdeprecated-declarations] libgomp.c/affinity-1.c:285:43: warning: 'master' affinity deprecated since OpenMP 5.1, use 'primary' [-Wdeprecated-openmp] and several more. This happens because the required -Wno-* options have only been added for Linux. This patch adds them unconditionally instead. Tested on i386-pc-solaris2.11, sparc-sun-solaris2.11, x86_64-apple-darwin25.1.0, and x86_64-pc-linux-gnu. 2025-12-17 Rainer Orth <[email protected]> libgomp: * testsuite/libgomp.c/affinity-1.c: Always add warnings. Diff: --- libgomp/testsuite/libgomp.c/affinity-1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libgomp/testsuite/libgomp.c/affinity-1.c b/libgomp/testsuite/libgomp.c/affinity-1.c index 414c5121b70e..4d993d1fe500 100644 --- a/libgomp/testsuite/libgomp.c/affinity-1.c +++ b/libgomp/testsuite/libgomp.c/affinity-1.c @@ -17,7 +17,8 @@ /* { dg-do run } */ /* { dg-set-target-env-var OMP_PROC_BIND "false" } */ -/* { dg-additional-options "-DINTERPOSE_GETAFFINITY -DDO_FORK -ldl -Wno-deprecated-declarations -Wno-deprecated-openmp" { target *-*-linux* } } */ +/* { dg-additional-options "-Wno-deprecated-declarations -Wno-deprecated-openmp" } +/* { dg-additional-options "-DINTERPOSE_GETAFFINITY -DDO_FORK -ldl" { target *-*-linux* } } */ #ifndef _GNU_SOURCE #define _GNU_SOURCE
