This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/2] [PING] Optimize generic spinlock code and use C11 like atomic macros.
- From: Torvald Riegel <triegel at redhat dot com>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: Stefan Liebler <stli at linux dot vnet dot ibm dot com>, libc-alpha at sourceware dot org
- Date: Thu, 01 Jun 2017 16:33:04 +0200
- Subject: Re: [PATCH 1/2] [PING] Optimize generic spinlock code and use C11 like atomic macros.
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=triegel at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com E9609C04B93B
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com E9609C04B93B
- References: <1481905917-15654-1-git-send-email-stli@linux.vnet.ibm.com> <5857CF10.1060100@arm.com> <628f6311-239c-5eea-572c-c2acae6fcbee@linux.vnet.ibm.com> <1487017743.16322.80.camel@redhat.com> <60a34645-17e4-6693-1343-03c55b0c47ad@linux.vnet.ibm.com> <1487437038.20203.68.camel@redhat.com> <25ad863b-6f20-bfb7-95e6-3b04a2b3eee8@linux.vnet.ibm.com> <1487598702.20203.138.camel@redhat.com> <b57d3477-a041-7b06-82ac-6d2b6c6bb08c@linux.vnet.ibm.com> <1491487245.5374.161.camel@redhat.com> <09ae8ea7-4119-76c1-cd58-36cbdf587390@linux.vnet.ibm.com> <1491745903.5374.199.camel@redhat.com> <9c6a4c3a-4de9-1cd0-46e6-3a43151aed7d@linux.vnet.ibm.com> <f7fe729c-6dc0-7327-deba-01c685c65a3f@linux.vnet.ibm.com> <2607f4f9-768e-e1e6-2e2e-17696991813d@linux.vnet.ibm.com> <b6339fef-a7bd-8b40-c73f-99d0f21731f6@linux.vnet.ibm.com> <6d90fe07-19e1-8c05-d283-dd21f6902db3@linux.vnet.ibm.com> <1496128691.5890.973.camel@redhat.com> <f25d852a-fec9-c6a3-c781-437f94a06800@linux.vnet.ibm.com> <1496249292.5890.1034.camel@redhat.com> <alpine.DEB.2.20.1706011338330.6083@digraph.polyomino.org.uk>
On Thu, 2017-06-01 at 13:39 +0000, Joseph Myers wrote:
> On Wed, 31 May 2017, Torvald Riegel wrote:
>
> > > Nobody answered for these archs:
> > > -alpha: #define ATOMIC_EXCHANGE_USES_CAS 1
> > > -arm: #define ATOMIC_EXCHANGE_USES_CAS 1
> > > -hppa: #define ATOMIC_EXCHANGE_USES_CAS 1
> > > -ia64: #define ATOMIC_EXCHANGE_USES_CAS 0
> > > -m68k: #define ATOMIC_EXCHANGE_USES_CAS 1
> > > -microblaze: #define ATOMIC_EXCHANGE_USES_CAS 1
> > > -nios2: #define ATOMIC_EXCHANGE_USES_CAS 1
> > > -sh: #define ATOMIC_EXCHANGE_USES_CAS 1
> > > -sparc: #define ATOMIC_EXCHANGE_USES_CAS 1
> >
> > Joseph, can you clarify for arm?
>
> You already answered for ARM
> <https://sourceware.org/ml/libc-alpha/2017-04/msg00109.html>.
>
What I wrote there was just my understanding, and I wasn't sure. I'll
assume that you are saying that this is indeed correct. If so, the
patch should remove the XXX comment.