Problems with inline assembler in gcc-3.2

Richard Henderson rth@redhat.com
Thu Oct 31 09:06:00 GMT 2002


On Thu, Oct 31, 2002 at 11:28:01AM +0000, Richard Earnshaw wrote:
> 	__asm__ __volatile__(
> 		"lock; incl %0"
> 		:"+m" (*p));

No, that expands to the same thing.  OTOH, using

	"=m" (*p) : "m" (*p)

should work, and is probably the preferred solution.


r~



More information about the Gcc-bugs mailing list