PR c/68868 - atomic_init emits an unnecessary fence
authorMartin Sebor <msebor@redhat.com>
Thu, 17 Dec 2015 01:33:41 +0000 (01:33 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Thu, 17 Dec 2015 01:33:41 +0000 (18:33 -0700)
commit7585d94ffefc0c1c80d5cb191b461fb18e124553
tree6096f84130edc1cfc3d88b7e2927b49a222da8da
parent9393bc31a2a33c7662fe9d11afb059da3b46c2a6
PR c/68868 - atomic_init emits an unnecessary fence

gcc/ChangeLog
* ginclude/stdatomic.h (atomic_init): Use atomic_store instead
of plain assignment.
gcc/testsuite/ChangeLog
* testsuite/gcc.dg/atomic/stdatomic-init.c: New test.

From-SVN: r231733
gcc/ChangeLog
gcc/ginclude/stdatomic.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/atomic/stdatomic-init.c [new file with mode: 0644]