[Top] [All Lists]

Re: [PATCH] Improve atomic.h implementation robustness

To: Thiemo Seufer <>
Subject: Re: [PATCH] Improve atomic.h implementation robustness
From: Dominic Sweetman <>
Date: Wed, 1 Dec 2004 10:20:28 +0000
Cc: Nigel Stephens <>, David Ung <>
In-reply-to: <>
Original-recipient: rfc822;
References: <>
Thiemo writes:

> the atomic functions use so far memory references for the inline
> assembler to access the semaphore. This can lead to additional
> instructions in the ll/sc loop, because newer compilers don't
> expand the memory reference any more but leave it to the assembler.
> The appended patch...

I thought it was an explicit aim of the substantial rewrite of the
MIPS backend for 3.x to get the compiler to generate only "real"
instructions, not macros which expand to multiple instructions inside
the assembler.  So it's disappointing if newer compilers got worse.

Can one of our compiler-knowledgable people follow this up?

Dominic Sweetman
MIPS Technologies

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