The testcase gfortran.dg/goacc/routine-module-mod-1.f90 fails due to an extra 'warning: region is worker partitioned but does not contain worker partitioned code' message in subroutine g_1. subroutine g_1 is marked with '!$acc routine gang', but the loop inside is only assigned gang vector loop parallelism, which triggers the message as there is no worker parallelism.

This patch makes the message expected. Okay for OG10 branch?

Kwok
From 824a4d600380a8b02bb65f055ff0423bbd849a4f Mon Sep 17 00:00:00 2001
From: Kwok Cheung Yeung <k...@codesourcery.com>
Date: Wed, 1 Jul 2020 08:26:42 -0700
Subject: [PATCH 6/6] Fix failure in testcase
 gfortran.dg/goacc/routine-module-mod-1.f90

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

        gcc/testsuite/
        * gfortran.dg/goacc/routine-module-mod-1.f90 (g_1): Add
        expected output.
---
 gcc/testsuite/gfortran.dg/goacc/routine-module-mod-1.f90 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gfortran.dg/goacc/routine-module-mod-1.f90 
b/gcc/testsuite/gfortran.dg/goacc/routine-module-mod-1.f90
index 23c673f..2ea4094 100644
--- a/gcc/testsuite/gfortran.dg/goacc/routine-module-mod-1.f90
+++ b/gcc/testsuite/gfortran.dg/goacc/routine-module-mod-1.f90
@@ -50,7 +50,7 @@ contains
     end do
   end subroutine w_1
 
-  subroutine g_1
+  subroutine g_1 ! { dg-warning "region is worker partitioned but does not 
contain worker partitioned code" }
     implicit none
     !$acc routine gang
 
-- 
2.8.1

Reply via email to