Re: Atomic operations on Sparc in libstdc++

2006-01-09 Thread Benjamin Kosnik
Piotr, Hello. First, a note: you should be sending libstdc++ mail to the [EMAIL PROTECTED] list. I haven't verified your claim, but if it is true, I would suggest the following actions on your part to solve it: 1) enter a sparc backend bug in gcc bugzilla about not defining __sparcv9 in 32 bit

Atomic operations on Sparc in libstdc++

2006-01-07 Thread Piotr Wyderski
Hello, why there is no cas-based version of __exchange_and_add for 32-bit mode Sparcs in libstdc++, namely in config/cpu/sparc/atomicity.h ? There is spinlock-based generic code for all Sparcs, but V9 does support 32-bit cas, which can be used instead of a spinlock. This spinlock _Atomicity_lock<