X-Authentication-Warning: ieva01.lanet.lv: pavenis owned process doing -bs Date: Wed, 15 Sep 1999 10:05:16 +0300 (WET) From: Andris Pavenis To: Gary Lloyd cc: djgpp AT delorie DOT com Subject: Re: grx23 under as-2.95 Forbidden register 2(cx) In-Reply-To: <7rlbp3$296$1@troll.apana.org.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 14 Sep 1999, Gary Lloyd wrote: > > Heck I did'nt get that far into the make before I got the following.... > gcc -c -O6 -Wall -m486 -fomit-frame-pointer -I. -I./include -I../include -I > ../addons/bmp utils/shiftscl.c -o utils/shiftscl.o > utils/shiftscl.c: In function `_GR_shift_scanline': > utils/shiftscl.c:48: Invalid `asm' statement: > utils/shiftscl.c:48: fixed or forbidden register 2 (cx) was spilled for > class CREG. > utils/shiftscl.c:102: Invalid `asm' statement: > utils/shiftscl.c:102: fixed or forbidden register 2 (cx) was spilled for > class CREG. > make.exe[1]: *** [utils/shiftscl.o] Error 1 > make.exe[1]: Leaving directory `g:/djgpp/contrib/grx23/src' > make.exe: *** [libs] Error 2 > The offending code is as so... > asm volatile ("\n" > " movb (%3),%%ch \n" > " jmp 1f \n" > " .align 4,0x90 \n" > "1: decl %3 \n" > " movb %%ch,%%al \n" > " movb (%3),%%ah \n" > " movb %%ah,%%ch \n" > " shrl %%cl,%%eax \n" > " movb %%al,(%4) \n" > " decl %4 \n" > " decl %5 \n" > " jne 1b \n" > " shrb %%cl,%%ch \n" > " movb %%ch,(%4) " > : "=r" ((void *)s), "=r" ((void *)d), "=r" ((int)w) > : "0" ((void *)s), "1" ((void *)d), "2" ((int)w), "c" ((int)shift) > : "ax", "cx" > ); See http://gcc.gnu.org/faq.html#asmclobber > It seems that u evidently got to and past this so any help would be > appreciated,I do not have much of a clue about assembly,I have had a look in > the FAQ but seen no mention of this, still it dos'nt mean that it;s not > there. > Also while I'm here, is GRX still being maintained,it has been sometime > since last in here,I have tried the original site where it was maintained > but its been over a year or so,since last going to that site and i find it > no longer exists. See: http://www.gnu.de/software/GRX/ Also there is mailing list (see URL above)