]> gcc.gnu.org Git - gcc.git/commit
GCC11 - Fortran: combined directives - order(concurrent) not on distribute
authorTobias Burnus <tobias@codesourcery.com>
Mon, 20 Sep 2021 15:24:56 +0000 (17:24 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Mon, 20 Sep 2021 15:24:56 +0000 (17:24 +0200)
commitb1dc26d3543d79805751c26ba5b142eeeb1f55b8
tree0b39c267b39997aa765831b61d82c592db9c7506
parent79c523d40de1b7ce1dd0f4865c0855ab2bf6744b
GCC11 - Fortran: combined directives - order(concurrent) not on distribute

While OpenMP 5.1 and GCC 12 permits 'order(concurrent)' on distribute,
OpenMP 5.0 and GCC 11 don't. This patch for GCC 11 ensures the clause also
does not end up on 'distribute' when splitting combined directives.

gcc/fortran/ChangeLog:

* trans-openmp.c (gfc_split_omp_clauses): Don't put 'order(concurrent)'
on 'distribute' for combined directives, matching OpenMP 5.0

gcc/testsuite/ChangeLog:

* gfortran.dg/gomp/distribute-order-concurrent.f90: New test.
gcc/fortran/trans-openmp.c
gcc/testsuite/gfortran.dg/gomp/distribute-order-concurrent.f90 [new file with mode: 0644]
This page took 0.071223 seconds and 6 git commands to generate.