]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix 'libgomp.c/simd-math-1.c' configuration
authorThomas Schwinge <thomas@codesourcery.com>
Sat, 14 Jan 2023 09:28:09 +0000 (10:28 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Fri, 20 Jan 2023 14:12:18 +0000 (15:12 +0100)
commite7d4bcb974915bfe95be6c385641fc66a4201581
treeb9b9851426046c25b17eb7ab1c14334783ddb6a6
parent8787039dbe03a6817c35815c11ace6194673ca94
Fix 'libgomp.c/simd-math-1.c' configuration

If nvptx offloading is configured in addition to GCN, we see:

    FAIL: libgomp.c/simd-math-1.c (test for excess errors)
    UNRESOLVED: libgomp.c/simd-math-1.c compilation failed to produce executable

    x86_64-pc-linux-gnu-accel-nvptx-none-gcc: error: unrecognized command-line option '-mstack-size=3000000'

Thus, restrict that ooption to GCN offloading compilation, and on the other
hand, there's no reason to skip this test for non-GCN offloading execution:
even if not SIMD-vectorized there, we still benefit from correctness testing.

libgomp/
* testsuite/libgomp.c/simd-math-1.c: Fix configuration.
libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.c/simd-math-1.c