re PR c/69389 (bit field incompatible with OpenMP atomic update)
authorJakub Jelinek <jakub@redhat.com>
Mon, 7 Aug 2017 18:34:29 +0000 (20:34 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 7 Aug 2017 18:34:29 +0000 (20:34 +0200)
commit56b5041c02bd8ecfddd5e5a373c8a3586a2354ab
treec89ce11c83972621f5a37972d6d1ac9a7b80144e
parent2643d17f5a0c6b2c760e9dc9bc23399dbc6aae37
re PR c/69389 (bit field incompatible with OpenMP atomic update)

PR c/69389
* gimplify.c (goa_stabilize_expr): Handle BIT_INSERT_EXPR and
BIT_FIELD_REF.

* c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.

* testsuite/libgomp.c/pr69389.c: New test.
* testsuite/libgomp.c++/pr69389.C: New test.

From-SVN: r250929
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-omp.c
gcc/gimplify.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/pr69389.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c/pr69389.c [new file with mode: 0644]