gcc 3.2.3 config/os/bits/i386/atomicity.h broken

Andreas Jaeger aj@suse.de
Mon Apr 28 08:25:00 GMT 2003


Loren James Rittle <rittle@latour.rsch.comm.mot.com> writes:
> [...]
> However, the patch within implies to me that plain xchgl will fail on
> x86-64 (would a compiler configured as i386-*-* be expected to support
> x86-64? was the patch pessimistic?):
>
>   http://www.x86-64.org/lists/discuss/msg01969.html
>
> (The reason, I'm questioning above, is because I don't know.  I recall
> that the 68K weakened the strength of TAS between 000 and 0[12]0 when
> they added support for MP and a new bus locking protocol.  But that
> was a lifetime ago.)

xchgl will work correctly on x86-64.  The only problem (and that's why
it was disabled temporarily in the patch you mentioned) is that
arguments to it might have a different size.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Libstdc++ mailing list