This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED PATCH] MicroBlaze: Avoid pointer to integer conversion warning
- From: David Holsgrove <david dot holsgrove at xilinx dot com>
- To: <libc-alpha at sourceware dot org>
- Cc: <david dot holsgrove at xilinx dot com>
- Date: Fri, 9 Jan 2015 17:48:36 +1000
- Subject: [COMMITTED PATCH] MicroBlaze: Avoid pointer to integer conversion warning
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=pass (sender IP is 149.199.60.83) smtp dot mailfrom=david dot holsgrove at xilinx dot com;
- References: <1420789716-19858-1-git-send-email-david dot holsgrove at xilinx dot com>
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>
---
ChangeLog | 5 +++++
sysdeps/microblaze/jmpbuf-unwind.h | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2a925cd..6566401 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2015-01-09 David Holsgrove <david.holsgrove@xilinx.com>
+ * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
+ pointer and cast to uintptr_t.
+
+2015-01-09 David Holsgrove <david.holsgrove@xilinx.com>
+
* sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
removed.
(READ_THREAD_POINTER): Use __microblaze_thread_area instead.
diff --git a/sysdeps/microblaze/jmpbuf-unwind.h b/sysdeps/microblaze/jmpbuf-unwind.h
index 000390c..de96ee2 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) \
--
2.1.1