Commit f77dca5d by Richard Henderson Committed by Richard Henderson

ppc-linux: Fix call to _Unwind_SetGRPtr

        * config/rs6000/linux-unwind.h (frob_update_context): Properly
        cast the pointer argument to _Unwind_SetGRPtr.

From-SVN: r181325
parent 17fd74dd
2011-11-12 Richard Henderson <rth@redhat.com>
* config/rs6000/linux-unwind.h (frob_update_context): Properly
cast the pointer argument to _Unwind_SetGRPtr.
2011-11-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2011-11-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/spu/t-elf (LIB2ADD): Use LIB2FUNCS_EXCLUDE instead. * config/spu/t-elf (LIB2ADD): Use LIB2FUNCS_EXCLUDE instead.
......
...@@ -368,7 +368,7 @@ frob_update_context (struct _Unwind_Context *context, _Unwind_FrameState *fs ATT ...@@ -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 before the bctrl so this is the first and only place
we need to use the stored R2. */ we need to use the stored R2. */
_Unwind_Word sp = _Unwind_GetGR (context, 1); _Unwind_Word sp = _Unwind_GetGR (context, 1);
_Unwind_SetGRPtr (context, 2, sp + 40); _Unwind_SetGRPtr (context, 2, (void *)(sp + 40));
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment