This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/59218] atomic transactions: accesses to volatiles not disallowed in transaction_safe code


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]