This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52558] write introduction incorrect wrt the C++11 memory model
- From: "amacleod at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 12 Mar 2012 15:24:35 +0000
- Subject: [Bug c++/52558] write introduction incorrect wrt the C++11 memory model
- Auto-submitted: auto-generated
- References: <bug-52558-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52558
--- Comment #3 from Andrew Macleod <amacleod at redhat dot com> 2012-03-12 15:24:35 UTC ---
Created attachment 26881
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26881
Testcase for simulate-threads
I've modified the testcase so that it runs in gcc.dg/simulate-thread as a
pass/fail.
Clearly it currently fails, although its interesting because at -O3 it passes
again!! The second pass of DOM undoes the extra write!
It does fail the testsuite at -O2 as expected.
This diff can be applied to add it to simulate threads.