An error of gcc-ss-20030303

Jie Zhang zhangjie@magima.com.cn
Thu Apr 24 05:42:00 GMT 2003


Richard Henderson wrote:

> On Wed, Apr 23, 2003 at 03:41:45PM +0800, Jie Zhang wrote:
>  
>
>> __asm __volatile ("" : "=m" (*spinlock) : "0" (*spinlock));
>>   
>
>
> Don't use matching constraints on memories.
>  
>
The problem is solved by changing this line into

__asm __volatile ("" : "+m" (*spinlock));

I should have read the document more carefully :-P
Thanks all!

- Jie



More information about the Gcc mailing list