Subject: Re: [boost] [atomic] unconditional cmpxchg8b support
From: Peter Dimov (lists_at_[hidden])
Date: 2012-10-23 17:22:01


Steven Watanabe wrote:
> Seriously, if the compiler is set to compile for
> an architecture that doesn't support cmpxchg8b,
> then Boost.Atomic should not generate this instruction.

It's very, very rare for a user to willingly target 386/486 (these
processors are all but extinct, not to mention that modern Windows versions
simply don't run on them.)

A GCC target of i386 in practice simply means that a target hasn't been set,
not that the user explicitly wanted to target i386. Nobody wants to target
i386.