Hi Thomas, hello all,

On 07.07.22 10:37, Thomas Schwinge wrote:
In preparation for other changes:

On 2022-06-29T16:33:02+0200, Tobias Burnus <tob...@codesourcery.com> wrote:
+++ b/libgomp/testsuite/libgomp.c-c++-common/requires-3.c
@@ -0,0 +1,24 @@
+/* { dg-do link { target offloading_enabled } } */
Not expected to see 'offloading_enabled' here...

+/* { dg-additional-sources requires-3-aux.c } */
+
+/* Check diagnostic by device-compiler's lto1.
..., because of this note ^.
...
Subject: [PATCH] Adjust 'libgomp.c-c++-common/requires-3.c'
...
      libgomp/
      * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
...
index 4b07ffdd09b..7091f400ef0 100644
--- a/libgomp/testsuite/libgomp.c-c++-common/requires-3.c
+++ b/libgomp/testsuite/libgomp.c-c++-common/requires-3.c
@@ -1,4 +1,4 @@
-/* { dg-do link { target offloading_enabled } } */
+/* { dg-do link { target { offload_target_nvptx || offload_target_amdgcn } } } 
*/

LGTM.

Tobias
-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 
München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas 
Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht 
München, HRB 106955

Reply via email to