[Fortran] Disable front-end optimization for OpenACC atomic (PR93462)
authorTobias Burnus <tobias@codesourcery.com>
Fri, 31 Jan 2020 14:54:21 +0000 (15:54 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 31 Jan 2020 14:54:21 +0000 (15:54 +0100)
commit6a97d9eae4543a995f895e6739530f55f5d039a7
tree2e8402f8e1b5c1733402962acc814b675da2bf83
parente60b1e23626701939e8a2f0cf6fc1e48abdf867b
[Fortran] Disable front-end optimization for OpenACC atomic (PR93462)

        PR fortran/93462
        * frontend-passes.c (gfc_code_walker): For EXEC_OACC_ATOMIC, set
        in_omp_atomic to true prevent front-end optimization.

        PR fortran/93462
        * gfortran.dg/goacc/atomic-1.f90: New.
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/goacc/atomic-1.f90 [new file with mode: 0644]