Subject: toolchain/34528: when crosscompiling for sun3, can't specify -m68020
To: None <,,>
From: None <>
List: netbsd-bugs
Date: 09/14/2006 20:10:00
>Number:         34528
>Category:       toolchain
>Synopsis:       when crosscompiling for sun3, can't specify -m68020
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 14 20:10:00 +0000 2006
>Originator:     Arthur Townsend
>Release:        3.0
3.0 for i386
When building NetBSD 3.0 on i386 host for sun3 target, creating /etc/mk.conf with MKSOFTFLOAT=yes and COPTS+=-msoft-float -m68020 causes the build to fail on /usr/src/sys/lib/libsa/alloc.c with: /var/tmp//ccZgqg2t.s: Assembler messages: ...line37: Error: operands mismatch -- statement 'tst.l %a0' ignored ...line43: Error: invalid instruction for this architecture; needs 68020 or 68030 or 68040 or 68060 or cpu32 or 5200 or 5206e or 528x or 5307 or 5407 or cfv4e -- statement 'extb.l %d0' ignored.

Done specify -m68020.  Since the sun3 and sun3x userlands are the same, they only use 68020 instructions anyway.