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] |
* Remove ITM_REGPARM from _ITM_beginTransaction since on x86-32, a > variadic function ignores regparm. > * Add ITM_PURE to _ITM_addUserCommitAction and _ITM_addUserUndoAction to > be usable inside transactions.Those should be called from transaction_pure code only, or from wrapper functions linked to using transaction_wrapper. Thus, they don't need to be pure. Alternatively, why should they be?
void ucommit(void *arg) { printf("Committed. now we can do undoable action (as printf) or ...\n"); }
__transaction_atomic { _ITM_addUserCommitAction(ucommit, _ITM_noTransactionId, NULL); ... }
Thanks. -- Patrick.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |