about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorDavid Holsgrove <david.holsgrove@xilinx.com>2014-12-29 13:54:19 +1000
committerDavid Holsgrove <david.holsgrove@xilinx.com>2015-01-09 14:49:27 +1000
commitcf71e44f1b127335da33d3845f21b62fa17c3108 (patch)
tree750f15bf2433c47092ac54280a2ed1abe6cd8388 /sysdeps
parentb360ee62d2c13b69ca58a36907093d9cf0f4b7a4 (diff)
downloadglibc-cf71e44f1b127335da33d3845f21b62fa17c3108.tar.gz
glibc-cf71e44f1b127335da33d3845f21b62fa17c3108.tar.xz
glibc-cf71e44f1b127335da33d3845f21b62fa17c3108.zip
MicroBlaze: Avoid pointer to integer conversion warning
2015-01-06  David Holsgrove <david.holsgrove@xilinx.com>

  * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
    pointer and cast to uintptr_t.

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/microblaze/jmpbuf-unwind.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/microblaze/jmpbuf-unwind.h b/sysdeps/microblaze/jmpbuf-unwind.h
index 000390ce5c..de96ee2308 100644
--- a/sysdeps/microblaze/jmpbuf-unwind.h
+++ b/sysdeps/microblaze/jmpbuf-unwind.h
@@ -32,11 +32,11 @@
 static inline uintptr_t __attribute__ ((unused))
 _jmpbuf_sp (__jmp_buf regs)
 {
-  uintptr_t sp = regs[0].__sp;
+  void *sp = (void *) regs[0].__sp;
 #ifdef PTR_DEMANGLE
   PTR_DEMANGLE (sp);
 #endif
-  return sp;
+  return (uintptr_t) sp;
 }
 
 #define _JMPBUF_UNWINDS_ADJ(_jmpbuf, _address, _adj) \