* sysdeps/unix/sysv/linux/ia64/bits/setjmp.h (_JMPBUF_UNWINDS):
authorUlrich Drepper <drepper@redhat.com>
Fri, 30 Dec 2005 18:29:30 +0000 (18:29 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 30 Dec 2005 18:29:30 +0000 (18:29 +0000)
Don't use _demangle parameter for now.

ChangeLog
nptl/ChangeLog
nptl/sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h
sysdeps/unix/sysv/linux/ia64/bits/setjmp.h

index 1fe2d88..f8aab97 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-12-30  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h (_JMPBUF_UNWINDS):
+       Don't use _demangle parameter for now.
+
        [BZ #2080]
        * libio/iogetwline.c (_IO_getwline_info): Move return to correct
        location.
index f7a70a6..9d10889 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-30  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Undo last change for
+       now.
+
 2005-12-29  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/pthread/sigaction.c: Removed.
index 61411bd..c6ef5f7 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 2003, 2004 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>
 
-static inline uintptr_t __attribute__ ((unused))
-_jmpbuf_sp (__jmp_buf regs, int i)
-{
-  uintptr_t sp = ((unsigned long int *) regs)[i];
-#ifdef PTR_DEMANGLE
-  PTR_DEMANGLE (sp);
-#endif
-  return sp;
-}
-
-
-#define _JMPBUF_CFA_UNWINDS_ADJ(_jmpbuf, _context, _adj)                     \
-  ({ uintptr_t _cfa = (uintptr_t) _Unwind_GetCFA (_context) - (_adj);        \
-    (_cfa < _jmpbuf_sp (_jmpbuf, 0) - (_adj)                                 \
-     || (_cfa == (uintptr_t)(((long *)(_jmpbuf))[0]) - (_adj)                \
-        && ((uintptr_t) _Unwind_GetBSP (_context) - (_adj)                   \
-            >= _jmpbuf_sp (_jmpbuf, 17) - (_adj))));                         \
+#define _JMPBUF_CFA_UNWINDS_ADJ(_jmpbuf, _context, _adj) \
+  ({ uintptr_t _cfa = (uintptr_t) _Unwind_GetCFA (_context) - (_adj);  \
+     (_cfa < (uintptr_t)(((long *)(_jmpbuf))[0]) - (_adj)              \
+      || (_cfa == (uintptr_t)(((long *)(_jmpbuf))[0]) - (_adj)         \
+         && (uintptr_t) _Unwind_GetBSP (_context) - (_adj)             \
+            >= (uintptr_t)(((long *)(_jmpbuf))[17]) - (_adj)));        \
   })
 
 #define _JMPBUF_UNWINDS_ADJ(_jmpbuf, _address, _adj) \
index 07d4d80..8054397 100644 (file)
@@ -35,6 +35,6 @@ typedef long __jmp_buf[_JBLEN] __attribute__ ((aligned (16))); /* guarantees 128
 /* 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 (((long int *) _jmpbuf)[0]))
+  ((void *) (_address) < (void *) (((long int *) _jmpbuf)[0]))
 
 #endif  /* bits/setjmp.h */