From 1c379b783e583f7af055a0e0470cbf825488448f Mon Sep 17 00:00:00 2001 From: Tijl Coosemans Date: Sat, 26 Feb 2011 19:21:48 +0000 Subject: [PATCH] config.gcc (i386-*-freebsd*): Make i486 the default arch on FreeBSD 6 and later. * config.gcc (i386-*-freebsd*): Make i486 the default arch on FreeBSD 6 and later. Generally use cpu generic. From-SVN: r170520 --- gcc/ChangeLog | 5 +++++ gcc/config.gcc | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 87248cc1904..d291bbd7871 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-02-26 Tijl Coosemans + + * config.gcc (i386-*-freebsd*): Make i486 the default arch on + FreeBSD 6 and later. Generally use cpu generic. + 2011-02-25 Gerald Pfeifer * doc/cpp.texi: Update copyright years. diff --git a/gcc/config.gcc b/gcc/config.gcc index 1c133007243..d1baea01007 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -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 -- 2.30.2