mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
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>
This commit is contained in:
parent
b360ee62d2
commit
cf71e44f1b
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user