openmp: Implicitly discover declare target for variants of declare variant calls
authorJakub Jelinek <jakub@redhat.com>
Wed, 28 Oct 2020 09:34:29 +0000 (10:34 +0100)
committerJakub Jelinek <jakub@redhat.com>
Wed, 28 Oct 2020 09:36:31 +0000 (10:36 +0100)
commit2298ca2d3e133945f5034065e843e2ea0f36e0bb
treedf6cf359ee3a11e786641b73d6f51872410ee4d4
parent3f39b64e57ab8e8f69a017e4bd20aa6dd2aec492
openmp: Implicitly discover declare target for variants of declare variant calls

This marks all variants of declare variant also declare target if the base
functions are called directly in target regions or declare target functions.

2020-10-28  Jakub Jelinek  <jakub@redhat.com>

gcc/
* omp-offload.c (omp_declare_target_tgt_fn_r): Handle direct calls to
declare variant base functions.
libgomp/
* testsuite/libgomp.c/target-42.c: New test.
gcc/omp-offload.c
libgomp/testsuite/libgomp.c/target-42.c [new file with mode: 0644]