This is the mail archive of the gcc-patches@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] |
+ p = malloc (sizeof (*p) * 100); + + __transaction { + /* Instrument store, since memory pointed to by P is not + transaction local. */ + p[5] = 123; + + if (something()) + __transaction_cancel; + } + return p[5]; +} + +/* { dg-final { scan-tree-dump-times "ITM_WU" 1 "tmmark" } } */
+ if (stmt&& is_gimple_call (stmt))
+ if (DECL_BUILT_IN_CLASS (fn) == BUILT_IN_NORMAL + && (DECL_FUNCTION_CODE (fn) == BUILT_IN_MALLOC + || DECL_FUNCTION_CODE (fn) == BUILT_IN_ALLOCA))
@@ -1149,6 +1219,8 @@ requires_barrier (basic_block entry_bloc switch (TREE_CODE (x)) { case INDIRECT_REF: + if (transaction_local_dynamic_memory_p (entry_block, TREE_OPERAND (x, 0))) + return false;
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |