summaryrefslogtreecommitdiff
path: root/libc/ports/sysdeps/mips/jmpbuf-unwind.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/ports/sysdeps/mips/jmpbuf-unwind.h')
-rw-r--r--libc/ports/sysdeps/mips/jmpbuf-unwind.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/libc/ports/sysdeps/mips/jmpbuf-unwind.h b/libc/ports/sysdeps/mips/jmpbuf-unwind.h
index 31c9c8de7..355ca56f7 100644
--- a/libc/ports/sysdeps/mips/jmpbuf-unwind.h
+++ b/libc/ports/sysdeps/mips/jmpbuf-unwind.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003, 2005, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 2003-2012 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
@@ -25,13 +25,15 @@
#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)
+#define _JMPBUF_CFA_UNWINDS_ADJ(_jmpbuf, _context, _adj) \
+ _JMPBUF_UNWINDS_ADJ (_jmpbuf, \
+ (void *) (_Unwind_Ptr) _Unwind_GetCFA (_context), \
+ _adj)
static inline uintptr_t __attribute__ ((unused))
_jmpbuf_sp (__jmp_buf regs)
{
- uintptr_t sp = regs[0].__sp;
+ uintptr_t sp = (uintptr_t) regs[0].__sp;
#ifdef PTR_DEMANGLE
PTR_DEMANGLE (sp);
#endif