projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91e4b2f
)
(_JMPBUF_UNWINDS): Added.
author
Richard Henderson
<rth@redhat.com>
Thu, 23 Apr 1998 22:46:39 +0000
(22:46 +0000)
committer
Richard Henderson
<rth@redhat.com>
Thu, 23 Apr 1998 22:46:39 +0000
(22:46 +0000)
sysdeps/alpha/bits/setjmp.h
patch
|
blob
|
history
diff --git
a/sysdeps/alpha/bits/setjmp.h
b/sysdeps/alpha/bits/setjmp.h
index
de37019
..
af0b5ae
100644
(file)
--- 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