Define SUBTARGET32_DEFAULT_CPU on FreeBSD

Gerald Pfeifer gerald@pfeifer.com
Fri Sep 17 14:25:00 GMT 2010


I'll be happy to commit (and post test results) if anyone wants to 
aprove.  :-)

Gerald

On Fri, 17 Sep 2010, Tijl Coosemans wrote:
> 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



More information about the Gcc-patches mailing list