[PATCH] libc++abi: Don't push the unwind_exception to r12 in _gxx_personality_v0.
Jonathan Roelofs
jonathan at codesourcery.com
Thu May 29 11:27:06 PDT 2014
On 5/28/14, 9:08 AM, Dana Jansens wrote:
> - // Copy the address of _Unwind_Control_Block to r12 so that _Unwind_GetLangauageSpecificData()
> - // and _Unwind_GetRegionStart() can return correct address.
> - _Unwind_SetGR(context, REG_UCB, reinterpret_cast<uint32_t>(unwind_exception));
libgcc does in fact need us to pass the UCB in r12. See:
gcc-trunk-4.8/libgcc/arm/pr-support.c.
We should probably keep this, but put it under LIBCXXABI_USE_GLIBC for when
using libgcc's unwinder with libc++abi, as our unwinder implementation doesn't
do it that way.
Cheers,
Jon
--
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded
More information about the cfe-commits
mailing list