On Mär 04 2018, Peter Bergner <berg...@vnet.ibm.com> wrote:

> Clearly returning from the function that calls
> setjmp before calling longjmp must be illegal, since that would result
> in clobbering of the stack frame the longjmp would attempt to restore to.
> I don't know off hand who/what states that restriction.

7.13.2.1#2 ... if the function containing the invocation of the setjmp
macro has terminated execution in the interim, ... the behavior is
undefined.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Reply via email to