]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix 'libgomp.c/simd-math-1.c' configuration, again
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 20 Jan 2023 16:17:21 +0000 (17:17 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Fri, 20 Jan 2023 16:27:57 +0000 (17:27 +0100)
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.

libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.c/simd-math-1.c

index 0f8fca4e71cd855eed48ceb1dbd2f635f5974260..134d450f44a91dee88ccebcd9046e1eaa47cea54 100644 (file)
@@ -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'.
 
index 1ebdccccfeb2463f7397a4d804375849ffd9eb53..ea629696e55936f06aa5ec9a5b2ebdb1d63cb14c 100644 (file)
@@ -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