re PR c/59218 (atomic transactions: accesses to volatiles not disallowed in transacti...
authorJason Merrill <jason@redhat.com>
Fri, 2 Oct 2015 13:44:41 +0000 (09:44 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 2 Oct 2015 13:44:41 +0000 (09:44 -0400)
commit1d4afc04d0031bbdef4e729034275883a8ca0622
treeb5daceaf605c188f868a257193358864e67d69f3
parent5f62fa6d6945b3f11739f5fe1a3571f2021fa3a0
re PR c/59218 (atomic transactions: accesses to volatiles not disallowed in transaction_safe code)

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.

From-SVN: r228392
gcc/ChangeLog
gcc/testsuite/c-c++-common/tm/volatile-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tm/pr46654.c
gcc/trans-mem.c