[OpenACC] Allow gang reductions inside serial constructs
authorKwok Cheung Yeung <kcy@codesourcery.com>
Fri, 13 Mar 2020 18:13:49 +0000 (11:13 -0700)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 30 Nov 2021 11:58:53 +0000 (12:58 +0100)
commitf1a58ab0db20c0862e8b5039bd448fc8c9799cac
tree3f246461e72da66268f850e8a4a09aaa831ef6aa
parent2b7dac2c0dcb087da9e4018943c023c0678234a3
[OpenACC] Allow gang reductions inside serial constructs

... fixing a regression introduced in the preceding
commit 2b7dac2c0dcb087da9e4018943c023c0678234a3
"Make OpenACC orphan gang reductions errors".

gcc/fortran/
* openmp.c (oacc_is_serial, oacc_is_parallel_or_serial): New.
(resolve_oacc_loop_blocks): Use oacc_is_parallel_or_serial instead of
oacc_is_parallel.
libgomp/
* testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
temporary skip.

Co-Authored-By: Thomas Schwinge <thomas@codesourcery.com>
gcc/fortran/openmp.c
libgomp/testsuite/libgomp.oacc-fortran/parallel-dims.f90