site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=Ms+kRIMAxd5Rf5oukUIHwfVuWZX0iEX2kUAcUdKnI7M=; b=EOKDnXLasXqX+9s4OEg/OY8SeJFHJy8MVMZA/6Dq15mjDpAydqP5z/bdEbmGGqzgZo jhbKMrIxURs3UALLjWiZGFfkuKXGYOPFgPFwk9/MczYR2wnBPUZUeg49ipSr4ulTqCMX jj1vmhlEzNfjJf6exLGKwyebqq4pLudxsBppU= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=QyaREtqtJzHP71WX8hxozlRvKJ2/Sf8LgVTLrm0KIZe92DkJaJzPA5BLbNMWaBoLB/ 3yofrrLU1HYzzop2b62nJCtm+cWd+S8vNRCrHcooGfQUXn5sRjrkNtLxLMHR+mgxQWez XPbV3XZ61q6qcwbUlpmPRMu5Fkpk3f9U/bcSg= Hi, I've inherited a chunk of code and am trying to get it to compile on Leopard but am running into a problem and I'm hoping somebody on this list has seen it before. typedef uint32_t lockStructure; static inline int __compareAndSwap(lockStructure *ptr, lockStructure old, lockStructure new) { lockStructure prev = old; asm volatile("lock cmpxchgl %1,%2" : "=a" (old) : "q" (new), "m" (*ptr),"0" (old) : "memory"); return old != prev; } When I try to compile this, I get the following error for the line starting with asm: error: impossible constraint in 'asm' This isn't with Xcode but instead with a standard Makefile. I'm using the stock gcc 4.0.1 that comes with the latest Xcode. Thanks, Steve _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com