Fix Intel MIC 'mkoffload' for OpenMP 'requires'
authorThomas Schwinge <thomas@codesourcery.com>
Tue, 5 Jul 2022 10:21:33 +0000 (12:21 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Thu, 7 Jul 2022 10:38:51 +0000 (12:38 +0200)
commit9ef714539cb7cc1cd746312fd5dcc987bf167471
treee32afd43b47308ce6be7d9bb90a2a11ce8a66e28
parent5647e2c3853cbd51a6536a84b8eb0eb3c210dfbf
Fix Intel MIC 'mkoffload' for OpenMP 'requires'

Similar to how the other 'mkoffload's got changed in
recent commit 683f11843974f0bdf42f79cdcbb0c2b43c7b81b0
"OpenMP: Move omp requires checks to libgomp".

This also means finally switching Intel MIC 'mkoffload' to
'GOMP_offload_register_ver', 'GOMP_offload_unregister_ver',
making 'GOMP_offload_register', 'GOMP_offload_unregister'
legacy entry points.

gcc/
* config/i386/intelmic-mkoffload.cc (generate_host_descr_file)
(prepare_target_image, main): Handle OpenMP 'requires'.
(generate_host_descr_file): Switch to 'GOMP_offload_register_ver',
'GOMP_offload_unregister_ver'.
libgomp/
* target.c (GOMP_offload_register, GOMP_offload_unregister):
Denote as legacy entry points.
* testsuite/lib/libgomp.exp
(check_effective_target_offload_target_any): New proc.
* testsuite/libgomp.c-c++-common/requires-1.c: Enable for
'offload_target_any'.
* testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
* testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
* testsuite/libgomp.fortran/requires-1.f90: Likewise.
gcc/config/i386/intelmic-mkoffload.cc
libgomp/target.c
libgomp/testsuite/lib/libgomp.exp
libgomp/testsuite/libgomp.c-c++-common/requires-1.c
libgomp/testsuite/libgomp.c-c++-common/requires-3.c
libgomp/testsuite/libgomp.c-c++-common/requires-7.c
libgomp/testsuite/libgomp.fortran/requires-1.f90