From eee57ca7c1fd1976af14ca9b76dbf1d48b1d8f23 Mon Sep 17 00:00:00 2001 From: rth Date: Sat, 12 Nov 2011 17:20:58 +0000 Subject: [PATCH] ppc-linux: Fix call to _Unwind_SetGRPtr * config/rs6000/linux-unwind.h (frob_update_context): Properly cast the pointer argument to _Unwind_SetGRPtr. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181325 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgcc/ChangeLog | 5 +++++ libgcc/config/rs6000/linux-unwind.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index a40d459..6e6f79a 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2011-11-12 Richard Henderson + + * config/rs6000/linux-unwind.h (frob_update_context): Properly + cast the pointer argument to _Unwind_SetGRPtr. + 2011-11-11 Rainer Orth * config/spu/t-elf (LIB2ADD): Use LIB2FUNCS_EXCLUDE instead. diff --git a/libgcc/config/rs6000/linux-unwind.h b/libgcc/config/rs6000/linux-unwind.h index 2011632..13bf413 100644 --- a/libgcc/config/rs6000/linux-unwind.h +++ b/libgcc/config/rs6000/linux-unwind.h @@ -368,7 +368,7 @@ frob_update_context (struct _Unwind_Context *context, _Unwind_FrameState *fs ATT before the bctrl so this is the first and only place we need to use the stored R2. */ _Unwind_Word sp = _Unwind_GetGR (context, 1); - _Unwind_SetGRPtr (context, 2, sp + 40); + _Unwind_SetGRPtr (context, 2, (void *)(sp + 40)); } } } -- 2.7.4