On Jun 18 2019, "H.J. Lu" <hjl.to...@gmail.com> wrote: >> +void >> +test (void) >> +{ >> + void *buf[5]; >> + void *volatile q = p; >> + >> + if (!__builtin_setjmp (buf)) >> + broken_longjmp (buf); > > Is this test valid? Can jmp buffer be allowed on stack?
Sure, the contents of the jmp buffer is only valid during the lifetime of the call frame anyway. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."