[cfe-commits] patch: libcxxabi __cxa_guard_* for ARM EABI

Nick Lewycky nlewycky at google.com
Fri Jun 3 01:48:01 PDT 2011


On 3 June 2011 01:43, Renato Golin <rengolin at systemcall.org> wrote:

> On 3 June 2011 08:46, Nick Lewycky <nlewycky at google.com> wrote:
> >> The attached patch implements the ARM EABI versions of
> >> __cxa_guard_{acquire,release,abort} while trying to share as much code
> as
> >> possible. It appears to me that it's unlikely that this will build
> correctly
> >> on __APPLE__ machines, but that's beyond my ability to deal with here. I
> >> have also not actually tested this on an ARM machine, but I did #define
> >> LIBCXXABI_ARMEABI and build the tests and those pass on x86-64.
>
> Hi Nick,
>
> I also can't tell you about the Apple part (or the get_lock), but the
> ARM __cxa_* look correct.
>

Thanks for the fast review!

Is there a test for this in Clang? Have you tried at least running them on
> OSX?
>

There's a libcxxabi/test/test_guard.cpp, but it doesn't launch any threads.
I have not even built it on OSX.

Nick


>
> cheers,
> --renato
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110603/745a7a69/attachment.html>


More information about the cfe-commits mailing list