This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: An error of gcc-ss-20030303


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]