about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ports/ChangeLog.mips3
-rw-r--r--ports/sysdeps/mips/jmpbuf-unwind.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/ports/ChangeLog.mips b/ports/ChangeLog.mips
index 8c84869306..5ef48f4e77 100644
--- a/ports/ChangeLog.mips
+++ b/ports/ChangeLog.mips
@@ -1,5 +1,8 @@
 2012-11-21  Joseph Myers  <joseph@codesourcery.com>
 
+	* sysdeps/mips/jmpbuf-unwind.h (_jmpbuf_sp): Cast regs[0].__sp to
+	uintptr_t.
+
 	* sysdeps/mips/sotruss-lib.c: New file.
 
 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
diff --git a/ports/sysdeps/mips/jmpbuf-unwind.h b/ports/sysdeps/mips/jmpbuf-unwind.h
index ba174d6079..355ca56f78 100644
--- a/ports/sysdeps/mips/jmpbuf-unwind.h
+++ b/ports/sysdeps/mips/jmpbuf-unwind.h
@@ -33,7 +33,7 @@
 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