From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 94C893858D33; Thu, 16 Feb 2023 20:47:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 94C893858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676580475; bh=UooPEmyUCT0Y1/uPU3+yCfMfdsizm/VRPAAM06cujvA=; h=From:To:Subject:Date:From; b=CMVkQ46t6so8+5yQ8Si7X3OpO7bADQPLy3G7ejzmvGgz4zGZGTVMdxohwUWlC61lA zc0ydbOXKlB/IJTJMeUvaER8W9WUVFLupGUOCJhI7oObQEaihVxSvkerawv/YIh/hd 2AaQLo2YFSY9IdcGkqN5FrZCShz6L7bTcj73snhA= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/omp/gcc-12] 'libgomp.c/usm-{1, 2, 3, 4}.c': Re-enable non-GCN offloading compilation X-Act-Checkin: gcc X-Git-Author: Thomas Schwinge X-Git-Refname: refs/heads/devel/omp/gcc-12 X-Git-Oldrev: c77c45a641fedc3fe770e909cc010fb1735bdbbd X-Git-Newrev: b4d4603df3fed290ccf721899be6bc69f037fe2b Message-Id: <20230216204755.94C893858D33@sourceware.org> Date: Thu, 16 Feb 2023 20:47:55 +0000 (GMT) List-Id: https://gcc.gnu.org/g:b4d4603df3fed290ccf721899be6bc69f037fe2b commit b4d4603df3fed290ccf721899be6bc69f037fe2b Author: Thomas Schwinge Date: Tue Feb 14 18:57:04 2023 +0100 'libgomp.c/usm-{1,2,3,4}.c': Re-enable non-GCN offloading compilation 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. Diff: --- libgomp/ChangeLog.omp | 8 ++++++++ libgomp/testsuite/libgomp.c/usm-1.c | 2 +- libgomp/testsuite/libgomp.c/usm-2.c | 2 +- libgomp/testsuite/libgomp.c/usm-3.c | 2 +- libgomp/testsuite/libgomp.c/usm-4.c | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp index 2a20516cd09..ecc14b4f537 100644 --- a/libgomp/ChangeLog.omp +++ b/libgomp/ChangeLog.omp @@ -1,3 +1,11 @@ +2023-02-16 Thomas Schwinge + + * 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 Backported from master: diff --git a/libgomp/testsuite/libgomp.c/usm-1.c b/libgomp/testsuite/libgomp.c/usm-1.c index f7bf897b839..35f37de7542 100644 --- a/libgomp/testsuite/libgomp.c/usm-1.c +++ b/libgomp/testsuite/libgomp.c/usm-1.c @@ -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 #include diff --git a/libgomp/testsuite/libgomp.c/usm-2.c b/libgomp/testsuite/libgomp.c/usm-2.c index 3f52adbd7e1..783075edb54 100644 --- a/libgomp/testsuite/libgomp.c/usm-2.c +++ b/libgomp/testsuite/libgomp.c/usm-2.c @@ -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 #include diff --git a/libgomp/testsuite/libgomp.c/usm-3.c b/libgomp/testsuite/libgomp.c/usm-3.c index 225cba5fe58..733f0f34090 100644 --- a/libgomp/testsuite/libgomp.c/usm-3.c +++ b/libgomp/testsuite/libgomp.c/usm-3.c @@ -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 #include diff --git a/libgomp/testsuite/libgomp.c/usm-4.c b/libgomp/testsuite/libgomp.c/usm-4.c index d4addfc587a..5bf99df3b24 100644 --- a/libgomp/testsuite/libgomp.c/usm-4.c +++ b/libgomp/testsuite/libgomp.c/usm-4.c @@ -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 #include