]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix OpenACC tests introduced in GCC 11
authorKwok Cheung Yeung <kcy@codesourcery.com>
Thu, 29 Apr 2021 22:19:22 +0000 (15:19 -0700)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Thu, 29 Apr 2021 22:24:19 +0000 (15:24 -0700)
OG11 has additional warnings compared to mainline, which are not expected by
tests newly introduced in GCC 11.  Also, some of the dump messages are now
emitted in the oaccloops pass rather than oaccdevlow.

2021-04-29  Kwok Cheung Yeung  <kcy@codesourcery.com>

gcc/testsuite/
* c-c++-common/goacc/classify-serial.c: Surpress warnings.  Dump
oaccloops pass instead of oaccdevlow.
* gfortran.dg/goacc/classify-serial.f95: Likewise.

libgomp/
* testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Surpress warnings.
* testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Likewise.

gcc/testsuite/ChangeLog.omp
gcc/testsuite/c-c++-common/goacc/classify-serial.c
gcc/testsuite/gfortran.dg/goacc/classify-serial.f95
libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.oacc-c-c++-common/pr85381-3.c
libgomp/testsuite/libgomp.oacc-c-c++-common/static-variable-1.c

index d1a30bf2ac3ead1c7f8817558cbff206028cc298..e6d06f5ff5a08ea319a3e056fb2cdb9048ae6801 100644 (file)
@@ -1,3 +1,9 @@
+2021-04-29  Kwok Cheung Yeung  <kcy@codesourcery.com>
+
+       * c-c++-common/goacc/classify-serial.c: Surpress warnings.  Dump
+       oaccloops pass instead of oaccdevlow.
+       * gfortran.dg/goacc/classify-serial.f95: Likewise.
+
 2021-04-29  Kwok Cheung Yeung  <kcy@codesourcery.com>
 
        * c-c++-common/goacc/data-clause-1.c (foo): Remove expected message.
index 94ace1b3c200910d9314663b3f55a135518da1ea..63dd41511c447542bfba58c5d39684857e64b5c7 100644 (file)
@@ -1,10 +1,10 @@
 /* Check offloaded function's attributes and classification for OpenACC
    serial.  */
 
-/* { dg-additional-options "-O2" }
+/* { dg-additional-options "-O2 -w" }
    { dg-additional-options "-fopt-info-optimized-omp" }
    { dg-additional-options "-fdump-tree-ompexp" }
-   { dg-additional-options "-fdump-tree-oaccdevlow" } */
+   { dg-additional-options "-fdump-tree-oaccloops" } */
 
 #define N 1024
 
@@ -24,6 +24,6 @@ void SERIAL ()
 
 /* Check the offloaded function's classification and compute dimensions (will
    always be 1 x 1 x 1 for non-offloading compilation).
-   { dg-final { scan-tree-dump-times "(?n)Function is OpenACC serial offload" 1 "oaccdevlow" } }
-   { dg-final { scan-tree-dump-times "(?n)Compute dimensions \\\[1, 1, 1\\\]" 1 "oaccdevlow" } }
-   { dg-final { scan-tree-dump-times "(?n)__attribute__\\(\\(oacc function \\(1, 1, 1\\), oacc serial, omp target entrypoint\\)\\)" 1 "oaccdevlow" } } */
+   { dg-final { scan-tree-dump-times "(?n)Function is OpenACC serial offload" 1 "oaccloops" } }
+   { dg-final { scan-tree-dump-times "(?n)Compute dimensions \\\[1, 1, 1\\\]" 1 "oaccloops" } }
+   { dg-final { scan-tree-dump-times "(?n)__attribute__\\(\\(oacc function \\(1, 1, 1\\), oacc serial, omp target entrypoint\\)\\)" 1 "oaccloops" } } */
index 51061afd2c6408abd2abc85624db454f9301e5da..16d415406f3082a9b6ec261748397db762374be4 100644 (file)
@@ -1,10 +1,10 @@
 ! Check offloaded function's attributes and classification for OpenACC
 ! serial.
 
-! { dg-additional-options "-O2" }
+! { dg-additional-options "-O2 -w" }
 ! { dg-additional-options "-fopt-info-optimized-omp" }
 ! { dg-additional-options "-fdump-tree-ompexp" }
-! { dg-additional-options "-fdump-tree-oaccdevlow" }
+! { dg-additional-options "-fdump-tree-oaccloops" }
 
 program main
   implicit none
@@ -26,6 +26,6 @@ end program main
 
 ! Check the offloaded function's classification and compute dimensions (will
 ! always be 1 x 1 x 1 for non-offloading compilation).
-! { dg-final { scan-tree-dump-times "(?n)Function is OpenACC serial offload" 1 "oaccdevlow" } }
-! { dg-final { scan-tree-dump-times "(?n)Compute dimensions \\\[1, 1, 1\\\]" 1 "oaccdevlow" } }
-! { dg-final { scan-tree-dump-times "(?n)__attribute__\\(\\(oacc function \\(1, 1, 1\\), oacc serial, omp target entrypoint\\)\\)" 1 "oaccdevlow" } }
+! { dg-final { scan-tree-dump-times "(?n)Function is OpenACC serial offload" 1 "oaccloops" } }
+! { dg-final { scan-tree-dump-times "(?n)Compute dimensions \\\[1, 1, 1\\\]" 1 "oaccloops" } }
+! { dg-final { scan-tree-dump-times "(?n)__attribute__\\(\\(oacc function \\(1, 1, 1\\), oacc serial, omp target entrypoint\\)\\)" 1 "oaccloops" } }
index 23d243dec454e26204dd15bd3780c9ee3a10d636..33a5f5b0cf674be9c862cadf4cc4f50c5dde16d9 100644 (file)
@@ -1,3 +1,8 @@
+2021-04-29  Kwok Cheung Yeung  <kcy@codesourcery.com>
+
+       * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Surpress warnings.
+       * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Likewise.
+
 2021-04-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
 
        Backport from mainline
index cddbf271906754a4944a1718d1fa143bf38c257f..53fb049f99210c7aa67877cffe347dd4d79064c0 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run { target openacc_nvidia_accel_selected } }
    { dg-skip-if "" { *-*-* } { "*" } { "-O2" } } */
-/* { dg-additional-options "-foffload=-fdump-rtl-mach" } */
+/* { dg-additional-options "-foffload=-fdump-rtl-mach -w" } */
 
 int a;
 #pragma acc declare create(a)
index 1d415cdcf7699240d42a1654cc269cf237346f10..ccc0336bae305391619c809f58c9a7da4224ff12 100644 (file)
@@ -9,6 +9,7 @@
    variables" (only visible to members of the GitHub OpenACC organization).
 */
 
+/* { dg-additional-options "-w" } */
 
 #undef NDEBUG
 #include <assert.h>