From: Martin Steuer Newsgroups: comp.os.msdos.djgpp Subject: Re: Quest about inline asm... Date: Fri, 13 Dec 2002 11:04:58 +0100 Lines: 19 Message-ID: <3DF9B0CA.9050500@mail.inf.tu-dresden.de> References: NNTP-Posting-Host: irz726.inf.tu-dresden.de (141.76.7.26) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 1039773971 36165683 141.76.7.26 (16 [142788]) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: de-DE To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Martin Stromberg wrote: > > I think you need to remove "%eax" from the clobber list. > > > Right, > > MartinS > Yes he's right because you specify "a" in the input list, gcc already knows that the value of eax changes. This is also true for the output, whenever you specify a register in the input/output list, dont give it into the clobber list. I noticed that older versions of gcc would accept this, but it is clearly more correct this way.