about summary refs log tree commit diff
path: root/ports/sysdeps/mips
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-11-20 02:40:12 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-11-20 02:40:12 +0000
commitaa099ade815644694e37c44cb129d3267c297d06 (patch)
tree327c872cfa84516daa6ed02a248181243cb09387 /ports/sysdeps/mips
parentbd077d205aab57df26d5b2b3f1766c52b8dd7583 (diff)
downloadglibc-aa099ade815644694e37c44cb129d3267c297d06.tar.gz
glibc-aa099ade815644694e37c44cb129d3267c297d06.tar.xz
glibc-aa099ade815644694e37c44cb129d3267c297d06.zip
Fix int-to-pointer-cast warnings for MIPS.
Diffstat (limited to 'ports/sysdeps/mips')
-rw-r--r--ports/sysdeps/mips/jmpbuf-unwind.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/ports/sysdeps/mips/jmpbuf-unwind.h b/ports/sysdeps/mips/jmpbuf-unwind.h
index 31c9c8de7d..ba174d6079 100644
--- a/ports/sysdeps/mips/jmpbuf-unwind.h
+++ b/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,8 +25,10 @@
 #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)