delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/15/06:34:05

X-Authentication-Warning: ieva01.lanet.lv: pavenis owned process doing -bs
Date: Wed, 15 Sep 1999 10:05:16 +0300 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
To: Gary Lloyd <glloyd AT gargoyle DOT apana DOT org DOT au>
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: <Pine.A41.4.05.9909150957210.83668-100000@ieva01.lanet.lv>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com


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)


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019