https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100573

--- Comment #13 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Tobias Burnus from comment #9)
> not found name: 'test_d_normal._omp_fn.0.kd'

I think the problem is the following:

(a) working:
foo()
  #pragma target
    bar()

Here, 'foo._omp_fn.0' as as fndecl attribute: 'omp target entrypoint'

(b) failing:
foo()
  #pragma target
    foo()
while here 'foo._omp_fn.0' has 'omp declare target' which does not make sense.

I think we need in omp_discover_declare_target_tgt_fn_r a similar handling for
'omp declare target entrypoint' as we do for 'omp declare target host'.

Reply via email to