https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124554
--- Comment #2 from Andrew Stubbs <ams at gcc dot gnu.org> --- 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.
