This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/69389] bit field incompatible with OpenMP atomic update
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 07 Aug 2017 18:35:01 +0000
- Subject: [Bug c/69389] bit field incompatible with OpenMP atomic update
- Auto-submitted: auto-generated
- References: <bug-69389-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69389
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Aug 7 18:34:29 2017
New Revision: 250929
URL: https://gcc.gnu.org/viewcvs?rev=250929&root=gcc&view=rev
Log:
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.
Added:
trunk/libgomp/testsuite/libgomp.c++/pr69389.C
trunk/libgomp/testsuite/libgomp.c/pr69389.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-omp.c
trunk/gcc/gimplify.c
trunk/libgomp/ChangeLog