+ * g++.dg/tm/pr47530-2.C: Adjust for uninstrumented code path.
authorAldy Hernandez <aldyh@redhat.com>
Fri, 9 Nov 2012 18:52:36 +0000 (18:52 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Fri, 9 Nov 2012 18:52:36 +0000 (18:52 +0000)
+       * g++.dg/tm/pr47530-2.C: Adjust for uninstrumented code path.
+       * g++.dg/tm/pr47530.C: Same.

From-SVN: r193372

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tm/pr47530-2.C
gcc/testsuite/g++.dg/tm/pr47530.C

index e888313413898a2708b6a9d8f93ee4b682642d4b..fa0919e3675bbb3059e9998179a44dc68d013c93 100644 (file)
@@ -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
index c98e07e541868cfead6d69739b2282b784d28a61..bcfdbe94830e94e4d87d10ee14efe6ab931549ef 100644 (file)
@@ -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" } }
index 8e7e27297cecf9b8a4c29a6f7edefdf51e3b661d..6a9fb1b002e61687f38c805b62d79a547d46ed4d 100644 (file)
@@ -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" } }