This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/59218] atomic transactions: accesses to volatiles not disallowed in transaction_safe code
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 02 Oct 2015 13:45:13 +0000
- Subject: [Bug c/59218] atomic transactions: accesses to volatiles not disallowed in transaction_safe code
- Auto-submitted: auto-generated
- References: <bug-59218-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59218
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Oct 2 13:44:41 2015
New Revision: 228392
URL: https://gcc.gnu.org/viewcvs?rev=228392&root=gcc&view=rev
Log:
PR c/59218
* trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
(diagnose_tm_1_op): Also diagnose volatile accesses in
transaction_safe function.
Added:
trunk/gcc/testsuite/c-c++-common/tm/volatile-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/gcc.dg/tm/pr46654.c
trunk/gcc/trans-mem.c