https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123098
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <[email protected]>: https://gcc.gnu.org/g:9c119b0fdd9ba5a6821c0b4c5874ade8f4969109 commit r16-6041-g9c119b0fdd9ba5a6821c0b4c5874ade8f4969109 Author: Jakub Jelinek <[email protected]> Date: Thu Dec 11 21:29:32 2025 +0100 openmp: Limit - reduction -Wdeprecated-openmp diagnostics to OpenMP, testsuite fixes [PR123098] The recent -Wdeprecated-openmp changes broke various tests. This patch limits the - reduction diagnostics to OpenMP, as the code is used by OpenACC and even if OpenACC deprecates it, it should be changed independently and not mention OpenMP versions in that case. The rest are just testsuite tweaks to make stuff pass, sometimes adding -Wno-deprecated-openmp, in other cases using newer syntax. 2025-12-11 Jakub Jelinek <[email protected]> PR testsuite/123098 gcc/c/ * c-parser.cc (c_parser_omp_clause_reduction): Only emit -Wdeprecated-openmp warning for CPP_MINUS if is_omp. gcc/cp/ * parser.cc (cp_parser_omp_clause_reduction): Only emit -Wdeprecated-openmp warning for CPP_MINUS if is_omp. gcc/fortran/ * openmp.cc (gfc_match_omp_clause_reduction): Only emit -Wdeprecated-openmp warning for '-' if !openacc. gcc/testsuite/ * gcc.dg/vect/vect-simd-clone-15.c (foo): Use OpenMP 5.2 syntax for linear clause. * g++.dg/vect/simd-clone-6.cc (foo): Likewise. * c-c++-common/goacc-gomp/pr93465-1.c: Use #pragma omp begin declare target instead of #pragma omp declare target. * c-c++-common/goacc-gomp/nesting-fail-1.c: Use #pragma omp masked instead of #pragma omp master. * gfortran.dg/goacc-gomp/pr102330-1.f90 (r1): Use !$omp masked taskloop simd instead of !$omp master taskloop simd. * gfortran.dg/vect/pr86421.f90 (foo): Use OpenMP 5.2 syntax for linear clause. * gfortran.dg/gomp/allocate-16.f90: Use \\\$ instead of $ in dg-error and use relative line numbers instead of absolute. * gfortran.dg/gomp/groupprivate-2.f90: Add -Wno-deprecated-openmp to dg-additional-options. * gfortran.dg/gomp/groupprivate-5.f90: Likewise. * gfortran.dg/goacc/pr93329.f90: Likewise.
