"atomic" 64-bit math on 32-bit ppc's?

Scott Wood scottwood at freescale.com
Wed Sep 5 04:48:10 EST 2007

On Tue, Sep 04, 2007 at 01:39:37PM +0200, Gabriel Paubert wrote:
> That's wrong if lock is assigned to r0, you should use
> a "b" constraint to avoid this. Same for atomic_dec below.

GCC should really have removed r0 from the "r" class (it isn't truly a
general-purpose register), and had a different class meaning "r"-plus-r0.


More information about the Linuxppc-dev mailing list