This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/68868] atomic_init emits an unnecessary fence
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 17 Dec 2015 01:34:12 +0000
- Subject: [Bug c/68868] atomic_init emits an unnecessary fence
- Auto-submitted: auto-generated
- References: <bug-68868-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68868
--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Thu Dec 17 01:33:41 2015
New Revision: 231733
URL: https://gcc.gnu.org/viewcvs?rev=231733&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/atomic/stdatomic-init.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ginclude/stdatomic.h
trunk/gcc/testsuite/ChangeLog