[Bug target/67458] x86: atomic store with memory_order_release doesn't order other stores

amonakov at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 4 10:17:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67458

--- Comment #2 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
Author: amonakov
Date: Mon Sep  4 10:16:37 2017
New Revision: 251643

URL: https://gcc.gnu.org/viewcvs?rev=251643&root=gcc&view=rev
Log:
optabs: ensure atomic_load/stores have compiler barriers

        PR rtl-optimization/57448
        PR target/67458
        PR target/81316
        * optabs.c (expand_atomic_load): Place compiler memory barriers if
        using atomic_load pattern.
        (expand_atomic_store): Likewise.
testsuite/
        * gcc.dg/atomic/pr80640-2.c: New testcase.
        * gcc.dg/atomic/pr81316.c: New testcase.


Added:
    trunk/gcc/testsuite/gcc.dg/atomic/pr80640-2.c
    trunk/gcc/testsuite/gcc.dg/atomic/pr81316.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/optabs.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list