re PR fortran/63938 (OpenMP atomic update does not protect access to automatic array)
authorJakub Jelinek <jakub@redhat.com>
Mon, 24 Nov 2014 23:08:26 +0000 (00:08 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 24 Nov 2014 23:08:26 +0000 (00:08 +0100)
commit3f9e8f13a316a0044bd303983746cafba804d646
treed83db1c113f6d65bcbb7993517f743311e6b26e2
parent05e729ec76723889b44f8bd3176666800c514a0d
re PR fortran/63938 (OpenMP atomic update does not protect access to automatic array)

PR fortran/63938
* trans-openmp.c (gfc_trans_omp_atomic): Make sure lhsaddr is
simple enough for goa_lhs_expr_p.

* libgomp.fortran/pr63938-1.f90: New test.
* libgomp.fortran/pr63938-2.f90: New test.

From-SVN: r218031
gcc/fortran/ChangeLog
gcc/fortran/trans-openmp.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.fortran/pr63938-1.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/pr63938-2.f90 [new file with mode: 0644]