re PR fortran/92899 ([OpenMP] ICE in gfc_trans_omp_atomic, at fortran/trans-openmp...
authorJakub Jelinek <jakub@gcc.gnu.org>
Wed, 11 Dec 2019 23:58:04 +0000 (00:58 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 11 Dec 2019 23:58:04 +0000 (00:58 +0100)
commitf8ac7d8f35e7c4a5444d4e554cb822f6346c1f2b
tree7d20a573af1e06236f0853fb15c674f275417f72
parentf5c03155aa77bdb065fed3c5a0031db45a850493
re PR fortran/92899 ([OpenMP] ICE in gfc_trans_omp_atomic, at fortran/trans-openmp.c:3769)

PR fortran/92899
* trans-openmp.c (gfc_trans_omp_atomic): For GFC_OMP_ATOMIC_SWAP,
do look through conversion on expr2 if any.

* testsuite/libgomp.fortran/atomic1.f90: New test.

From-SVN: r279266
gcc/fortran/ChangeLog
gcc/fortran/trans-openmp.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.fortran/atomic1.f90 [new file with mode: 0644]