[PING] [PATCH v3, middle end]: Fix PR 37908, thinko with atomic NAND operation

Mark Mitchell mark@codesourcery.com
Fri Nov 14 21:44:00 GMT 2008


Uros Bizjak wrote:

> I would like to ping RMs to decide on the patch that fixes atomic NAND
> operations:
> 
> [1] http://gcc.gnu.org/ml/gcc-patches/2008-11/msg00157.html
> [2, doc] http://gcc.gnu.org/ml/gcc-patches/2008-11/msg00160.html

I wonder if we should keep the old builtin and add a new one.
(__builtin_sync_not_fetch_and_and).

It sounds like the old builtin matched its documentation.  It may not be
very useful, but it does something, and breaking code seems
unattractive.  That would also get rid of the need for the warning.

+@emph{Note:} GCC 4.4 and later implement @code{__sync_nand_and_fetch}

__sync_fetch_and_nand, right?

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list