re PR middle-end/88968 (Stack overflow in gimplify_expr)
authorJakub Jelinek <jakub@redhat.com>
Tue, 22 Jan 2019 22:28:42 +0000 (23:28 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 22 Jan 2019 22:28:42 +0000 (23:28 +0100)
commit18a23298d3a61bb387c5c67a3a867e11118408af
tree2319f8c1df10e406f63652ca8f3d024b4c23e7ce
parentfbf3df55a16c9ad129aa47a5a2d2d2aa0c7746df
re PR middle-end/88968 (Stack overflow in gimplify_expr)

PR middle-end/88968
* gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
non-integral DECL_BIT_FIELD_REPRESENTATIVEs.

* c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type
variable after using BIT_FIELD_REF.

* c-c++-common/gomp/atomic-23.c: New test.

From-SVN: r268165
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-omp.c
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/atomic-23.c [new file with mode: 0644]