config.gcc (i386-*-freebsd*): Make i486 the default arch on FreeBSD 6 and later.
authorTijl Coosemans <tijl@coosemans.org>
Sat, 26 Feb 2011 19:21:48 +0000 (19:21 +0000)
committerGerald Pfeifer <gerald@gcc.gnu.org>
Sat, 26 Feb 2011 19:21:48 +0000 (19:21 +0000)
* config.gcc (i386-*-freebsd*): Make i486 the default arch on
FreeBSD 6 and later.  Generally use cpu generic.

From-SVN: r170520

gcc/ChangeLog
gcc/config.gcc

index 87248cc190420294e2b2d34b4dae0f90ada7f1de..d291bbd787150f1ed22ec25260c2458033cae9f3 100644 (file)
@@ -1,3 +1,8 @@
+2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
+
+       * config.gcc (i386-*-freebsd*): Make i486 the default arch on
+       FreeBSD 6 and later.  Generally use cpu generic.
+
 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
  
        * doc/cpp.texi: Update copyright years.
index 1c133007243b5fccd265905143a92a25c501b4ba..d1baea01007d8b8a8b684fc17ece1c8ac4ac7708 100644 (file)
@@ -2797,6 +2797,16 @@ cpu=
 arch_without_sse2=no
 arch_without_64bit=no
 case ${target} in
+  i386-*-freebsd*)
+    if test $fbsd_major -ge 6; then
+      arch=i486
+    else
+      arch=i386
+    fi
+    cpu=generic
+    arch_without_sse2=yes
+    arch_without_64bit=yes
+    ;;
   i386-*-*)
     arch=i386
     cpu=i386