Bug fix 12730: Add support for __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1, 2, 4, 8} on ARM

Eli Friedman eli.friedman at gmail.com
Mon Sep 2 19:11:53 PDT 2013


On Sat, Aug 31, 2013 at 11:51 PM, <weimingz at codeaurora.org> wrote:

> Hi,
>
> The orignal patch (r178816) fixed bug 12730 for x86. This patch adds the
> same macro definitions "__GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}" to ARM
> target to address the same issue.
>
> Please help to review it.
>
>
Is there any way we can compute the correct setting for these macros in a
target-independent code?  IIRC, targets already expose some information
about atomics.

-Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130902/9de68b2e/attachment.html>


More information about the cfe-commits mailing list