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

--- Comment #10 from Andrew Stubbs <ams at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #9)
> (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...

They don't work. We just never bothered silencing the FAILs.

Reply via email to