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

--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Tobias Burnus from comment #13)
> (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'.

Sure, but I thought that would be fixed with the #c12 patch.  The only place
where those "omp target entrypoint" functions should be referenced are the
arguments of the GOMP_target_ext function (the second one), and I've swapped
that for the NULL pointer.

Reply via email to