This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]