public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Kwok Yeung <kcy@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc/devel/omp/gcc-11] [OpenACC] Don't compile libgomp testcases with '-w'
Date: Thu, 13 May 2021 16:21:03 +0000 (GMT)	[thread overview]
Message-ID: <20210513162103.359343AA9C7B@sourceware.org> (raw)

https://gcc.gnu.org/g:6f3efa4c6282e68bfa706d7e4e60bc902a5101cf

commit 6f3efa4c6282e68bfa706d7e4e60bc902a5101cf
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Fri Apr 16 16:08:19 2021 +0200

    [OpenACC] Don't compile libgomp testcases with '-w'
    
    We'd like to actually catch compiler diagnostics (and currently there aren't
    any).
    
            libgomp/
            * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
            compile with '-w'.
            * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
            * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
            Likewise.
            * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
            * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
            * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
            * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
            * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
            * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
            * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
    
    (cherry picked from commit 7c640779bf042ceb05fe50260307af88fed75407)

Diff:
---
 libgomp/ChangeLog.omp                                  | 18 ++++++++++++++++++
 .../libgomp.oacc-c-c++-common/par-reduction-1.c        |  2 --
 .../libgomp.oacc-c-c++-common/par-reduction-2.c        |  2 --
 .../libgomp.oacc-c-c++-common/parallel-reduction.c     |  1 -
 .../testsuite/libgomp.oacc-c-c++-common/reduction-5.c  |  1 -
 .../testsuite/libgomp.oacc-c-c++-common/reduction-6.c  |  1 -
 .../libgomp.oacc-fortran/parallel-reduction.f90        |  1 -
 libgomp/testsuite/libgomp.oacc-fortran/reduction-1.f90 |  1 -
 libgomp/testsuite/libgomp.oacc-fortran/reduction-5.f90 |  1 -
 libgomp/testsuite/libgomp.oacc-fortran/reduction-6.f90 |  2 +-
 libgomp/testsuite/libgomp.oacc-fortran/reduction-7.f90 |  1 -
 11 files changed, 19 insertions(+), 12 deletions(-)

diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp
index 33a5f5b0cf6..f74d92a6741 100644
--- a/libgomp/ChangeLog.omp
+++ b/libgomp/ChangeLog.omp
@@ -1,3 +1,21 @@
+2021-04-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
+
+	Backport from mainline
+	2021-04-16  Thomas Schwinge  <thomas@codesourcery.com>
+
+	* testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
+	compile with '-w'.
+	* testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
+	* testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
+	Likewise.
+	* testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
+	* testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
+	* testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
+	* testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
+	* testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
+	* testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
+	* testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
+
 2021-04-29  Kwok Cheung Yeung  <kcy@codesourcery.com>
 
 	* testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Surpress warnings.
diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c
index a88b60f39f0..0c1ecc68e9d 100644
--- a/libgomp/testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c
+++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c
@@ -1,5 +1,3 @@
-/* { dg-additional-options "-w" } */
-
 #include <assert.h>
 
 /* Test of reduction on parallel directive.  */
diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c
index 5ab52e97009..e3ed281610d 100644
--- a/libgomp/testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c
+++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c
@@ -1,8 +1,6 @@
 /* Test of reduction on parallel directive (with async).  */
 /* See also Fortran variants in "../libgomp.oacc-fortran/par-reduction-2*".  */
 
-/* { dg-additional-options "-w" } */
-
 #include <assert.h>
 #include <openacc.h>
 
diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c
index 077571f29f0..80745816fff 100644
--- a/libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c
+++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c
@@ -1,5 +1,4 @@
 /* { dg-do run } */
-/* { dg-additional-options "-w" } */
 
 #include <stdlib.h>
 #include <openacc.h>
diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-5.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-5.c
index 6f5d29316a0..1cec9f152c4 100644
--- a/libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-5.c
+++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-5.c
@@ -1,5 +1,4 @@
 /* { dg-do run } */
-/* { dg-additional-options "-w" } */
 
 /* Multiple reductions.  */
 
diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-6.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-6.c
index af30b31bd34..82a6ade40f9 100644
--- a/libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-6.c
+++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-6.c
@@ -1,5 +1,4 @@
 /* { dg-do run } */
-/* { dg-additional-options "-w" } */
 
 /* Test reductions on explicitly private variables.  */
 
diff --git a/libgomp/testsuite/libgomp.oacc-fortran/parallel-reduction.f90 b/libgomp/testsuite/libgomp.oacc-fortran/parallel-reduction.f90
index 487cfc436e2..b926f4fe898 100644
--- a/libgomp/testsuite/libgomp.oacc-fortran/parallel-reduction.f90
+++ b/libgomp/testsuite/libgomp.oacc-fortran/parallel-reduction.f90
@@ -1,5 +1,4 @@
 ! { dg-do run }
-! { dg-additional-options "-w" }
 
 program reduction
   implicit none
diff --git a/libgomp/testsuite/libgomp.oacc-fortran/reduction-1.f90 b/libgomp/testsuite/libgomp.oacc-fortran/reduction-1.f90
index 764affdbd18..40c1a86ab92 100644
--- a/libgomp/testsuite/libgomp.oacc-fortran/reduction-1.f90
+++ b/libgomp/testsuite/libgomp.oacc-fortran/reduction-1.f90
@@ -1,5 +1,4 @@
 ! { dg-do run }
-! { dg-additional-options "-w" }
 
 ! Integer reductions
 
diff --git a/libgomp/testsuite/libgomp.oacc-fortran/reduction-5.f90 b/libgomp/testsuite/libgomp.oacc-fortran/reduction-5.f90
index 833d0e4b9fd..a529e22d9a2 100644
--- a/libgomp/testsuite/libgomp.oacc-fortran/reduction-5.f90
+++ b/libgomp/testsuite/libgomp.oacc-fortran/reduction-5.f90
@@ -1,5 +1,4 @@
 ! { dg-do run }
-! { dg-additional-options "-w" }
 
 ! subroutine reduction
 
diff --git a/libgomp/testsuite/libgomp.oacc-fortran/reduction-6.f90 b/libgomp/testsuite/libgomp.oacc-fortran/reduction-6.f90
index e76867a313f..249ed2edcbc 100644
--- a/libgomp/testsuite/libgomp.oacc-fortran/reduction-6.f90
+++ b/libgomp/testsuite/libgomp.oacc-fortran/reduction-6.f90
@@ -1,5 +1,5 @@
 ! { dg-do run }
-! { dg-additional-options "-cpp -w" }
+! { dg-additional-options "-cpp" }
 
 program reduction
   implicit none
diff --git a/libgomp/testsuite/libgomp.oacc-fortran/reduction-7.f90 b/libgomp/testsuite/libgomp.oacc-fortran/reduction-7.f90
index a7d6dd8a900..8cffac93a22 100644
--- a/libgomp/testsuite/libgomp.oacc-fortran/reduction-7.f90
+++ b/libgomp/testsuite/libgomp.oacc-fortran/reduction-7.f90
@@ -1,5 +1,4 @@
 ! { dg-do run }
-! { dg-additional-options "-w" }
 
 ! subroutine reduction with private and firstprivate variables


                 reply	other threads:[~2021-05-13 16:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210513162103.359343AA9C7B@sourceware.org \
    --to=kcy@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).