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: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: "Mark Mitchell" <mark at codesourcery dot com>
- Cc: "Uros Bizjak" <ubizjak at gmail dot com>, "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:39:33 -0800
- Subject: Re: [PING] [PATCH v3, middle end]: Fix PR 37908, thinko with atomic NAND operation
- References: <5787cf470811122319t4debcf90lde5d6768f52a17f7@mail.gmail.com> <491DEE8A.7060800@codesourcery.com>
On Fri, Nov 14, 2008 at 1:32 PM, Mark Mitchell <mark@codesourcery.com> wrote:
> 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
The old builtin DOES NOT match the ia64 psABI specification.
H.J.
---
> 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
>
--
H.J.