On Thu, Sep 06, 2007 at 03:21:36PM +0200, Segher Boessenkool 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. > > Nah, GPR0 _is_ a general purpose register, you just cannot use all > general purpose registers as base registers ;-)
Bah. > Either way, it's a bit late to change this, no? Sure, I was just whining due to having been bitten by this sort of bug in the past. :-) -Scott _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev