diff mbox

committed: make i486 default arch for x86 NetBSD

Message ID Pine.NEB.4.64.1612102224320.6921@gateway.kwa
State New
Headers show

Commit Message

Krister Walfridsson Dec. 10, 2016, 9:26 p.m. UTC
I have committed the attached patch to make i486 the default arch on 
NetBSD in the same way as for FreeBSD, as 386 CPUs are not supported on 
any maintained version of NetBSD.

Bootstrapped and tested on i386-unknown-netbsdelf6.1

    /Krister


2016-12-10  Krister Walfridsson  <krister.walfridsson@gmail.com>

 	* config.gcc (i386-*-netbsd*): Make i486 the default arch on NetBSD.
 	Generally use cpu generic.
diff mbox

Patch

Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc	(revision 243518)
+++ gcc/config.gcc	(revision 243519)
@@ -3061,6 +3061,12 @@ 
     arch_without_sse2=yes
     arch_without_64bit=yes
     ;;
+  i386-*-netbsd*)
+    arch=i486
+    cpu=generic
+    arch_without_sse2=yes
+    arch_without_64bit=yes
+    ;;
   i386-*-*)
     arch=i386
     cpu=i386