This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r239932 - in /branches/gcc-6-branch/gcc: fortra...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 01 Sep 2016 11:48:11 -0000
- Subject: r239932 - in /branches/gcc-6-branch/gcc: fortra...
Author: jakub
Date: Thu Sep 1 11:48:02 2016
New Revision: 239932
URL: https://gcc.gnu.org/viewcvs?rev=239932&root=gcc&view=rev
Log:
Backported from mainline
2016-08-31 Jakub Jelinek <jakub@redhat.com>
PR fortran/77374
* parse.c (parse_omp_oacc_atomic): Copy over cp->ext.omp_atomic
to cp->block->ext.omp_atomic.
* resolve.c (gfc_resolve_blocks): Assert block with one or two
EXEC_ASSIGNs for EXEC_*_ATOMIC.
* openmp.c (resolve_omp_atomic): Don't assert one or two
EXEC_ASSIGNs, instead return quietly for EXEC_NOPs and otherwise
error unexpected statements.
PR fortran/77374
* gfortran.dg/gomp/pr77374.f08: New test.
Added:
branches/gcc-6-branch/gcc/testsuite/gfortran.dg/gomp/pr77374.f08
Modified:
branches/gcc-6-branch/gcc/fortran/ChangeLog
branches/gcc-6-branch/gcc/fortran/openmp.c
branches/gcc-6-branch/gcc/fortran/parse.c
branches/gcc-6-branch/gcc/fortran/resolve.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog