On 04/11/15 09:47, Thomas Schwinge wrote:
+/* Check that the loop has been split off into a function. */ >+/* { dg-final { scan-tree-dump-times "(?n);; Function .*foo._omp_fn.0" 1 "optimized" } } */For C we get:;; Function foo._omp_fn.0 (foo._omp_fn.0, funcdef_no=12, decl_uid=2534, cgraph_uid=14, symbol_order=14) ..., so that matches, but for C++ we get: ;; Function foo(unsigned int*, unsigned int*, unsigned int*) [clone ._omp_fn.0] (_ZL3fooPjS_S_._omp_fn.0, funcdef_no=12, decl_uid=2416, cgraph_uid=14, symbol_order=14) ..., which doesn't match, so this directive FAILs.
Hi Thomas, thanks for noticing. Fixed as attached. Committed to gomp-4_0-branch. Thanks, - Tom
Fixup goacc/kernels-loop-offload-alias-none.c 2015-11-04 Tom de Vries <[email protected]> * c-c++-common/goacc/kernels-loop-offload-alias-none.c: Fix foo._omp_fn.0 function name scanning. --- gcc/testsuite/c-c++-common/goacc/kernels-loop-offload-alias-none.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-loop-offload-alias-none.c b/gcc/testsuite/c-c++-common/goacc/kernels-loop-offload-alias-none.c index bb96330..79d8daa 100644 --- a/gcc/testsuite/c-c++-common/goacc/kernels-loop-offload-alias-none.c +++ b/gcc/testsuite/c-c++-common/goacc/kernels-loop-offload-alias-none.c @@ -49,7 +49,7 @@ main (void) } /* Check that the loop has been split off into a function. */ -/* { dg-final { scan-tree-dump-times "(?n);; Function .*foo._omp_fn.0" 1 "optimized" } } */ +/* { dg-final { scan-tree-dump-times "(?n);; Function .*foo.*\\._omp_fn\\.0" 1 "optimized" } } */ /* { dg-final { scan-tree-dump-times "clique 1 base 1" 3 "alias" } } */ /* { dg-final { scan-tree-dump-times "clique 1 base 2" 1 "alias" } } */ -- 1.9.1
