diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2011-12-21 14:30:07 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2011-12-21 14:30:07 +0000 |
commit | 2091795abd48effcbfe9407b7954021473175b0a (patch) | |
tree | 50514e3ffd5c9db38909ffd8f19685233c925f52 /gcc/testsuite/gcc.dg | |
parent | 539fcb458bc5cd2a927626985edf635ba60585de (diff) | |
download | gcc-2091795abd48effcbfe9407b7954021473175b0a.zip gcc-2091795abd48effcbfe9407b7954021473175b0a.tar.gz gcc-2091795abd48effcbfe9407b7954021473175b0a.tar.bz2 |
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
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/tm/pr51472.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tm/pr51472.c b/gcc/testsuite/gcc.dg/tm/pr51472.c new file mode 100644 index 0000000..2897c3d --- /dev/null +++ b/gcc/testsuite/gcc.dg/tm/pr51472.c @@ -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; + } +} |