Subject: Re: -m486
To: None <port-i386@NetBSD.ORG>
From: Mike Long <mike.long@analog.com>
List: port-i386
Date: 12/16/1995 03:53:34
Roland McGrath writes:
> I am tired of all this mail, so I read the source in
> /usr/src/gnu/usr.bin/gcc2/arch/i386 and the answer is it never
> produces new kinds of instructions, only different choices of 386
> instructions and much bigger alignment.  Code compiled with -m486 from
> the netbsd-current sources will run on a 386.  End of story.

If you do decide to make -m486 the default, I'd prefer that it be done
as in the (untested) patch below.  We should try to keep
machine-specific things in /usr/share/mk/* to a minimum.

--- src/gnu/usr.bin/gcc2/arch/i386/Makefile~       Fri Oct 13 20:17:09 1995
+++ src/gnu/usr.bin/gcc2/arch/i386/Makefile        Sat Dec 16 03:44:54 1995
@@ -1,3 +1,5 @@
 #      $Id: Makefile,v 1.1 1993/08/23 09:21:37 cgd Exp $
 
+CFLAGS +="-DTARGET_CPU_DEFAULT=2"
+
 .include <bsd.prog.mk>


-- 
Mike Long <mike.long@analog.com>           http://www.shore.net/~mikel
VLSI Design Engineer         finger mikel@shore.net for PGP public key
Analog Devices, CPD Division          CCBF225E7D3F7ECB2C8F7ABB15D9BE7B
Norwood, MA 02062 USA       (eq (opinion 'ADI) (opinion 'mike)) -> nil