diff options
author | aldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-28 23:24:57 +0000 |
---|---|---|
committer | aldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-28 23:24:57 +0000 |
commit | 208cd3e60b9c8bda8dd85bb2f1f299dd3e69a640 (patch) | |
tree | 3e48d788bc0281b1899735d4533cc0c8f9beed18 /gcc/testsuite/gcc.dg/tm | |
parent | 44b00fb560f5ac23a99c38c3a45b59ea15bef4a1 (diff) | |
download | gcc-208cd3e60b9c8bda8dd85bb2f1f299dd3e69a640.tar.gz |
PR 47905
* trans-mem.c (ipa_tm_propagate_irr): Do not propagate to blocks
outside of a TM region.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/transactional-memory@170578 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/tm')
-rw-r--r-- | gcc/testsuite/gcc.dg/tm/pr47905.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tm/pr47905.c b/gcc/testsuite/gcc.dg/tm/pr47905.c new file mode 100644 index 00000000000..fac82db2847 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tm/pr47905.c @@ -0,0 +1,14 @@ +/* { dg-do compile } + { dg-options "-fgnu-tm" } */ + +void funcA(); +void funcB(); + +void *thread() +{ + __transaction [[relaxed]] + { + funcA(); + }; + funcB(); +} |