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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Andrew Stubbs from comment #2)
> setjmp/longjmp is neither supported nor implemented for GCN.
> 
> The original reason being that the register file is very large, and of
> variable size. (Max size is ~110 scalar + 256*64 VGPR + 256*64 AGPR
> registers, or a little over 128kB.) There's no reason why it couldn't be
> implemented, in theory, but we never needed to.
> 
> Anyway, setjmp not working is not a surprise.

How do e.g. gcc.dg/setjmp*.c tests work on GCN then?
Those are
/* { dg-skip-if "" { ! nonlocal_goto } } */
but only nvptx and bpf are ! nonlocal_goto targets...

Reply via email to