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]

Re: [trans-mem] Fix instantiation of transaction expressions.


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]