https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100573
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amonakov at gcc dot gnu.org --- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Using asm ("exit;"); instead of __builtin_unreachable (); doesn't help. My current suspicion is that it is about taking address of the function that is marked as PTX kernel entry point (functions with "omp target entrypoint" attribute on the compiler side). So maybe we need on the compiler side fold __builtin_GOMP_target_ext to __builtin_unreachable or something similar or at least nullify the kernel pointer argument in there.