aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTobias Burnus <tobias@codesourcery.com>2021-04-21 20:07:19 +0200
committerTobias Burnus <tobias@codesourcery.com>2021-04-21 20:07:19 +0200
commit95dfc3ac7baca19157bb976ee4c8c69753e1e178 (patch)
treee06cd260038bdf1f7379edbdefae5c1cf8c74a80 /gcc
parentc2fc1702cb3a3d5cc9c40de47f63b4c8f3f1d09c (diff)
downloadgcc-95dfc3ac7baca19157bb976ee4c8c69753e1e178.zip
gcc-95dfc3ac7baca19157bb976ee4c8c69753e1e178.tar.gz
gcc-95dfc3ac7baca19157bb976ee4c8c69753e1e178.tar.bz2
libgomp/testsuite: Fix checks for dg-excess-errors
For the tests modified below, the effective target line has to be effective when compiling for an offload target, except that variable-not-offloaded.c would compile with unified-share memory and pr86416-*.c if long double/float128 is supported. The previous check used a run-time device ability check. This new variant now enables those dg- lines when _compiling_ for nvptx or gcn. libgomp/ChangeLog: * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type): New, based on check_effective_target_offload_target_nvptx. (check_effective_target_offload_target_nvptx): Call it. (check_effective_target_offload_target_amdgcn): New. * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Require target offload_target_nvptx || offload_target_amdgcn. * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise. * testsuite/libgomp.c/pr86416-1.c: Likewise. * testsuite/libgomp.c/pr86416-2.c: Likewise.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions