This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp4] Simplify function discarding
- From: Nathan Sidwell <nathan at acm dot org>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 28 Dec 2015 16:03:23 -0500
- Subject: Re: [gomp4] Simplify function discarding
- Authentication-results: sourceware.org; auth=none
- References: <56813D1B dot 2030407 at acm dot org>
On 12/28/15 08:46, Nathan Sidwell wrote:
I noticed that the code dealing with bind and nohost clauses in
execute_oacc_device_lower looked like:
Forgot the testsuite tweak that went along with the change.
nathan
2015-12-28 Nathan Sidwell <nathan@acm.org>
* c-c++-common/goacc/routine-nohost-1.c: Adjust expected dump output.
Index: gcc/testsuite/c-c++-common/goacc/routine-nohost-1.c
===================================================================
--- gcc/testsuite/c-c++-common/goacc/routine-nohost-1.c (revision 231972)
+++ gcc/testsuite/c-c++-common/goacc/routine-nohost-1.c (working copy)
@@ -9,9 +9,6 @@ int THREE(void)
return 3;
}
-/* { dg-final { scan-tree-dump "Discarding function .THREE. with .nohost. clause" "oaccdevlow" } } */
-
-
#pragma acc routine nohost
extern void NOTHING(void);
@@ -19,9 +16,6 @@ void NOTHING(void)
{
}
-/* { dg-final { scan-tree-dump "Discarding function .NOTHING. with .nohost. clause" "oaccdevlow" } } */
-
-
extern float ADD(float, float);
#pragma acc routine (ADD) nohost
@@ -31,4 +25,4 @@ float ADD(float x, float y)
return x + y;
}
-/* { dg-final { scan-tree-dump "Discarding function .ADD. with .nohost. clause" "oaccdevlow" } } */
+/* { dg-final { scan-tree-dump-times "Discarding function" 3 "oaccdevlow" } } */