[Top] [All Lists]

Re: [PATCH] Improve atomic.h implementation robustness

To: "Maciej W. Rozycki" <>
Subject: Re: [PATCH] Improve atomic.h implementation robustness
From: Thiemo Seufer <>
Date: Thu, 2 Dec 2004 02:02:29 +0100
Cc: Dominic Sweetman <>,,, Nigel Stephens <>, David Ung <>
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <> <> <> <>
User-agent: Mutt/1.5.6i
Maciej W. Rozycki wrote:
> > I discussed this with Richard Sandiford a while ago, and the conclusion
> > was to implement an explicit --msym32 option for both gcc and gas to
> > improve register scheduling and get rid of the gas hack. So far, nobody
> > came around to actually do the work for it.
>  ... like this, for example.  But if nobody has implemented it yet, then 
> perhaps nobody is really interested in it? ;-)

The old solution works, and kernel developers tend to use old toolchains.

> > seen additional load/store insn creeping in ll/sc loops. I believe
> > there's a large amount of inline assembly code (not necessarily in the
> > kernel) which relies on similiar assumptions.
>  With explicit relocs you have no problem with any instructions appearing 
> inside inline asms unexpectedly.  That is if you use the "R" constraint -- 
> the "m" one never guaranteed that.

But it happened to work, and is in widespread use.


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