Subject: 68030 code when building for 68060?
To: None <port-amiga@NetBSD.org>
From: Hubert Feyrer <hubert@feyrer.de>
List: port-amiga
Date: 02/05/2005 21:26:25
I stumbled across the following line in 
src/sys/arch/amiga/conf/Makefile.amiga:

 	.if empty(IDENT:M-DM68060)
 	CMACHFLAGS=     -m68020
 	.else
===>	CMACHFLAGS=     -m68060 -Wa,-m68030 -Wa,-m68851
 	.endif

My question is, why bother with producing code for the 68030 when it's 
known that the target is a 68060? Shouldn't the second argument be
"-Wa,-m68060" instead? At least according to the gas info page, there is a 
"-m68060". Likewise, -m68851 is the default for when (-Wa,)-m68060  is 
used, so I guess it cam be omitted then?

Might be useful to decide between more CPUs, e.g. special-case 030 and 040 
and not only 020 and 060 as right now.


  - Hubert

-- 
NetBSD - Free AND Open!      (And of course secure, portable, yadda yadda)