mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-21 18:15:06 +08:00
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
This commit is contained in:
parent
539fcb458b
commit
2091795abd
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
17
gcc/testsuite/gcc.dg/tm/pr51472.c
Normal file
17
gcc/testsuite/gcc.dg/tm/pr51472.c
Normal file
@ -0,0 +1,17 @@
|
||||
/* { 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;
|
||||
|
Loading…
Reference in New Issue
Block a user