The test c-c++-common/goacc/routine-nohost-1.c currently fails because it fails to find some tree dump output. The problem is that the relevant tree pass is now oaccloops rather than oaccdevlow.

This patch corrects the requested tree dump. I will be committing this one in OG10 as 'obvious'.

Kwok
From f921b0988c41ba086e968faf08e93f7a230e55a1 Mon Sep 17 00:00:00 2001
From: Kwok Cheung Yeung <k...@codesourcery.com>
Date: Fri, 19 Jun 2020 09:34:27 -0700
Subject: [PATCH 4/6] Fix failure in testcase
 c-c++-common/goacc/routine-nohost-1.c

2020-07-21  Kwok Cheung Yeung  <k...@codesourcery.com>

        gcc/testsuite/
        * c-c++-common/goacc/routine-nohost-1.c: Change tree dump pass to
        oaccloops.
---
 gcc/testsuite/c-c++-common/goacc/routine-nohost-1.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/c-c++-common/goacc/routine-nohost-1.c 
b/gcc/testsuite/c-c++-common/goacc/routine-nohost-1.c
index 9baa56c..ebeaadb 100644
--- a/gcc/testsuite/c-c++-common/goacc/routine-nohost-1.c
+++ b/gcc/testsuite/c-c++-common/goacc/routine-nohost-1.c
@@ -1,7 +1,7 @@
 /* Test the nohost clause for OpenACC routine directive.  Exercising different
    variants for declaring routines.  */
 
-/* { dg-additional-options "-fdump-tree-oaccdevlow" } */
+/* { dg-additional-options "-fdump-tree-oaccloops" } */
 
 #pragma acc routine nohost
 int THREE(void)
@@ -25,4 +25,4 @@ float ADD(float x, float y)
   return x + y;
 }
 
-/* { dg-final { scan-tree-dump-times "Discarding function" 3 "oaccdevlow" } } 
*/
+/* { dg-final { scan-tree-dump-times "Discarding function" 3 "oaccloops" } } */
-- 
2.8.1

Reply via email to