delorie.com/archives/browse.cgi | search |
From: | Martin Steuer <ms172554 AT mail DOT inf DOT tu-dresden DOT de> |
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: | <uvhqfmcgbgs2f2 AT corp DOT supernews DOT com> <atc588$m3m$3 AT antares DOT lu DOT erisoft DOT se> |
NNTP-Posting-Host: | irz726.inf.tu-dresden.de (141.76.7.26) |
Mime-Version: | 1.0 |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |