Subject: port-m68k/8971: cross compiling the m68k fpsp sources with a recent gas fails
To: None <gnats-bugs@gnats.netbsd.org>
From: None <chris@nice.ch>
List: netbsd-bugs
Date: 12/07/1999 15:03:46
>Number:         8971
>Category:       port-m68k
>Synopsis:       cross compiling the m68k fpsp sources with a recent gas fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-m68k-maintainer (NetBSD/m68k Portmasters)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec  7 15:03:00 1999
>Last-Modified:
>Originator:     Christian Limpach
>Organization:
>Release:        1.4.1
>Environment:
binutils 2.9.5.0.12
or host-i386-target-m68k-toolchain.tgz (can't remember exactly where I got this, but it's a toolchain compiled on NetBSD-1.3E)

>Description:
compiling some of the assembler source files from the fpsp fails if you use a recent gas because the #:0x syntax for float values isn't supported (anymore).  Using #0x works and generates the same code with as 1.92.3, NetBSD $Revision: 1.3 $ and gas from binutils 2.9.5.0.12
Since my compile server doesn't run NetBSD, it was considerably easier to use more recent tools than to figure out how to get the tools from the NetBSD source-tree to work on the non-pmake system.

>How-To-Repeat:
build a kernel with the toolchain in host-i386-target-m68k-toolchain.tgz

>Fix:
Index: asm2gas
===================================================================
RCS file: /cvs/netbsd/release/src/sys/arch/m68k/fpsp/asm2gas,v
retrieving revision 1.1
diff -c -r1.1 asm2gas
*** asm2gas     1998/08/15 03:51:31     1.1
--- asm2gas     1999/12/07 02:58:55
***************
*** 146,152 ****
    s/\([^_a-zA-Z0-9]\)fpiar$/\1fpi/g

    s/\$/0x/g
!   s/#:/#:0x/g

    s/-(\([sSpPaA][pPcC0-7]\))/\1@-/g
    s/(\([sSpPaA][pPcC0-7]\))+/\1@+/g
--- 146,152 ----
    s/\([^_a-zA-Z0-9]\)fpiar$/\1fpi/g

    s/\$/0x/g
!   s/#:/#0x/g

    s/-(\([sSpPaA][pPcC0-7]\))/\1@-/g
    s/(\([sSpPaA][pPcC0-7]\))+/\1@+/g


>Audit-Trail:
>Unformatted: