diff mbox

[trans-mem] Add missing argument for _ITM_changeTransactionMode

Message ID alpine.DEB.2.00.1102111936250.24895@localhost6.localdomain6
State New
Headers show

Commit Message

Patrick Marlier Feb. 11, 2011, 6:40 p.m. UTC
The argument for _ITM_changeTransactionMode was missing. The patch adds it 
and also correct the value of MODE_SERIALIRREVOCABLE.

Patrick Marlier.
diff mbox

Patch

  * trans-mem.c (ipa_tm_insert_irr_call): Add missing argument for _ITM_changeTransactionMode.

Index: trans-mem.c
===================================================================
--- trans-mem.c	(revision 169999)
+++ trans-mem.c	(working copy)
@@ -55,7 +55,7 @@ 
 #define AR_EXCEPTIONBLOCKABORT	0x0008
 #define AR_OUTERABORT		0x0010
 
-#define MODE_SERIALIRREVOCABLE	0x0001
+#define MODE_SERIALIRREVOCABLE	0x0000
 
 
 /* The representation of a transaction changes several times during the
@@ -4186,7 +4186,8 @@ 
 
   transaction_subcode_ior (region, GTMA_MAY_ENTER_IRREVOCABLE);
 
-  g = gimple_build_call (built_in_decls[BUILT_IN_TM_IRREVOCABLE], 0);
+  g = gimple_build_call (built_in_decls[BUILT_IN_TM_IRREVOCABLE],
+                         1, build_int_cst (NULL_TREE, MODE_SERIALIRREVOCABLE));
 
   split_block_after_labels (bb);
   gsi = gsi_after_labels (bb);