Commit 2091795a by Aldy Hernandez Committed by Aldy Hernandez

re PR middle-end/51472 (ICE: verify_gimple failed: invalid rhs for gimple memory…

re PR middle-end/51472 (ICE: verify_gimple failed: invalid rhs for gimple memory store with -fgnu-tm --param tm-max-aggregate-size=32)

        PR middle-end/51472
        * trans-mem.c (tm_log_add): Use create_tmp_var_reg.

From-SVN: r182588
parent 539fcb45
2011-12-21 Aldy Hernandez <aldyh@redhat.com>
PR middle-end/51472
* trans-mem.c (tm_log_add): Use create_tmp_var_reg.
2011-12-21 Martin Jambor <mjambor@suse.cz>
* tree-into-ssa.c (rewrite_update_stmt): Do not dump extra newlines.
/* { dg-do compile } */
/* { dg-options "-fgnu-tm -O --param tm-max-aggregate-size=32" } */
typedef int __attribute__ ((vector_size (16))) vectype;
vectype v;
void
foo (int c)
{
vectype *p = __builtin_malloc (sizeof (vectype));
__transaction_atomic
{
*p = v;
if (c)
__transaction_cancel;
}
}
......@@ -1003,7 +1003,7 @@ tm_log_add (basic_block entry_block, tree addr, gimple stmt)
special constructors and the like. */
&& !TREE_ADDRESSABLE (type))
{
lp->save_var = create_tmp_var (TREE_TYPE (lp->addr), "tm_save");
lp->save_var = create_tmp_reg (TREE_TYPE (lp->addr), "tm_save");
add_referenced_var (lp->save_var);
lp->stmts = NULL;
lp->entry_block = entry_block;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment