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

yyc1992 at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Feb 16 06:13:00 GMT 2016


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

Yichao Yu <yyc1992 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yyc1992 at gmail dot com

--- Comment #1 from Yichao Yu <yyc1992 at gmail dot com> ---
I've just hit this when I was expecting the stores to the non-atomic variables
to be optimized to before the atomic store. I have a slightly more
self-contained repro that can trigger an assertion on x64 when running
repeatedly

https://github.com/yuyichao/explore/commit/0b70ee0b14c5d20f0e98d8e0d0ebc5032bd12892

(I was going to report a bug with the code and discovered this report and I
realized that I happened to pick exactly the same variable names and
values........)


More information about the Gcc-bugs mailing list