Hi all,

I am form RTEMS org, recently we are working on atomic support for RTEMS. The 
C11 stdatomic.h has been ported to RTEMS. But when i build the atomic test case 
for pc686 BSP it will post some error like this :

/home/rtems-build/i386-build/i386-rtems4.11/c/pc686/testsuites/smptests/smpatomic07/../../../../../pc686/lib/include/rtems/score/cpustdatomic.h:278:
 undefined reference to `__atomic_compare_exchange_4'
/home/rtems-build/i386-build/i386-rtems4.11/c/pc686/testsuites/smptests/smpatomic07/../../../../../pc686/lib/include/rtems/score/cpustdatomic.h:278:
 undefined reference to `__atomic_compare_exchange_4'
tasks.o: In function `_Atomic_Compare_exchange_ptr':
/home/rtems-build/i386-build/i386-rtems4.11/c/pc686/testsuites/smptests/smpatomic07/../../../../../pc686/lib/include/rtems/score/cpustdatomic.h:290:
 undefined reference to `__atomic_compare_exchange_4'
/home/rtems-build/i386-build/i386-rtems4.11/c/pc686/testsuites/smptests/smpatomic07/../../../../../pc686/lib/include/rtems/score/cpustdatomic.h:290:
 undefined reference to `__atomic_compare_exchange_4'
tasks.o:/home/rtems-build/i386-build/i386-rtems4.11/c/pc686/testsuites/smptests/smpatomic07/../../../../../pc686/lib/include/rtems/score/cpustdatomic.h:290:
 more undefined references to `__atomic_compare_exchange_4' follow

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/msg00079.html
[2]. http://www.phoronix.com/scan.php?page=news_item&px=MTI1MDU

WeiY
Best Regards

Reply via email to