delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/24/10:29:45

From: pavenis AT lanet DOT lv
Message-ID: <B0000099169@stargate.astr.lu.lv>
To: James W Sager Iii <sager+@andrew.cmu.edu>, djgpp AT delorie DOT com
Date: Tue, 24 Aug 1999 13:14:03 +0300
MIME-Version: 1.0
Subject: Re: Scratch that, installing allegro
In-reply-to: <UrkJEKa00Ui602Ikg0@andrew.cmu.edu>
X-mailer: Pegasus Mail for Win32 (v3.12a)
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--Message-Boundary-28582
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body

Seems that You're trying to compile Allegro with GCC-2.95. There are 
some changes I had to apply to build it (first patch is to satisfy 
binutils snapshot I'm using). There are some more warnings from AS 
(990817 binutils snapshot) about wrong length suffix in assembler 
instructions (eg. suffix 'w', register %esi). I didn't fix them all.

Andris

On 23 Aug 99, at 10:00, James W Sager Iii wrote:

> 
> I realized one of the answers to the previous problem is that I didn't 
> setup allegro :P
> 
> When typing make under the allegro directory, I got the following error:
> 
> 
> 
> 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
> 
> 
> 
> Any hints? 
> 



--Message-Boundary-28582
Content-type: text/plain; charset=US-ASCII
Content-disposition: inline
Content-description: Attachment information.

The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  allegro.diff
     Date:  24 Aug 1999, 13:06
     Size:  1836 bytes.
     Type:  Text

--Message-Boundary-28582
Content-type: Application/Octet-stream; name="allegro.diff"; type=Text
Content-disposition: attachment; filename="allegro.diff"

*** allegro/src/asmdefs.inc~1	Sat Feb 20 16:51:22 1999
--- allegro/src/asmdefs.inc	Tue Aug 24 12:55:50 1999
***************
*** 41,48 ****
   * %eax. Registers will be unchanged, except %eax will return a pointer 
   * to the start of the selected scanline.
   */
! #define WRITE_BANK()    call BMP_WBANK(%edx)
! #define READ_BANK()     call BMP_RBANK(%edx)
  
  
  /* Helper macro for looking up a position in the pattern bitmap. Passed
--- 41,48 ----
   * %eax. Registers will be unchanged, except %eax will return a pointer 
   * to the start of the selected scanline.
   */
! #define WRITE_BANK()    call *BMP_WBANK(%edx)
! #define READ_BANK()     call *BMP_RBANK(%edx)
  
  
  /* Helper macro for looking up a position in the pattern bitmap. Passed
*** allegro/src/cpu.c~1	Thu Feb 25 20:38:56 1999
--- allegro/src/cpu.c	Tue Aug 24 12:58:00 1999
***************
*** 60,66 ****
  
     : "=a" (result)
     :
!    : "eax", "ecx", "memory"
     );
  
     return result;
--- 60,66 ----
  
     : "=a" (result)
     :
!    : "ecx", "memory"
     );
  
     return result;
***************
*** 120,126 ****
  
     : "=a" (result)
     :
!    : "%eax", "memory"
     );
  
     return result;
--- 120,126 ----
  
     : "=a" (result)
     :
!    : "memory"
     );
  
     return result;
***************
*** 152,158 ****
  
     : "=a" (result)
     :
!    : "%eax", "%ebx", "memory" );
  
     return result;
  }
--- 152,158 ----
  
     : "=a" (result)
     :
!    : "%ebx", "memory" );
  
     return result;
  }
***************
*** 272,278 ****
  
     : "=a" (result)
     :
!    : "%eax", "%ebx", "memory"
     );
  
     return result;
--- 272,278 ----
  
     : "=a" (result)
     :
!    : "%ebx", "memory"
     );
  
     return result;

--Message-Boundary-28582--

- Raw text -


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