This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [trans-mem] Fix instantiation of transaction expressions.
- From: Richard Henderson <rth at redhat dot com>
- To: Torvald Riegel <triegel at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Aldy Hernandez <aldyh at redhat dot com>
- Date: Mon, 07 Nov 2011 08:31:59 -0800
- Subject: Re: [trans-mem] Fix instantiation of transaction expressions.
- References: <1320675134.18023.349.camel@triegel.csb>
On 11/07/2011 06:12 AM, Torvald Riegel wrote:
> stmt = begin_transaction_stmt (input_location, NULL, flags);
> tmp = RECUR (TRANSACTION_EXPR_BODY (t));
> + if (tmp)
> + {
> + /* No statements; handle this like an expression. */
In which case I'm pretty sure you ought to check for non-null
TRANSACTION_EXPR_BODY first and not call begin_transaction_stmt.
r~