Mail Archives: djgpp/1999/09/22/18:11:04
N E Parris wrote:
>
> hi all,
>
> This is probably a problem you've seen before but I couldn't
> see it in the newsgroup so I hope someone can help?
>
> I've installed everything alright, gcc, rhide, info, g032 etc etc
> seem to work fine for the programs I have written so far
> but when I try to 'make' in the Allegro library it has a problem
> with the inline asm in the code... here's the error:
>
> D:\djgpp\allegro>make
> Compiling Allegro. Please wait...
> gcc -I. -Isrc -Iobj/djgpp -Wall -Wno-unused -m486 -O3 -ffast-math -fomit-frame-p
> ointer -o obj/djgpp/cpu.o -c src/cpu.c
> src/cpu.c: In function `check_cpu':
> src/cpu.c:276: Invalid `asm' statement:
> src/cpu.c:276: fixed or forbidden register 0 (ax) was spilled for class AREG.
> src/cpu.c:155: Invalid `asm' statement:
> src/cpu.c:155: fixed or forbidden register 0 (ax) was spilled for class AREG.
> src/cpu.c:124: Invalid `asm' statement:
> src/cpu.c:124: fixed or forbidden register 0 (ax) was spilled for class AREG.
> src/cpu.c:64: Invalid `asm' statement:
> src/cpu.c:64: fixed or forbidden register 0 (ax) was spilled for class AREG.
> src/cpu.c:155: Invalid `asm' statement:
> src/cpu.c:155: fixed or forbidden register 0 (ax) was spilled for class AREG.
> make.exe: *** [obj/djgpp/cpu.o] Error 1
>
> D:\djgpp\allegro>
>
> I've been reading all I can about the inline asm etc, clobbering
> and all that but I can't work out why this doesn't work.
Please try a more recent version of Allegro, like 3.12. This is an
incompatibility between older versions and a new version of the
compiler.
--
Nate Eldredge
neldredge AT hmc DOT edu
- Raw text -