[PATCH] Add __GCC_HAVE_SYNC_COMPARE_AND_SWAP_*
Paolo Carlini
pcarlini@suse.de
Fri May 18 14:35:00 GMT 2007
Uros Bizjak wrote:
> I would add also
>
> +#ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16
>
> to ..._swap-1.c,
>
> +#ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
> +#ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16
>
> to ..._swap-2.c and
>
> +#ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16
>
> to ..._swap-3.c
Ok, added in the attahed, tested x86-linux and x86_64-linux multilib, as
usual.
> just to cover all cases... Anyway, the i386 part (tests) are OK, and
> althoug I can't approve cpp part it looks pretty safe to me, having
> all these #ifdefs around.
Excellent. I'm looking for approval of the c-cppbuiltin.c bits...
Paolo.
////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_gcc_have_compare_and_swap_5
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070518/31d6977b/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_gcc_have_compare_and_swap_5
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070518/31d6977b/attachment-0001.ksh>
More information about the Gcc-patches
mailing list