Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jan 2010 15:14:20 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r202703 - stable/7/contrib/gcc/config/i386
Message-ID:  <201001201514.o0KFEKWP038900@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001201514.o0KFEKWP038900>