Author: jhb
Date: Wed Jan 20 15:14:20 2010
New Revision: 202703
URL: http://svn.freebsd.org/changeset/base/202703

Log:
  MFC 198344:
  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.

Modified:
  stable/7/contrib/gcc/config/i386/i386.c
Directory Properties:
  stable/7/contrib/gcc/   (props changed)

Modified: stable/7/contrib/gcc/config/i386/i386.c
==============================================================================
--- stable/7/contrib/gcc/config/i386/i386.c     Wed Jan 20 15:13:38 2010        
(r202702)
+++ stable/7/contrib/gcc/config/i386/i386.c     Wed Jan 20 15:14:20 2010        
(r202703)
@@ -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))
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to