svn commit: r198344 - head/contrib/gcc/config/i386

John Baldwin jhb at FreeBSD.org
Wed Oct 21 19:26:13 UTC 2009


Author: jhb
Date: Wed Oct 21 19:26:12 2009
New Revision: 198344
URL: http://svn.freebsd.org/changeset/base/198344

Log:
  Change gcc to assume a default machine architecture of 486 instead of 386
  on "i386".  Doing it in the compiler is deemed to be less fragile then
  attempting to provide a default -march setting via bsd.cpu.mk.  FreeBSD
  itself has not supported plain 386 CPUs since 5.x.
  
  Suggested by:	kan
  Requested by:	rdivacky
  MFC after:	1 month

Modified:
  head/contrib/gcc/config/i386/i386.c

Modified: head/contrib/gcc/config/i386/i386.c
==============================================================================
--- head/contrib/gcc/config/i386/i386.c	Wed Oct 21 18:46:36 2009	(r198343)
+++ head/contrib/gcc/config/i386/i386.c	Wed Oct 21 19:26:12 2009	(r198344)
@@ -1614,7 +1614,7 @@ override_options (void)
 	     "-mtune=generic instead as appropriate.");
 
   if (!ix86_arch_string)
-    ix86_arch_string = TARGET_64BIT ? "x86-64" : "i386";
+    ix86_arch_string = TARGET_64BIT ? "x86-64" : "i486";
   if (!strcmp (ix86_arch_string, "generic"))
     error ("generic CPU can be used only for -mtune= switch");
   if (!strncmp (ix86_arch_string, "generic", 7))


More information about the svn-src-head mailing list