This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PING] [PATCH v3, middle end]: Fix PR 37908, thinko with atomic NAND operation
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Richard Guenther <richard dot guenther at gmail dot com>, Jakub Jelinek <jakub at redhat dot com>
- Date: Fri, 14 Nov 2008 13:32:58 -0800
- Subject: Re: [PING] [PATCH v3, middle end]: Fix PR 37908, thinko with atomic NAND operation
- References: <5787cf470811122319t4debcf90lde5d6768f52a17f7@mail.gmail.com>
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