mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-24 03:39:18 +08:00
+ * g++.dg/tm/pr47530-2.C: Adjust for uninstrumented code path.
+ * g++.dg/tm/pr47530-2.C: Adjust for uninstrumented code path. + * g++.dg/tm/pr47530.C: Same. From-SVN: r193372
This commit is contained in:
parent
b49c27c320
commit
96dd21067c
@ -1,3 +1,8 @@
|
||||
2012-11-09 Aldy Hernandez <aldyh@redhat.com>
|
||||
|
||||
* g++.dg/tm/pr47530-2.C: Adjust for uninstrumented code path.
|
||||
* g++.dg/tm/pr47530.C: Same.
|
||||
|
||||
2012-11-09 Jason Merrill <jason@redhat.com>
|
||||
|
||||
PR c++/54859
|
||||
|
@ -31,5 +31,9 @@ void bench_test()
|
||||
}
|
||||
}
|
||||
|
||||
// { dg-final { scan-tree-dump-times "ITM_commitTransaction.*tail call" 0 "tmedge" } }
|
||||
// There should be two calls to commitTransaction.
|
||||
// The one in the uninstrumented code path is a tail call.
|
||||
// The one in the instrumented code path is not.
|
||||
// { dg-final { scan-tree-dump-times "ITM_commitTransaction.*tail call" 1 "tmedge" } }
|
||||
|
||||
// { dg-final { cleanup-tree-dump "tmedge" } }
|
||||
|
@ -73,7 +73,8 @@ void LinkedList::insert(int val)
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure we don't do tail optimization on the commit.
|
||||
// { dg-final { scan-tree-dump-times "commitTransaction...; .tail call" 0 "optimized" } }
|
||||
// Make sure we don't do tail optimization on the commit, except on
|
||||
// the uninstrumented code path.
|
||||
// { dg-final { scan-tree-dump-times "commitTransaction...; .tail call" 1 "optimized" } }
|
||||
// { dg-final { cleanup-tree-dump "optimized" } }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user