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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 46484
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46484&action=edit
gcc10-pr90779.patch

Fix, so far tested with x86_64-linux -> nvptx-none offloading make check in
libgomp, will do full bootstrap/regtest later on.
I've discussed it in the OpenMP language committee and the desire is to clarify
it the way the patch implements it, block scope statics in omp declare target
to routines should have the same declare target status as the containing
functions and similarly in target regions it should be omp declare target to.

Reply via email to