From: Richard Henderson Date: Thu, 23 Apr 1998 22:46:39 +0000 (+0000) Subject: (_JMPBUF_UNWINDS): Added. X-Git-Tag: glibc-2.16-ports-before-merge~3253 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4af6e4ade676d122e1cad3a8e68400907d615a91;p=thirdparty%2Fglibc.git (_JMPBUF_UNWINDS): Added. --- diff --git a/sysdeps/alpha/bits/setjmp.h b/sysdeps/alpha/bits/setjmp.h index de370192184..af0b5ae5775 100644 --- a/sysdeps/alpha/bits/setjmp.h +++ b/sysdeps/alpha/bits/setjmp.h @@ -74,4 +74,10 @@ #ifndef __ASSEMBLY__ typedef long int __jmp_buf[17]; + +/* Test if longjmp to JMPBUF would unwind the frame containing a local + variable at ADDRESS. */ +#define _JMPBUF_UNWINDS(_jmpbuf, _address) \ + ({ register void *_sp __asm__("$30"); void *_addr = (_address); \ + _sp <= _addr && _addr < (void *)((_jmpbuf)[JB_SP]); }) #endif