This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __sync_bool_compare_and_swap
On fre, 2007-01-05 at 17:05 +0000, Andrew Haley wrote:
> Magnus Fromreide writes:
>
> But it can't unless you use an architecture that has cmpxchgl.
> cmpxchgl is a 486 instruction; if you compile for 386, we have to
> generate the call because there is no such instruction.
Sigh - I failed to tell how I built my compiler:
I used the following configure line:
../trunk/configure -v --enable-languages=c,c++ --prefix=/usr/local/gcc-head --enable-shared --with-system-zlib --without-included-gettext --enable-threads=posix --disable-nls --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --with-tune=i686 --enable-checking=release i686-linux-gnu --enable-concept-checks --enable-bootstrap
Note the i686-linux-gnu target.
I have tried building it for i486-linux-gnu with the same result.
Additionally I have built it natively (i686-linux-gnu) using
../trunk/configure --prefix=/usr/local/gcc-head --enable-__cxa_atexit --disable-nls --disable-checking --enable-concept-checks --with-system-zlib --verbose --enable-languages=c,c++
with the same result.
The make target is bootstrap in all cases.
/MF