Re: [patch] Fix instantiation of transaction expressions.

2011-11-21 Thread Richard Henderson
On 11/21/2011 12:25 PM, Torvald Riegel wrote: > gcc/cp/ > * pt.c (tsubst_copy_and_build): Handle TRANSACTION_EXPR. Ok. > +/* { dg-final { scan-tree-dump-times "ITM_RU4\\s*\\(&global" 2 "tmmark" } } > */ This needs to cater to sizeof(int) != 4. Why not just match "ITM_RU" and leave i

[patch] Fix instantiation of transaction expressions.

2011-11-21 Thread Torvald Riegel
This patch fixes the instantiation of transaction expressions. Transaction statements were correctly before via tsubst_expr, so just use this code for expressions in tsubst_copy_and_build too. OK for trunk? commit 08726d496492d5a0fc2b0310983b04689ba17a48 Author: Torvald Riegel Date: Sat Nov 19