[PATCH] Fix libstdc++/11784 - atomic __exchange_and_add() broken for ColdFire targets

Bernardo Innocenti bernie@develer.com
Wed Aug 6 17:29:00 GMT 2003


Andrew Pinski wrote:
> On Tuesday, Aug 5, 2003, at 23:50 US/Eastern, Bernardo Innocenti wrote:
> 
>>
>> +              : "=m"(__Atomicity_lock<0>::_S_atomicity_lock)
>> +              : "m"(__Atomicity_lock<0>::_S_atomicity_lock)
> 
> 
> This should be "+m"(__Atomicity_lock<0>::_S_atomicity_lock).

You're right, and it's for both bits of inline asm. I will prepare
a new patch.

-- 
  // Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/  http://www.develer.com/

Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html





More information about the Libstdc++ mailing list