[Bug target/83285] non-atomic stores can removed with seq_cst (and store release) on AArch64
sje at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 8 20:50:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83285
Steve Ellcey <sje at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Steve Ellcey <sje at gcc dot gnu.org> ---
This was fixed for 8.0 with this patch:
commit 31d7a9b35fef974dad13881df6d319b7b08600e8
Author: amonakov <amonakov@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Mon Sep 4 10:16:37 2017 +0000
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.
More information about the Gcc-bugs
mailing list