Re: i386 __atomic_compare_exchange_n not found

2013-08-20 Thread Andrew MacLeod
On 08/09/2013 12:59 PM, Joe Buck wrote: On Fri, Aug 09, 2013 at 11:23:51AM -0500, Joel Sherrill wrote: On 8/9/2013 11:05 AM, Deng Hengyi wrote: Hi Joel, I have done a test, it seems that '-march=i386' does not provide "__atomic_compare_exchange_n" libs. And '-march=i486' or '-march=pentium' c

Re: i386 __atomic_compare_exchange_n not found

2013-08-09 Thread Jonathan Wakely
On 9 August 2013 17:59, Joe Buck wrote: > The i386 architecture lacks atomic compare instructions, to the point > where libstdc++ can't be built with that architecture (correct and > efficient atomic operations are vital important for libstdc++, andon i386 > it can't be done). I think libstdc++ ca

Re: i386 __atomic_compare_exchange_n not found

2013-08-09 Thread Joe Buck
On Fri, Aug 09, 2013 at 11:23:51AM -0500, Joel Sherrill wrote: > On 8/9/2013 11:05 AM, Deng Hengyi wrote: > > Hi Joel, > > > > I have done a test, it seems that '-march=i386' does not provide > > "__atomic_compare_exchange_n" libs. And '-march=i486' or '-march=pentium' > > can find the '__atomic_

Re: i386 __atomic_compare_exchange_n not found

2013-08-09 Thread Joel Sherrill
On 8/9/2013 11:05 AM, Deng Hengyi wrote: > Hi Joel, > > I have done a test, it seems that '-march=i386' does not provide > "__atomic_compare_exchange_n" libs. And '-march=i486' or '-march=pentium' can > find the '__atomic_compare_exchange_n' function. Look in the source for that methods on x86 an

Re: i386 __atomic_compare_exchange_n not found

2013-08-09 Thread Deng Hengyi
Hi Joel, I have done a test, it seems that '-march=i386' does not provide "__atomic_compare_exchange_n" libs. And '-march=i486' or '-march=pentium' can find the '__atomic_compare_exchange_n' function. weiy@ubuntu:~/project/gsoc/gsoc2013/rtems-build/arm-build$ i386-rtems4.11-gcc -m32 -march=i38

Re: i386 __atomic_compare_exchange_n not found

2013-08-09 Thread Joel Sherrill
On 8/9/2013 10:15 AM, Deng Hengyi wrote: > Hi all, > > does anyone know how to configure gcc to build with > "__atomic_compare_exchange_n" support for i386 target? I recall that one issue with *-rtems* targets is that we support CPU models which are lower than typically used on Linux and BSD syst

Re: i386 __atomic_compare_exchange_n not found

2013-08-09 Thread Deng Hengyi
Hi all, does anyone know how to configure gcc to build with "__atomic_compare_exchange_n" support for i386 target? WeiY Best Regards 在 2013-8-6,下午11:37,Jonathan Wakely 写道: > On 6 August 2013 16:30, Deng Hengyi wrote: >> Hi Jonathan, >> >> Thank you for your reply. >> And about the error i enc

Re: i386 __atomic_compare_exchange_n not found

2013-08-06 Thread Jonathan Wakely
On 6 August 2013 16:30, Deng Hengyi wrote: > Hi Jonathan, > > Thank you for your reply. > And about the error i encounter, do you have any advice? maybe it is caused > by my toolchain not install rightly? > In the standard pc686 architecture(not cross compile on RTEMS) will it > encounter the sim

Re: i386 __atomic_compare_exchange_n not found

2013-08-06 Thread Deng Hengyi
Hi Jonathan, Thank you for your reply. And about the error i encounter, do you have any advice? maybe it is caused by my toolchain not install rightly? In the standard pc686 architecture(not cross compile on RTEMS) will it encounter the similar error? WeiY Best Regards 在 2013-8-6,下午11:25,Jona

Re: i386 __atomic_compare_exchange_n not found

2013-08-06 Thread Jonathan Wakely
On 6 August 2013 15:47, Deng Hengyi wrote: > > And i have found some mail list talking about gcc has remove lock free atomic > int support [1][2], is this true? or just some error caused by my toolchain? > > I am waiting for your reply, Thank you! > > > [1]. http://gcc.gnu.org/ml/gcc/2012-12/msg00