]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/powerpc/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
authorRoland McGrath <roland@gnu.org>
Tue, 10 Jan 2006 08:54:22 +0000 (08:54 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 10 Jan 2006 08:54:22 +0000 (08:54 +0000)
* sysdeps/powerpc/jmpbuf-unwind.h: ... here.
* sysdeps/alpha/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
* sysdeps/alpha/jmpbuf-unwind.h: ... here.
* sysdeps/sparc/sparc32/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
* sysdeps/sparc/sparc32/jmpbuf-unwind.h: ... here.
* sysdeps/i386/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
* sysdeps/i386/jmpbuf-unwind.h: ... here.
* sysdeps/x86_64/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
* sysdeps/x86_64/jmpbuf-unwind.h: ... here.
* sysdeps/sh/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
* sysdeps/sh/jmpbuf-unwind.h: ... here.
* sysdeps/hppa/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
* sysdeps/hppa/jmpbuf-unwind.h: ... here, new file.
* sysdeps/mips/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
* sysdeps/mips/jmpbuf-unwind.h: ... here.
* sysdeps/m68k/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
* sysdeps/m68k/jmpbuf-unwind.h: ... here, new file.
* sysdeps/s390/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
* sysdeps/s390/jmpbuf-unwind.h: ... here.
* sysdeps/unix/sysv/linux/ia64/bits/setjmp.h (_JMPBUF_UNWINDS):
Move macro ...
* sysdeps/ia64/jmpbuf-unwind.h: ... here.
* sysdeps/unix/sysv/linux/sparc/bits/setjmp.h (_JMPBUF_UNWINDS):
Move macro ...
* sysdeps/sparc/sparc64/jmpbuf-unwind.h: ... here.

* sysdeps/ia64/jmpbuf-unwind.h: New file, moved from nptl/.

26 files changed:
ChangeLog
nptl/ChangeLog
sysdeps/alpha/bits/setjmp.h
sysdeps/alpha/jmpbuf-unwind.h
sysdeps/hppa/bits/setjmp.h
sysdeps/hppa/jmpbuf-unwind.h [new file with mode: 0644]
sysdeps/i386/bits/setjmp.h
sysdeps/i386/jmpbuf-unwind.h
sysdeps/ia64/jmpbuf-unwind.h [moved from nptl/sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h with 85% similarity]
sysdeps/m68k/bits/setjmp.h
sysdeps/m68k/jmpbuf-unwind.h [new file with mode: 0644]
sysdeps/mips/bits/setjmp.h
sysdeps/mips/jmpbuf-unwind.h
sysdeps/powerpc/bits/setjmp.h
sysdeps/powerpc/jmpbuf-unwind.h
sysdeps/s390/bits/setjmp.h
sysdeps/s390/jmpbuf-unwind.h
sysdeps/sh/bits/setjmp.h
sysdeps/sh/jmpbuf-unwind.h
sysdeps/sparc/sparc32/bits/setjmp.h
sysdeps/sparc/sparc32/jmpbuf-unwind.h
sysdeps/sparc/sparc64/jmpbuf-unwind.h
sysdeps/unix/sysv/linux/ia64/bits/setjmp.h
sysdeps/unix/sysv/linux/sparc/bits/setjmp.h
sysdeps/x86_64/bits/setjmp.h
sysdeps/x86_64/jmpbuf-unwind.h

index 13610a92d3cb8ff1210324b2e850359f34c753aa..8581eeefc4273ff432b89e62ca5917cfcc835ea0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,35 @@
 2006-01-10  Roland McGrath  <roland@redhat.com>
 
+       * sysdeps/powerpc/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
+       * sysdeps/powerpc/jmpbuf-unwind.h: ... here.
+       * sysdeps/alpha/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
+       * sysdeps/alpha/jmpbuf-unwind.h: ... here.
+       * sysdeps/sparc/sparc32/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
+       * sysdeps/sparc/sparc32/jmpbuf-unwind.h: ... here.
+       * sysdeps/i386/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
+       * sysdeps/i386/jmpbuf-unwind.h: ... here.
+       * sysdeps/x86_64/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
+       * sysdeps/x86_64/jmpbuf-unwind.h: ... here.
+       * sysdeps/sh/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
+       * sysdeps/sh/jmpbuf-unwind.h: ... here.
+       * sysdeps/hppa/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
+       * sysdeps/hppa/jmpbuf-unwind.h: ... here, new file.
+       * sysdeps/mips/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
+       * sysdeps/mips/jmpbuf-unwind.h: ... here.
+       * sysdeps/m68k/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
+       * sysdeps/m68k/jmpbuf-unwind.h: ... here, new file.
+       * sysdeps/s390/bits/setjmp.h (_JMPBUF_UNWINDS): Move macro ...
+       * sysdeps/s390/jmpbuf-unwind.h: ... here.
+       * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h (_JMPBUF_UNWINDS):
+       Move macro ...
+       * sysdeps/ia64/jmpbuf-unwind.h: ... here.
+       * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h (_JMPBUF_UNWINDS):
+       Move macro ...
+       * sysdeps/sparc/sparc64/jmpbuf-unwind.h: ... here.
+
        * sysdeps/alpha/jmpbuf-unwind.h: New file, moved from nptl/.
        * sysdeps/i386/jmpbuf-unwind.h: New file, moved from nptl/.
+       * sysdeps/ia64/jmpbuf-unwind.h: New file, moved from nptl/.
        * sysdeps/mips/jmpbuf-unwind.h: New file, moved from nptl/.
        * sysdeps/powerpc/jmpbuf-unwind.h: New file, moved from nptl/.
        * sysdeps/s390/jmpbuf-unwind.h: New file, moved from nptl/.
index 7db66570ca8294f2175dd9ebd160842e61a3149a..3b82e842f0459977e1e294fa05f166defccd72b1 100644 (file)
@@ -9,6 +9,7 @@
        * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise.
        * sysdeps/sparc/sparc64/jmpbuf-unwind.h: Likewise.
        * sysdeps/x86_64/jmpbuf-unwind.h: Likewise.
+       * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise.
 
 2006-01-09  Roland McGrath  <roland@redhat.com>
 
index 71b7738c3742a39d180140f070277d96bb111a23..7db0dbf5657dd9bd11c73c7bb5669e8db2d55a27 100644 (file)
@@ -1,5 +1,5 @@
 /* Define the machine-dependent type `jmp_buf'.  Alpha version.
-   Copyright (C) 1992, 1997, 2003, 2005 Free Software Foundation, Inc.
+   Copyright (C) 1992,1997,2003,2005,2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 
 #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, _demangle) \
-  ((void *)(_address) < (void *) _demangle ((_jmpbuf)[JB_SP]))
 #endif
 
 #endif  /* bits/setjmp.h */
index ca445f8d24ae3ab86d1fb649164fc4e55b75b5c0..1faa16fba4da7a3c901c3135a02a0087a5bffc8b 100644 (file)
 #include <unwind.h>
 #include <sysdep.h>
 
+/* Test if longjmp to JMPBUF would unwind the frame containing a local
+   variable at ADDRESS.  */
+#define _JMPBUF_UNWINDS(_jmpbuf, _address, _demangle) \
+  ((void *)(_address) < (void *) _demangle ((_jmpbuf)[JB_SP]))
+
 #define _JMPBUF_CFA_UNWINDS_ADJ(_jmpbuf, _context, _adj) \
   _JMPBUF_UNWINDS_ADJ (_jmpbuf, (void *) _Unwind_GetCFA (_context), _adj)
 
index 07ea01eb97599d07e838ec3bfeb7092a5d7fa0ec..4c8ed07b9815191a3a9ad463723aeabc41f6c76f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2005, 2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 typedef double __jmp_buf[21];
 #endif
 
-/* Test if longjmp to JMPBUF would unwind the frame containing a local
-   variable at ADDRESS.  */
-#define _JMPBUF_UNWINDS(_jmpbuf, _address, _demangle)                  \
-  ((void *) (_address) >                                               \
-   (void *) _demangle ((((unsigned long *) _jmpbuf)[JB_SP])))
-
 #endif /* bits/setjmp.h */
diff --git a/sysdeps/hppa/jmpbuf-unwind.h b/sysdeps/hppa/jmpbuf-unwind.h
new file mode 100644 (file)
index 0000000..15cae66
--- /dev/null
@@ -0,0 +1,26 @@
+/* Examine __jmp_buf for unwinding frames.  HPPA version.
+   Copyright (C) 2006 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+   02111-1307 USA.  */
+
+#include <setjmp.h>
+
+/* Test if longjmp to JMPBUF would unwind the frame containing a local
+   variable at ADDRESS.  */
+#define _JMPBUF_UNWINDS(_jmpbuf, _address, _demangle)                  \
+  ((void *) (_address) >                                               \
+   (void *) _demangle ((((unsigned long *) _jmpbuf)[JB_SP])))
index d99a726ba34febe7f2a274cccf17d0e2e6392e89..7029673090659ec7fff4fbf32cc8edd6cf7881cd 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (C) 1997, 1998, 2000, 2001, 2003, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 1997,1998,2000,2001,2003,2005,2006
+       Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -38,9 +39,4 @@
 typedef int __jmp_buf[6];
 #endif
 
-/* Test if longjmp to JMPBUF would unwind the frame
-   containing a local variable at ADDRESS.  */
-#define _JMPBUF_UNWINDS(jmpbuf, address, demangle) \
-  ((void *) (address) < (void *) demangle ((jmpbuf)[JB_SP]))
-
 #endif /* bits/setjmp.h */
index ca445f8d24ae3ab86d1fb649164fc4e55b75b5c0..039159d1ed579d017adeb91a7ac09c2305c92676 100644 (file)
 #include <unwind.h>
 #include <sysdep.h>
 
+/* Test if longjmp to JMPBUF would unwind the frame
+   containing a local variable at ADDRESS.  */
+#define _JMPBUF_UNWINDS(jmpbuf, address, demangle) \
+  ((void *) (address) < (void *) demangle ((jmpbuf)[JB_SP]))
+
 #define _JMPBUF_CFA_UNWINDS_ADJ(_jmpbuf, _context, _adj) \
   _JMPBUF_UNWINDS_ADJ (_jmpbuf, (void *) _Unwind_GetCFA (_context), _adj)
 
similarity index 85%
rename from nptl/sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h
rename to sysdeps/ia64/jmpbuf-unwind.h
index c6ef5f7fbd2b5d8b14e04212b734b61d0d693b1f..c53447223be78750427e09a345aa5073311de231 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+/* Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.
 
 #include <stdint.h>
 #include <unwind.h>
 
+/* Test if longjmp to JMPBUF would unwind the frame containing a local
+   variable at ADDRESS.  */
+#define _JMPBUF_UNWINDS(_jmpbuf, _address, _demangle) \
+  ((void *) (_address) < (void *) (((long int *) _jmpbuf)[0]))
+
 #define _JMPBUF_CFA_UNWINDS_ADJ(_jmpbuf, _context, _adj) \
   ({ uintptr_t _cfa = (uintptr_t) _Unwind_GetCFA (_context) - (_adj);  \
      (_cfa < (uintptr_t)(((long *)(_jmpbuf))[0]) - (_adj)              \
index 612582af26fee55dab313d33c0d0023f30a4eb70..2d5a08227d1359acded6735109e9a942ee310616 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 1997,1998,2005,2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -42,9 +42,4 @@ typedef struct
 
   } __jmp_buf[1];
 
-/* Test if longjmp to JMPBUF would unwind the frame
-   containing a local variable at ADDRESS.  */
-#define _JMPBUF_UNWINDS(jmpbuf, address, demangle)             \
-  ((void *) (address) < (void *) demangle ((jmpbuf)->__sp))
-
 #endif /* bits/setjmp.h */
diff --git a/sysdeps/m68k/jmpbuf-unwind.h b/sysdeps/m68k/jmpbuf-unwind.h
new file mode 100644 (file)
index 0000000..3490c79
--- /dev/null
@@ -0,0 +1,25 @@
+/* Examine __jmp_buf for unwinding frames.  m68k version.
+   Copyright (C) 2006 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+   02111-1307 USA.  */
+
+#include <setjmp.h>
+
+/* Test if longjmp to JMPBUF would unwind the frame
+   containing a local variable at ADDRESS.  */
+#define _JMPBUF_UNWINDS(jmpbuf, address, demangle)             \
+  ((void *) (address) < (void *) demangle ((jmpbuf)->__sp))
index 5f7c82b86482fcd880cc96124e6cd3e3f66ce0e9..7b94623378011d34933b824b3ed4b958f9dac586 100644 (file)
@@ -1,5 +1,5 @@
 /* Define the machine-dependent type `jmp_buf'.  MIPS version.
-   Copyright (C) 1992, 1993, 1995, 1997, 2000, 2002, 2003, 2004, 2005
+   Copyright (C) 1992,1993,1995,1997,2000,2002,2003,2004,2005,2006
        Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
@@ -77,10 +77,4 @@ typedef struct
 # define JB_PC 0
 #endif
 
-
-/* Test if longjmp to JMPBUF would unwind the frame
-   containing a local variable at ADDRESS.  */
-#define _JMPBUF_UNWINDS(jmpbuf, address, demangle)             \
-  ((void *) (address) < (void *) demangle ((jmpbuf)[0].__sp))
-
 #endif /* _MIPS_BITS_SETJMP_H */
index 1ff8fc895796804abda7df9369c269cd48a0a3dd..bfa1a645374373b0cfd382c993caf455ca13cc3c 100644 (file)
 #include <unwind.h>
 #include <sysdep.h>
 
+/* Test if longjmp to JMPBUF would unwind the frame
+   containing a local variable at ADDRESS.  */
+#define _JMPBUF_UNWINDS(jmpbuf, address, demangle)             \
+  ((void *) (address) < (void *) demangle ((jmpbuf)[0].__sp))
+
 #define _JMPBUF_CFA_UNWINDS_ADJ(_jmpbuf, _context, _adj) \
   _JMPBUF_UNWINDS_ADJ (_jmpbuf, (void *) _Unwind_GetCFA (_context), _adj)
 
index 6b35fb440b014f94935cdedf12e5b6313ea71989..4221300540f9bc78d05dada162a031a015ae77df 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (C) 1997, 1998, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 1997,1998,2000,2003,2004,2005,2006
+       Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -72,9 +73,4 @@ typedef long int __jmp_buf[64 + (12 * 4)] __attribute__ ((__aligned__ (16)));
 # endif
 #endif
 
-/* Test if longjmp to JMPBUF would unwind the frame
-   containing a local variable at ADDRESS.  */
-#define _JMPBUF_UNWINDS(jmpbuf, address, demangle)                     \
-  ((void *) (address) < (void *) demangle ((jmpbuf)[JB_GPR1]))
-
 #endif  /* bits/setjmp.h */
index a6cfea074e87476d703e83805301bcb2871a74ef..34d5e6924c507c139dc9265bd5760490c88131b8 100644 (file)
 #include <unwind.h>
 #include <sysdep.h>
 
+/* Test if longjmp to JMPBUF would unwind the frame
+   containing a local variable at ADDRESS.  */
+#define _JMPBUF_UNWINDS(jmpbuf, address, demangle)                     \
+  ((void *) (address) < (void *) demangle ((jmpbuf)[JB_GPR1]))
+
 #define _JMPBUF_CFA_UNWINDS_ADJ(_jmpbuf, _context, _adj) \
   _JMPBUF_UNWINDS_ADJ (_jmpbuf, (void *) _Unwind_GetCFA (_context), _adj)
 
index 37f600d0adfcb70dc4ecbec7028cc3624d3739fe..dcac2d23770ecb2a6de30eb0cc362089da999e84 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2001, 2002, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 2000,2001,2002,2005,2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -55,9 +55,4 @@ typedef struct __s390_jmp_buf {
 
 #endif
 
-/* Test if longjmp to JMPBUF would unwind the frame
-   containing a local variable at ADDRESS.  */
-#define _JMPBUF_UNWINDS(jmpbuf, address, demangle)                     \
-  ((void *) (address) < (void *) demangle ((jmpbuf)->__gregs[__JB_GPR15]))
-
 #endif /* __S390_SETJMP_H__ */
index ae7491ab77c083e4ad2bab97964d4c4c7518baa8..23f1e991d588e9b36a76649364924e109fdf6496 100644 (file)
 #include <bits/wordsize.h>
 #include <sysdep.h>
 
+
+/* Test if longjmp to JMPBUF would unwind the frame
+   containing a local variable at ADDRESS.  */
+#define _JMPBUF_UNWINDS(jmpbuf, address, demangle)                     \
+  ((void *) (address) < (void *) demangle ((jmpbuf)->__gregs[__JB_GPR15]))
+
+
 /* On s390{,x}, CFA is always 96 (resp. 160) bytes above actual
    %r15.  */
 #define _JMPBUF_CFA_UNWINDS_ADJ(_jmpbuf, _context, _adj) \
index 8ebb5c598e44e785d07b38ecb5a18d1aea0fdae7..cdc27dceb02b1b7e901f3e8ef7c0eadaaa1fc1ff 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000, 2003, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 1999,2000,2003,2005,2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -48,9 +48,4 @@ typedef struct
 # define JB_SIZE               (4 * 15)
 #endif
 
-/* Test if longjmp to JMPBUF would unwind the frame
-   containing a local variable at ADDRESS.  */
-#define _JMPBUF_UNWINDS(jmpbuf, address, demangle)             \
-  ((void *) (address) < (void *) demangle ((jmpbuf)[0].__regs[7]))
-
 #endif  /* bits/setjmp.h */
index 4c84c42962e2677210ae49b74990d09c26a6e8f3..a69a465efcee4fa33aadd9da0df1e387f367f01f 100644 (file)
 #include <unwind.h>
 #include <sysdep.h>
 
+/* Test if longjmp to JMPBUF would unwind the frame
+   containing a local variable at ADDRESS.  */
+#define _JMPBUF_UNWINDS(jmpbuf, address, demangle)             \
+  ((void *) (address) < (void *) demangle ((jmpbuf)[0].__regs[7]))
+
 #define _JMPBUF_CFA_UNWINDS_ADJ(_jmpbuf, _context, _adj) \
   _JMPBUF_UNWINDS_ADJ (_jmpbuf, (void *) _Unwind_GetCFA (_context), _adj)
 
index 12250d69809dfa0988451f8d8b4d152f9ee5306b..62edd62635b14bce70ea9b5f61b243ebf3126e56 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 2005, 2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -31,8 +31,3 @@
 #ifndef        _ASM
 typedef int __jmp_buf[3];
 #endif
-
-/* Test if longjmp to JMPBUF would unwind the frame
-   containing a local variable at ADDRESS.  */
-#define _JMPBUF_UNWINDS(jmpbuf, address, demangle) \
-  ((int) (address) < demangle ((jmpbuf)[JB_SP]))
index 83b7a01a0e9b14db400d108e824c43133d36e692..c77673f27f83214d00c69db7c811744aa2bf9e30 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.
 
 #include <unwind.h>
 #include <sysdep.h>
 
+/* Test if longjmp to JMPBUF would unwind the frame
+   containing a local variable at ADDRESS.  */
+#define _JMPBUF_UNWINDS(jmpbuf, address, demangle) \
+  ((int) (address) < demangle ((jmpbuf)[JB_SP]))
+
 #define _JMPBUF_CFA_UNWINDS_ADJ(_jmpbuf, _context, _adj) \
   _JMPBUF_UNWINDS_ADJ (_jmpbuf, (void *) _Unwind_GetCFA (_context), _adj)
 
index efb6918c14a7cbf4f9c5ab7e19a4fdbd2ce498a0..f7eed15ea1c4fd98f0789a71ad9bcb2d10c40448 100644 (file)
 #include <stdint.h>
 #include <unwind.h>
 
+/* Test if longjmp to JMPBUF would unwind the frame
+   containing a local variable at ADDRESS.  */
+#define _JMPBUF_UNWINDS(jmpbuf, address, demangle)                     \
+  ((unsigned long int) (address) < (jmpbuf)->uc_mcontext.mc_fp + 2047)
+
 #define _JMPBUF_CFA_UNWINDS_ADJ(_jmpbuf, _context, _adj) \
   _JMPBUF_UNWINDS_ADJ (_jmpbuf, (void *) _Unwind_GetCFA (_context), _adj)
 
index 80543976bbb5c4b722482a9572c15b8678fb859b..8bd675e4eced398bccb36d5bf7dd17324df4de1a 100644 (file)
@@ -1,5 +1,5 @@
 /* Define the machine-dependent type `jmp_buf'.  Linux/IA-64 version.
-   Copyright (C) 1999, 2000, 2003, 2005 Free Software Foundation, Inc.
+   Copyright (C) 1999,2000,2003,2005,2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by David Mosberger-Tang <davidm@hpl.hp.com>.
 
@@ -32,9 +32,4 @@
 /* the __jmp_buf element type should be __float80 per ABI... */
 typedef long __jmp_buf[_JBLEN] __attribute__ ((aligned (16))); /* guarantees 128-bit alignment! */
 
-/* Test if longjmp to JMPBUF would unwind the frame containing a local
-   variable at ADDRESS.  */
-#define _JMPBUF_UNWINDS(_jmpbuf, _address, _demangle) \
-  ((void *) (_address) < (void *) (((long int *) _jmpbuf)[0]))
-
 #endif  /* bits/setjmp.h */
index 4fb7c90fd52a5249a624167d97304e3c579a9cb2..360310f5f139da8dfa18e7dbcdcda1ad7e6a5ef1 100644 (file)
@@ -58,11 +58,6 @@ typedef struct __sparc64_jmp_buf
   } __jmp_buf[1];
 #endif
 
-/* Test if longjmp to JMPBUF would unwind the frame
-   containing a local variable at ADDRESS.  */
-#define _JMPBUF_UNWINDS(jmpbuf, address, demangle)                     \
-  ((unsigned long int) (address) < (jmpbuf)->uc_mcontext.mc_fp + 2047)
-
 #else
 
 #if defined __USE_MISC || defined _ASM
@@ -75,11 +70,6 @@ typedef struct __sparc64_jmp_buf
 typedef int __jmp_buf[3];
 #endif
 
-/* Test if longjmp to JMPBUF would unwind the frame
-   containing a local variable at ADDRESS.  */
-#define _JMPBUF_UNWINDS(jmpbuf, address, demangle)     \
-  ((int) (address) < demangle ((jmpbuf)[JB_SP]))
-
 #endif
 
 #endif  /* bits/setjmp.h */
index 1031d5027b6a38706c38fcdd99a0d042471b62e5..656fbf7001b19d4f9a95dd4bf87cf40a00fbec57 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 2001,2002,2003,2005,2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -64,15 +64,4 @@ typedef long int __jmp_buf[8];
 typedef int __jmp_buf[6];
 # endif
 
-/* Test if longjmp to JMPBUF would unwind the frame
-   containing a local variable at ADDRESS.  */
-# if __WORDSIZE == 64
-#  define _JMPBUF_UNWINDS(jmpbuf, address, demangle) \
-  ((void *) (address) < (void *) demangle ((jmpbuf)[JB_RSP]))
-# else
-#  define _JMPBUF_UNWINDS(jmpbuf, address, demangle) \
-  ((void *) (address) < (void *) demangle ((jmpbuf)[JB_SP]))
-# endif
-#endif
-
 #endif  /* bits/setjmp.h */
index 2d1187df70d99a5f356ec84da4143d372cd003b4..c7c0d8ac03b214485e99ab23cfd796aa8fe6d1cd 100644 (file)
 #include <unwind.h>
 #include <sysdep.h>
 
+/* Test if longjmp to JMPBUF would unwind the frame
+   containing a local variable at ADDRESS.  */
+#define _JMPBUF_UNWINDS(jmpbuf, address, demangle) \
+  ((void *) (address) < (void *) demangle ((jmpbuf)[JB_RSP]))
+
 #define _JMPBUF_CFA_UNWINDS_ADJ(_jmpbuf, _context, _adj) \
   _JMPBUF_UNWINDS_ADJ (_jmpbuf, (void *) _Unwind_GetCFA (_context), _adj)