mirror of git://sourceware.org/git/glibc.git
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>
|
2015-01-09 David Holsgrove <david.holsgrove@xilinx.com>
|
||||||
|
|
||||||
* sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
|
* sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
|
||||||
|
|
|
||||||
|
|
@ -32,11 +32,11 @@
|
||||||
static inline uintptr_t __attribute__ ((unused))
|
static inline uintptr_t __attribute__ ((unused))
|
||||||
_jmpbuf_sp (__jmp_buf regs)
|
_jmpbuf_sp (__jmp_buf regs)
|
||||||
{
|
{
|
||||||
uintptr_t sp = regs[0].__sp;
|
void *sp = (void *) regs[0].__sp;
|
||||||
#ifdef PTR_DEMANGLE
|
#ifdef PTR_DEMANGLE
|
||||||
PTR_DEMANGLE (sp);
|
PTR_DEMANGLE (sp);
|
||||||
#endif
|
#endif
|
||||||
return sp;
|
return (uintptr_t) sp;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define _JMPBUF_UNWINDS_ADJ(_jmpbuf, _address, _adj) \
|
#define _JMPBUF_UNWINDS_ADJ(_jmpbuf, _address, _adj) \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue