public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-12] Fix 'libgomp.c/simd-math-1.c' configuration, again
@ 2023-01-20 16:28 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2023-01-20 16:28 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:bbd4eb1772893ba99aa23a4eaf8950415624964e

commit bbd4eb1772893ba99aa23a4eaf8950415624964e
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Fri Jan 20 17:17:21 2023 +0100

    Fix 'libgomp.c/simd-math-1.c' configuration, again
    
    Tobias pointed out that as of my recent
    og12 commit e7d4bcb974915bfe95be6c385641fc66a4201581
    "Fix 'libgomp.c/simd-math-1.c' configuration",
    in GCC configurations without GCN offloading configured, we'd get:
    
        xgcc: error: GCC is not configured to support 'amdgcn-amdhsa' as '-foffload=' argument
    
    ("Interestingly", GCC doesn't complain for '-foffload-options=-lm' if there are
    no offload targets configured...)
    
            libgomp/
            * testsuite/libgomp.c/simd-math-1.c: Fix configuration, again.

Diff:
---
 libgomp/ChangeLog.omp                     | 2 ++
 libgomp/testsuite/libgomp.c/simd-math-1.c | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp
index 0f8fca4e71c..134d450f44a 100644
--- a/libgomp/ChangeLog.omp
+++ b/libgomp/ChangeLog.omp
@@ -1,5 +1,7 @@
 2023-01-20  Thomas Schwinge  <thomas@codesourcery.com>
 
+	* testsuite/libgomp.c/simd-math-1.c: Fix configuration, again.
+
 	* testsuite/libgomp.oacc-c-c++-common/abort-3.c: Force
 	'--param openacc-kernels=parloops'.
 
diff --git a/libgomp/testsuite/libgomp.c/simd-math-1.c b/libgomp/testsuite/libgomp.c/simd-math-1.c
index 1ebdccccfeb..ea629696e55 100644
--- a/libgomp/testsuite/libgomp.c/simd-math-1.c
+++ b/libgomp/testsuite/libgomp.c/simd-math-1.c
@@ -3,7 +3,7 @@
 
 /* { dg-do run } */
 /* { dg-options "-O2 -ftree-vectorize -fno-math-errno" } */
-/* { dg-additional-options -foffload-options=amdgcn-amdhsa=-mstack-size=3000000 } */
+/* { dg-additional-options -foffload-options=amdgcn-amdhsa=-mstack-size=3000000 { target offload_target_amdgcn } } */
 /* { dg-additional-options -foffload-options=-lm } */
 
 #undef PRINT_RESULT

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-20 16:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-20 16:28 [gcc/devel/omp/gcc-12] Fix 'libgomp.c/simd-math-1.c' configuration, again Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).