summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tm
diff options
context:
space:
mode:
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-26 16:54:03 +0000
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-26 16:54:03 +0000
commit2fdab663a2c1156c0fa542f70c851154623cbefd (patch)
treeed7a71079bac1b2609b01edb53913d9c16645381 /gcc/testsuite/gcc.dg/tm
parent9a0faaf91190f837accefbfc01dac70fb2ff040c (diff)
downloadgcc-2fdab663a2c1156c0fa542f70c851154623cbefd.tar.gz
* trans-mem.c (ipa_tm_transform_calls): Do not scan past the end
of the transaction. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/transactional-memory@156254 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/tm')
-rw-r--r--gcc/testsuite/gcc.dg/tm/20100125.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tm/20100125.c b/gcc/testsuite/gcc.dg/tm/20100125.c
new file mode 100644
index 00000000000..62947a05a17
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/tm/20100125.c
@@ -0,0 +1,15 @@
+/* { dg-do compile } */
+/* { dg-options "-fgnu-tm -O -fdump-tree-tmmark" } */
+
+int trxn;
+
+void set_remove(int * val)
+{
+ __transaction {
+ trxn = 5;
+ }
+ george();
+}
+
+/* { dg-final { scan-tree-dump-times "getTMCloneOrIrrevocable" 0 "tmmark" } } */
+/* { dg-final { cleanup-tree-dump "tmmark" } } */