Patchwork [2/3] ppc-linux: Fix call to _Unwind_SetGRPtr

login
register
mail settings
Submitter Richard Henderson
Date Nov. 12, 2011, 6:46 a.m.
Message ID <1321080394-16180-3-git-send-email-rth@redhat.com>
Download mbox | patch
Permalink /patch/125326/
State New
Headers show

Comments

Richard Henderson - Nov. 12, 2011, 6:46 a.m.
From: Richard Henderson <rth@twiddle.net>

---
 libgcc/config/rs6000/linux-unwind.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

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));
 	    }
 	}
     }