https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93462
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-8 branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>: https://gcc.gnu.org/g:6352c50d06a8ca0157293ecb0ef1f8a6dc19148a commit r8-10110-g6352c50d06a8ca0157293ecb0ef1f8a6dc19148a Author: Tobias Burnus <tob...@codesourcery.com> Date: Wed Mar 4 13:29:25 2020 +0100 [Fortran] Disable front-end optimization for OpenACC atomic (PR93462) Backported from mainline 2020-01-31 Tobias Burnus <tob...@codesourcery.com> 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.