]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix 'libgomp.oacc-c-c++-common/kernels-decompose-1.c' expected diagnostics
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 4 Mar 2022 19:34:40 +0000 (20:34 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Fri, 4 Mar 2022 19:42:29 +0000 (20:42 +0100)
Fix-up for recent commit 8935589b496f755e08cadf26d8ceddf0dd6e0968
"OMP lowering: Regimplify 'OMP_CLAUSE_MAP_DECL_MAKE_ADDRESSABLE' DECLs
[PR100280, PR104132, PR104133]": adjust for a GCN offloading workaround
added just before commit: '(volatile void *) &f1;'.

PR testsuite/104791
libgomp/
* testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
expected diagnostics.

libgomp/testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c

index 049b3a44b03f793f75a5071aadcc9b5da6f97a05..985a547d381dfa759fa648f53945baab8e7e2406 100644 (file)
@@ -37,6 +37,8 @@ int main()
 
 #pragma acc kernels /* { dg-line l_compute[incr c_compute] } */
   /* { dg-note {variable 'g2\.0' declared in block isn't candidate for adjusting OpenACC privatization level: not addressable} {} { target *-*-* } l_compute$c_compute } */
+  /* { dg-note {variable 'f1\.1' declared in block isn't candidate for adjusting OpenACC privatization level: not addressable} {} { target *-*-* } l_compute$c_compute } */
+  /* { dg-note {variable 'f1\.2' declared in block isn't candidate for adjusting OpenACC privatization level: not addressable} {} { target *-*-* } l_compute$c_compute } */
   {
     /* { dg-note {beginning 'gang-single' part in OpenACC 'kernels' region} {} { target *-*-* } .+1 } */
     int c = 234;