From: Ulrich Drepper Date: Mon, 1 Jun 1998 13:39:22 +0000 (+0000) Subject: (__jmp_buf): Remove floating-point support. X-Git-Tag: glibc-2.16-ports-before-merge~3219 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6f43b7998943291465d222ec4e64ba1983282375;p=thirdparty%2Fglibc.git (__jmp_buf): Remove floating-point support. (_JMPBUF_UNWINDS): Added. --- diff --git a/sysdeps/arm/bits/setjmp.h b/sysdeps/arm/bits/setjmp.h index ea25a9ba873..6d8737970b8 100644 --- a/sysdeps/arm/bits/setjmp.h +++ b/sysdeps/arm/bits/setjmp.h @@ -23,10 +23,14 @@ #endif #ifndef _ASM -/* Jump buffer contains v1-v6, sl, fp, sp, pc and (f4-f7) if we do FP. */ -# if __ARM_USES_FP -typedef int __jmp_buf[22]; -# else +/* Jump buffer contains v1-v6, sl, fp, sp and pc. Other registers are not + saved. */ typedef int __jmp_buf[10]; -# endif #endif + +#define __JMP_BUF_SP 8 + +/* Test if longjmp to JMPBUF would unwind the frame + containing a local variable at ADDRESS. */ +#define _JMPBUF_UNWINDS(jmpbuf, address) \ + ((void *) (address) < (void *) (jmpbuf[__JMP_BUF_SP]))