aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@ezchip.com>2014-12-26 16:18:40 -0500
committerChris Metcalf <cmetcalf@ezchip.com>2014-12-26 16:18:40 -0500
commit7c1395a7e4d3d994a986ef2bc5457ba3f4aaec22 (patch)
tree1cb658d905fd7cda0a042c52a4f8932c67040f5f /sysdeps
parent3c87c6167e1e6dc25cce9b4c67e4520b8be21e28 (diff)
downloadglibc-7c1395a7e4d3d994a986ef2bc5457ba3f4aaec22.tar
glibc-7c1395a7e4d3d994a986ef2bc5457ba3f4aaec22.tar.gz
glibc-7c1395a7e4d3d994a986ef2bc5457ba3f4aaec22.tar.bz2
glibc-7c1395a7e4d3d994a986ef2bc5457ba3f4aaec22.zip
tilegx32: avoid a a -Werror warning from unwinding
The _Unwind_GetCFA() routine returns a 64-bit value, which we interpret as a pointer. Add an intermediate cast to long so that in ILP32 mode we don't get a warning about casting a wrong-sized integer to a pointer.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/tile/jmpbuf-unwind.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/tile/jmpbuf-unwind.h b/sysdeps/tile/jmpbuf-unwind.h
index 3925e905b1..ec0be21f90 100644
--- a/sysdeps/tile/jmpbuf-unwind.h
+++ b/sysdeps/tile/jmpbuf-unwind.h
@@ -29,7 +29,7 @@
((void *) (address) < (void *) demangle ((jmpbuf)[JB_SP]))
#define _JMPBUF_CFA_UNWINDS_ADJ(_jmpbuf, _context, _adj) \
- _JMPBUF_UNWINDS_ADJ (_jmpbuf, (void *) _Unwind_GetCFA (_context), _adj)
+ _JMPBUF_UNWINDS_ADJ (_jmpbuf, (void *) (long) _Unwind_GetCFA (_context), _adj)
static inline uintptr_t __attribute__ ((unused))
_jmpbuf_sp (__jmp_buf regs)