diff options
author | Cesar Philippidis <cesar@codesourcery.com> | 2019-10-25 07:28:40 -0700 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2019-10-25 16:28:40 +0200 |
commit | ec0846134e08ed5f645db858385b385227ae5026 (patch) | |
tree | cf234892de7408cd52df5184bcccdcae675e7bb4 /gcc/config/avr/avr.c | |
parent | 643c11a1f7407d694031b12d86fd6fc0fd5e9d10 (diff) | |
download | gcc-ec0846134e08ed5f645db858385b385227ae5026.zip gcc-ec0846134e08ed5f645db858385b385227ae5026.tar.gz gcc-ec0846134e08ed5f645db858385b385227ae5026.tar.bz2 |
[Fortran] OpenACC – permit common blocks in some clauses
2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
Tobias Burnus <tobias@codesourcery.com>
gcc/fortran/
* openmp.c (gfc_match_omp_map_clause): Add and pass allow_commons
argument.
(gfc_match_omp_clauses): Update calls to permit common blocks for
OpenACC's copy/copyin/copyout, create/delete, host,
pcopy/pcopy_in/pcopy_out, present_or_copy, present_or_copy_in,
present_or_copy_out, present_or_create and self.
gcc/
* gimplify.c (oacc_default_clause): Privatize fortran common blocks.
(omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
common block decls.
gcc/testsuite/
* gfortran.dg/goacc/common-block-1.f90: New test.
* gfortran.dg/goacc/common-block-2.f90: New test.
* gfortran.dg/goacc/common-block-3.f90: New test.
libgomp/
* testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
* testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
* testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
Reviewed-by: Thomas Schwinge <thomas@codesourcery.com>
Co-Authored-By: Tobias Burnus <tobias@codesourcery.com>
From-SVN: r277451
Diffstat (limited to 'gcc/config/avr/avr.c')
0 files changed, 0 insertions, 0 deletions