This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: __sync_bool_compare_and_swap


On Fri, Jan 05, 2007 at 09:27:35PM +0100, Magnus Fromreide wrote:
> 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
> 

Can you try adding --with-arch=i686?


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]