[Bug fortran/63938] OpenMP atomic update does not protect access to automatic array

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 24 23:09:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63938

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Nov 24 23:08:26 2014
New Revision: 218031

URL: https://gcc.gnu.org/viewcvs?rev=218031&root=gcc&view=rev
Log:
    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.

Added:
    trunk/libgomp/testsuite/libgomp.fortran/pr63938-1.f90
    trunk/libgomp/testsuite/libgomp.fortran/pr63938-2.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-openmp.c
    trunk/libgomp/ChangeLog



More information about the Gcc-bugs mailing list