This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp4, committed] Implement -foffload-alias
- From: Tom de Vries <Tom_deVries at mentor dot com>
- To: Thomas Schwinge <thomas at codesourcery dot com>
- Cc: "gcc-patches at gnu dot org" <gcc-patches at gnu dot org>, Nathan Sidwell <nathan_sidwell at mentor dot com>
- Date: Wed, 4 Nov 2015 15:55:18 +0100
- Subject: Re: [gomp4, committed] Implement -foffload-alias
- Authentication-results: sourceware.org; auth=none
- References: <56095EEF dot 7010700 at mentor dot com> <5638C276 dot 7070206 at mentor dot com> <5638C5AD dot 5090208 at mentor dot com> <87pozq178p dot fsf at kepler dot schwinge dot homeip dot net>
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 <tom@codesourcery.com>
* 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