PR middle-end/28046
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Sep 2006 08:22:04 +0000 (08:22 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Sep 2006 08:22:04 +0000 (08:22 +0000)
commiteaa3785fd8b183ba6d31bc4ac8aae93db7086986
treea5bcdf81dc6a40d882179bebad319e8d9f329bc8
parent99efba317ec83f8be14c02a2c3d8903a4dd5d5aa
PR middle-end/28046
* c-omp.c (c_finish_omp_atomic): If ADDR is not simple enough,
wrap it into TARGET_EXPR.

* gcc.dg/gomp/atomic-10.c: New test.
* g++.dg/gomp/atomic-10.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117077 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-omp.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/atomic-10.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/gomp/atomic-10.c [new file with mode: 0644]