Subject: Re: pkg/9200: cross-m68k gas doesn't recognize fcmps/fcmpd instructions
To: None <paul@whooppee.com>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: netbsd-bugs
Date: 02/01/2000 17:21:08
In <200001151846.KAA16435@pc1.whooppee.com>
paul@whooppee.com wrote:
> >Description:
> While attempting to make a mac68k kernel, it fails while compiling
> res_func.s from the fpsp library. Several error messages of the
> form
>
> res_func.s:1524: Error: parse error -- statement `fcmpd #:0x41dfffffffc00000,fp0' ignored
>
> are generated.
The following patch from port-m68k/3749 seems to fix this problem,
but I'm not familiar with m68k gas grammar...
--- sys/arch/m68k/fpsp/asm2gas.orig Sat Aug 15 12:51:31 1998
+++ sys/arch/m68k/fpsp/asm2gas Tue Feb 1 16:39:43 2000
@@ -146,7 +146,7 @@
s/\([^_a-zA-Z0-9]\)fpiar$/\1fpi/g
s/\$/0x/g
- s/#:/#:0x/g
+ s/#:/#0x/g
s/-(\([sSpPaA][pPcC0-7]\))/\1@-/g
s/(\([sSpPaA][pPcC0-7]\))+/\1@+/g
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp