linux-mips
[Top] [All Lists]

Re: [PATCH] Improve atomic.h implementation robustness

To: Richard Sandiford <rsandifo@redhat.com>
Subject: Re: [PATCH] Improve atomic.h implementation robustness
From: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>
Date: Wed, 8 Dec 2004 01:09:58 +0100
Cc: "Maciej W. Rozycki" <macro@linux-mips.org>, Ralf Baechle <ralf@linux-mips.org>, Dominic Sweetman <dom@mips.com>, linux-mips@linux-mips.org, Nigel Stephens <nigel@mips.com>, David Ung <davidu@mips.com>
In-reply-to: <87is7d3o2k.fsf@redhat.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20041201070014.GG3225@rembrandt.csv.ica.uni-stuttgart.de> <16813.39660.948092.328493@doms-laptop.algor.co.uk> <20041201123336.GA5612@linux-mips.org> <Pine.LNX.4.58L.0412012136480.13579@blysk.ds.pg.gda.pl> <wvn653epbi1.fsf@talisman.cambridge.redhat.com> <20041207125659.GP8714@rembrandt.csv.ica.uni-stuttgart.de> <87is7d3o2k.fsf@redhat.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.6i
Richard Sandiford wrote:
> Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de> writes:
> > I tried to use "R" in atomic.h but this failed in some (but not all)
> > cases with
> >
> > include/asm/atomic.h:64: error: inconsistent operand constraints in an asm'
> >
> > where the argument happens to be a member of a global struct.
> 
> Doh!  Do you have any testcases handy?

So far only the whole kernel, which isn't exactly handy.

> Was it failing with >= 3.4,
> or with older toolchains?  3.4 and above should know that 'R' is a
> memory-type constraint.

I saw the same failure for 3.3 and 3.4, I haven't tried 4.0.


Thiemo

<Prev in Thread] Current Thread [Next in Thread>