]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
'libgomp.c/usm-{1,2,3,4}.c': Re-enable non-GCN offloading compilation
authorThomas Schwinge <thomas@codesourcery.com>
Tue, 14 Feb 2023 17:57:04 +0000 (18:57 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Thu, 16 Feb 2023 20:47:12 +0000 (21:47 +0100)
Change '-foffload=amdgcn-amdhsa=[...]' to
'-foffload-options=amdgcn-amdhsa=[...]', so that non-GCN offloading compilation
doesn't get disabled.

Fix-up for og12 commit 6ec2c29dbbc19e7d2a8f991a5848e10c65c7c74c
"amdgcn, libgomp: USM allocation update".

libgomp/
* testsuite/libgomp.c/usm-1.c: Re-enable non-GCN offloading
compilation.
* testsuite/libgomp.c/usm-2.c: Likewise.
* testsuite/libgomp.c/usm-3.c: Likewise.
* testsuite/libgomp.c/usm-4.c: Likewise.

libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.c/usm-1.c
libgomp/testsuite/libgomp.c/usm-2.c
libgomp/testsuite/libgomp.c/usm-3.c
libgomp/testsuite/libgomp.c/usm-4.c

index 2a20516cd099cab40476de347a5e6a6bd5793618..ecc14b4f53769af381989fdce7be8b4a8b8ac084 100644 (file)
@@ -1,3 +1,11 @@
+2023-02-16  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * testsuite/libgomp.c/usm-1.c: Re-enable non-GCN offloading
+       compilation.
+       * testsuite/libgomp.c/usm-2.c: Likewise.
+       * testsuite/libgomp.c/usm-3.c: Likewise.
+       * testsuite/libgomp.c/usm-4.c: Likewise.
+
 2023-02-16  Tobias Burnus  <tobias@codesourcery.com>
 
        Backported from master:
index f7bf897b8398b7dfe21db4089adae2a808ae1251..35f37de75428ff53891fb3903ae4e10acaffa1cd 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-require-effective-target omp_usm } */
-/* { dg-options "-foffload=amdgcn-amdhsa=-mxnack=on" { target offload_target_amdgcn } } */
+/* { dg-additional-options -foffload-options=amdgcn-amdhsa=-mxnack=on { target offload_target_amdgcn } } */
 
 #include <omp.h>
 #include <stdint.h>
index 3f52adbd7e18137a03fe3f5bb1e6999f6740d627..783075edb541efc7d53903e2b62217e63255019e 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-require-effective-target omp_usm } */
-/* { dg-options "-foffload=amdgcn-amdhsa=-mxnack=on" { target offload_target_amdgcn } } */
+/* { dg-additional-options -foffload-options=amdgcn-amdhsa=-mxnack=on { target offload_target_amdgcn } } */
 
 #include <omp.h>
 #include <stdint.h>
index 225cba5fe589420260bf0a695c22cbb512bedefe..733f0f340909af583a5139325e60972c0c0b2485 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-require-effective-target omp_usm } */
-/* { dg-options "-foffload=amdgcn-amdhsa=-mxnack=on" { target offload_target_amdgcn } } */
+/* { dg-additional-options -foffload-options=amdgcn-amdhsa=-mxnack=on { target offload_target_amdgcn } } */
 
 #include <omp.h>
 #include <stdint.h>
index d4addfc587abcc979caf19dbd75b95197d815c73..5bf99df3b24e2e896e993b9d3ed3e62bf6ad69a0 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-require-effective-target omp_usm } */
-/* { dg-options "-foffload=amdgcn-amdhsa=-mxnack=on" { target offload_target_amdgcn } } */
+/* { dg-additional-options -foffload-options=amdgcn-amdhsa=-mxnack=on { target offload_target_amdgcn } } */
 
 #include <omp.h>
 #include <stdint.h>