This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54893] unable to access volatile variable within relaxed transaction
- From: "torvald at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 11 Oct 2012 19:54:11 +0000
- Subject: [Bug c++/54893] unable to access volatile variable within relaxed transaction
- Auto-submitted: auto-generated
- References: <bug-54893-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54893
--- Comment #3 from torvald at gcc dot gnu.org 2012-10-11 19:54:11 UTC ---
I agree with Michael. Accesses to volative vars are disallowed in safe code,
but relaxed transactions can run unsafe code (after going irrevocable). The
test case in bug 46654 is an atomic transaction.