[Bug target/80035] [nvptx] non-returning function call causes ptxas sigsegv
vries at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 15 00:17:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80035
--- Comment #5 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Alexander Monakov from comment #3)
> ptxas gets confused around loops lacking
> exit edges (and perhaps other "unusual" CFG structures). They can easily
> appear even in original source and do not require presence of noreturn
> functions:
>
> extern __device__ void g();
> extern __device__ void h();
> __device__ void f(int v)
> {
> if (v) goto L;
> for (;;) {
> g();
> L:
> h();
> }
> }
>
This problem goes away for ptxas -ori in cuda 6.5 and later (haven't tried
earlier versions).
More information about the Gcc-bugs
mailing list