From patchwork Fri Sep 17 12:59:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Define SUBTARGET32_DEFAULT_CPU on FreeBSD Date: Fri, 17 Sep 2010 02:59:55 -0000 From: Tijl Coosemans X-Patchwork-Id: 65073 Message-Id: <201009171459.56955.tijl@coosemans.org> To: gcc-patches@gcc.gnu.org Cc: Gerald Pfeifer Support for the i386 cpu has been removed from FreeBSD 6.0 onward and thus i486 instructions can be used by default. A similar change has been applied to the version of GCC supplied with FreeBSD: http://svn.freebsd.org/viewvc/base?view=revision&revision=198344 I don't have commit access so feel free to commit this when approved. Tijl Coosemans * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add. --- config/i386/freebsd.h.orig +++ config/i386/freebsd.h @@ -141,3 +141,8 @@ /* Static stack checking is supported by means of probes. */ #define STACK_CHECK_STATIC_BUILTIN 1 + +/* Support for i386 has been removed from FreeBSD 6.0 onward. */ +#if FBSD_MAJOR >= 6 +#define SUBTARGET32_DEFAULT_CPU "i486" +#endif