This is the mail archive of the gcc-bugs@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: Problems with inline assembler in gcc-3.2


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~


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