From: Aldy Hernandez Date: Fri, 9 Nov 2012 18:52:36 +0000 (+0000) Subject: + * g++.dg/tm/pr47530-2.C: Adjust for uninstrumented code path. X-Git-Tag: releases/gcc-4.8.0~2117 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=96dd21067ce047ca15c1bf2b9f9cc5affe834d67;p=thirdparty%2Fgcc.git + * 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e88831341389..fa0919e3675b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-11-09 Aldy Hernandez + + * g++.dg/tm/pr47530-2.C: Adjust for uninstrumented code path. + * g++.dg/tm/pr47530.C: Same. + 2012-11-09 Jason Merrill PR c++/54859 diff --git a/gcc/testsuite/g++.dg/tm/pr47530-2.C b/gcc/testsuite/g++.dg/tm/pr47530-2.C index c98e07e54186..bcfdbe94830e 100644 --- a/gcc/testsuite/g++.dg/tm/pr47530-2.C +++ b/gcc/testsuite/g++.dg/tm/pr47530-2.C @@ -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" } } diff --git a/gcc/testsuite/g++.dg/tm/pr47530.C b/gcc/testsuite/g++.dg/tm/pr47530.C index 8e7e27297cec..6a9fb1b002e6 100644 --- a/gcc/testsuite/g++.dg/tm/pr47530.C +++ b/gcc/testsuite/g++.dg/tm/pr47530.C @@ -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" } }