This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/68868] atomic_init emits an unnecessary fence


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]